@opencode/core 0.0.0-dev-20665 → 0.0.0-dev-20669

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 (780) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +83 -83
  3. package/dist/aisdk-native.js +89 -89
  4. package/dist/aisdk.js +94 -94
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +73 -73
  7. package/dist/chunks/{model-rbdmdcgh.js → persistent-pty-0506etc9.js} +32 -32
  8. package/dist/chunks/{model-6g7e4dd5.js → persistent-pty-0bg0bx69.js} +9 -9
  9. package/dist/chunks/{model-mbfqztvv.js → persistent-pty-0gaxgzx6.js} +43 -43
  10. package/dist/chunks/{model-2m8jawch.js → persistent-pty-0me0fk48.js} +4 -4
  11. package/dist/chunks/{model-0paq2nw3.js → persistent-pty-0paq2nw3.js} +1 -1
  12. package/dist/chunks/{model-n8vdnqrc.js → persistent-pty-0r3c1bmw.js} +5 -5
  13. package/dist/chunks/{model-an20b3q3.js → persistent-pty-0sez9328.js} +11 -11
  14. package/dist/chunks/{model-xd4eajp3.js → persistent-pty-0v4cpg5d.js} +11 -11
  15. package/dist/chunks/{model-0vbcp93d.js → persistent-pty-0vbcp93d.js} +2 -2
  16. package/dist/chunks/{model-c27esgm9.js → persistent-pty-0xezjjjn.js} +8 -8
  17. package/dist/chunks/{model-c0kz0pvs.js → persistent-pty-0ztzc0rc.js} +30 -30
  18. package/dist/chunks/{model-yj7xv6w3.js → persistent-pty-10w4ymhy.js} +4 -4
  19. package/dist/chunks/{model-gzvvm5t9.js → persistent-pty-1cgges17.js} +8 -8
  20. package/dist/chunks/{model-1dazxqgg.js → persistent-pty-1dazxqgg.js} +2 -2
  21. package/dist/chunks/{model-r830apza.js → persistent-pty-1m6fh7c4.js} +11 -11
  22. package/dist/chunks/{model-4r5bkf9y.js → persistent-pty-1tje5prg.js} +32 -32
  23. package/dist/chunks/{model-42rpdw4e.js → persistent-pty-1vndf96e.js} +9 -9
  24. package/dist/chunks/{model-bdpzzc2x.js → persistent-pty-1y9xp183.js} +11 -11
  25. package/dist/chunks/{model-5wwecgr9.js → persistent-pty-22902vxq.js} +5 -5
  26. package/dist/chunks/{model-ft3zxgd7.js → persistent-pty-26ye3vwj.js} +8 -8
  27. package/dist/chunks/persistent-pty-298ac3tk.js +26 -0
  28. package/dist/chunks/{model-1yft0xp6.js → persistent-pty-29wpv0c5.js} +16 -16
  29. package/dist/chunks/{model-2a5m3afh.js → persistent-pty-2a5m3afh.js} +1 -1
  30. package/dist/chunks/{model-p5x6h0ea.js → persistent-pty-2dffg0nm.js} +15 -15
  31. package/dist/chunks/{model-05tb8896.js → persistent-pty-2p3910rq.js} +11 -11
  32. package/dist/chunks/{model-3j9bgvtg.js → persistent-pty-2p623br6.js} +5 -5
  33. package/dist/chunks/{model-3ptfharv.js → persistent-pty-2ss7c3mr.js} +26 -26
  34. package/dist/chunks/{model-bskc84e3.js → persistent-pty-357jqwce.js} +5 -5
  35. package/dist/chunks/{model-zd8we8qk.js → persistent-pty-35qw0rw5.js} +8 -8
  36. package/dist/chunks/{model-en9mxp96.js → persistent-pty-3cd9n481.js} +8 -8
  37. package/dist/chunks/{model-h2b79v29.js → persistent-pty-3cegwx68.js} +2 -2
  38. package/dist/chunks/{model-3fc6dm20.js → persistent-pty-3fc6dm20.js} +1 -1
  39. package/dist/chunks/{model-2seqm7ta.js → persistent-pty-3fktkvc1.js} +4 -4
  40. package/dist/chunks/{model-3hepkmqq.js → persistent-pty-3hepkmqq.js} +1 -1
  41. package/dist/chunks/{model-jedqxwja.js → persistent-pty-3hfxhm5y.js} +11 -11
  42. package/dist/chunks/{model-f50cy0tv.js → persistent-pty-3rp5as3f.js} +37 -37
  43. package/dist/chunks/{model-3smtnn6g.js → persistent-pty-3smtnn6g.js} +1 -1
  44. package/dist/chunks/{model-3tvqynh2.js → persistent-pty-3tvqynh2.js} +1 -1
  45. package/dist/chunks/{model-3zsf4n22.js → persistent-pty-3zsf4n22.js} +1 -1
  46. package/dist/chunks/{model-2n295dmf.js → persistent-pty-4c2df9zx.js} +8 -8
  47. package/dist/chunks/{model-fdms3n6w.js → persistent-pty-4rt0ga34.js} +9 -9
  48. package/dist/chunks/{model-nkfqmrng.js → persistent-pty-4rxwbah3.js} +5 -5
  49. package/dist/chunks/{model-2ccvkpx1.js → persistent-pty-4ts7tf6z.js} +2 -2
  50. package/dist/chunks/{model-13db7e4e.js → persistent-pty-521nt0x3.js} +24 -24
  51. package/dist/chunks/{model-h960ywcp.js → persistent-pty-52m569tx.js} +14 -14
  52. package/dist/chunks/{model-54ma36ye.js → persistent-pty-54ma36ye.js} +1 -1
  53. package/dist/chunks/{model-09bawd7d.js → persistent-pty-5cpejcvs.js} +13 -13
  54. package/dist/chunks/{model-fnkg6qb4.js → persistent-pty-5d2g1x8f.js} +51 -51
  55. package/dist/chunks/{model-5daktx2q.js → persistent-pty-5daktx2q.js} +1 -1
  56. package/dist/chunks/{model-wd59kgh2.js → persistent-pty-5df9cmzz.js} +13 -13
  57. package/dist/chunks/{model-5m9w47nd.js → persistent-pty-5m9w47nd.js} +1 -1
  58. package/dist/chunks/{model-v12bfv38.js → persistent-pty-5ma40m5t.js} +10 -10
  59. package/dist/chunks/{model-jvt424gv.js → persistent-pty-5pv4q8r9.js} +9 -9
  60. package/dist/chunks/{model-9pa8tak9.js → persistent-pty-5pyjqqve.js} +2 -2
  61. package/dist/chunks/{model-e3qxr5gk.js → persistent-pty-5qd3pb7m.js} +2 -2
  62. package/dist/chunks/{model-eqx6m485.js → persistent-pty-5s1hsbk6.js} +8 -8
  63. package/dist/chunks/{model-5t3nmthw.js → persistent-pty-5t3nmthw.js} +2 -2
  64. package/dist/chunks/{model-eb1ryh4n.js → persistent-pty-6nx6vy4k.js} +26 -26
  65. package/dist/chunks/{model-6xb47vfp.js → persistent-pty-6xb47vfp.js} +1 -1
  66. package/dist/chunks/{model-jeeje7kx.js → persistent-pty-77gk4895.js} +22 -22
  67. package/dist/chunks/{model-7bmhse3q.js → persistent-pty-7bmhse3q.js} +1 -1
  68. package/dist/chunks/{model-1w58g905.js → persistent-pty-7ce5kxm3.js} +17 -17
  69. package/dist/chunks/{model-gaffbzjy.js → persistent-pty-7d99net6.js} +10 -10
  70. package/dist/chunks/persistent-pty-7fj5dwt0.js +18 -0
  71. package/dist/chunks/{model-ys5rw1j9.js → persistent-pty-7h0zcbyp.js} +20 -20
  72. package/dist/chunks/{model-8q8jfg7g.js → persistent-pty-7mqrj92y.js} +9 -9
  73. package/dist/chunks/{model-143vczaq.js → persistent-pty-7y20r9ha.js} +7 -7
  74. package/dist/chunks/{model-1dvck2a7.js → persistent-pty-84h8c373.js} +2 -2
  75. package/dist/chunks/{model-84txncab.js → persistent-pty-84txncab.js} +1 -1
  76. package/dist/chunks/{model-re96rjx3.js → persistent-pty-86551w19.js} +3 -3
  77. package/dist/chunks/{model-yxt1vjsj.js → persistent-pty-86745pec.js} +6 -6
  78. package/dist/chunks/{model-jfwamsgh.js → persistent-pty-8784cf3d.js} +18 -18
  79. package/dist/chunks/{model-ym21y5jk.js → persistent-pty-8bz0awby.js} +29 -29
  80. package/dist/chunks/{model-8d7r5vzw.js → persistent-pty-8d7r5vzw.js} +1 -1
  81. package/dist/chunks/{model-wypjq10p.js → persistent-pty-8e18ys7f.js} +24 -24
  82. package/dist/chunks/{model-w4axh9wz.js → persistent-pty-8e1b1gzh.js} +6 -6
  83. package/dist/chunks/{model-yped5gsp.js → persistent-pty-8hmy07yn.js} +10 -10
  84. package/dist/chunks/{model-y6yd3ew1.js → persistent-pty-8pg7dxp0.js} +45 -45
  85. package/dist/chunks/{model-rhvy48gn.js → persistent-pty-8qhgctqz.js} +10 -10
  86. package/dist/chunks/{model-bvqebne3.js → persistent-pty-8tf08qh4.js} +11 -11
  87. package/dist/chunks/{model-0swnknvj.js → persistent-pty-9475q65j.js} +28 -28
  88. package/dist/chunks/{model-vhvmb6ep.js → persistent-pty-9bd6ejq3.js} +17 -17
  89. package/dist/chunks/{model-bzv7w39z.js → persistent-pty-9cbr7v56.js} +47 -47
  90. package/dist/chunks/{model-fxhje9fq.js → persistent-pty-9n926yde.js} +28 -28
  91. package/dist/chunks/{model-m15b84sy.js → persistent-pty-9qcn7sxn.js} +9 -9
  92. package/dist/chunks/{model-8dxznbhk.js → persistent-pty-9wbvk8fq.js} +13 -13
  93. package/dist/chunks/{model-5nq6ntwv.js → persistent-pty-9zx59zz6.js} +19 -19
  94. package/dist/chunks/{model-9rven2v7.js → persistent-pty-a81vx8af.js} +22 -22
  95. package/dist/chunks/{model-aaet6srn.js → persistent-pty-aaet6srn.js} +2 -2
  96. package/dist/chunks/{model-mxvxcxwy.js → persistent-pty-addxnjmp.js} +4 -4
  97. package/dist/chunks/{model-zjze8qjc.js → persistent-pty-ag19a3sx.js} +15 -15
  98. package/dist/chunks/{model-ke5wyhkr.js → persistent-pty-agb5qaf7.js} +17 -17
  99. package/dist/chunks/{model-m8s1k1qd.js → persistent-pty-ahp8ga40.js} +35 -35
  100. package/dist/chunks/{model-z00597qp.js → persistent-pty-apg4h2pc.js} +36 -36
  101. package/dist/chunks/{model-k8vxkqnq.js → persistent-pty-arn7aakd.js} +4 -4
  102. package/dist/chunks/{model-0hc1cq6w.js → persistent-pty-arnhd4xy.js} +12 -12
  103. package/dist/chunks/{model-d03bk1nx.js → persistent-pty-az0ary3d.js} +20 -20
  104. package/dist/chunks/{model-nbwfbw7q.js → persistent-pty-b0jkajpy.js} +29 -29
  105. package/dist/chunks/{model-b6gygkdw.js → persistent-pty-b6gygkdw.js} +2 -2
  106. package/dist/chunks/{model-jmh5z47c.js → persistent-pty-br5c6tzy.js} +23 -23
  107. package/dist/chunks/{model-mczqcbtg.js → persistent-pty-bskkyr8p.js} +22 -22
  108. package/dist/chunks/{model-frxn4dna.js → persistent-pty-bsprd9wx.js} +9 -9
  109. package/dist/chunks/{model-8wbxkt1z.js → persistent-pty-btbmdjwj.js} +4 -4
  110. package/dist/chunks/{model-wb7d44e4.js → persistent-pty-c0r9zvd5.js} +1 -1
  111. package/dist/chunks/{model-g76p8ycs.js → persistent-pty-cfghkxm5.js} +21 -21
  112. package/dist/chunks/{model-tjdrgr4h.js → persistent-pty-cfm5e1qn.js} +20 -20
  113. package/dist/chunks/{model-sy1vayej.js → persistent-pty-cg24jcsb.js} +25 -25
  114. package/dist/chunks/{model-jwnzethd.js → persistent-pty-ch2k8h83.js} +13 -13
  115. package/dist/chunks/{model-79qaa2kf.js → persistent-pty-cwa6csj7.js} +9 -9
  116. package/dist/chunks/{model-vtb6ekz6.js → persistent-pty-d267yb9a.js} +28 -28
  117. package/dist/chunks/{model-g7yjevyk.js → persistent-pty-d7s6akkx.js} +6 -6
  118. package/dist/chunks/{model-qxcqbx7c.js → persistent-pty-de42tf4w.js} +11 -11
  119. package/dist/chunks/{model-jdydv5w6.js → persistent-pty-dx3f013a.js} +56 -56
  120. package/dist/chunks/{model-3704aagw.js → persistent-pty-dxwsbt71.js} +3 -3
  121. package/dist/chunks/{model-ksts8xsw.js → persistent-pty-e3w9zwct.js} +45 -45
  122. package/dist/chunks/{model-yjtcy88h.js → persistent-pty-e6txpg2e.js} +32 -32
  123. package/dist/chunks/{model-5m62pdvr.js → persistent-pty-e8bptm4w.js} +41 -41
  124. package/dist/chunks/{model-ef5x83kb.js → persistent-pty-ef5x83kb.js} +1 -1
  125. package/dist/chunks/{model-etq0c3wd.js → persistent-pty-etq0c3wd.js} +1 -1
  126. package/dist/chunks/{model-6h5e082a.js → persistent-pty-f2vmbes1.js} +19 -19
  127. package/dist/chunks/{model-xrn5m798.js → persistent-pty-f3gemxdz.js} +26 -26
  128. package/dist/chunks/{model-71az546q.js → persistent-pty-f75zav2x.js} +2 -2
  129. package/dist/chunks/persistent-pty-fdh5nygw.js +253 -0
  130. package/dist/chunks/{model-7yjncwxp.js → persistent-pty-fk30fwzs.js} +30 -30
  131. package/dist/chunks/{model-pdfafe8d.js → persistent-pty-fk41zhkz.js} +74 -74
  132. package/dist/chunks/{model-z331bskf.js → persistent-pty-fky2s0f8.js} +15 -15
  133. package/dist/chunks/{model-s5yxayxs.js → persistent-pty-fmx4tt35.js} +16 -16
  134. package/dist/chunks/{model-43wd9vsa.js → persistent-pty-fpk887gp.js} +16 -16
  135. package/dist/chunks/{model-a5rc1k9w.js → persistent-pty-ftt6gxvn.js} +5 -5
  136. package/dist/chunks/{model-t2rj41re.js → persistent-pty-g4kgyb8v.js} +11 -11
  137. package/dist/chunks/{model-0pbe0zt0.js → persistent-pty-ga4m96b7.js} +30 -30
  138. package/dist/chunks/{model-gd4qta3r.js → persistent-pty-gd4qta3r.js} +1 -1
  139. package/dist/chunks/{model-zg4hsa4e.js → persistent-pty-gen41c14.js} +2 -2
  140. package/dist/chunks/{model-btwta0ay.js → persistent-pty-ghp14vj3.js} +16 -16
  141. package/dist/chunks/{model-q1ecnbsd.js → persistent-pty-gm49ncpz.js} +3 -3
  142. package/dist/chunks/{model-16dgqdxz.js → persistent-pty-gm6yrpsp.js} +3 -3
  143. package/dist/chunks/{model-gb6ehmsa.js → persistent-pty-gxhb85xm.js} +25 -25
  144. package/dist/chunks/{model-h10mhkmh.js → persistent-pty-h08dbkgj.js} +17 -17
  145. package/dist/chunks/{model-x5w0v4qz.js → persistent-pty-h2440tx6.js} +18 -18
  146. package/dist/chunks/{model-f5r0fqm4.js → persistent-pty-h31qzmwk.js} +22 -22
  147. package/dist/chunks/{model-7tzvmzbr.js → persistent-pty-h3ek80ta.js} +8 -8
  148. package/dist/chunks/{model-k2ee98a4.js → persistent-pty-h6cyscg9.js} +11 -11
  149. package/dist/chunks/{model-h6vf3j39.js → persistent-pty-h6vf3j39.js} +1 -1
  150. package/dist/chunks/{model-c0ke6nr1.js → persistent-pty-hafepx0m.js} +12 -12
  151. package/dist/chunks/{model-9qb76avw.js → persistent-pty-hbepmwya.js} +20 -20
  152. package/dist/chunks/{model-6xzjqc7j.js → persistent-pty-hcgg9rjw.js} +4 -4
  153. package/dist/chunks/{model-qygbw77c.js → persistent-pty-hdkng2sj.js} +5 -5
  154. package/dist/chunks/{model-5r5teqtw.js → persistent-pty-hhwj2e48.js} +1 -1
  155. package/dist/chunks/{model-snswbz2h.js → persistent-pty-hqx0pry0.js} +46 -46
  156. package/dist/chunks/{model-gm3dfsm1.js → persistent-pty-hycxdhqj.js} +5 -5
  157. package/dist/chunks/{model-2nxxz3xr.js → persistent-pty-hyyhpv4k.js} +23 -23
  158. package/dist/chunks/{model-spdq57er.js → persistent-pty-j1nc06n8.js} +18 -18
  159. package/dist/chunks/{model-j56e64zr.js → persistent-pty-j56e64zr.js} +1 -1
  160. package/dist/chunks/{model-ksr0mctg.js → persistent-pty-j9n9pc60.js} +18 -18
  161. package/dist/chunks/{model-3rd28rcz.js → persistent-pty-jervv9x6.js} +11 -11
  162. package/dist/chunks/{model-8sze2n9a.js → persistent-pty-jktqzjpa.js} +4 -4
  163. package/dist/chunks/{model-qy0tcep6.js → persistent-pty-js61yr7p.js} +31 -31
  164. package/dist/chunks/{model-ekbw19fm.js → persistent-pty-jsa646dy.js} +18 -18
  165. package/dist/chunks/{model-gb9qa9c1.js → persistent-pty-jvwcg364.js} +9 -9
  166. package/dist/chunks/{model-f5gy8qwh.js → persistent-pty-k1qrnqst.js} +8 -8
  167. package/dist/chunks/{model-f5hkpmh1.js → persistent-pty-k7110n80.js} +17 -17
  168. package/dist/chunks/{model-dak0aer2.js → persistent-pty-k7cee5jt.js} +94 -94
  169. package/dist/chunks/{model-xf847saf.js → persistent-pty-k81m5qp3.js} +6 -6
  170. package/dist/chunks/{model-9e5bzkjp.js → persistent-pty-kb9j3d72.js} +3 -3
  171. package/dist/chunks/{model-0bwx6hyg.js → persistent-pty-khmd8m6z.js} +7 -7
  172. package/dist/chunks/{model-7kx3xyrk.js → persistent-pty-kqa5e0am.js} +4 -4
  173. package/dist/chunks/{model-75e9eb11.js → persistent-pty-m0n08mcv.js} +4 -4
  174. package/dist/chunks/{model-znnhkqbd.js → persistent-pty-m2n5k0pa.js} +17 -17
  175. package/dist/chunks/{model-m3fdjcah.js → persistent-pty-m3fdjcah.js} +1 -1
  176. package/dist/chunks/{model-18cdd48g.js → persistent-pty-m5z203ha.js} +4 -4
  177. package/dist/chunks/{model-xzh9enxw.js → persistent-pty-m854cfv5.js} +23 -23
  178. package/dist/chunks/{model-nx67q5mf.js → persistent-pty-m93asd28.js} +27 -27
  179. package/dist/chunks/{model-m9w0rfyh.js → persistent-pty-m9w0rfyh.js} +1 -1
  180. package/dist/chunks/{model-1ygqh575.js → persistent-pty-mfqp6xfm.js} +6 -6
  181. package/dist/chunks/{model-8f29pv30.js → persistent-pty-mgwdcceq.js} +3 -3
  182. package/dist/chunks/{model-w8xr7nv8.js → persistent-pty-mjagy123.js} +5 -5
  183. package/dist/chunks/persistent-pty-mkjk8jrs.js +507 -0
  184. package/dist/chunks/{model-1rnd72fy.js → persistent-pty-mwvn72c5.js} +16 -16
  185. package/dist/chunks/{model-a7ehty0t.js → persistent-pty-mzz5dc6v.js} +25 -25
  186. package/dist/chunks/{model-1rn5pcm9.js → persistent-pty-n1n192bv.js} +4 -4
  187. package/dist/chunks/{model-86qzxe6p.js → persistent-pty-n9arjmkd.js} +4 -4
  188. package/dist/chunks/{model-ndzm53tf.js → persistent-pty-nkkndsd1.js} +7 -7
  189. package/dist/chunks/{model-m99sccj6.js → persistent-pty-nm065sa1.js} +18 -18
  190. package/dist/chunks/{model-7nt8nw1z.js → persistent-pty-nm4z1r83.js} +38 -38
  191. package/dist/chunks/{model-6pamc8qx.js → persistent-pty-npwr55pz.js} +11 -11
  192. package/dist/chunks/{model-6m42r3np.js → persistent-pty-nrdmrqsx.js} +21 -21
  193. package/dist/chunks/{model-xp3fh2h7.js → persistent-pty-ns3eape4.js} +1 -1
  194. package/dist/chunks/{model-y71avatq.js → persistent-pty-nxm207yx.js} +4 -4
  195. package/dist/chunks/{model-g07h2xqa.js → persistent-pty-nzzpqbc2.js} +12 -12
  196. package/dist/chunks/{model-p37cw4rj.js → persistent-pty-p42hj8p8.js} +8 -8
  197. package/dist/chunks/{model-qt4mgnnm.js → persistent-pty-pbvkggcp.js} +9 -9
  198. package/dist/chunks/{model-55rgt2sk.js → persistent-pty-pfhprg9x.js} +11 -11
  199. package/dist/chunks/{model-pjvnvgmy.js → persistent-pty-pjvnvgmy.js} +1 -1
  200. package/dist/chunks/{model-pknna89w.js → persistent-pty-pknna89w.js} +1 -1
  201. package/dist/chunks/{model-rsdgpk2t.js → persistent-pty-pmp1zjsv.js} +27 -27
  202. package/dist/chunks/{model-ygs9mme0.js → persistent-pty-pvg1c9ct.js} +5 -5
  203. package/dist/chunks/{model-12dy9wgh.js → persistent-pty-q0tnsqxz.js} +8 -8
  204. package/dist/chunks/{model-0j77ygfz.js → persistent-pty-q0xm7vwc.js} +6 -6
  205. package/dist/chunks/{model-5dec13bj.js → persistent-pty-qb4zbeaq.js} +23 -23
  206. package/dist/chunks/{model-hshpsfrb.js → persistent-pty-qdtfwvft.js} +31 -31
  207. package/dist/chunks/{model-2k8khapm.js → persistent-pty-qgn6gcr1.js} +5 -5
  208. package/dist/chunks/{model-8k7ec5p2.js → persistent-pty-qh933se3.js} +11 -11
  209. package/dist/chunks/{model-4r9w7v50.js → persistent-pty-qmx6320q.js} +22 -22
  210. package/dist/chunks/{model-qnc92qwc.js → persistent-pty-qnc92qwc.js} +1 -1
  211. package/dist/chunks/{model-qsdy395h.js → persistent-pty-qsdy395h.js} +1 -1
  212. package/dist/chunks/{model-dzae2snb.js → persistent-pty-qtd03s71.js} +13 -13
  213. package/dist/chunks/{model-zcsfwz39.js → persistent-pty-qw79ank0.js} +44 -44
  214. package/dist/chunks/{model-qxjc9qry.js → persistent-pty-qxjc9qry.js} +3 -3
  215. package/dist/chunks/{model-v5qtavm6.js → persistent-pty-r1zwgjtb.js} +36 -36
  216. package/dist/chunks/{model-eq1pz5kg.js → persistent-pty-r5x6zcsm.js} +3 -3
  217. package/dist/chunks/{model-rdw6cm16.js → persistent-pty-rdw6cm16.js} +1 -1
  218. package/dist/chunks/{model-nnegw8hy.js → persistent-pty-rgak4h0z.js} +50 -50
  219. package/dist/chunks/{model-r8xr0va3.js → persistent-pty-rhraev7y.js} +4 -4
  220. package/dist/chunks/{model-7qe8e482.js → persistent-pty-rx3pmkf6.js} +8 -8
  221. package/dist/chunks/{model-fm2qvscf.js → persistent-pty-ryr25ayn.js} +4 -4
  222. package/dist/chunks/{model-evzgxw2j.js → persistent-pty-rzeq28dk.js} +58 -58
  223. package/dist/chunks/{model-a03m4akp.js → persistent-pty-s3jwpk2a.js} +25 -25
  224. package/dist/chunks/{model-1v75qvzv.js → persistent-pty-s8tkytec.js} +18 -18
  225. package/dist/chunks/{model-wp8v4mk0.js → persistent-pty-sc360z45.js} +12 -12
  226. package/dist/chunks/{model-t9rbaskh.js → persistent-pty-sdbgje86.js} +27 -27
  227. package/dist/chunks/{model-vn9zk7na.js → persistent-pty-sg1gpmh1.js} +4 -4
  228. package/dist/chunks/{model-mzr0kwz3.js → persistent-pty-shan7gyw.js} +27 -27
  229. package/dist/chunks/{model-04hfwksm.js → persistent-pty-sp1327tm.js} +16 -16
  230. package/dist/chunks/{model-mtjbpypn.js → persistent-pty-sx1dxn2r.js} +25 -25
  231. package/dist/chunks/{model-h30avht3.js → persistent-pty-t8p3xnq8.js} +27 -27
  232. package/dist/chunks/{model-zwp0h3pa.js → persistent-pty-tadk88n8.js} +20 -20
  233. package/dist/chunks/{model-tazgh4e4.js → persistent-pty-tazgh4e4.js} +1 -1
  234. package/dist/chunks/{model-7ejrgaad.js → persistent-pty-tbzz0ayx.js} +6 -6
  235. package/dist/chunks/{model-89znhe33.js → persistent-pty-tcezcvh9.js} +4 -4
  236. package/dist/chunks/{model-tdstcens.js → persistent-pty-tdstcens.js} +1 -1
  237. package/dist/chunks/{model-cvnbmapz.js → persistent-pty-tf5fdwac.js} +25 -25
  238. package/dist/chunks/{model-a7g6j6nx.js → persistent-pty-thpxvrkg.js} +12 -12
  239. package/dist/chunks/{model-xggz5yyf.js → persistent-pty-tjp24hfy.js} +11 -11
  240. package/dist/chunks/{model-ktqfz204.js → persistent-pty-tjtsnnc4.js} +5 -5
  241. package/dist/chunks/{model-7zd39w7j.js → persistent-pty-tq524sjs.js} +3 -3
  242. package/dist/chunks/{model-gr72qpsv.js → persistent-pty-twmcj6bq.js} +14 -14
  243. package/dist/chunks/{model-c8bydgjz.js → persistent-pty-v6gb7zv2.js} +6 -6
  244. package/dist/chunks/{model-veqvce7d.js → persistent-pty-veqvce7d.js} +1 -1
  245. package/dist/chunks/{model-pc670ma7.js → persistent-pty-vfyjaks7.js} +19 -19
  246. package/dist/chunks/{model-t3gyxbgb.js → persistent-pty-vh5e817s.js} +22 -22
  247. package/dist/chunks/{model-gwbzj4wh.js → persistent-pty-vvtb55vm.js} +39 -39
  248. package/dist/chunks/{model-6ymz3gfr.js → persistent-pty-vwgces70.js} +36 -36
  249. package/dist/chunks/{model-143qq2q9.js → persistent-pty-vx3jgdek.js} +3 -3
  250. package/dist/chunks/{model-vzs5sf6e.js → persistent-pty-vzs5sf6e.js} +1 -1
  251. package/dist/chunks/{model-xfkkasph.js → persistent-pty-w19d8598.js} +5 -5
  252. package/dist/chunks/{model-w3wsvvr9.js → persistent-pty-w3wsvvr9.js} +1 -1
  253. package/dist/chunks/{model-aenqjndq.js → persistent-pty-w6evsh6e.js} +21 -21
  254. package/dist/chunks/{model-z4fb5m0h.js → persistent-pty-w8n4d140.js} +48 -48
  255. package/dist/chunks/{model-zrs7pmt3.js → persistent-pty-wctfcgtb.js} +6 -6
  256. package/dist/chunks/{model-wd87259q.js → persistent-pty-wd87259q.js} +1 -1
  257. package/dist/chunks/{model-tk14y25j.js → persistent-pty-wh6zw745.js} +5 -5
  258. package/dist/chunks/{model-565cggcq.js → persistent-pty-wqywrvhs.js} +88 -88
  259. package/dist/chunks/{model-mr28wkyp.js → persistent-pty-wrg7f32p.js} +25 -25
  260. package/dist/chunks/{model-he5rhnsk.js → persistent-pty-wrkdkjy5.js} +3 -3
  261. package/dist/chunks/{model-t550f9t1.js → persistent-pty-wv396vej.js} +8 -8
  262. package/dist/chunks/{model-x13kj793.js → persistent-pty-x09jwv3t.js} +24 -24
  263. package/dist/chunks/{model-snsqt8dj.js → persistent-pty-xg9719v1.js} +35 -35
  264. package/dist/chunks/{model-dmqcgk4z.js → persistent-pty-xkntkrq7.js} +5 -5
  265. package/dist/chunks/{model-yaycgkrs.js → persistent-pty-xkysk5pe.js} +15 -15
  266. package/dist/chunks/{model-ngzr1rke.js → persistent-pty-xpn67gvy.js} +35 -35
  267. package/dist/chunks/{model-bpjzyxk6.js → persistent-pty-xqg5y7pg.js} +24 -24
  268. package/dist/chunks/{model-d9sgy5v4.js → persistent-pty-xxndcd6m.js} +4 -4
  269. package/dist/chunks/{model-3st0ejts.js → persistent-pty-xza0jhs5.js} +184 -184
  270. package/dist/chunks/{model-y1fvbwt7.js → persistent-pty-y1fvbwt7.js} +1 -1
  271. package/dist/chunks/{model-9525rq9q.js → persistent-pty-y84ejm2m.js} +20 -20
  272. package/dist/chunks/{model-f1thfm8v.js → persistent-pty-ycc3dskp.js} +11 -11
  273. package/dist/chunks/{model-cqfygt2f.js → persistent-pty-ygszv6dm.js} +5 -5
  274. package/dist/chunks/{model-vhzyme33.js → persistent-pty-ypg0fq7f.js} +11 -11
  275. package/dist/chunks/{model-fw2qxq8w.js → persistent-pty-yrn1qewd.js} +35 -35
  276. package/dist/chunks/{model-z0bkrqjs.js → persistent-pty-z0bkrqjs.js} +1 -1
  277. package/dist/chunks/{model-vk57bjhv.js → persistent-pty-zebcfbc6.js} +29 -29
  278. package/dist/chunks/{model-dhmh7aw6.js → persistent-pty-zee1rnkq.js} +4 -4
  279. package/dist/chunks/{model-7v81x33d.js → persistent-pty-zg3tcem2.js} +9 -9
  280. package/dist/chunks/{model-9mn5fbt0.js → persistent-pty-zn7sg468.js} +32 -32
  281. package/dist/chunks/{model-ze5v0a14.js → persistent-pty-zq6stcrg.js} +5 -5
  282. package/dist/chunks/{model-zr2ceqn5.js → persistent-pty-zr2ceqn5.js} +1 -1
  283. package/dist/chunks/{model-jzdyaq3q.js → persistent-pty-zrm98xgn.js} +43 -43
  284. package/dist/chunks/{model-zxq2ej10.js → persistent-pty-zxq2ej10.js} +1 -1
  285. package/dist/codemode/catalog.js +1 -1
  286. package/dist/codemode/instructions.js +11 -11
  287. package/dist/codemode/tool.js +3 -3
  288. package/dist/codemode/web.js +1 -1
  289. package/dist/command.js +83 -83
  290. package/dist/config/discovery.js +84 -84
  291. package/dist/config/markdown.js +1 -1
  292. package/dist/config/normalize.js +99 -99
  293. package/dist/config/plugin/agent.js +118 -118
  294. package/dist/config/plugin/command.js +207 -207
  295. package/dist/config/plugin/compaction.js +154 -154
  296. package/dist/config/plugin/compatibility.js +134 -134
  297. package/dist/config/plugin/entry-observer.js +1 -1
  298. package/dist/config/plugin/formatter.js +117 -117
  299. package/dist/config/plugin/image.js +116 -116
  300. package/dist/config/plugin/instruction.js +90 -90
  301. package/dist/config/plugin/location-watcher.js +118 -118
  302. package/dist/config/plugin/mcp.js +125 -125
  303. package/dist/config/plugin/policy.js +117 -117
  304. package/dist/config/plugin/provider.js +116 -116
  305. package/dist/config/plugin/reference.js +118 -118
  306. package/dist/config/plugin/shell.js +116 -116
  307. package/dist/config/plugin/skill-file.js +102 -102
  308. package/dist/config/plugin/skill.js +137 -137
  309. package/dist/config/plugin/snapshot.js +116 -116
  310. package/dist/config/plugin/source.js +117 -117
  311. package/dist/config/plugin/tool-output.js +117 -117
  312. package/dist/config/plugin/websearch.js +115 -115
  313. package/dist/config/plugin/worktree.js +118 -118
  314. package/dist/config/variable.js +3 -3
  315. package/dist/config/watch.js +1 -1
  316. package/dist/config.js +121 -121
  317. package/dist/credential/sql.js +2 -2
  318. package/dist/credential.js +83 -83
  319. package/dist/database/database.js +66 -66
  320. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  321. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  322. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  323. package/dist/database/drizzle/index.js +15 -15
  324. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  325. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  326. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  327. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  328. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  329. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  330. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  331. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  332. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  333. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  334. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  335. package/dist/database/drizzle.js +16 -16
  336. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  337. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  338. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  339. package/dist/database/migration/20260225215848_workspace.js +1 -1
  340. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  341. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  342. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  343. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  344. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  345. package/dist/database/migration/20260323234822_events.js +1 -1
  346. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  347. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  348. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  349. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  350. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  351. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  352. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  353. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  354. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  355. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  356. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  357. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  358. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  359. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  360. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  361. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  362. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  363. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  364. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  365. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  366. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  367. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  368. package/dist/database/migration/20260611035744_credential.js +1 -1
  369. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  370. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  371. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  372. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  373. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  374. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  375. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  376. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  377. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  378. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  379. package/dist/database/migration/20260812213948_worktree.js +1 -1
  380. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  381. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  382. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  383. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  384. package/dist/database/migration.gen.js +49 -49
  385. package/dist/database/migration.js +51 -51
  386. package/dist/database/path.js +2 -2
  387. package/dist/database/schema.gen.js +1 -1
  388. package/dist/database/schema.sql.js +1 -1
  389. package/dist/database/sqlite.bun.js +1 -1
  390. package/dist/database/sqlite.js +1 -1
  391. package/dist/database/sqlite.node.js +1 -1
  392. package/dist/database/sqlite.workerd.js +1 -1
  393. package/dist/database/v1-migration.bun.js +76 -76
  394. package/dist/database/v1-migration.js +1 -1
  395. package/dist/effect/app-node-builder.js +360 -360
  396. package/dist/effect/app-node-platform.js +2 -2
  397. package/dist/effect/keyed-mutex.js +3 -3
  398. package/dist/effect/websocket-constructor.js +1 -1
  399. package/dist/environment/driver.js +1 -1
  400. package/dist/environment/environment.js +93 -93
  401. package/dist/environment/exec-defaults.js +2 -2
  402. package/dist/environment/files.js +1 -1
  403. package/dist/environment/index.js +95 -95
  404. package/dist/environment/local.js +2 -2
  405. package/dist/environment/memory.js +2 -2
  406. package/dist/environment/unavailable.js +1 -1
  407. package/dist/event/sql.js +1 -1
  408. package/dist/event-logger.js +74 -74
  409. package/dist/file-access.js +104 -104
  410. package/dist/file-mutation.js +94 -94
  411. package/dist/file-retention.js +1 -1
  412. package/dist/filesystem/fff.bun.js +2 -2
  413. package/dist/filesystem/fff.js +1 -1
  414. package/dist/filesystem/fff.node.js +2 -2
  415. package/dist/filesystem/fff.workerd.js +2 -2
  416. package/dist/filesystem/location-watcher-policy.js +6 -6
  417. package/dist/filesystem/location-watcher.js +220 -220
  418. package/dist/filesystem/protected.js +3 -3
  419. package/dist/filesystem/search.js +103 -103
  420. package/dist/filesystem/watcher-binding.js +3 -3
  421. package/dist/filesystem/watcher.js +15 -15
  422. package/dist/filesystem.js +106 -106
  423. package/dist/form.js +80 -80
  424. package/dist/formatter/builtins.js +4 -4
  425. package/dist/formatter.js +87 -87
  426. package/dist/generate.js +105 -105
  427. package/dist/git.js +10 -10
  428. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  429. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  430. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  431. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  432. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  433. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  434. package/dist/github-copilot/copilot-provider.js +17 -17
  435. package/dist/github-copilot/models.js +99 -99
  436. package/dist/github-copilot/openai-compatible-error.js +1 -1
  437. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  438. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  439. package/dist/github-copilot/responses/openai-error.js +1 -1
  440. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  441. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  442. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  443. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  444. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  445. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  446. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  447. package/dist/image/photon.js +2 -2
  448. package/dist/image.js +6 -6
  449. package/dist/instance/service.js +5 -5
  450. package/dist/instance.js +354 -354
  451. package/dist/instruction-discovery.js +85 -85
  452. package/dist/instructions/builtins.js +87 -87
  453. package/dist/instructions/index.js +5 -5
  454. package/dist/integration/connection.js +3 -3
  455. package/dist/integration.js +85 -85
  456. package/dist/job.js +78 -78
  457. package/dist/kv/sql.js +2 -2
  458. package/dist/kv.js +73 -73
  459. package/dist/location-activity.js +133 -133
  460. package/dist/location-lifecycle.js +107 -107
  461. package/dist/location-service-map.js +84 -84
  462. package/dist/location-services.js +351 -351
  463. package/dist/location.js +87 -87
  464. package/dist/managed-policy.js +5 -5
  465. package/dist/mcp/client.js +91 -91
  466. package/dist/mcp/index.js +109 -109
  467. package/dist/mcp/instructions.js +129 -129
  468. package/dist/mcp/oauth.js +78 -78
  469. package/dist/mcp/stdio.js +90 -90
  470. package/dist/mime.js +1 -1
  471. package/dist/modal/models.js +99 -99
  472. package/dist/model-resolver.js +98 -98
  473. package/dist/model.js +98 -98
  474. package/dist/models-dev.js +107 -107
  475. package/dist/oauth/page.js +1 -1
  476. package/dist/permission/saved.js +82 -82
  477. package/dist/permission/sql.js +5 -5
  478. package/dist/permission.js +113 -113
  479. package/dist/persistent-pty/binary.bun.js +1 -1
  480. package/dist/persistent-pty/daemon.js +1 -1
  481. package/dist/persistent-pty/index.js +86 -86
  482. package/dist/persistent-pty/pty-binding.js +1 -1
  483. package/dist/persistent-pty.js +75 -75
  484. package/dist/plugin/agent.js +76 -76
  485. package/dist/plugin/command.js +102 -102
  486. package/dist/plugin/hooks.js +5 -5
  487. package/dist/plugin/host.js +211 -211
  488. package/dist/plugin/identity.js +3 -3
  489. package/dist/plugin/instance.js +5 -5
  490. package/dist/plugin/internal.js +326 -326
  491. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  492. package/dist/plugin/models-dev.js +96 -96
  493. package/dist/plugin/module.js +7 -7
  494. package/dist/plugin/optimize.js +2 -2
  495. package/dist/plugin/plan.js +102 -102
  496. package/dist/plugin/promise.js +1 -1
  497. package/dist/plugin/provider/amazon-bedrock.js +90 -90
  498. package/dist/plugin/provider/azure.js +117 -117
  499. package/dist/plugin/provider/cerebras.js +1 -1
  500. package/dist/plugin/provider/chatgpt.js +93 -93
  501. package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
  502. package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
  503. package/dist/plugin/provider/cohere.js +2 -2
  504. package/dist/plugin/provider/configured.js +112 -112
  505. package/dist/plugin/provider/digitalocean.js +93 -93
  506. package/dist/plugin/provider/dynamic.js +2 -2
  507. package/dist/plugin/provider/factory.js +1 -1
  508. package/dist/plugin/provider/github-copilot.js +95 -95
  509. package/dist/plugin/provider/gitlab.js +93 -93
  510. package/dist/plugin/provider/google-vertex.js +90 -90
  511. package/dist/plugin/provider/kilo.js +1 -1
  512. package/dist/plugin/provider/llmgateway.js +78 -78
  513. package/dist/plugin/provider/lmstudio.js +116 -116
  514. package/dist/plugin/provider/local.js +113 -113
  515. package/dist/plugin/provider/modal.js +92 -92
  516. package/dist/plugin/provider/nvidia.js +1 -1
  517. package/dist/plugin/provider/ollama.js +116 -116
  518. package/dist/plugin/provider/openai.js +93 -93
  519. package/dist/plugin/provider/opencode.js +96 -96
  520. package/dist/plugin/provider/openrouter.js +91 -91
  521. package/dist/plugin/provider/perplexity.js +2 -2
  522. package/dist/plugin/provider/poe.js +79 -79
  523. package/dist/plugin/provider/prompt-cache-key.js +90 -90
  524. package/dist/plugin/provider/sap-ai-core.js +91 -91
  525. package/dist/plugin/provider/sdk-factory.js +1 -1
  526. package/dist/plugin/provider/snowflake-cortex.js +115 -115
  527. package/dist/plugin/provider/vercel.js +90 -90
  528. package/dist/plugin/provider/vllm.js +116 -116
  529. package/dist/plugin/provider/xai.js +91 -91
  530. package/dist/plugin/provider/zenmux.js +1 -1
  531. package/dist/plugin/provider.js +155 -155
  532. package/dist/plugin/sdk.js +76 -76
  533. package/dist/plugin/service.js +3 -3
  534. package/dist/plugin/skill.js +134 -134
  535. package/dist/plugin/source-directory.js +1 -1
  536. package/dist/plugin/supervisor.js +345 -345
  537. package/dist/plugin/tool-input-repair.js +4 -4
  538. package/dist/plugin/update.js +6 -6
  539. package/dist/plugin/vcs/git.js +86 -86
  540. package/dist/plugin/vcs/hg.js +86 -86
  541. package/dist/plugin/verbosity.js +93 -93
  542. package/dist/plugin/warming.js +114 -114
  543. package/dist/plugin/websearch/exa.js +5 -5
  544. package/dist/plugin/websearch/firecrawl.js +8 -8
  545. package/dist/plugin/websearch/index.js +9 -9
  546. package/dist/plugin/websearch/mcp.js +4 -4
  547. package/dist/plugin/websearch/parallel.js +6 -6
  548. package/dist/plugin/websearch/tavily.js +6 -6
  549. package/dist/plugin/websearch/tinyfish.js +8 -8
  550. package/dist/plugin.js +218 -218
  551. package/dist/project/schema.js +8 -8
  552. package/dist/project/sql.js +4 -4
  553. package/dist/project.js +88 -88
  554. package/dist/provider.js +97 -97
  555. package/dist/pty/protocol.js +1 -1
  556. package/dist/pty/ticket.js +1 -1
  557. package/dist/pty.js +89 -89
  558. package/dist/reference/instructions.js +87 -87
  559. package/dist/reference.js +89 -89
  560. package/dist/repository-cache.js +81 -81
  561. package/dist/repository.js +1 -1
  562. package/dist/ripgrep/binary.js +2 -2
  563. package/dist/ripgrep.js +97 -97
  564. package/dist/rpc.js +86 -86
  565. package/dist/schema.js +1 -1
  566. package/dist/session/affinity.js +1 -1
  567. package/dist/session/command.js +74 -74
  568. package/dist/session/compaction.js +133 -133
  569. package/dist/session/context.js +153 -153
  570. package/dist/session/diff.js +88 -88
  571. package/dist/session/environment.js +5 -5
  572. package/dist/session/error.js +7 -7
  573. package/dist/session/event.js +1 -1
  574. package/dist/session/execution/restart.js +217 -217
  575. package/dist/session/execution.js +125 -125
  576. package/dist/session/generate.js +154 -154
  577. package/dist/session/history.js +15 -15
  578. package/dist/session/inbox.js +90 -90
  579. package/dist/session/info.js +3 -3
  580. package/dist/session/instruction-entry.js +79 -79
  581. package/dist/session/instruction-state.js +8 -8
  582. package/dist/session/instructions.js +97 -97
  583. package/dist/session/message-updater.js +4 -4
  584. package/dist/session/message.js +1 -1
  585. package/dist/session/model-request.js +120 -120
  586. package/dist/session/model-transport.js +9 -9
  587. package/dist/session/move.js +129 -129
  588. package/dist/session/projector.js +86 -86
  589. package/dist/session/prompt.js +105 -105
  590. package/dist/session/provider-context.js +3 -3
  591. package/dist/session/revert.js +90 -90
  592. package/dist/session/run-coordinator.js +3 -3
  593. package/dist/session/runner/index.js +3 -3
  594. package/dist/session/runner/llm.js +224 -224
  595. package/dist/session/runner/max-steps.js +1 -1
  596. package/dist/session/runner/model.js +98 -98
  597. package/dist/session/runner/publish-llm-event.js +113 -113
  598. package/dist/session/runner/retry.js +4 -4
  599. package/dist/session/runner/step.js +125 -125
  600. package/dist/session/runner/to-llm-message.js +2 -2
  601. package/dist/session/schema.js +5 -5
  602. package/dist/session/session.js +164 -164
  603. package/dist/session/shell.js +130 -130
  604. package/dist/session/skill.js +103 -103
  605. package/dist/session/sql.js +5 -5
  606. package/dist/session/stats.js +73 -73
  607. package/dist/session/store.js +87 -87
  608. package/dist/session/subagent-completion.js +1 -1
  609. package/dist/session/subagent-job.js +203 -203
  610. package/dist/session/system-prompt.js +3 -3
  611. package/dist/session/title.js +157 -157
  612. package/dist/session/to-session-error.js +111 -111
  613. package/dist/session/transfer.js +213 -213
  614. package/dist/session/usage.js +1 -1
  615. package/dist/session.js +211 -211
  616. package/dist/shell/parse.js +6 -6
  617. package/dist/shell/result.js +1 -1
  618. package/dist/shell/scan.js +1 -1
  619. package/dist/shell/select.js +15 -15
  620. package/dist/shell.js +132 -132
  621. package/dist/skill/discovery.js +4 -4
  622. package/dist/skill/instructions.js +105 -105
  623. package/dist/skill.js +110 -110
  624. package/dist/snapshot.js +91 -91
  625. package/dist/state.js +1 -1
  626. package/dist/tool/html-markdown.js +1 -1
  627. package/dist/tool/http-body.js +1 -1
  628. package/dist/tool/mcp.js +126 -126
  629. package/dist/tool/plugin/edit.js +120 -120
  630. package/dist/tool/plugin/file-diff.js +1 -1
  631. package/dist/tool/plugin/glob.js +124 -124
  632. package/dist/tool/plugin/grep.js +124 -124
  633. package/dist/tool/plugin/mcp-resource.js +117 -117
  634. package/dist/tool/plugin/opencode.js +3 -3
  635. package/dist/tool/plugin/patch.js +122 -122
  636. package/dist/tool/plugin/question.js +103 -103
  637. package/dist/tool/plugin/read.js +125 -125
  638. package/dist/tool/plugin/shell.js +208 -208
  639. package/dist/tool/plugin/skill.js +111 -111
  640. package/dist/tool/plugin/subagent.js +212 -212
  641. package/dist/tool/plugin/webfetch.js +110 -110
  642. package/dist/tool/plugin/websearch.js +112 -112
  643. package/dist/tool/plugin/write.js +122 -122
  644. package/dist/tool/read-filesystem.js +100 -100
  645. package/dist/tool/runtime.js +1 -1
  646. package/dist/tool-output.js +7 -7
  647. package/dist/tool.js +16 -16
  648. package/dist/util/error-summary.js +1 -1
  649. package/dist/util/error.js +1 -1
  650. package/dist/util/git-executable.js +2 -2
  651. package/dist/util/iife.js +1 -1
  652. package/dist/util/lazy.js +1 -1
  653. package/dist/util/slug.js +1 -1
  654. package/dist/util/token.js +1 -1
  655. package/dist/util/which.js +1 -1
  656. package/dist/util/wildcard.js +1 -1
  657. package/dist/v1/config/agent.js +7 -7
  658. package/dist/v1/config/command.js +3 -3
  659. package/dist/v1/config/error.js +4 -4
  660. package/dist/v1/config/mcp.js +4 -4
  661. package/dist/v1/config/migrate.js +92 -92
  662. package/dist/v1/config/permission.js +7 -7
  663. package/dist/v1/config/plugin.js +3 -3
  664. package/dist/v1/config/provider-options.js +1 -1
  665. package/dist/v1/config/provider.js +4 -4
  666. package/dist/variant.js +91 -91
  667. package/dist/vcs/patch.js +1 -1
  668. package/dist/vcs.js +89 -89
  669. package/dist/websearch.js +84 -84
  670. package/dist/wellknown/plugin.js +76 -76
  671. package/dist/wellknown.js +81 -81
  672. package/dist/workspace/driver.js +5 -5
  673. package/dist/workspace/sql.js +1 -1
  674. package/dist/workspace.js +80 -80
  675. package/dist/worktree/directory.js +2 -2
  676. package/dist/worktree/git.js +10 -10
  677. package/dist/worktree/sql.js +5 -5
  678. package/dist/worktree/strategies.js +89 -89
  679. package/dist/worktree.js +96 -96
  680. package/package.json +8 -8
  681. package/dist/chunks/model-0hbnkapr.js +0 -253
  682. package/dist/chunks/model-43xazcv4.js +0 -507
  683. package/dist/chunks/model-9e9he82z.js +0 -26
  684. package/dist/chunks/model-9sh4wc5j.js +0 -18
  685. /package/dist/chunks/{model-0qkdqm5v.js → persistent-pty-0qkdqm5v.js} +0 -0
  686. /package/dist/chunks/{model-0zkw76rk.js → persistent-pty-0zkw76rk.js} +0 -0
  687. /package/dist/chunks/{model-17cy0kzp.js → persistent-pty-17cy0kzp.js} +0 -0
  688. /package/dist/chunks/{model-1cnp2v09.js → persistent-pty-1cnp2v09.js} +0 -0
  689. /package/dist/chunks/{model-1kg9ymc8.js → persistent-pty-1kg9ymc8.js} +0 -0
  690. /package/dist/chunks/{model-24dcb14g.js → persistent-pty-24dcb14g.js} +0 -0
  691. /package/dist/chunks/{model-2710q6r3.js → persistent-pty-2710q6r3.js} +0 -0
  692. /package/dist/chunks/{model-2axfhc9x.js → persistent-pty-2axfhc9x.js} +0 -0
  693. /package/dist/chunks/{model-2c3vjs8z.js → persistent-pty-2c3vjs8z.js} +0 -0
  694. /package/dist/chunks/{model-34c7v6d4.js → persistent-pty-34c7v6d4.js} +0 -0
  695. /package/dist/chunks/{model-359p4xyc.js → persistent-pty-359p4xyc.js} +0 -0
  696. /package/dist/chunks/{model-3asan66x.js → persistent-pty-3asan66x.js} +0 -0
  697. /package/dist/chunks/{model-3t0ybcrp.js → persistent-pty-3t0ybcrp.js} +0 -0
  698. /package/dist/chunks/{model-3v8g72cx.js → persistent-pty-3v8g72cx.js} +0 -0
  699. /package/dist/chunks/{model-3w5fmr99.js → persistent-pty-3w5fmr99.js} +0 -0
  700. /package/dist/chunks/{model-3wcehsnq.js → persistent-pty-3wcehsnq.js} +0 -0
  701. /package/dist/chunks/{model-43n2bw4t.js → persistent-pty-43n2bw4t.js} +0 -0
  702. /package/dist/chunks/{model-4knz6hnm.js → persistent-pty-4knz6hnm.js} +0 -0
  703. /package/dist/chunks/{model-4vcrnpx2.js → persistent-pty-4vcrnpx2.js} +0 -0
  704. /package/dist/chunks/{model-4y7fprxs.js → persistent-pty-4y7fprxs.js} +0 -0
  705. /package/dist/chunks/{model-53557ph1.js → persistent-pty-53557ph1.js} +0 -0
  706. /package/dist/chunks/{model-550bvhaj.js → persistent-pty-550bvhaj.js} +0 -0
  707. /package/dist/chunks/{model-6prwharc.js → persistent-pty-6prwharc.js} +0 -0
  708. /package/dist/chunks/{model-6q2bdcd1.js → persistent-pty-6q2bdcd1.js} +0 -0
  709. /package/dist/chunks/{model-7akdwqpd.js → persistent-pty-7akdwqpd.js} +0 -0
  710. /package/dist/chunks/{model-7m9af43g.js → persistent-pty-7m9af43g.js} +0 -0
  711. /package/dist/chunks/{model-822emrt2.js → persistent-pty-822emrt2.js} +0 -0
  712. /package/dist/chunks/{model-88xbtdfr.js → persistent-pty-88xbtdfr.js} +0 -0
  713. /package/dist/chunks/{model-8n3pysct.js → persistent-pty-8n3pysct.js} +0 -0
  714. /package/dist/chunks/{model-8wj87zfr.js → persistent-pty-8wj87zfr.js} +0 -0
  715. /package/dist/chunks/{model-9a4afbnw.js → persistent-pty-9a4afbnw.js} +0 -0
  716. /package/dist/chunks/{model-9rqn6x4v.js → persistent-pty-9rqn6x4v.js} +0 -0
  717. /package/dist/chunks/{model-a6k6eb26.js → persistent-pty-a6k6eb26.js} +0 -0
  718. /package/dist/chunks/{model-af5trqkr.js → persistent-pty-af5trqkr.js} +0 -0
  719. /package/dist/chunks/{model-afrmfg78.js → persistent-pty-afrmfg78.js} +0 -0
  720. /package/dist/chunks/{model-aqzs7mqg.js → persistent-pty-aqzs7mqg.js} +0 -0
  721. /package/dist/chunks/{model-atq7p7m5.js → persistent-pty-atq7p7m5.js} +0 -0
  722. /package/dist/chunks/{model-bkyjaxrp.js → persistent-pty-bkyjaxrp.js} +0 -0
  723. /package/dist/chunks/{model-bmr6ed5q.js → persistent-pty-bmr6ed5q.js} +0 -0
  724. /package/dist/chunks/{model-cf4snx6d.js → persistent-pty-cf4snx6d.js} +0 -0
  725. /package/dist/chunks/{model-cvy3z8tj.js → persistent-pty-cvy3z8tj.js} +0 -0
  726. /package/dist/chunks/{model-d9fn303g.js → persistent-pty-d9fn303g.js} +0 -0
  727. /package/dist/chunks/{model-d9jj8t3e.js → persistent-pty-d9jj8t3e.js} +0 -0
  728. /package/dist/chunks/{model-dajrwvna.js → persistent-pty-dajrwvna.js} +0 -0
  729. /package/dist/chunks/{model-dap0rakb.js → persistent-pty-dap0rakb.js} +0 -0
  730. /package/dist/chunks/{model-df08tz66.js → persistent-pty-df08tz66.js} +0 -0
  731. /package/dist/chunks/{model-dy18nga0.js → persistent-pty-dy18nga0.js} +0 -0
  732. /package/dist/chunks/{model-e5kj55wp.js → persistent-pty-e5kj55wp.js} +0 -0
  733. /package/dist/chunks/{model-e73j6tqm.js → persistent-pty-e73j6tqm.js} +0 -0
  734. /package/dist/chunks/{model-ec1grn59.js → persistent-pty-ec1grn59.js} +0 -0
  735. /package/dist/chunks/{model-eh3zwz77.js → persistent-pty-eh3zwz77.js} +0 -0
  736. /package/dist/chunks/{model-emrn6kk6.js → persistent-pty-emrn6kk6.js} +0 -0
  737. /package/dist/chunks/{model-f0mxakyp.js → persistent-pty-f0mxakyp.js} +0 -0
  738. /package/dist/chunks/{model-f6n9ztr4.js → persistent-pty-f6n9ztr4.js} +0 -0
  739. /package/dist/chunks/{model-faypxj3z.js → persistent-pty-faypxj3z.js} +0 -0
  740. /package/dist/chunks/{model-fd410y7t.js → persistent-pty-fd410y7t.js} +0 -0
  741. /package/dist/chunks/{model-fxgpk5d8.js → persistent-pty-fxgpk5d8.js} +0 -0
  742. /package/dist/chunks/{model-g4wezp1m.js → persistent-pty-g4wezp1m.js} +0 -0
  743. /package/dist/chunks/{model-g86h250q.js → persistent-pty-g86h250q.js} +0 -0
  744. /package/dist/chunks/{model-gebd4c9n.js → persistent-pty-gebd4c9n.js} +0 -0
  745. /package/dist/chunks/{model-gftt206x.js → persistent-pty-gftt206x.js} +0 -0
  746. /package/dist/chunks/{model-hk9envan.js → persistent-pty-hk9envan.js} +0 -0
  747. /package/dist/chunks/{model-j2ntwpah.js → persistent-pty-j2ntwpah.js} +0 -0
  748. /package/dist/chunks/{model-j5zkgpj8.js → persistent-pty-j5zkgpj8.js} +0 -0
  749. /package/dist/chunks/{model-jjkms2e6.js → persistent-pty-jjkms2e6.js} +0 -0
  750. /package/dist/chunks/{model-jr7sbwjy.js → persistent-pty-jr7sbwjy.js} +0 -0
  751. /package/dist/chunks/{model-jwfs4k6c.js → persistent-pty-jwfs4k6c.js} +0 -0
  752. /package/dist/chunks/{model-jzg6c2d5.js → persistent-pty-jzg6c2d5.js} +0 -0
  753. /package/dist/chunks/{model-mp448xyj.js → persistent-pty-mp448xyj.js} +0 -0
  754. /package/dist/chunks/{model-msx8hqn2.js → persistent-pty-msx8hqn2.js} +0 -0
  755. /package/dist/chunks/{model-n05xt0ee.js → persistent-pty-n05xt0ee.js} +0 -0
  756. /package/dist/chunks/{model-n3j8tn72.js → persistent-pty-n3j8tn72.js} +0 -0
  757. /package/dist/chunks/{model-njntx4h6.js → persistent-pty-njntx4h6.js} +0 -0
  758. /package/dist/chunks/{model-q3sfg36h.js → persistent-pty-q3sfg36h.js} +0 -0
  759. /package/dist/chunks/{model-q74kybfr.js → persistent-pty-q74kybfr.js} +0 -0
  760. /package/dist/chunks/{model-qaymkmh1.js → persistent-pty-qaymkmh1.js} +0 -0
  761. /package/dist/chunks/{model-qb87gjwd.js → persistent-pty-qb87gjwd.js} +0 -0
  762. /package/dist/chunks/{model-qfa1cgps.js → persistent-pty-qfa1cgps.js} +0 -0
  763. /package/dist/chunks/{model-qg3g05ea.js → persistent-pty-qg3g05ea.js} +0 -0
  764. /package/dist/chunks/{model-qrg20bc0.js → persistent-pty-qrg20bc0.js} +0 -0
  765. /package/dist/chunks/{model-rcb2kzg1.js → persistent-pty-rcb2kzg1.js} +0 -0
  766. /package/dist/chunks/{model-sdp7kfr6.js → persistent-pty-sdp7kfr6.js} +0 -0
  767. /package/dist/chunks/{model-ssg3fenm.js → persistent-pty-ssg3fenm.js} +0 -0
  768. /package/dist/chunks/{model-w803qqfp.js → persistent-pty-w803qqfp.js} +0 -0
  769. /package/dist/chunks/{model-wc3fc9cn.js → persistent-pty-wc3fc9cn.js} +0 -0
  770. /package/dist/chunks/{model-wer8tq1h.js → persistent-pty-wer8tq1h.js} +0 -0
  771. /package/dist/chunks/{model-wtztk69x.js → persistent-pty-wtztk69x.js} +0 -0
  772. /package/dist/chunks/{model-x0ckcb58.js → persistent-pty-x0ckcb58.js} +0 -0
  773. /package/dist/chunks/{model-x61499pn.js → persistent-pty-x61499pn.js} +0 -0
  774. /package/dist/chunks/{model-y44na4kk.js → persistent-pty-y44na4kk.js} +0 -0
  775. /package/dist/chunks/{model-y8cydn3q.js → persistent-pty-y8cydn3q.js} +0 -0
  776. /package/dist/chunks/{model-y8f7s663.js → persistent-pty-y8f7s663.js} +0 -0
  777. /package/dist/chunks/{model-ygaqb7jw.js → persistent-pty-ygaqb7jw.js} +0 -0
  778. /package/dist/chunks/{model-ym463w8f.js → persistent-pty-ym463w8f.js} +0 -0
  779. /package/dist/chunks/{model-z5v4ffb3.js → persistent-pty-z5v4ffb3.js} +0 -0
  780. /package/dist/chunks/{model-z9919s4g.js → persistent-pty-z9919s4g.js} +0 -0
@@ -1,25 +1,25 @@
1
1
  import {
2
- Key3,
2
+ Key4,
3
3
  removed2,
4
- make19,
4
+ make22,
5
5
  diffByKey2
6
- } from "./model-t550f9t1.js";
6
+ } from "./persistent-pty-wv396vej.js";
7
7
  import {
8
8
  Summary2,
9
9
  summarize2,
10
10
  namespaceLine2
11
- } from "./model-3fc6dm20.js";
11
+ } from "./persistent-pty-3fc6dm20.js";
12
12
  import {
13
13
  __export
14
- } from "./model-9rqn6x4v.js";
14
+ } from "./persistent-pty-9rqn6x4v.js";
15
15
 
16
16
  // src/codemode/instructions.ts
17
- var exports_instructions2 = {};
18
- __export(exports_instructions2, {
19
- CodeModeInstructions: () => exports_instructions2,
20
- make: () => make14,
21
- render: () => render2,
22
- update: () => update2
17
+ var exports_instructions5 = {};
18
+ __export(exports_instructions5, {
19
+ CodeModeInstructions: () => exports_instructions5,
20
+ make: () => make16,
21
+ render: () => render3,
22
+ update: () => update3
23
23
  });
24
24
  import { searchSignature, toolExpression } from "@opencode/codemode";
25
25
  import { Effect, Schema } from "effect";
@@ -32,7 +32,7 @@ ${hasMoreTools ? `The catalog is partial. Inside \`execute\`, use \`search(...)\
32
32
  - ${searchSignature}` : "The catalog is complete. Do not guess tool names."}
33
33
 
34
34
  ## Available tools`;
35
- function render2(catalog) {
35
+ function render3(catalog) {
36
36
  if (catalog.total === 0)
37
37
  return "No Code Mode tools are currently available. Later Code Mode catalog updates may add or remove tools. Do not call `execute` unless there is at least one available Code Mode tool.";
38
38
  const tools = catalog.namespaces.flatMap((namespace) => {
@@ -43,10 +43,10 @@ function render2(catalog) {
43
43
  ${tools.join(`
44
44
  `)}`;
45
45
  }
46
- function update2(previous, current) {
46
+ function update3(previous, current) {
47
47
  const replacement = `The Code Mode tool catalog has changed. This catalog supersedes the previous Code Mode tool catalog.
48
48
 
49
- ${render2(current)}`;
49
+ ${render3(current)}`;
50
50
  if (current.total === 0)
51
51
  return replacement;
52
52
  const previousComplete = previous.shown === previous.total;
@@ -109,20 +109,20 @@ ${render2(current)}`;
109
109
  return delta;
110
110
  return replacement;
111
111
  }
112
- var key = Key3.make("core/codemode");
112
+ var key = Key4.make("core/codemode");
113
113
  var codec = Schema.toCodecJson(Summary2);
114
- var make14 = (inventory) => {
114
+ var make16 = (inventory) => {
115
115
  const catalog = inventory === undefined ? removed2 : summarize2(inventory);
116
- return make19({
116
+ return make22({
117
117
  key,
118
118
  codec,
119
119
  read: Effect.succeed(catalog),
120
120
  render: {
121
- initial: render2,
122
- changed: update2,
121
+ initial: render3,
122
+ changed: update3,
123
123
  removed: () => "Code Mode tools are no longer available. Do not use any previously listed Code Mode tools."
124
124
  }
125
125
  });
126
126
  };
127
127
 
128
- export { render2, update2, make14, exports_instructions2 };
128
+ export { render3, update3, make16, exports_instructions5 };
@@ -1,9 +1,9 @@
1
1
  import {
2
- Service76
3
- } from "./model-13db7e4e.js";
2
+ Service56
3
+ } from "./persistent-pty-521nt0x3.js";
4
4
  import {
5
5
  __export
6
- } from "./model-9rqn6x4v.js";
6
+ } from "./persistent-pty-9rqn6x4v.js";
7
7
 
8
8
  // src/mcp/stdio.ts
9
9
  var exports_stdio = {};
@@ -21,7 +21,7 @@ var MAX_FRAME_BYTES = 16 * 1024 * 1024;
21
21
  var EXIT_WAIT = Duration.seconds(1);
22
22
  var STDERR_TAIL = 1000;
23
23
  var make2 = Effect.fnUntraced(function* (options) {
24
- const environment = yield* Service76;
24
+ const environment = yield* Service56;
25
25
  const scope = yield* Effect.scope;
26
26
  const outgoing = yield* Queue.bounded(OUTGOING_CAPACITY);
27
27
  const buffer = new ReadBuffer;
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  SessionEvent2
3
- } from "./model-ec1grn59.js";
3
+ } from "./persistent-pty-ec1grn59.js";
4
4
  import {
5
5
  __export
6
- } from "./model-9rqn6x4v.js";
6
+ } from "./persistent-pty-9rqn6x4v.js";
7
7
 
8
8
  // src/session/runner/retry.ts
9
9
  var exports_retry = {};
10
10
  __export(exports_retry, {
11
11
  SessionRunnerRetry: () => exports_retry,
12
12
  isRetryable: () => isRetryable2,
13
- make: () => make11,
13
+ make: () => make6,
14
14
  policy: () => policy2
15
15
  });
16
16
  import { isRetryable as isRetryable2 } from "@opencode/ai";
@@ -60,7 +60,7 @@ var policy2 = (sessionID) => Effect.gen(function* () {
60
60
  return { retry: true, attempt, delay: normalized };
61
61
  });
62
62
  });
63
- var make11 = (bus, sessionID) => Effect.gen(function* () {
63
+ var make6 = (bus, sessionID) => Effect.gen(function* () {
64
64
  const decide = yield* policy2(sessionID);
65
65
  const wait = (input) => Effect.gen(function* () {
66
66
  const scheduled = yield* Clock.currentTimeMillis;
@@ -77,4 +77,4 @@ var make11 = (bus, sessionID) => Effect.gen(function* () {
77
77
  return { decide, wait };
78
78
  });
79
79
 
80
- export { isRetryable2, policy2, make11, exports_retry };
80
+ export { isRetryable2, policy2, make6, exports_retry };
@@ -2,7 +2,7 @@ import {
2
2
  SQLiteEffectPreparedQuery2,
3
3
  SQLiteEffectSession2,
4
4
  SQLiteEffectTransaction2
5
- } from "./model-zg4hsa4e.js";
5
+ } from "./persistent-pty-gen41c14.js";
6
6
 
7
7
  // src/database/drizzle/effect-sqlite/session.ts
8
8
  import * as Context from "effect/Context";
@@ -1,38 +1,38 @@
1
1
  import {
2
2
  useragent2
3
- } from "./model-xggz5yyf.js";
3
+ } from "./persistent-pty-tjp24hfy.js";
4
4
  import {
5
- Service81
6
- } from "./model-a7g6j6nx.js";
5
+ Service83
6
+ } from "./persistent-pty-thpxvrkg.js";
7
7
  import {
8
- ID14,
8
+ ID16,
9
9
  OAuth3,
10
10
  Event19,
11
- Service70
12
- } from "./model-sy1vayej.js";
11
+ Service78
12
+ } from "./persistent-pty-cg24jcsb.js";
13
13
  import {
14
14
  key2
15
- } from "./model-mxvxcxwy.js";
15
+ } from "./persistent-pty-addxnjmp.js";
16
16
  import {
17
- ID12,
17
+ ID14,
18
18
  MethodID2
19
- } from "./model-qy0tcep6.js";
19
+ } from "./persistent-pty-js61yr7p.js";
20
20
  import {
21
21
  which2
22
- } from "./model-qaymkmh1.js";
22
+ } from "./persistent-pty-qaymkmh1.js";
23
23
  import {
24
- ID11,
25
- Service67
26
- } from "./model-vk57bjhv.js";
24
+ ID13,
25
+ Service75
26
+ } from "./persistent-pty-zebcfbc6.js";
27
27
  import {
28
- ID10
29
- } from "./model-ym21y5jk.js";
28
+ ID12
29
+ } from "./persistent-pty-8bz0awby.js";
30
30
  import {
31
31
  iife2
32
- } from "./model-1kg9ymc8.js";
32
+ } from "./persistent-pty-1kg9ymc8.js";
33
33
  import {
34
34
  configuredSettings2
35
- } from "./model-g7yjevyk.js";
35
+ } from "./persistent-pty-d7s6akkx.js";
36
36
 
37
37
  // src/plugin/provider/azure.ts
38
38
  import { Clock, Effect, FiberHandle, Option, Schema, Semaphore, Stream } from "effect";
@@ -67,18 +67,18 @@ var decodeManagementDeployment = Schema.decodeUnknownOption(Schema.Struct({
67
67
  }));
68
68
  var ResourceQuery = Schema.Struct({ query: Schema.String });
69
69
  var Resources = Schema.Struct({ data: Schema.Array(Schema.Struct({ id: Schema.NonEmptyString })) });
70
- function make5(endpoints = {
70
+ function make10(endpoints = {
71
71
  resource: (name) => `https://${name}.openai.azure.com/openai`,
72
72
  management: "https://management.azure.com"
73
73
  }) {
74
74
  return define({
75
75
  id: "opencode.provider.azure",
76
76
  effect: Effect.fn(function* (ctx) {
77
- const configured = yield* configuredSettings2(ID11.azure);
77
+ const configured = yield* configuredSettings2(ID13.azure);
78
78
  const processes = yield* AppProcess.Service;
79
- const bus = yield* Service81;
80
- const credentials = yield* Service70;
81
- const providers = yield* Service67;
79
+ const bus = yield* Service83;
80
+ const credentials = yield* Service78;
81
+ const providers = yield* Service75;
82
82
  const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
83
83
  const tokens = new Map;
84
84
  const resourceIDs = new Map;
@@ -116,13 +116,13 @@ function make5(endpoints = {
116
116
  });
117
117
  yield* ctx.integration.transform((editor) => {
118
118
  editor.method.update({
119
- integrationID: ID11.azure,
119
+ integrationID: ID13.azure,
120
120
  method: { type: "key", label: "API key", form: form() }
121
121
  });
122
122
  if (!available)
123
123
  return;
124
124
  editor.method.update({
125
- integrationID: ID11.azure,
125
+ integrationID: ID13.azure,
126
126
  method: {
127
127
  id: methodID,
128
128
  type: "oauth",
@@ -152,8 +152,8 @@ function make5(endpoints = {
152
152
  });
153
153
  });
154
154
  const load = Effect.fn("AzurePlugin.load")(function* () {
155
- const connection = yield* ctx.integration.connection.active(ID11.azure);
156
- const stored = connection?.type === "credential" ? yield* credentials.get(ID14.make(connection.id)) : undefined;
155
+ const connection = yield* ctx.integration.connection.active(ID13.azure);
156
+ const stored = connection?.type === "credential" ? yield* credentials.get(ID16.make(connection.id)) : undefined;
157
157
  return { connection, resource: credentialResource(stored?.value) };
158
158
  });
159
159
  const findResource = Effect.fn("AzurePlugin.findResource")(function* (resource) {
@@ -192,7 +192,7 @@ function make5(endpoints = {
192
192
  }));
193
193
  const discover = Effect.fn("AzurePlugin.discover")(function* () {
194
194
  const connection = loaded.connection;
195
- const settings = (yield* providers.get(ID11.azure))?.settings;
195
+ const settings = (yield* providers.get(ID13.azure))?.settings;
196
196
  const name = loaded.resource ?? resolveResourceName(settings);
197
197
  const url = connection && name !== undefined && resourcePattern.test(name) && typeof settings?.baseURL !== "string" ? `${endpoints.resource(name)}/deployments?api-version=2022-12-01` : undefined;
198
198
  if (loaded.connection !== connection)
@@ -214,11 +214,11 @@ function make5(endpoints = {
214
214
  const found = yield* deployments(url, name, credential).pipe(Effect.map((list) => list.toSorted((a, b) => a.name.localeCompare(b.name))), Effect.catch((cause) => Effect.logWarning("failed to sync Azure deployments", { cause }).pipe(Effect.as(undefined))));
215
215
  if (!found)
216
216
  return;
217
- if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(ID11.azure)))
217
+ if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(ID13.azure)))
218
218
  return;
219
219
  if (JSON.stringify(found) === JSON.stringify(loaded.deployments))
220
220
  return;
221
- const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(ID11.azure)?.models.keys() ?? [], (id) => [
221
+ const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(ID13.azure)?.models.keys() ?? [], (id) => [
222
222
  id.toLowerCase(),
223
223
  id
224
224
  ]));
@@ -231,11 +231,11 @@ function make5(endpoints = {
231
231
  yield* ctx.model.reload();
232
232
  });
233
233
  const refresh = () => rebind().pipe(Effect.andThen(FiberHandle.run(discovery, discover())));
234
- const resourceFor = (provider) => provider.id === ID11.azure ? loaded.resource ?? resolveResourceName(provider.settings) : resolveResourceName(provider.settings, loaded.resource);
234
+ const resourceFor = (provider) => provider.id === ID13.azure ? loaded.resource ?? resolveResourceName(provider.settings) : resolveResourceName(provider.settings, loaded.resource);
235
235
  Object.assign(loaded, yield* load());
236
236
  yield* ctx.provider.transform((evt) => {
237
237
  for (const item of evt.list()) {
238
- if (item.provider.id !== ID11.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
238
+ if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
239
239
  continue;
240
240
  const resourceName = resourceFor(item.provider);
241
241
  const websocket = responsesWebSocketCapable(item.provider);
@@ -250,7 +250,7 @@ function make5(endpoints = {
250
250
  };
251
251
  });
252
252
  }
253
- const item = evt.get(ID11.azure);
253
+ const item = evt.get(ID13.azure);
254
254
  if (!item)
255
255
  return;
256
256
  evt.add({
@@ -261,7 +261,7 @@ function make5(endpoints = {
261
261
  });
262
262
  yield* ctx.model.transform((models) => {
263
263
  for (const item of models.provider.list()) {
264
- if (item.provider.id !== ID11.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
264
+ if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
265
265
  continue;
266
266
  const resourceName = resourceFor(item.provider);
267
267
  for (const model of models.list(item.provider.id)) {
@@ -273,20 +273,20 @@ function make5(endpoints = {
273
273
  }
274
274
  if (!loaded.deployments)
275
275
  return;
276
- const catalog = models.list(ID11.azure);
276
+ const catalog = models.list(ID13.azure);
277
277
  const deployed = deployedModels(loaded.deployments, catalog);
278
278
  for (const model of catalog) {
279
279
  if (!deployed.has(model.id))
280
- models.remove(ID11.azure, model.id);
280
+ models.remove(ID13.azure, model.id);
281
281
  }
282
282
  for (const [id, model] of deployed) {
283
- models.update(ID11.azure, id, (draft) => Object.assign(draft, model));
283
+ models.update(ID13.azure, id, (draft) => Object.assign(draft, model));
284
284
  }
285
285
  });
286
- yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID12.make("azure")), Stream.runForEach(() => refresh()), Effect.forkScoped({ startImmediately: true }));
286
+ yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("azure")), Stream.runForEach(() => refresh()), Effect.forkScoped({ startImmediately: true }));
287
287
  yield* refresh().pipe(Effect.forkScoped);
288
288
  const bearer = Effect.fn("AzurePlugin.bearer")(function* (url) {
289
- const connection = yield* ctx.integration.connection.active(ID11.azure);
289
+ const connection = yield* ctx.integration.connection.active(ID13.azure);
290
290
  const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
291
291
  return;
292
292
  })) : undefined;
@@ -298,7 +298,7 @@ function make5(endpoints = {
298
298
  return `Bearer ${current.access}`;
299
299
  });
300
300
  yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
301
- if (evt.model.providerID !== ID11.azure)
301
+ if (evt.model.providerID !== ID13.azure)
302
302
  return;
303
303
  const authorization = yield* bearer(evt.request.url);
304
304
  if (!authorization)
@@ -307,9 +307,9 @@ function make5(endpoints = {
307
307
  evt.request.headers.delete("x-api-key");
308
308
  evt.request.headers.set("authorization", authorization);
309
309
  evt.request.headers.set("user-agent", useragent2(ctx.app));
310
- }), { providerID: ID11.azure });
310
+ }), { providerID: ID13.azure });
311
311
  yield* ctx.session.hook("experimental.ws.handshake", (evt) => Effect.gen(function* () {
312
- if (evt.model.providerID !== ID11.azure)
312
+ if (evt.model.providerID !== ID13.azure)
313
313
  return;
314
314
  const authorization = yield* bearer(evt.url);
315
315
  if (!authorization)
@@ -318,11 +318,11 @@ function make5(endpoints = {
318
318
  delete evt.headers["x-api-key"];
319
319
  evt.headers.authorization = authorization;
320
320
  evt.headers["user-agent"] = useragent2(ctx.app);
321
- }), { providerID: ID11.azure });
321
+ }), { providerID: ID13.azure });
322
322
  })
323
323
  });
324
324
  }
325
- var AzurePlugin2 = make5();
325
+ var AzurePlugin2 = make10();
326
326
  function resolveResourceName(settings, fallback) {
327
327
  const configured = settings?.resourceName;
328
328
  if (typeof configured === "string" && configured.trim() !== "")
@@ -352,11 +352,11 @@ function deployedModels(deployments, catalog) {
352
352
  const model = catalogModel(models, deployment);
353
353
  if (!model)
354
354
  return [];
355
- const id = ID10.make(deployment.name.toLowerCase());
355
+ const id = ID12.make(deployment.name.toLowerCase());
356
356
  const info = {
357
357
  ...structuredClone(model),
358
358
  id,
359
- modelID: ID10.make(deployment.name),
359
+ modelID: ID12.make(deployment.name),
360
360
  name: id === model.id.toLowerCase() ? model.name : `${model.name} (${deployment.name})`
361
361
  };
362
362
  return [[id, info]];
@@ -378,4 +378,4 @@ function responsesWebSocketCapable(provider) {
378
378
  return /^https:\/\/[^/]+\.openai\.azure\.com(?:\/|$)/i.test(settings.baseURL);
379
379
  }
380
380
 
381
- export { make5, AzurePlugin2 };
381
+ export { make10, AzurePlugin2 };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  BlockedError2
3
- } from "./model-evzgxw2j.js";
3
+ } from "./persistent-pty-rzeq28dk.js";
4
4
  import {
5
5
  __export
6
- } from "./model-9rqn6x4v.js";
6
+ } from "./persistent-pty-9rqn6x4v.js";
7
7
 
8
8
  // src/plugin/plan.ts
9
9
  var exports_plan = {};
10
10
  __export(exports_plan, {
11
11
  PlanPlugin: () => exports_plan,
12
- Plugin: () => Plugin9
12
+ Plugin: () => Plugin36
13
13
  });
14
14
  import { Message, ToolFailure } from "@opencode/ai";
15
15
  import { define } from "@opencode/plugin/effect/plugin";
@@ -29,7 +29,7 @@ You remain in Plan mode until the user switches agents. If the user asks you to
29
29
  var leave = `<system-reminder>
30
30
  You are NO LONGER in Plan mode. The previous Plan restrictions no longer apply. Any Plan mode instructions from earlier in this conversation are no longer active.
31
31
  </system-reminder>`;
32
- var Plugin9 = define({
32
+ var Plugin36 = define({
33
33
  id: "opencode.plan",
34
34
  effect: Effect.fn(function* (ctx) {
35
35
  const global = yield* Global.Service;
@@ -105,4 +105,4 @@ function lastReminder(messages, enterReminder) {
105
105
  }, undefined);
106
106
  }
107
107
 
108
- export { Plugin9, exports_plan };
108
+ export { Plugin36, exports_plan };
@@ -1,34 +1,34 @@
1
1
  import {
2
2
  Service84
3
- } from "./model-16dgqdxz.js";
3
+ } from "./persistent-pty-gm6yrpsp.js";
4
4
  import {
5
- Service81
6
- } from "./model-a7g6j6nx.js";
5
+ Service83
6
+ } from "./persistent-pty-thpxvrkg.js";
7
7
  import {
8
- Service49
9
- } from "./model-c8bydgjz.js";
8
+ Service63
9
+ } from "./persistent-pty-v6gb7zv2.js";
10
10
  import {
11
11
  RelativePath2
12
- } from "./model-z5v4ffb3.js";
12
+ } from "./persistent-pty-z5v4ffb3.js";
13
13
  import {
14
- ID4,
15
- Service33
16
- } from "./model-4r5bkf9y.js";
14
+ ID6,
15
+ Service47
16
+ } from "./persistent-pty-1tje5prg.js";
17
17
  import {
18
18
  SessionEvent2
19
- } from "./model-ec1grn59.js";
19
+ } from "./persistent-pty-ec1grn59.js";
20
20
  import {
21
21
  SessionMessage2
22
- } from "./model-gftt206x.js";
22
+ } from "./persistent-pty-gftt206x.js";
23
23
  import {
24
24
  MessageNotFoundError2
25
- } from "./model-frxn4dna.js";
25
+ } from "./persistent-pty-bsprd9wx.js";
26
26
  import {
27
27
  SessionMessageTable2
28
- } from "./model-9e5bzkjp.js";
28
+ } from "./persistent-pty-kb9j3d72.js";
29
29
  import {
30
30
  __export
31
- } from "./model-9rqn6x4v.js";
31
+ } from "./persistent-pty-9rqn6x4v.js";
32
32
 
33
33
  // src/session/revert.ts
34
34
  var exports_revert = {};
@@ -41,12 +41,12 @@ __export(exports_revert, {
41
41
  import { and, asc, eq, gt } from "drizzle-orm";
42
42
  import { Effect, Schema } from "effect";
43
43
  var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
44
- const instances = yield* Service49;
44
+ const instances = yield* Service63;
45
45
  const database = yield* Service84;
46
- const bus = yield* Service81;
46
+ const bus = yield* Service83;
47
47
  return yield* Effect.gen(function* () {
48
- const snapshot = yield* Service33;
49
- const original = input.session.revert?.snapshot ? ID4.make(input.session.revert.snapshot) : yield* snapshot.capture();
48
+ const snapshot = yield* Service47;
49
+ const original = input.session.revert?.snapshot ? ID6.make(input.session.revert.snapshot) : yield* snapshot.capture();
50
50
  const next = yield* plan(database.db, { sessionID: input.session.id, messageID: input.messageID });
51
51
  const restore = new Map;
52
52
  if (original) {
@@ -73,13 +73,13 @@ var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
73
73
  }).pipe(instances.provide(input.session));
74
74
  });
75
75
  var clear2 = Effect.fn("SessionRevert.clear")(function* (session) {
76
- const instances = yield* Service49;
77
- const bus = yield* Service81;
76
+ const instances = yield* Service63;
77
+ const bus = yield* Service83;
78
78
  yield* Effect.gen(function* () {
79
- const snapshot = yield* Service33;
79
+ const snapshot = yield* Service47;
80
80
  if (!session.revert)
81
81
  return;
82
- const original = session.revert.snapshot ? ID4.make(session.revert.snapshot) : undefined;
82
+ const original = session.revert.snapshot ? ID6.make(session.revert.snapshot) : undefined;
83
83
  if (original)
84
84
  yield* snapshot.restore({
85
85
  files: new Map((session.revert.files ?? []).map((file) => [RelativePath2.make(file.file), original]))
@@ -110,7 +110,7 @@ var plan = Effect.fn("SessionRevert.plan")(function* (db, input) {
110
110
  continue;
111
111
  for (const file of message.snapshot.files ?? [])
112
112
  if (!files.has(file))
113
- files.set(file, ID4.make(message.snapshot.start));
113
+ files.set(file, ID6.make(message.snapshot.start));
114
114
  }
115
115
  return files;
116
116
  });
@@ -1,33 +1,33 @@
1
1
  import {
2
- Service81
3
- } from "./model-a7g6j6nx.js";
2
+ Service83
3
+ } from "./persistent-pty-thpxvrkg.js";
4
4
  import {
5
5
  key2
6
- } from "./model-mxvxcxwy.js";
6
+ } from "./persistent-pty-addxnjmp.js";
7
7
  import {
8
8
  Event19
9
- } from "./model-sy1vayej.js";
9
+ } from "./persistent-pty-cg24jcsb.js";
10
10
  import {
11
- ID12
12
- } from "./model-qy0tcep6.js";
11
+ ID14
12
+ } from "./persistent-pty-js61yr7p.js";
13
13
  import {
14
- ID11,
15
- Service67
16
- } from "./model-vk57bjhv.js";
14
+ ID13,
15
+ Service75
16
+ } from "./persistent-pty-zebcfbc6.js";
17
17
  import {
18
- load3,
19
- derive3
20
- } from "./model-xzh9enxw.js";
18
+ load2,
19
+ derive2
20
+ } from "./persistent-pty-m854cfv5.js";
21
21
 
22
22
  // src/plugin/provider/modal.ts
23
23
  import { Effect, Semaphore, Stream } from "effect";
24
24
  import { define } from "@opencode/plugin/effect/plugin";
25
- var providerID = ID11.make("modal");
25
+ var providerID = ID13.make("modal");
26
26
  var ModalPlugin2 = define({
27
27
  id: "opencode.provider.modal",
28
28
  effect: Effect.fn(function* (ctx) {
29
- const providers = yield* Service67;
30
- const bus = yield* Service81;
29
+ const providers = yield* Service75;
30
+ const bus = yield* Service83;
31
31
  const loading = Semaphore.makeUnsafe(1);
32
32
  const loaded = {};
33
33
  const load = Effect.fn("ModalPlugin.load")(function* () {
@@ -45,7 +45,7 @@ var ModalPlugin2 = define({
45
45
  return;
46
46
  }
47
47
  const remote = yield* Effect.tryPromise({
48
- try: () => load3(baseURL, apiKey),
48
+ try: () => load2(baseURL, apiKey),
49
49
  catch: (cause) => cause
50
50
  }).pipe(Effect.catch((cause) => Effect.logWarning("failed to sync Modal models", { cause }).pipe(Effect.as(undefined))));
51
51
  if (key2(connection) !== key2(yield* ctx.integration.connection.active("modal")))
@@ -62,12 +62,12 @@ var ModalPlugin2 = define({
62
62
  return;
63
63
  evt.add({
64
64
  info: item.provider,
65
- models: Array.from(derive3(loaded.baseURL, loaded.models, Array.from(item.models.values())).values()),
65
+ models: Array.from(derive2(loaded.baseURL, loaded.models, Array.from(item.models.values())).values()),
66
66
  sourceConnection: loaded.connection
67
67
  });
68
68
  });
69
69
  const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
70
- yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID12.make("modal")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
70
+ yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("modal")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
71
71
  yield* refresh().pipe(Effect.forkScoped);
72
72
  })
73
73
  });
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./model-9rqn6x4v.js";
3
+ } from "./persistent-pty-9rqn6x4v.js";
4
4
 
5
5
  // src/config/watch.ts
6
6
  var exports_watch = {};