@opencode/core 0.0.0-dev-21530 → 0.0.0-dev-21541

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 (799) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +85 -85
  3. package/dist/aisdk-native.js +91 -91
  4. package/dist/aisdk.js +97 -97
  5. package/dist/app.js +5 -5
  6. package/dist/bus.js +71 -71
  7. package/dist/chunks/{schema-aj7mw0zk.js → workspace-034tev2y.js} +2 -2
  8. package/dist/chunks/{schema-v9ktrhzk.js → workspace-074m64dp.js} +20 -20
  9. package/dist/chunks/{schema-yc36fn85.js → workspace-07sqsv9w.js} +7 -7
  10. package/dist/chunks/{schema-0gdmqesm.js → workspace-0gdmqesm.js} +1 -1
  11. package/dist/chunks/{schema-8bc2ahr8.js → workspace-0ss1ygn7.js} +3 -3
  12. package/dist/chunks/{schema-2yr926wd.js → workspace-0tjpvapw.js} +10 -10
  13. package/dist/chunks/{schema-0vbcp93d.js → workspace-0vbcp93d.js} +2 -2
  14. package/dist/chunks/{schema-8hdppygf.js → workspace-0xx3ns2v.js} +18 -18
  15. package/dist/chunks/{schema-q5eftdkn.js → workspace-0z8yhdqv.js} +67 -67
  16. package/dist/chunks/{schema-6jk406cr.js → workspace-132rhf2q.js} +21 -20
  17. package/dist/chunks/{schema-few1k6py.js → workspace-15wxq0kj.js} +8 -8
  18. package/dist/chunks/{schema-0tn9bjc5.js → workspace-1bzs4kqq.js} +21 -21
  19. package/dist/chunks/{schema-27w5k9zf.js → workspace-1ep2p91f.js} +2 -2
  20. package/dist/chunks/{schema-x9xt4rzp.js → workspace-1fnk0qcx.js} +13 -13
  21. package/dist/chunks/{schema-6pc27hjz.js → workspace-1p07q0wb.js} +8 -8
  22. package/dist/chunks/{schema-e6748pxh.js → workspace-1rd0hf05.js} +18 -18
  23. package/dist/chunks/{schema-tp3t781r.js → workspace-2ahabfrv.js} +4 -4
  24. package/dist/chunks/{schema-prjrmqps.js → workspace-2b6qkcs0.js} +50 -50
  25. package/dist/chunks/{schema-25gmhyge.js → workspace-2ec29r6m.js} +4 -4
  26. package/dist/chunks/{schema-t8w5j2tp.js → workspace-2egnw719.js} +14 -14
  27. package/dist/chunks/{schema-1mx78vzr.js → workspace-2phre6gr.js} +21 -22
  28. package/dist/chunks/{schema-7n76hb68.js → workspace-2xebcxdz.js} +14 -14
  29. package/dist/chunks/{schema-zhpk82ba.js → workspace-36cygfdp.js} +8 -8
  30. package/dist/chunks/{schema-wbt9zsn3.js → workspace-38phfjcn.js} +9 -9
  31. package/dist/chunks/{schema-dzz2f3za.js → workspace-3b7e46vg.js} +22 -22
  32. package/dist/chunks/{schema-0bg0bx69.js → workspace-3byrw2k0.js} +9 -9
  33. package/dist/chunks/{schema-kdnmkssn.js → workspace-3chvherp.js} +4 -4
  34. package/dist/chunks/{schema-yds4b9yz.js → workspace-3eyct666.js} +34 -34
  35. package/dist/chunks/{schema-3hepkmqq.js → workspace-3hepkmqq.js} +1 -1
  36. package/dist/chunks/{schema-3hwn7j4h.js → workspace-3hwn7j4h.js} +2 -2
  37. package/dist/chunks/{schema-3tvqynh2.js → workspace-3tvqynh2.js} +1 -1
  38. package/dist/chunks/{schema-addxnjmp.js → workspace-3y377wv9.js} +4 -4
  39. package/dist/chunks/{schema-3zsf4n22.js → workspace-3zsf4n22.js} +1 -1
  40. package/dist/chunks/{schema-ks795mkk.js → workspace-47xvp063.js} +13 -13
  41. package/dist/chunks/{schema-rztgzzkf.js → workspace-4gx1jjxq.js} +45 -45
  42. package/dist/chunks/{schema-ecz00bat.js → workspace-4jhg1r7p.js} +13 -13
  43. package/dist/chunks/{schema-hfjg8gb5.js → workspace-4myb3554.js} +18 -18
  44. package/dist/chunks/{schema-54ma36ye.js → workspace-54ma36ye.js} +1 -1
  45. package/dist/chunks/{schema-drwq78ky.js → workspace-57b9ws8p.js} +5 -5
  46. package/dist/chunks/{schema-rkg4v3e5.js → workspace-5fec3t3w.js} +4 -4
  47. package/dist/chunks/{schema-vep9yay1.js → workspace-5g57z1ma.js} +4 -4
  48. package/dist/chunks/{schema-jpypjf72.js → workspace-5ggmzyjq.js} +32 -32
  49. package/dist/chunks/{schema-gd5ks2q2.js → workspace-5gwxr4wz.js} +24 -24
  50. package/dist/chunks/{schema-5m9w47nd.js → workspace-5m9w47nd.js} +1 -1
  51. package/dist/chunks/{schema-ysy9ysqp.js → workspace-5tgqe19z.js} +55 -55
  52. package/dist/chunks/{schema-gtz7nked.js → workspace-5x8rsm2f.js} +24 -24
  53. package/dist/chunks/{schema-6827pfxn.js → workspace-6827pfxn.js} +1 -1
  54. package/dist/chunks/{schema-mt5v9ry9.js → workspace-6gzxrv04.js} +16 -16
  55. package/dist/chunks/{schema-kbwg7qyy.js → workspace-6h1z9x2t.js} +20 -20
  56. package/dist/chunks/{schema-9m5m65a4.js → workspace-6n72fwwd.js} +26 -26
  57. package/dist/chunks/{schema-jfh9q8qf.js → workspace-6s9zvkg6.js} +11 -11
  58. package/dist/chunks/{schema-6xb47vfp.js → workspace-6xb47vfp.js} +1 -1
  59. package/dist/chunks/{schema-fwd7f3n7.js → workspace-73a41k9m.js} +40 -40
  60. package/dist/chunks/{schema-krb84gwz.js → workspace-76475ja5.js} +28 -28
  61. package/dist/chunks/{schema-n44fvqa5.js → workspace-76skp782.js} +11 -11
  62. package/dist/chunks/{schema-775gj3j1.js → workspace-775gj3j1.js} +2 -2
  63. package/dist/chunks/{schema-7bmhse3q.js → workspace-7bmhse3q.js} +1 -1
  64. package/dist/chunks/workspace-7jmfkexa.js +26 -0
  65. package/dist/chunks/{schema-3qm998m2.js → workspace-7ycdgr6s.js} +15 -15
  66. package/dist/chunks/{schema-h6r4200x.js → workspace-7zyx6fzq.js} +21 -21
  67. package/dist/chunks/{schema-1g5hkw1w.js → workspace-80ea5f6r.js} +34 -34
  68. package/dist/chunks/{schema-w1eejvng.js → workspace-84txncab.js} +5 -5
  69. package/dist/chunks/{schema-qvfnp1sk.js → workspace-8dh2j701.js} +24 -24
  70. package/dist/chunks/{schema-8m6m0r52.js → workspace-8m6m0r52.js} +1 -1
  71. package/dist/chunks/{schema-bswnba0x.js → workspace-8mr27nf4.js} +4 -4
  72. package/dist/chunks/{schema-8mywswrd.js → workspace-8mywswrd.js} +1 -1
  73. package/dist/chunks/{schema-jh9qevh8.js → workspace-8x4e5kq0.js} +18 -18
  74. package/dist/chunks/{schema-wvyymv1h.js → workspace-8xnx0mnd.js} +8 -8
  75. package/dist/chunks/{schema-56j2d20k.js → workspace-8yp4rne4.js} +11 -11
  76. package/dist/chunks/{schema-be7qvw84.js → workspace-91p1v22t.js} +8 -8
  77. package/dist/chunks/{schema-9brafa5j.js → workspace-98bt88c5.js} +12 -12
  78. package/dist/chunks/{schema-dvj9ct8m.js → workspace-998yhzzq.js} +3 -3
  79. package/dist/chunks/{schema-sf2p74k8.js → workspace-9dmx38dk.js} +17 -17
  80. package/dist/chunks/{schema-r41txaew.js → workspace-9nygwmwc.js} +15 -15
  81. package/dist/chunks/{schema-sxswpjsy.js → workspace-9qj6rkp4.js} +3 -3
  82. package/dist/chunks/{schema-bnbbr2d0.js → workspace-9sbtww25.js} +36 -36
  83. package/dist/chunks/{schema-9wev2pgg.js → workspace-9wev2pgg.js} +1 -1
  84. package/dist/chunks/{schema-r2kbwwh1.js → workspace-9z8cn46p.js} +4 -4
  85. package/dist/chunks/{schema-3t0ybcrp.js → workspace-a058387c.js} +4 -2
  86. package/dist/chunks/{schema-wk0f6cnb.js → workspace-a94rjkpn.js} +7 -7
  87. package/dist/chunks/{schema-vsgt0m8t.js → workspace-aar2av7x.js} +6 -6
  88. package/dist/chunks/{schema-2gta2q4r.js → workspace-abc6j8jm.js} +35 -35
  89. package/dist/chunks/{schema-4axgq110.js → workspace-ae239eb7.js} +34 -34
  90. package/dist/chunks/{schema-kmvrn13k.js → workspace-ansnh6at.js} +10 -10
  91. package/dist/chunks/{schema-kjxerx4y.js → workspace-aq552fny.js} +190 -190
  92. package/dist/chunks/{schema-cmp3rkz8.js → workspace-ayabmdkg.js} +26 -27
  93. package/dist/chunks/{schema-8vcf4cwr.js → workspace-ayjs7tqn.js} +3 -3
  94. package/dist/chunks/{schema-586k1tpv.js → workspace-b10f7vcz.js} +6 -6
  95. package/dist/chunks/{schema-b11a7tx7.js → workspace-b11a7tx7.js} +1 -1
  96. package/dist/chunks/{schema-qs4w04g8.js → workspace-bbyyxdtc.js} +18 -18
  97. package/dist/chunks/{schema-zctrycv6.js → workspace-be4f7z37.js} +93 -97
  98. package/dist/chunks/{schema-r01t9b5y.js → workspace-bqszwq89.js} +4 -4
  99. package/dist/chunks/{schema-qg6wj6c5.js → workspace-bry36w7y.js} +20 -20
  100. package/dist/chunks/{schema-nxc81nce.js → workspace-bwq0z05b.js} +25 -27
  101. package/dist/chunks/{schema-r0dp87ge.js → workspace-bxxa49vs.js} +28 -28
  102. package/dist/chunks/workspace-by5v678g.js +18 -0
  103. package/dist/chunks/{schema-bzeyqsqd.js → workspace-bzeyqsqd.js} +1 -1
  104. package/dist/chunks/{schema-b7az7nzg.js → workspace-c3jpadc8.js} +5 -5
  105. package/dist/chunks/{schema-02ve1zyw.js → workspace-c48qrqrp.js} +17 -17
  106. package/dist/chunks/{schema-8ce0521a.js → workspace-c7kxmbtf.js} +17 -17
  107. package/dist/chunks/{schema-47rxzzmb.js → workspace-cah5dkv9.js} +11 -11
  108. package/dist/chunks/{schema-dqj1x724.js → workspace-cbartrqj.js} +16 -16
  109. package/dist/chunks/{schema-phstrbs2.js → workspace-cmwkp3r5.js} +8 -8
  110. package/dist/chunks/{schema-cr9hweqv.js → workspace-cr9hweqv.js} +2 -2
  111. package/dist/chunks/{schema-se052hy2.js → workspace-css516a4.js} +3 -3
  112. package/dist/chunks/{schema-c765mh8b.js → workspace-d4he2qe1.js} +9 -9
  113. package/dist/chunks/{schema-vxqrmefd.js → workspace-daz98v5x.js} +28 -28
  114. package/dist/chunks/{schema-t0jwwps0.js → workspace-db8n8p1c.js} +35 -35
  115. package/dist/chunks/{schema-v1d51sdw.js → workspace-dbe25myc.js} +11 -11
  116. package/dist/chunks/{schema-tqw72dge.js → workspace-dex2drwj.js} +12 -12
  117. package/dist/chunks/{schema-dpkg50ah.js → workspace-dpkg50ah.js} +1 -1
  118. package/dist/chunks/{schema-3t06g8dq.js → workspace-dq407baf.js} +6 -6
  119. package/dist/chunks/{schema-1afj0k1v.js → workspace-drdx3kxz.js} +13 -13
  120. package/dist/chunks/{schema-bb2erevm.js → workspace-dtmbvn3g.js} +5 -5
  121. package/dist/chunks/{schema-xqyrxmej.js → workspace-e2t3pw6w.js} +17 -17
  122. package/dist/chunks/{schema-xb2raker.js → workspace-e4n1ebq2.js} +3 -3
  123. package/dist/chunks/{schema-9fp5cy9e.js → workspace-e6g20fz5.js} +30 -30
  124. package/dist/chunks/{schema-sykc9y4a.js → workspace-e89xj288.js} +5 -5
  125. package/dist/chunks/{schema-m71k82xx.js → workspace-ea9zv6cw.js} +10 -10
  126. package/dist/chunks/{schema-eej6y6fw.js → workspace-eej6y6fw.js} +2 -2
  127. package/dist/chunks/{schema-ef5x83kb.js → workspace-ef5x83kb.js} +1 -1
  128. package/dist/chunks/{schema-v6gqda18.js → workspace-efxx8rk8.js} +13 -13
  129. package/dist/chunks/{schema-vc0tgat8.js → workspace-eg33xqqg.js} +46 -46
  130. package/dist/chunks/{schema-mych7xnr.js → workspace-etgqrbqm.js} +26 -26
  131. package/dist/chunks/{schema-4g2jt153.js → workspace-etj2j5tt.js} +24 -24
  132. package/dist/chunks/{schema-n2ew48d4.js → workspace-ewxdsezr.js} +32 -32
  133. package/dist/chunks/{schema-ap73x2p1.js → workspace-f3crtseh.js} +4 -4
  134. package/dist/chunks/{schema-fcy631f0.js → workspace-fcy631f0.js} +1 -1
  135. package/dist/chunks/{schema-9hwaqfsw.js → workspace-fcyg4h47.js} +7 -11
  136. package/dist/chunks/{schema-pp9nj0b2.js → workspace-ffq1c2je.js} +18 -18
  137. package/dist/chunks/{schema-1dxbsdj5.js → workspace-ffvkjqdt.js} +9 -9
  138. package/dist/chunks/{schema-8mc7s0wd.js → workspace-fk85bsrp.js} +11 -11
  139. package/dist/chunks/{schema-md39vkm3.js → workspace-fstg4fsa.js} +17 -17
  140. package/dist/chunks/{schema-tmmkgp6g.js → workspace-fx7mmp1n.js} +23 -23
  141. package/dist/chunks/{schema-ygxsryh2.js → workspace-g1z83s7x.js} +47 -47
  142. package/dist/chunks/{schema-4w411070.js → workspace-g6h99m46.js} +1 -1
  143. package/dist/chunks/{schema-5yqngkrh.js → workspace-g9ay48z2.js} +5 -5
  144. package/dist/chunks/{schema-zv150g5a.js → workspace-g9vnk3jz.js} +19 -20
  145. package/dist/chunks/{schema-bjx4q2dn.js → workspace-gcb5g84z.js} +43 -43
  146. package/dist/chunks/{schema-gd4qta3r.js → workspace-gd4qta3r.js} +1 -1
  147. package/dist/chunks/{schema-4c8ty7y6.js → workspace-ggk6kvmh.js} +21 -21
  148. package/dist/chunks/{schema-ys6xw3x7.js → workspace-gky04n8p.js} +19 -19
  149. package/dist/chunks/{schema-gegxtyrp.js → workspace-gm6mk2m9.js} +12 -12
  150. package/dist/chunks/{schema-j8qhg9bw.js → workspace-gmce5qqj.js} +1 -1
  151. package/dist/chunks/{schema-cs5q1j33.js → workspace-gn585jta.js} +5 -5
  152. package/dist/chunks/{schema-q490b428.js → workspace-gs67eedh.js} +36 -33
  153. package/dist/chunks/{schema-cm7rzrpy.js → workspace-gv7ndrzx.js} +4 -4
  154. package/dist/chunks/{schema-tc11merm.js → workspace-gwaf4cyv.js} +10 -10
  155. package/dist/chunks/{schema-rxxgwrt9.js → workspace-h6tfspxq.js} +11 -11
  156. package/dist/chunks/{schema-h6vf3j39.js → workspace-h6vf3j39.js} +1 -1
  157. package/dist/chunks/{schema-dta6adxg.js → workspace-h7jf40e2.js} +15 -15
  158. package/dist/chunks/{schema-syv4x271.js → workspace-h8vwnyd8.js} +4 -2
  159. package/dist/chunks/{schema-3ewed21c.js → workspace-h90v2x9d.js} +4 -4
  160. package/dist/chunks/{schema-gymq2tgt.js → workspace-hcgv7z9w.js} +9 -9
  161. package/dist/chunks/{schema-hgz4x7wa.js → workspace-hgz4x7wa.js} +1 -1
  162. package/dist/chunks/{schema-9fshpcpc.js → workspace-hhn6cs7f.js} +25 -25
  163. package/dist/chunks/{schema-4tsfkw9e.js → workspace-hp24smfg.js} +11 -11
  164. package/dist/chunks/{schema-8hej200e.js → workspace-j6jn98s4.js} +6 -6
  165. package/dist/chunks/{schema-atzyg80d.js → workspace-j6p3x2qe.js} +48 -48
  166. package/dist/chunks/{schema-g6kecgse.js → workspace-j90sh0vw.js} +78 -78
  167. package/dist/chunks/{schema-qnk07h1p.js → workspace-je188k40.js} +12 -12
  168. package/dist/chunks/{schema-gt4kt70v.js → workspace-jjrctdmw.js} +13 -13
  169. package/dist/chunks/{schema-2vs2nh1n.js → workspace-jvf3yq6v.js} +4 -4
  170. package/dist/chunks/{schema-hba2d548.js → workspace-jyhwqdka.js} +18 -18
  171. package/dist/chunks/{schema-knevfgda.js → workspace-k0a3z2qz.js} +4 -4
  172. package/dist/chunks/{schema-jn3svvm7.js → workspace-k4814axw.js} +17 -17
  173. package/dist/chunks/{schema-ysbkpfh3.js → workspace-kc8eh7pk.js} +32 -32
  174. package/dist/chunks/{schema-15esv6g5.js → workspace-kccjhh93.js} +5 -5
  175. package/dist/chunks/{schema-3qb95gy8.js → workspace-keqvyq2w.js} +4 -4
  176. package/dist/chunks/{schema-cbmrewd6.js → workspace-kgjxwjg5.js} +21 -21
  177. package/dist/chunks/{schema-1w2wqhfv.js → workspace-khmqacep.js} +4 -4
  178. package/dist/chunks/{schema-kwb1v3vj.js → workspace-kwb1v3vj.js} +1 -1
  179. package/dist/chunks/{schema-xtxypabt.js → workspace-m22m6tzf.js} +12 -12
  180. package/dist/chunks/{schema-y38m9zb5.js → workspace-m28avgzz.js} +7 -7
  181. package/dist/chunks/{schema-mpd49xq9.js → workspace-m6fea7hh.js} +8 -8
  182. package/dist/chunks/{schema-m9w0rfyh.js → workspace-m9w0rfyh.js} +1 -1
  183. package/dist/chunks/{schema-247gbw12.js → workspace-maers0pd.js} +3 -3
  184. package/dist/chunks/{schema-maspj1v3.js → workspace-maspj1v3.js} +1 -1
  185. package/dist/chunks/{schema-thq5mtmm.js → workspace-mcqdwfqb.js} +8 -8
  186. package/dist/chunks/{schema-cjrse1k0.js → workspace-mshsb7tz.js} +15 -15
  187. package/dist/chunks/{schema-sxzvkvgj.js → workspace-mx9vqzsb.js} +6 -6
  188. package/dist/chunks/{schema-eh1n47qm.js → workspace-mzmvkc7j.js} +28 -28
  189. package/dist/chunks/{schema-r5wxxd2p.js → workspace-n56c0sd4.js} +42 -42
  190. package/dist/chunks/{schema-apm2b389.js → workspace-n5d3v4c5.js} +3 -3
  191. package/dist/chunks/{schema-z18fegx4.js → workspace-n6mrmtb3.js} +2 -10
  192. package/dist/chunks/{schema-ajmz7z9n.js → workspace-n8mct725.js} +2 -2
  193. package/dist/chunks/{schema-zjznsnv6.js → workspace-n8nk40tj.js} +23 -23
  194. package/dist/chunks/{schema-x13wf28v.js → workspace-ncqfdwrq.js} +13 -13
  195. package/dist/chunks/{schema-d3cjz2rg.js → workspace-neqjwg63.js} +34 -34
  196. package/dist/chunks/{schema-grqp3cmb.js → workspace-nvxqht09.js} +3 -3
  197. package/dist/chunks/{schema-7j1zf1qw.js → workspace-nzg504jb.js} +15 -15
  198. package/dist/chunks/{schema-w2bpkvh3.js → workspace-p1apbq8w.js} +11 -11
  199. package/dist/chunks/{schema-ykw333za.js → workspace-p8dm3ep0.js} +5 -5
  200. package/dist/chunks/{schema-p33ckn3v.js → workspace-pbjcynf2.js} +11 -11
  201. package/dist/chunks/{schema-pgqyayq7.js → workspace-pcs4hp0r.js} +11 -11
  202. package/dist/chunks/{schema-pjvnvgmy.js → workspace-pjvnvgmy.js} +1 -1
  203. package/dist/chunks/{schema-pknna89w.js → workspace-pknna89w.js} +1 -1
  204. package/dist/chunks/{schema-42kdbcte.js → workspace-pmpp0nb4.js} +26 -26
  205. package/dist/chunks/{schema-stbcvrcx.js → workspace-pwrxqpxd.js} +18 -18
  206. package/dist/chunks/{schema-kxf3nz33.js → workspace-pzzw2hqw.js} +3 -3
  207. package/dist/chunks/{schema-shrrr7kk.js → workspace-q40yvqvp.js} +10 -10
  208. package/dist/chunks/{schema-r335j1fq.js → workspace-q8rwc74j.js} +26 -26
  209. package/dist/chunks/{schema-sxz6gkc3.js → workspace-qa3qhgw8.js} +7 -7
  210. package/dist/chunks/{schema-aq5y8b9e.js → workspace-qby9dwvd.js} +8 -8
  211. package/dist/chunks/{schema-0jwsre1p.js → workspace-qgn6gcr1.js} +5 -5
  212. package/dist/chunks/{schema-88tf66q2.js → workspace-qhd9gkgf.js} +9 -9
  213. package/dist/chunks/{schema-02mvvr71.js → workspace-qp7m8750.js} +3 -3
  214. package/dist/chunks/{schema-qsdy395h.js → workspace-qsdy395h.js} +1 -1
  215. package/dist/chunks/{schema-044xr5hv.js → workspace-qssh8sag.js} +49 -49
  216. package/dist/chunks/{schema-ftrv57z3.js → workspace-qv9b3h9n.js} +31 -31
  217. package/dist/chunks/{schema-3ghrgbf8.js → workspace-r29avfkz.js} +6 -6
  218. package/dist/chunks/{schema-7zafwtqv.js → workspace-r4fxfztp.js} +33 -33
  219. package/dist/chunks/{schema-b8y1c3zn.js → workspace-r6k9he64.js} +14 -14
  220. package/dist/chunks/{schema-bmheq9zx.js → workspace-r9s8agc4.js} +34 -34
  221. package/dist/chunks/{schema-vnt3yn01.js → workspace-rdp8b27p.js} +19 -19
  222. package/dist/chunks/{schema-rdw6cm16.js → workspace-rdw6cm16.js} +1 -1
  223. package/dist/chunks/{schema-zxxfwhgr.js → workspace-rmja0r51.js} +10 -10
  224. package/dist/chunks/{schema-7ph0n1vg.js → workspace-rqgw4wbf.js} +45 -45
  225. package/dist/chunks/{schema-bnjeam3m.js → workspace-rzp7a2t4.js} +11 -11
  226. package/dist/chunks/{schema-1svhfytg.js → workspace-s1sewrz2.js} +24 -24
  227. package/dist/chunks/{schema-38a6f3y0.js → workspace-s1v8awss.js} +3 -3
  228. package/dist/chunks/{schema-xyd93zwz.js → workspace-s305gxse.js} +34 -34
  229. package/dist/chunks/{schema-7q165t4g.js → workspace-s4gy3dj7.js} +16 -16
  230. package/dist/chunks/{schema-m1rbdz0y.js → workspace-s6ckz0hn.js} +14 -14
  231. package/dist/chunks/{schema-6qbhemwa.js → workspace-s8ch1s93.js} +34 -35
  232. package/dist/chunks/{schema-7vdznjcr.js → workspace-sb9g34e0.js} +8 -8
  233. package/dist/chunks/{schema-gtt9vv4e.js → workspace-srp09zfw.js} +11 -11
  234. package/dist/chunks/{schema-qymj231q.js → workspace-st7p3hwb.js} +9 -12
  235. package/dist/chunks/workspace-stn147wg.js +257 -0
  236. package/dist/chunks/{schema-yxxhm6wn.js → workspace-t18r7gq3.js} +45 -45
  237. package/dist/chunks/{schema-kn8ed5j7.js → workspace-t2s68hp7.js} +13 -13
  238. package/dist/chunks/{schema-k8naqxk9.js → workspace-t3hn50w1.js} +8 -8
  239. package/dist/chunks/{schema-tazgh4e4.js → workspace-tazgh4e4.js} +1 -1
  240. package/dist/chunks/{schema-89znhe33.js → workspace-tcezcvh9.js} +4 -4
  241. package/dist/chunks/{schema-tdstcens.js → workspace-tdstcens.js} +1 -1
  242. package/dist/chunks/{schema-a2950d4b.js → workspace-tr7gnt89.js} +11 -11
  243. package/dist/chunks/{schema-phwvtd3y.js → workspace-tvgxg3g6.js} +4 -4
  244. package/dist/chunks/{schema-tyytaxap.js → workspace-tyytaxap.js} +1 -1
  245. package/dist/chunks/{schema-7ec2v9ed.js → workspace-tzprbfj6.js} +10 -10
  246. package/dist/chunks/{schema-v7p4zvkq.js → workspace-v7p4zvkq.js} +2 -2
  247. package/dist/chunks/{schema-60bb96q1.js → workspace-va6mm9z7.js} +9 -9
  248. package/dist/chunks/{schema-veqvce7d.js → workspace-veqvce7d.js} +1 -1
  249. package/dist/chunks/{schema-nnsw46vg.js → workspace-vm8sweqc.js} +4 -4
  250. package/dist/chunks/{schema-zdjfzqgx.js → workspace-vsv97a0e.js} +24 -24
  251. package/dist/chunks/{schema-vzs5sf6e.js → workspace-vzs5sf6e.js} +1 -1
  252. package/dist/chunks/{schema-qsr7754b.js → workspace-w0rc49da.js} +30 -30
  253. package/dist/chunks/{schema-wh6zw745.js → workspace-w2h15q85.js} +5 -5
  254. package/dist/chunks/{schema-w3wsvvr9.js → workspace-w3wsvvr9.js} +1 -1
  255. package/dist/chunks/{schema-wakvkjy4.js → workspace-wakvkjy4.js} +1 -1
  256. package/dist/chunks/{schema-b82aynba.js → workspace-wb9ff8bn.js} +23 -23
  257. package/dist/chunks/{schema-5hzj2gnj.js → workspace-wbnh8gjc.js} +5 -5
  258. package/dist/chunks/{schema-wd87259q.js → workspace-wd87259q.js} +1 -1
  259. package/dist/chunks/{schema-ywt8jp22.js → workspace-wjr9rjd7.js} +6 -6
  260. package/dist/chunks/{schema-zdvv5291.js → workspace-wjst284m.js} +4 -4
  261. package/dist/chunks/{schema-sy3r6n62.js → workspace-x683dpmx.js} +32 -32
  262. package/dist/chunks/{schema-y56ehv6b.js → workspace-xf8yqmad.js} +9 -9
  263. package/dist/chunks/{schema-40ac0r3r.js → workspace-xg0qp6eg.js} +11 -11
  264. package/dist/chunks/{schema-8nbq5p6s.js → workspace-xghm9m12.js} +15 -15
  265. package/dist/chunks/{schema-k6kw0x3x.js → workspace-xjzqkwqn.js} +13 -13
  266. package/dist/chunks/{schema-atz56vhv.js → workspace-xv7z1ba5.js} +21 -21
  267. package/dist/chunks/{schema-4w9ygdqj.js → workspace-xy9gzbcy.js} +18 -18
  268. package/dist/chunks/{schema-y1fvbwt7.js → workspace-y1fvbwt7.js} +1 -1
  269. package/dist/chunks/{schema-kxbkpg81.js → workspace-y6e8h1xc.js} +21 -21
  270. package/dist/chunks/{schema-cbywt2p6.js → workspace-y6rf4qat.js} +34 -34
  271. package/dist/chunks/{schema-x5by4g9q.js → workspace-y76gxhjg.js} +337 -337
  272. package/dist/chunks/{schema-kjd40bgk.js → workspace-y7nndgyc.js} +9 -9
  273. package/dist/chunks/{schema-b1vpyjsr.js → workspace-yefhp8xd.js} +11 -11
  274. package/dist/chunks/{schema-tvcjbwgd.js → workspace-yfattsqw.js} +17 -17
  275. package/dist/chunks/{schema-8dj74pby.js → workspace-ynmknp8q.js} +11 -11
  276. package/dist/chunks/{schema-phdpwmhe.js → workspace-ynrxtasp.js} +20 -23
  277. package/dist/chunks/{schema-z0bkrqjs.js → workspace-z0bkrqjs.js} +1 -1
  278. package/dist/chunks/{schema-5acb438f.js → workspace-z34erevr.js} +9 -9
  279. package/dist/chunks/{schema-kjqvt6c0.js → workspace-z71n2avg.js} +4 -4
  280. package/dist/chunks/{schema-qb6nzafx.js → workspace-zaq7yc5h.js} +4 -3
  281. package/dist/chunks/{schema-kgjy8mzn.js → workspace-zcfdnc2q.js} +28 -30
  282. package/dist/chunks/{schema-70xh0458.js → workspace-zet3czjw.js} +19 -19
  283. package/dist/chunks/{schema-ycefwdcs.js → workspace-zfm65xnk.js} +8 -8
  284. package/dist/chunks/{schema-tnj6rg6w.js → workspace-zqt4wd7s.js} +13 -13
  285. package/dist/chunks/{schema-zr2ceqn5.js → workspace-zr2ceqn5.js} +1 -1
  286. package/dist/chunks/{schema-bkrhp30v.js → workspace-zx59jank.js} +6 -7
  287. package/dist/chunks/{schema-zxq2ej10.js → workspace-zxq2ej10.js} +1 -1
  288. package/dist/codemode/catalog.js +1 -3
  289. package/dist/codemode/instructions.js +9 -9
  290. package/dist/codemode/tool.js +3 -3
  291. package/dist/codemode/web.js +1 -1
  292. package/dist/command.js +87 -87
  293. package/dist/config/discovery.js +86 -86
  294. package/dist/config/markdown.js +1 -1
  295. package/dist/config/normalize.js +101 -101
  296. package/dist/config/plugin/agent.js +116 -116
  297. package/dist/config/plugin/command.js +212 -212
  298. package/dist/config/plugin/compaction.js +155 -155
  299. package/dist/config/plugin/compatibility.js +133 -133
  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 +116 -116
  303. package/dist/config/plugin/instruction.js +116 -116
  304. package/dist/config/plugin/location-watcher.js +116 -116
  305. package/dist/config/plugin/mcp.js +123 -123
  306. package/dist/config/plugin/policy.js +117 -117
  307. package/dist/config/plugin/provider.js +116 -116
  308. package/dist/config/plugin/reference.js +118 -118
  309. package/dist/config/plugin/shell.js +116 -116
  310. package/dist/config/plugin/skill-file.js +104 -104
  311. package/dist/config/plugin/skill-scan.js +1 -1
  312. package/dist/config/plugin/skill.js +136 -136
  313. package/dist/config/plugin/snapshot.js +116 -116
  314. package/dist/config/plugin/source.js +113 -113
  315. package/dist/config/plugin/tool-output.js +115 -115
  316. package/dist/config/plugin/websearch.js +115 -115
  317. package/dist/config/plugin/worktree.js +118 -118
  318. package/dist/config/variable.js +1 -1
  319. package/dist/config/watch.js +1 -1
  320. package/dist/config.js +121 -121
  321. package/dist/credential/sql.js +2 -2
  322. package/dist/credential.js +85 -85
  323. package/dist/database/database.js +68 -68
  324. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  325. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  326. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  327. package/dist/database/drizzle/index.js +13 -13
  328. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  329. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  330. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  331. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  332. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  333. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  334. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  335. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  336. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  337. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  338. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  339. package/dist/database/drizzle.js +14 -14
  340. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  341. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  342. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  343. package/dist/database/migration/20260225215848_workspace.js +1 -1
  344. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  345. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  346. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  347. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  348. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  349. package/dist/database/migration/20260323234822_events.js +1 -1
  350. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  351. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  352. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  353. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  354. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  355. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  356. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  357. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  358. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  359. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  360. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  361. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  362. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  363. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  364. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  365. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  366. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  367. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  368. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  369. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  370. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  371. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  372. package/dist/database/migration/20260611035744_credential.js +1 -1
  373. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  374. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  375. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  376. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  377. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  378. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  379. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  380. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  381. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  382. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  383. package/dist/database/migration/20260812213948_worktree.js +1 -1
  384. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  385. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  386. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  387. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  388. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  389. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  390. package/dist/database/migration.gen.js +51 -51
  391. package/dist/database/migration.js +53 -53
  392. package/dist/database/path.js +2 -2
  393. package/dist/database/schema.gen.js +1 -1
  394. package/dist/database/schema.sql.js +1 -1
  395. package/dist/database/sqlite.bun.js +1 -1
  396. package/dist/database/sqlite.js +1 -1
  397. package/dist/database/sqlite.node.js +1 -1
  398. package/dist/database/sqlite.workerd.js +1 -1
  399. package/dist/database/v1-migration.bun.js +78 -78
  400. package/dist/database/v1-migration.js +1 -1
  401. package/dist/effect/app-node-builder.js +369 -369
  402. package/dist/effect/app-node-platform.js +2 -2
  403. package/dist/effect/keyed-mutex.js +1 -1
  404. package/dist/effect/websocket-constructor.js +1 -1
  405. package/dist/environment/driver.js +1 -1
  406. package/dist/environment/environment.js +95 -95
  407. package/dist/environment/exec-defaults.js +2 -2
  408. package/dist/environment/files.js +1 -1
  409. package/dist/environment/index.js +95 -95
  410. package/dist/environment/local.js +2 -2
  411. package/dist/environment/memory.js +2 -2
  412. package/dist/environment/unavailable.js +3 -3
  413. package/dist/event/sql.js +1 -1
  414. package/dist/event-logger.js +72 -72
  415. package/dist/file-access.js +106 -106
  416. package/dist/file-mutation.js +96 -96
  417. package/dist/file-retention.js +1 -1
  418. package/dist/filesystem/fff.bun.js +2 -2
  419. package/dist/filesystem/fff.js +1 -1
  420. package/dist/filesystem/fff.node.js +2 -2
  421. package/dist/filesystem/fff.workerd.js +2 -2
  422. package/dist/filesystem/location-watcher-policy.js +6 -6
  423. package/dist/filesystem/location-watcher.js +225 -225
  424. package/dist/filesystem/protected.js +3 -3
  425. package/dist/filesystem/search.js +101 -101
  426. package/dist/filesystem/watcher-binding.js +1 -1
  427. package/dist/filesystem/watcher.js +11 -11
  428. package/dist/filesystem.js +104 -104
  429. package/dist/form.js +84 -84
  430. package/dist/formatter/builtins.js +4 -4
  431. package/dist/formatter.js +89 -89
  432. package/dist/generate.js +109 -109
  433. package/dist/git.js +10 -10
  434. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  435. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  436. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  437. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  438. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  439. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  440. package/dist/github-copilot/copilot-provider.js +17 -17
  441. package/dist/github-copilot/models.js +93 -93
  442. package/dist/github-copilot/openai-compatible-error.js +1 -1
  443. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  444. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  445. package/dist/github-copilot/responses/openai-error.js +1 -1
  446. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  447. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  448. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  449. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  450. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  451. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  452. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  453. package/dist/image/photon.js +2 -2
  454. package/dist/image.js +6 -6
  455. package/dist/instance/service.js +5 -5
  456. package/dist/instance.js +360 -360
  457. package/dist/instruction-discovery.js +86 -86
  458. package/dist/instructions/builtins.js +89 -89
  459. package/dist/instructions/index.js +1 -1
  460. package/dist/integration/connection.js +3 -3
  461. package/dist/integration.js +91 -91
  462. package/dist/job.js +80 -80
  463. package/dist/kv/sql.js +2 -2
  464. package/dist/kv.js +75 -75
  465. package/dist/location-activity.js +156 -156
  466. package/dist/location-lifecycle.js +109 -109
  467. package/dist/location-service-map.js +88 -88
  468. package/dist/location-services.js +357 -357
  469. package/dist/location.js +91 -91
  470. package/dist/managed-policy.js +8 -8
  471. package/dist/mcp/client.js +93 -93
  472. package/dist/mcp/index.js +109 -109
  473. package/dist/mcp/instructions.js +138 -138
  474. package/dist/mcp/oauth.js +80 -80
  475. package/dist/mcp/stdio.js +92 -92
  476. package/dist/mime.js +1 -1
  477. package/dist/modal/models.js +93 -93
  478. package/dist/model-resolver.js +101 -101
  479. package/dist/model-retry.js +1 -1
  480. package/dist/model.js +104 -104
  481. package/dist/models-dev.js +99 -99
  482. package/dist/oauth/page.js +1 -1
  483. package/dist/permission/saved.js +82 -82
  484. package/dist/permission/sql.js +5 -5
  485. package/dist/permission.js +111 -111
  486. package/dist/persistent-pty/binary.bun.js +1 -1
  487. package/dist/persistent-pty/daemon.js +1 -1
  488. package/dist/persistent-pty/index.js +90 -90
  489. package/dist/persistent-pty/pty-binding.js +1 -1
  490. package/dist/persistent-pty.js +77 -77
  491. package/dist/plugin/agent.js +76 -76
  492. package/dist/plugin/command.js +102 -102
  493. package/dist/plugin/hooks.js +5 -5
  494. package/dist/plugin/host.js +218 -218
  495. package/dist/plugin/identity.js +3 -3
  496. package/dist/plugin/instance.js +5 -5
  497. package/dist/plugin/internal.js +332 -332
  498. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  499. package/dist/plugin/models-dev.js +98 -98
  500. package/dist/plugin/module.js +115 -115
  501. package/dist/plugin/optimize.js +4 -4
  502. package/dist/plugin/plan.js +104 -104
  503. package/dist/plugin/promise.js +1 -1
  504. package/dist/plugin/provider/amazon-bedrock.js +92 -92
  505. package/dist/plugin/provider/azure.js +116 -116
  506. package/dist/plugin/provider/cerebras.js +1 -1
  507. package/dist/plugin/provider/chatgpt.js +116 -116
  508. package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
  509. package/dist/plugin/provider/cloudflare-workers-ai.js +113 -113
  510. package/dist/plugin/provider/cohere.js +2 -2
  511. package/dist/plugin/provider/configured.js +112 -112
  512. package/dist/plugin/provider/databricks.js +1 -1
  513. package/dist/plugin/provider/digitalocean.js +95 -95
  514. package/dist/plugin/provider/dynamic.js +2 -2
  515. package/dist/plugin/provider/factory.js +1 -1
  516. package/dist/plugin/provider/github-copilot.js +97 -97
  517. package/dist/plugin/provider/gitlab.js +95 -95
  518. package/dist/plugin/provider/google-vertex.js +113 -113
  519. package/dist/plugin/provider/kilo.js +1 -1
  520. package/dist/plugin/provider/llmgateway.js +80 -80
  521. package/dist/plugin/provider/lmstudio.js +125 -125
  522. package/dist/plugin/provider/local.js +122 -122
  523. package/dist/plugin/provider/modal.js +94 -94
  524. package/dist/plugin/provider/neon.js +1 -1
  525. package/dist/plugin/provider/nvidia.js +1 -1
  526. package/dist/plugin/provider/ollama.js +125 -125
  527. package/dist/plugin/provider/openai.js +118 -118
  528. package/dist/plugin/provider/opencode.js +103 -103
  529. package/dist/plugin/provider/openrouter.js +93 -93
  530. package/dist/plugin/provider/perplexity.js +2 -2
  531. package/dist/plugin/provider/poe.js +81 -81
  532. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  533. package/dist/plugin/provider/sap-ai-core.js +93 -93
  534. package/dist/plugin/provider/sdk-factory.js +1 -1
  535. package/dist/plugin/provider/snowflake-cortex.js +115 -115
  536. package/dist/plugin/provider/vercel.js +92 -92
  537. package/dist/plugin/provider/vllm.js +125 -125
  538. package/dist/plugin/provider/xai.js +93 -93
  539. package/dist/plugin/provider/zenmux.js +1 -1
  540. package/dist/plugin/provider.js +170 -170
  541. package/dist/plugin/sdk.js +78 -78
  542. package/dist/plugin/service.js +3 -3
  543. package/dist/plugin/skill.js +134 -134
  544. package/dist/plugin/source-directory.js +1 -1
  545. package/dist/plugin/supervisor.js +347 -347
  546. package/dist/plugin/tool-input-repair.js +4 -4
  547. package/dist/plugin/update.js +6 -6
  548. package/dist/plugin/vcs/git.js +88 -88
  549. package/dist/plugin/vcs/hg.js +88 -88
  550. package/dist/plugin/verbosity.js +95 -95
  551. package/dist/plugin/warming.js +114 -114
  552. package/dist/plugin/websearch/exa.js +7 -7
  553. package/dist/plugin/websearch/firecrawl.js +6 -6
  554. package/dist/plugin/websearch/index.js +9 -9
  555. package/dist/plugin/websearch/mcp.js +4 -4
  556. package/dist/plugin/websearch/parallel.js +8 -8
  557. package/dist/plugin/websearch/tavily.js +6 -6
  558. package/dist/plugin/websearch/tinyfish.js +8 -8
  559. package/dist/plugin.js +229 -229
  560. package/dist/project/schema.js +8 -8
  561. package/dist/project/sql.js +4 -4
  562. package/dist/project.js +92 -92
  563. package/dist/provider.js +101 -101
  564. package/dist/pty/protocol.js +1 -1
  565. package/dist/pty/ticket.js +1 -1
  566. package/dist/pty.js +101 -101
  567. package/dist/reference/instructions.js +89 -89
  568. package/dist/reference.js +91 -91
  569. package/dist/repository-cache.js +83 -83
  570. package/dist/repository.js +3 -3
  571. package/dist/ripgrep/binary.js +2 -2
  572. package/dist/ripgrep.js +97 -97
  573. package/dist/rpc.js +88 -88
  574. package/dist/schema.js +1 -1
  575. package/dist/session/affinity.js +1 -1
  576. package/dist/session/command.js +76 -76
  577. package/dist/session/compaction.js +138 -138
  578. package/dist/session/context.js +164 -164
  579. package/dist/session/diff.js +90 -90
  580. package/dist/session/environment.js +5 -5
  581. package/dist/session/error.js +5 -5
  582. package/dist/session/event.js +1 -1
  583. package/dist/session/execution/restart.js +221 -221
  584. package/dist/session/execution.js +126 -126
  585. package/dist/session/generate.js +166 -166
  586. package/dist/session/history.js +13 -15
  587. package/dist/session/inbox.js +91 -91
  588. package/dist/session/info.js +3 -3
  589. package/dist/session/instruction-entry.js +77 -77
  590. package/dist/session/instruction-state.js +8 -8
  591. package/dist/session/instructions.js +99 -99
  592. package/dist/session/message-updater.js +2 -2
  593. package/dist/session/message.js +1 -1
  594. package/dist/session/model-request.js +122 -122
  595. package/dist/session/model-transport.js +9 -9
  596. package/dist/session/move.js +132 -132
  597. package/dist/session/projector.js +91 -91
  598. package/dist/session/prompt.js +107 -107
  599. package/dist/session/recent-text.js +1 -1
  600. package/dist/session/revert.js +96 -96
  601. package/dist/session/run-coordinator.js +3 -3
  602. package/dist/session/runner/index.js +3 -3
  603. package/dist/session/runner/llm.js +231 -231
  604. package/dist/session/runner/max-steps.js +1 -1
  605. package/dist/session/runner/model.js +101 -101
  606. package/dist/session/runner/publish-llm-event.js +116 -116
  607. package/dist/session/runner/retry.js +5 -5
  608. package/dist/session/runner/step.js +126 -126
  609. package/dist/session/runner/to-llm-message.js +14 -14
  610. package/dist/session/schema.js +5 -5
  611. package/dist/session/session.js +165 -165
  612. package/dist/session/shell.js +130 -130
  613. package/dist/session/skill.js +105 -105
  614. package/dist/session/sql.js +5 -5
  615. package/dist/session/stats.js +75 -75
  616. package/dist/session/store.js +87 -87
  617. package/dist/session/subagent-completion.js +1 -1
  618. package/dist/session/subagent-job.js +212 -212
  619. package/dist/session/system-prompt.js +3 -3
  620. package/dist/session/title.js +166 -166
  621. package/dist/session/to-session-error.js +114 -114
  622. package/dist/session/transfer.js +217 -217
  623. package/dist/session/usage.js +1 -1
  624. package/dist/session.js +220 -218
  625. package/dist/shell/parse.js +6 -6
  626. package/dist/shell/result.js +1 -1
  627. package/dist/shell/scan.js +1 -1
  628. package/dist/shell/select.js +9 -9
  629. package/dist/shell.js +132 -132
  630. package/dist/skill/discovery.js +6 -6
  631. package/dist/skill/instructions.js +109 -109
  632. package/dist/skill.js +112 -112
  633. package/dist/snapshot.js +93 -93
  634. package/dist/state.js +1 -1
  635. package/dist/tool/html-markdown.js +1 -1
  636. package/dist/tool/http-body.js +1 -1
  637. package/dist/tool/mcp.js +139 -139
  638. package/dist/tool/plugin/edit.js +118 -118
  639. package/dist/tool/plugin/file-diff.js +1 -1
  640. package/dist/tool/plugin/glob.js +126 -126
  641. package/dist/tool/plugin/grep.js +124 -124
  642. package/dist/tool/plugin/mcp-resource.js +126 -126
  643. package/dist/tool/plugin/opencode.js +111 -111
  644. package/dist/tool/plugin/patch.js +124 -124
  645. package/dist/tool/plugin/question.js +107 -107
  646. package/dist/tool/plugin/read.js +121 -121
  647. package/dist/tool/plugin/shell.js +211 -211
  648. package/dist/tool/plugin/skill.js +113 -113
  649. package/dist/tool/plugin/subagent.js +217 -217
  650. package/dist/tool/plugin/todo.js +138 -138
  651. package/dist/tool/plugin/webfetch.js +115 -115
  652. package/dist/tool/plugin/websearch.js +114 -114
  653. package/dist/tool/plugin/write.js +124 -124
  654. package/dist/tool/read-filesystem.js +104 -104
  655. package/dist/tool/runtime.js +1 -1
  656. package/dist/tool-output.js +7 -7
  657. package/dist/tool.js +14 -14
  658. package/dist/types/agent.d.ts +1 -1
  659. package/dist/types/codemode/catalog.d.ts +7 -8
  660. package/dist/types/codemode/tool.d.ts +1 -7
  661. package/dist/types/persistent-pty/daemon.d.ts +39 -21
  662. package/dist/types/session/history.d.ts +0 -5
  663. package/dist/types/session/runner/publish-llm-event.d.ts +3 -3
  664. package/dist/types/session.d.ts +38 -38
  665. package/dist/types/v1/config/migrate.d.ts +2 -28
  666. package/dist/types/worktree/sql.d.ts +1 -1
  667. package/dist/util/error-summary.js +1 -1
  668. package/dist/util/git-executable.js +2 -2
  669. package/dist/util/lazy.js +1 -1
  670. package/dist/util/slug.js +1 -1
  671. package/dist/util/token.js +1 -1
  672. package/dist/util/which.js +1 -1
  673. package/dist/util/wildcard.js +1 -1
  674. package/dist/v1/config/agent.js +7 -7
  675. package/dist/v1/config/command.js +5 -5
  676. package/dist/v1/config/mcp.js +4 -4
  677. package/dist/v1/config/migrate.js +94 -94
  678. package/dist/v1/config/permission.js +3 -3
  679. package/dist/v1/config/plugin.js +3 -3
  680. package/dist/v1/config/provider-options.js +1 -1
  681. package/dist/v1/config/provider.js +4 -4
  682. package/dist/variant.js +93 -93
  683. package/dist/vcs/patch.js +1 -1
  684. package/dist/vcs.js +91 -91
  685. package/dist/voice.js +90 -90
  686. package/dist/websearch.js +86 -86
  687. package/dist/wellknown/plugin.js +78 -78
  688. package/dist/wellknown.js +81 -81
  689. package/dist/workspace/driver.js +3 -3
  690. package/dist/workspace/sql.js +1 -1
  691. package/dist/workspace.js +84 -84
  692. package/dist/worktree/directory.js +2 -2
  693. package/dist/worktree/git.js +10 -10
  694. package/dist/worktree/sql.js +5 -5
  695. package/dist/worktree/strategies.js +91 -91
  696. package/dist/worktree.js +102 -102
  697. package/package.json +8 -8
  698. package/dist/chunks/schema-2xehkjwm.js +0 -257
  699. package/dist/chunks/schema-9sh4wc5j.js +0 -18
  700. package/dist/chunks/schema-v0yck56n.js +0 -26
  701. /package/dist/chunks/{schema-0qkdqm5v.js → workspace-0qkdqm5v.js} +0 -0
  702. /package/dist/chunks/{schema-0zkw76rk.js → workspace-0zkw76rk.js} +0 -0
  703. /package/dist/chunks/{schema-17cy0kzp.js → workspace-17cy0kzp.js} +0 -0
  704. /package/dist/chunks/{schema-1cnp2v09.js → workspace-1cnp2v09.js} +0 -0
  705. /package/dist/chunks/{schema-24dcb14g.js → workspace-24dcb14g.js} +0 -0
  706. /package/dist/chunks/{schema-2710q6r3.js → workspace-2710q6r3.js} +0 -0
  707. /package/dist/chunks/{schema-2bv980vf.js → workspace-2bv980vf.js} +0 -0
  708. /package/dist/chunks/{schema-2c3vjs8z.js → workspace-2c3vjs8z.js} +0 -0
  709. /package/dist/chunks/{schema-359p4xyc.js → workspace-359p4xyc.js} +0 -0
  710. /package/dist/chunks/{schema-3asan66x.js → workspace-3asan66x.js} +0 -0
  711. /package/dist/chunks/{schema-3v8g72cx.js → workspace-3v8g72cx.js} +0 -0
  712. /package/dist/chunks/{schema-3wcehsnq.js → workspace-3wcehsnq.js} +0 -0
  713. /package/dist/chunks/{schema-43n2bw4t.js → workspace-43n2bw4t.js} +0 -0
  714. /package/dist/chunks/{schema-4knz6hnm.js → workspace-4knz6hnm.js} +0 -0
  715. /package/dist/chunks/{schema-4vcrnpx2.js → workspace-4vcrnpx2.js} +0 -0
  716. /package/dist/chunks/{schema-4y7fprxs.js → workspace-4y7fprxs.js} +0 -0
  717. /package/dist/chunks/{schema-53557ph1.js → workspace-53557ph1.js} +0 -0
  718. /package/dist/chunks/{schema-550bvhaj.js → workspace-550bvhaj.js} +0 -0
  719. /package/dist/chunks/{schema-5fjb7ams.js → workspace-5fjb7ams.js} +0 -0
  720. /package/dist/chunks/{schema-6prwharc.js → workspace-6prwharc.js} +0 -0
  721. /package/dist/chunks/{schema-6q2bdcd1.js → workspace-6q2bdcd1.js} +0 -0
  722. /package/dist/chunks/{schema-7akdwqpd.js → workspace-7akdwqpd.js} +0 -0
  723. /package/dist/chunks/{schema-7m9af43g.js → workspace-7m9af43g.js} +0 -0
  724. /package/dist/chunks/{schema-822emrt2.js → workspace-822emrt2.js} +0 -0
  725. /package/dist/chunks/{schema-84wd9syh.js → workspace-84wd9syh.js} +0 -0
  726. /package/dist/chunks/{schema-88xbtdfr.js → workspace-88xbtdfr.js} +0 -0
  727. /package/dist/chunks/{schema-8n3pysct.js → workspace-8n3pysct.js} +0 -0
  728. /package/dist/chunks/{schema-8wj87zfr.js → workspace-8wj87zfr.js} +0 -0
  729. /package/dist/chunks/{schema-9a4afbnw.js → workspace-9a4afbnw.js} +0 -0
  730. /package/dist/chunks/{schema-9rqn6x4v.js → workspace-9rqn6x4v.js} +0 -0
  731. /package/dist/chunks/{schema-a6k6eb26.js → workspace-a6k6eb26.js} +0 -0
  732. /package/dist/chunks/{schema-af5trqkr.js → workspace-af5trqkr.js} +0 -0
  733. /package/dist/chunks/{schema-afrmfg78.js → workspace-afrmfg78.js} +0 -0
  734. /package/dist/chunks/{schema-aqzs7mqg.js → workspace-aqzs7mqg.js} +0 -0
  735. /package/dist/chunks/{schema-atq7p7m5.js → workspace-atq7p7m5.js} +0 -0
  736. /package/dist/chunks/{schema-bkyjaxrp.js → workspace-bkyjaxrp.js} +0 -0
  737. /package/dist/chunks/{schema-bmr6ed5q.js → workspace-bmr6ed5q.js} +0 -0
  738. /package/dist/chunks/{schema-cf4snx6d.js → workspace-cf4snx6d.js} +0 -0
  739. /package/dist/chunks/{schema-cvy3z8tj.js → workspace-cvy3z8tj.js} +0 -0
  740. /package/dist/chunks/{schema-d9fn303g.js → workspace-d9fn303g.js} +0 -0
  741. /package/dist/chunks/{schema-d9jj8t3e.js → workspace-d9jj8t3e.js} +0 -0
  742. /package/dist/chunks/{schema-dajrwvna.js → workspace-dajrwvna.js} +0 -0
  743. /package/dist/chunks/{schema-dap0rakb.js → workspace-dap0rakb.js} +0 -0
  744. /package/dist/chunks/{schema-df08tz66.js → workspace-df08tz66.js} +0 -0
  745. /package/dist/chunks/{schema-dy18nga0.js → workspace-dy18nga0.js} +0 -0
  746. /package/dist/chunks/{schema-e3qxr5gk.js → workspace-e3qxr5gk.js} +0 -0
  747. /package/dist/chunks/{schema-e5kj55wp.js → workspace-e5kj55wp.js} +0 -0
  748. /package/dist/chunks/{schema-e73j6tqm.js → workspace-e73j6tqm.js} +0 -0
  749. /package/dist/chunks/{schema-ec1grn59.js → workspace-ec1grn59.js} +0 -0
  750. /package/dist/chunks/{schema-eh3zwz77.js → workspace-eh3zwz77.js} +0 -0
  751. /package/dist/chunks/{schema-emrn6kk6.js → workspace-emrn6kk6.js} +0 -0
  752. /package/dist/chunks/{schema-f0mxakyp.js → workspace-f0mxakyp.js} +0 -0
  753. /package/dist/chunks/{schema-f6n9ztr4.js → workspace-f6n9ztr4.js} +0 -0
  754. /package/dist/chunks/{schema-faypxj3z.js → workspace-faypxj3z.js} +0 -0
  755. /package/dist/chunks/{schema-fd410y7t.js → workspace-fd410y7t.js} +0 -0
  756. /package/dist/chunks/{schema-g4wezp1m.js → workspace-g4wezp1m.js} +0 -0
  757. /package/dist/chunks/{schema-g86h250q.js → workspace-g86h250q.js} +0 -0
  758. /package/dist/chunks/{schema-gebd4c9n.js → workspace-gebd4c9n.js} +0 -0
  759. /package/dist/chunks/{schema-gftt206x.js → workspace-gftt206x.js} +0 -0
  760. /package/dist/chunks/{schema-hcxmzztb.js → workspace-hcxmzztb.js} +0 -0
  761. /package/dist/chunks/{schema-hk9envan.js → workspace-hk9envan.js} +0 -0
  762. /package/dist/chunks/{schema-j2ntwpah.js → workspace-j2ntwpah.js} +0 -0
  763. /package/dist/chunks/{schema-j5zkgpj8.js → workspace-j5zkgpj8.js} +0 -0
  764. /package/dist/chunks/{schema-jjkms2e6.js → workspace-jjkms2e6.js} +0 -0
  765. /package/dist/chunks/{schema-jr7sbwjy.js → workspace-jr7sbwjy.js} +0 -0
  766. /package/dist/chunks/{schema-jwfs4k6c.js → workspace-jwfs4k6c.js} +0 -0
  767. /package/dist/chunks/{schema-jze0r7bz.js → workspace-jze0r7bz.js} +0 -0
  768. /package/dist/chunks/{schema-jzg6c2d5.js → workspace-jzg6c2d5.js} +0 -0
  769. /package/dist/chunks/{schema-m18g726c.js → workspace-m18g726c.js} +0 -0
  770. /package/dist/chunks/{schema-mp448xyj.js → workspace-mp448xyj.js} +0 -0
  771. /package/dist/chunks/{schema-msx8hqn2.js → workspace-msx8hqn2.js} +0 -0
  772. /package/dist/chunks/{schema-n05xt0ee.js → workspace-n05xt0ee.js} +0 -0
  773. /package/dist/chunks/{schema-n3j8tn72.js → workspace-n3j8tn72.js} +0 -0
  774. /package/dist/chunks/{schema-njntx4h6.js → workspace-njntx4h6.js} +0 -0
  775. /package/dist/chunks/{schema-pkyv6v7h.js → workspace-pkyv6v7h.js} +0 -0
  776. /package/dist/chunks/{schema-q3sfg36h.js → workspace-q3sfg36h.js} +0 -0
  777. /package/dist/chunks/{schema-q74kybfr.js → workspace-q74kybfr.js} +0 -0
  778. /package/dist/chunks/{schema-qaymkmh1.js → workspace-qaymkmh1.js} +0 -0
  779. /package/dist/chunks/{schema-qb87gjwd.js → workspace-qb87gjwd.js} +0 -0
  780. /package/dist/chunks/{schema-qfa1cgps.js → workspace-qfa1cgps.js} +0 -0
  781. /package/dist/chunks/{schema-qg3g05ea.js → workspace-qg3g05ea.js} +0 -0
  782. /package/dist/chunks/{schema-qrg20bc0.js → workspace-qrg20bc0.js} +0 -0
  783. /package/dist/chunks/{schema-rcb2kzg1.js → workspace-rcb2kzg1.js} +0 -0
  784. /package/dist/chunks/{schema-sdp7kfr6.js → workspace-sdp7kfr6.js} +0 -0
  785. /package/dist/chunks/{schema-ssg3fenm.js → workspace-ssg3fenm.js} +0 -0
  786. /package/dist/chunks/{schema-ve7vex1e.js → workspace-ve7vex1e.js} +0 -0
  787. /package/dist/chunks/{schema-w803qqfp.js → workspace-w803qqfp.js} +0 -0
  788. /package/dist/chunks/{schema-wc3fc9cn.js → workspace-wc3fc9cn.js} +0 -0
  789. /package/dist/chunks/{schema-wer8tq1h.js → workspace-wer8tq1h.js} +0 -0
  790. /package/dist/chunks/{schema-wjj7prxr.js → workspace-wjj7prxr.js} +0 -0
  791. /package/dist/chunks/{schema-wtztk69x.js → workspace-wtztk69x.js} +0 -0
  792. /package/dist/chunks/{schema-x0ckcb58.js → workspace-x0ckcb58.js} +0 -0
  793. /package/dist/chunks/{schema-x61499pn.js → workspace-x61499pn.js} +0 -0
  794. /package/dist/chunks/{schema-y44na4kk.js → workspace-y44na4kk.js} +0 -0
  795. /package/dist/chunks/{schema-y8f7s663.js → workspace-y8f7s663.js} +0 -0
  796. /package/dist/chunks/{schema-ygaqb7jw.js → workspace-ygaqb7jw.js} +0 -0
  797. /package/dist/chunks/{schema-ym463w8f.js → workspace-ym463w8f.js} +0 -0
  798. /package/dist/chunks/{schema-z5v4ffb3.js → workspace-z5v4ffb3.js} +0 -0
  799. /package/dist/chunks/{schema-z9919s4g.js → workspace-z9919s4g.js} +0 -0
@@ -1,42 +1,41 @@
1
1
  import {
2
2
  Service85,
3
3
  node89
4
- } from "./schema-phwvtd3y.js";
4
+ } from "./workspace-tvgxg3g6.js";
5
5
  import {
6
6
  environment2
7
- } from "./schema-kn8ed5j7.js";
7
+ } from "./workspace-t2s68hp7.js";
8
8
  import {
9
9
  makeDaemonTransport2
10
- } from "./schema-3t0ybcrp.js";
10
+ } from "./workspace-a058387c.js";
11
11
  import {
12
12
  __export
13
- } from "./schema-9rqn6x4v.js";
13
+ } from "./workspace-9rqn6x4v.js";
14
14
 
15
15
  // src/persistent-pty/index.ts
16
16
  var exports_persistent_pty = {};
17
17
  __export(exports_persistent_pty, {
18
18
  Handoff: () => Handoff2,
19
- NotFoundError: () => NotFoundError8,
20
- Options: () => Options7,
19
+ NotFoundError: () => NotFoundError2,
20
+ Options: () => Options3,
21
21
  PersistentPty: () => exports_persistent_pty,
22
- Service: () => Service63,
22
+ Service: () => Service24,
23
23
  UnavailableError: () => UnavailableError3,
24
- available: () => available3,
25
- configured: () => configured8,
26
- layer: () => layer23,
27
- node: () => node66
24
+ available: () => available2,
25
+ configured: () => configured3,
26
+ layer: () => layer12,
27
+ node: () => node27
28
28
  });
29
29
  import path from "node:path";
30
30
  import { Context, Effect, Layer, Schema } from "effect";
31
31
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
32
32
  import { Added, Handoff, ReadLines, Removed } from "@opencode/schema/persistent-pty";
33
- import { Session } from "@opencode/schema/session";
34
33
  import { Pty } from "@opencode/schema/pty";
35
34
  import { Global } from "@opencode/util/global";
36
35
  import { resolveBinary } from "#persistent-pty-binary";
37
36
  import { Handoff as Handoff2 } from "@opencode/schema/persistent-pty";
38
- import { available as available3 } from "#persistent-pty-binary";
39
- var Options7 = Schema.Struct({
37
+ import { available as available2 } from "#persistent-pty-binary";
38
+ var Options3 = Schema.Struct({
40
39
  handoff: Schema.optional(Handoff),
41
40
  root: Schema.optional(Schema.String)
42
41
  });
@@ -46,14 +45,14 @@ class UnavailableError3 extends Schema.TaggedError()("PersistentPty.UnavailableE
46
45
  }) {
47
46
  }
48
47
 
49
- class NotFoundError8 extends Schema.TaggedError()("PersistentPty.NotFoundError", {
48
+ class NotFoundError2 extends Schema.TaggedError()("PersistentPty.NotFoundError", {
50
49
  ptyID: Pty.ID
51
50
  }) {
52
51
  }
53
52
 
54
- class Service63 extends Context.Service()("@opencode/PersistentPty") {
53
+ class Service24 extends Context.Service()("@opencode/PersistentPty") {
55
54
  }
56
- var makeLayer = (options = {}) => Layer.effect(Service63, Effect.gen(function* () {
55
+ var makeLayer = (options = {}) => Layer.effect(Service24, Effect.gen(function* () {
57
56
  const bus = yield* Service85;
58
57
  const global = yield* Global.Service;
59
58
  const context = yield* Effect.context();
@@ -76,7 +75,7 @@ var makeLayer = (options = {}) => Layer.effect(Service63, Effect.gen(function* (
76
75
  const get = Effect.fn("PersistentPty.get")(function* (id) {
77
76
  const found = (yield* list()).find((terminal) => terminal.id === id);
78
77
  if (!found)
79
- return yield* new NotFoundError8({ ptyID: id });
78
+ return yield* new NotFoundError2({ ptyID: id });
80
79
  return found;
81
80
  });
82
81
  const create = Effect.fn("PersistentPty.create")(function* (sessionID, input) {
@@ -233,7 +232,7 @@ var makeLayer = (options = {}) => Layer.effect(Service63, Effect.gen(function* (
233
232
  }
234
233
  }).pipe(Effect.mapError(unavailable));
235
234
  if (attachment.role === "controller")
236
- current.set(Session.ID.make(attachment.terminal.group_id), id);
235
+ current.set(attachment.terminal.group_id, id);
237
236
  return {
238
237
  info: toInfo(attachment.terminal),
239
238
  role: attachment.role,
@@ -243,7 +242,7 @@ var makeLayer = (options = {}) => Layer.effect(Service63, Effect.gen(function* (
243
242
  detach: attachment.detach
244
243
  };
245
244
  });
246
- return Service63.of({
245
+ return Service24.of({
247
246
  list,
248
247
  get,
249
248
  create,
@@ -259,13 +258,13 @@ var makeLayer = (options = {}) => Layer.effect(Service63, Effect.gen(function* (
259
258
  attach
260
259
  });
261
260
  }));
262
- var layer23 = makeLayer();
263
- var configured8 = (options) => makeGlobalNode({
264
- service: Service63,
265
- layer: options === undefined ? layer23 : makeLayer(options),
261
+ var layer12 = makeLayer();
262
+ var configured3 = (options) => makeGlobalNode({
263
+ service: Service24,
264
+ layer: options === undefined ? layer12 : makeLayer(options),
266
265
  deps: [node89, Global.node]
267
266
  });
268
- var node66 = configured8();
267
+ var node27 = configured3();
269
268
  var request = (daemon, value, start = false) => daemon.request(value, start).pipe(Effect.mapError(unavailable));
270
269
  var optionalRequest = (daemon, value) => daemon.requestIfRunning(value).pipe(Effect.mapError(unavailable));
271
270
  var unexpected = (response) => Effect.fail(new UnavailableError3({ message: `unexpected opencode-pty response: ${response.type}` }));
@@ -283,7 +282,7 @@ function toInfo(value) {
283
282
  pid: value.pid ?? 0,
284
283
  ...status === "exited" ? { exitCode: value.lifecycle.exit_code ?? undefined } : {}
285
284
  }),
286
- sessionID: Session.ID.make(value.group_id),
285
+ sessionID: value.group_id,
287
286
  foregroundProcess: value.foreground_process,
288
287
  size: { cols: value.cols, rows: value.rows },
289
288
  output: { head: value.output_head, tail: value.output_tail }
@@ -301,4 +300,4 @@ function fromID(value) {
301
300
  return parsed;
302
301
  }
303
302
 
304
- export { Options7, UnavailableError3, NotFoundError8, Service63, layer23, configured8, node66, exports_persistent_pty, Handoff2, available3 };
303
+ export { Options3, UnavailableError3, NotFoundError2, Service24, layer12, configured3, node27, exports_persistent_pty, Handoff2, available2 };
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  absoluteColumn2
3
- } from "./schema-wakvkjy4.js";
3
+ } from "./workspace-wakvkjy4.js";
4
4
  import {
5
5
  ProjectTable2
6
- } from "./schema-aj7mw0zk.js";
6
+ } from "./workspace-034tev2y.js";
7
7
 
8
8
  // src/worktree/sql.ts
9
9
  import { integer, primaryKey, sqliteTable, text } from "drizzle-orm/sqlite-core";
10
10
  var WorktreeTable2 = sqliteTable("worktree", {
11
11
  project_id: text().$type().notNull().references(() => ProjectTable2.id, { onDelete: "cascade" }),
12
12
  directory: absoluteColumn2().notNull(),
13
- strategy: text(),
13
+ strategy: text().$type(),
14
14
  time_created: integer().notNull().$default(() => Date.now())
15
15
  }, (table) => [primaryKey({ columns: [table.project_id, table.directory] })]);
16
16
 
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  mergeOverlay2,
3
- Service78
4
- } from "./schema-q490b428.js";
3
+ Service71
4
+ } from "./workspace-gs67eedh.js";
5
5
  import {
6
- Service53
7
- } from "./schema-044xr5hv.js";
6
+ Service67
7
+ } from "./workspace-qssh8sag.js";
8
8
 
9
9
  // src/plugin/provider/configured.ts
10
10
  import { Effect, Option } from "effect";
11
11
  var configuredSettings2 = Effect.fn("ProviderPlugin.configuredSettings")(function* (id) {
12
- const providers = yield* Service78;
12
+ const providers = yield* Service71;
13
13
  const current = (yield* providers.get(id))?.settings;
14
- const service = yield* Effect.serviceOption(Service53);
14
+ const service = yield* Effect.serviceOption(Service67);
15
15
  const entries = Option.isSome(service) ? yield* service.value.entries() : [];
16
16
  return foldSettings2(entries, id, current);
17
17
  });
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./schema-9rqn6x4v.js";
3
+ } from "./workspace-9rqn6x4v.js";
4
4
 
5
5
  // src/v1/config/provider-options.ts
6
6
  var exports_provider_options = {};
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  PositiveInt2
3
- } from "./schema-z5v4ffb3.js";
3
+ } from "./workspace-z5v4ffb3.js";
4
4
  import {
5
5
  Action2
6
- } from "./schema-rkg4v3e5.js";
6
+ } from "./workspace-5fec3t3w.js";
7
7
  import {
8
- Info14
9
- } from "./schema-8dj74pby.js";
8
+ Info15
9
+ } from "./workspace-ynmknp8q.js";
10
10
  import {
11
- Info13
12
- } from "./schema-sxz6gkc3.js";
11
+ Info14
12
+ } from "./workspace-qa3qhgw8.js";
13
13
  import {
14
- Info12
15
- } from "./schema-wh6zw745.js";
14
+ Info17
15
+ } from "./workspace-w2h15q85.js";
16
16
  import {
17
17
  Spec2
18
- } from "./schema-0jwsre1p.js";
18
+ } from "./workspace-qgn6gcr1.js";
19
19
  import {
20
- Info11
21
- } from "./schema-9hwaqfsw.js";
20
+ Info18
21
+ } from "./workspace-fcyg4h47.js";
22
22
  import {
23
23
  normalizeAction2,
24
24
  migrateAgent2,
@@ -28,10 +28,10 @@ import {
28
28
  migrateMcp2,
29
29
  migrateProvider2,
30
30
  providerID2
31
- } from "./schema-bkrhp30v.js";
31
+ } from "./workspace-zx59jank.js";
32
32
  import {
33
33
  __export
34
- } from "./schema-9rqn6x4v.js";
34
+ } from "./workspace-9rqn6x4v.js";
35
35
 
36
36
  // src/config/normalize.ts
37
37
  var exports_normalize = {};
@@ -98,12 +98,12 @@ function normalize2(input) {
98
98
  const legacyReferences = decodeMap(input.reference, ConfigReference.Entry, ["reference"], diagnostics, decodeEncoded);
99
99
  const nativeReferences = decodeMap(input.references, ConfigReference.Entry, ["references"], diagnostics, decodeEncoded);
100
100
  mergeMap(encoded, "references", legacyReferences, nativeReferences, isRecord(input.reference) || isRecord(input.references), diagnostics);
101
- const legacyCommands = decodeMap(input.command, Info13, ["command"], diagnostics, decodeValue);
101
+ const legacyCommands = decodeMap(input.command, Info14, ["command"], diagnostics, decodeValue);
102
102
  diagnoseSelectionMap(input.command, ["command"], diagnostics);
103
103
  const migratedCommands = mapValues(legacyCommands, (value) => canonical(ConfigCommand.Info, migrateCommand2(value)));
104
104
  const nativeCommands = decodeMap(input.commands, ConfigCommand.Info, ["commands"], diagnostics, decodeEncoded);
105
105
  mergeMap(encoded, "commands", migratedCommands, nativeCommands, isRecord(input.command) || isRecord(input.commands), diagnostics);
106
- const legacyAgents = mapValues(decodeMap(input.agent, Info14, ["agent"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2(value)));
106
+ const legacyAgents = mapValues(decodeMap(input.agent, Info15, ["agent"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2(value)));
107
107
  const legacySmallModel = own(input, "small_model") ? decodeValue(Schema.String, input.small_model, ["small_model"], diagnostics) : undefined;
108
108
  const migratedSmallModel = modelSelection2(legacySmallModel);
109
109
  if (legacySmallModel && !migratedSmallModel)
@@ -117,7 +117,7 @@ function normalize2(input) {
117
117
  model: migratedSmallModel,
118
118
  ...legacyAgents.title
119
119
  };
120
- const modeAgents = mapValues(decodeMap(input.mode, Info14, ["mode"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2({ ...value, mode: "primary" })));
120
+ const modeAgents = mapValues(decodeMap(input.mode, Info15, ["mode"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2({ ...value, mode: "primary" })));
121
121
  const migratedAgents = mergeMaps(legacyAgents, modeAgents, ["agents"], diagnostics);
122
122
  const nativeAgents = decodeMap(input.agents, ConfigAgent.Info, ["agents"], diagnostics, decodeEncoded);
123
123
  diagnoseAgentUnsupported(input.agent, ["agent"], diagnostics);
@@ -219,7 +219,7 @@ function normalizeMcp(input, encoded, diagnostics) {
219
219
  normalizeMcpTimeout(typeof value === "number" ? migrateMcpTimeout2(value) : value, timeout, path, diagnostics);
220
220
  return;
221
221
  }
222
- const server = decodeValue(Info12, value, path, diagnostics);
222
+ const server = decodeValue(Info17, value, path, diagnostics);
223
223
  if (server !== undefined)
224
224
  setOwn(legacyServers, name, canonical(ConfigMCP.Server, migrateMcp2(server)));
225
225
  });
@@ -435,7 +435,7 @@ function migrateProviders(value, diagnostics) {
435
435
  diagnoseProviderUnsupported(raw, path, diagnostics);
436
436
  if (invalidProviderOverlays(raw, path, diagnostics))
437
437
  return [];
438
- const provider = decodeValue(Info11, raw, path, diagnostics);
438
+ const provider = decodeValue(Info18, raw, path, diagnostics);
439
439
  if (provider === undefined)
440
440
  return [];
441
441
  const destination = providerID2(name);
@@ -1,36 +1,36 @@
1
1
  import {
2
- ID8,
3
- Info9,
2
+ ID9,
3
+ Info13,
4
4
  SessionSchema2
5
- } from "./schema-grqp3cmb.js";
5
+ } from "./workspace-nvxqht09.js";
6
6
  import {
7
7
  RelativePath2
8
- } from "./schema-z5v4ffb3.js";
8
+ } from "./workspace-z5v4ffb3.js";
9
9
  import {
10
10
  Service86,
11
11
  node90
12
- } from "./schema-38a6f3y0.js";
12
+ } from "./workspace-s1v8awss.js";
13
13
  import {
14
14
  isSynced2,
15
15
  Service85,
16
16
  node89
17
- } from "./schema-phwvtd3y.js";
17
+ } from "./workspace-tvgxg3g6.js";
18
18
  import {
19
- Service83,
20
- node87
21
- } from "./schema-ygxsryh2.js";
19
+ Service78,
20
+ node82
21
+ } from "./workspace-g1z83s7x.js";
22
22
  import {
23
- Service42,
24
- node44
25
- } from "./schema-sxzvkvgj.js";
23
+ Service45,
24
+ node47
25
+ } from "./workspace-mx9vqzsb.js";
26
26
  import {
27
27
  SessionEvent2
28
- } from "./schema-ec1grn59.js";
28
+ } from "./workspace-ec1grn59.js";
29
29
  import {
30
30
  SessionMessageTable2
31
- } from "./schema-dvj9ct8m.js";
31
+ } from "./workspace-998yhzzq.js";
32
32
  import {
33
- NotFoundError7,
33
+ NotFoundError5,
34
34
  InvalidListCursorError2,
35
35
  MessageNotFoundError2,
36
36
  ForkEmptyError2,
@@ -42,78 +42,78 @@ import {
42
42
  BusyError2,
43
43
  InboxConflictError2,
44
44
  SkillNotFoundError2
45
- } from "./schema-8hej200e.js";
45
+ } from "./workspace-j6jn98s4.js";
46
46
  import {
47
47
  current2
48
- } from "./schema-tp3t781r.js";
48
+ } from "./workspace-2ahabfrv.js";
49
49
  import {
50
- node43
51
- } from "./schema-md39vkm3.js";
50
+ node45
51
+ } from "./workspace-fstg4fsa.js";
52
52
  import {
53
53
  snapshot2
54
- } from "./schema-y38m9zb5.js";
54
+ } from "./workspace-m28avgzz.js";
55
55
  import {
56
56
  Slug2
57
- } from "./schema-gebd4c9n.js";
57
+ } from "./workspace-gebd4c9n.js";
58
58
  import {
59
59
  SessionAlreadyProjected2,
60
- node26
61
- } from "./schema-1mx78vzr.js";
60
+ node32
61
+ } from "./workspace-2phre6gr.js";
62
62
  import {
63
63
  Metadata2,
64
- node58
65
- } from "./schema-mpd49xq9.js";
64
+ node64
65
+ } from "./workspace-m6fea7hh.js";
66
66
  import {
67
67
  ListInput3,
68
- Service50,
69
- node52
70
- } from "./schema-gt4kt70v.js";
68
+ Service47,
69
+ node49
70
+ } from "./workspace-jjrctdmw.js";
71
71
  import {
72
- Service44,
73
- node46
74
- } from "./schema-mt5v9ry9.js";
72
+ Service51,
73
+ node53
74
+ } from "./workspace-6gzxrv04.js";
75
75
  import {
76
- Service39,
77
- node42
78
- } from "./schema-yds4b9yz.js";
76
+ Service41,
77
+ node44
78
+ } from "./workspace-3eyct666.js";
79
79
  import {
80
80
  llmClient2
81
- } from "./schema-775gj3j1.js";
81
+ } from "./workspace-775gj3j1.js";
82
82
  import {
83
- Service28,
84
- node32
85
- } from "./schema-p33ckn3v.js";
83
+ Service32,
84
+ node36
85
+ } from "./workspace-pbjcynf2.js";
86
86
  import {
87
87
  generate2
88
- } from "./schema-dqj1x724.js";
88
+ } from "./workspace-cbartrqj.js";
89
89
  import {
90
90
  execute2
91
- } from "./schema-ycefwdcs.js";
91
+ } from "./workspace-zfm65xnk.js";
92
92
  import {
93
- Service62,
94
- node65
95
- } from "./schema-47rxzzmb.js";
93
+ Service54,
94
+ node56
95
+ } from "./workspace-cah5dkv9.js";
96
96
  import {
97
97
  DestinationNotFoundError2,
98
98
  DestinationNotDirectoryError2,
99
99
  DestinationUnavailableError2,
100
- Service22,
101
- node25
102
- } from "./schema-ysy9ysqp.js";
100
+ Service28,
101
+ node31
102
+ } from "./workspace-5tgqe19z.js";
103
103
  import {
104
- Service46,
105
- node48
106
- } from "./schema-be7qvw84.js";
104
+ Service64,
105
+ node67
106
+ } from "./workspace-91p1v22t.js";
107
107
  import {
108
- make12
109
- } from "./schema-6qbhemwa.js";
108
+ make13
109
+ } from "./workspace-s8ch1s93.js";
110
110
  import {
111
111
  TurnRangeError2,
112
112
  turn2
113
- } from "./schema-bnjeam3m.js";
113
+ } from "./workspace-rzp7a2t4.js";
114
114
  import {
115
115
  __export
116
- } from "./schema-9rqn6x4v.js";
116
+ } from "./workspace-9rqn6x4v.js";
117
117
 
118
118
  // src/session.ts
119
119
  var exports_session = {};
@@ -124,55 +124,55 @@ __export(exports_session, {
124
124
  DestinationNotDirectoryError: () => DestinationNotDirectoryError2,
125
125
  DestinationNotFoundError: () => DestinationNotFoundError2,
126
126
  DestinationUnavailableError: () => DestinationUnavailableError2,
127
- ID: () => ID8,
127
+ ForkEmptyError: () => ForkEmptyError2,
128
+ ID: () => ID9,
128
129
  InboxConflictError: () => InboxConflictError2,
129
- Info: () => Info9,
130
+ Info: () => Info13,
130
131
  InvalidListCursorError: () => InvalidListCursorError2,
131
132
  ListAnchor: () => ListAnchor2,
132
133
  ListCursor: () => ListCursor2,
133
134
  ListInput: () => ListInput2,
134
135
  MessageDecodeError: () => MessageDecodeError2,
135
136
  MessageNotFoundError: () => MessageNotFoundError2,
136
- NotFoundError: () => NotFoundError7,
137
+ NotFoundError: () => NotFoundError5,
137
138
  PromptConflictError: () => PromptConflictError2,
138
- Service: () => Service21,
139
+ Service: () => Service26,
139
140
  Session: () => exports_session,
140
141
  SessionSchema: () => SessionSchema2,
141
142
  SkillNotFoundError: () => SkillNotFoundError2,
142
143
  SyntheticConflictError: () => SyntheticConflictError2,
143
144
  TurnRangeError: () => TurnRangeError2,
144
- node: () => node24
145
+ node: () => node29
145
146
  });
146
- import { DateTime, Effect, Layer, Schema, Context, Stream } from "effect";
147
+ import { DateTime, Effect, Layer, Context, Stream } from "effect";
147
148
  import { LLMClient } from "@opencode/ai";
148
149
  import { ListAnchor as ListAnchor2, ListCursor as ListCursor2 } from "@opencode/schema/session";
149
150
  import { and, desc, eq } from "drizzle-orm";
150
- import { Model } from "@opencode/schema/model";
151
151
  import path from "path";
152
152
  import { Node } from "@opencode/util/effect/app-node";
153
153
  import { FSUtil } from "@opencode/util/fs-util";
154
154
  var ListInput2 = ListInput3;
155
155
  var DefaultListLimit = 50;
156
- class Service21 extends Context.Service()("@opencode/Session") {
156
+ class Service26 extends Context.Service()("@opencode/Session") {
157
157
  }
158
- var layer = Layer.effect(Service21, Effect.gen(function* () {
158
+ var layer = Layer.effect(Service26, Effect.gen(function* () {
159
159
  const app = yield* Metadata2;
160
160
  const database = yield* Service86;
161
161
  const db = database.db;
162
162
  const bus = yield* Service85;
163
- const projects = yield* Service83;
164
- const execution = yield* Service39;
163
+ const projects = yield* Service78;
164
+ const execution = yield* Service41;
165
165
  const llm = yield* LLMClient.Service;
166
- const transport = yield* Service28;
167
- const store = yield* Service50;
168
- const instances = yield* Service42;
169
- const moves = yield* Service22;
170
- const jobs = yield* Service44;
171
- const environments = yield* Service46;
172
- const locations = yield* Service62;
173
- const sessions = yield* make12();
174
- const isDurableSessionEvent = Schema.is(SessionEvent2.Durable);
175
- const result = Service21.of({
166
+ const transport = yield* Service32;
167
+ const store = yield* Service47;
168
+ const instances = yield* Service45;
169
+ const moves = yield* Service28;
170
+ const jobs = yield* Service51;
171
+ const environments = yield* Service64;
172
+ const locations = yield* Service54;
173
+ const sessions = yield* make13();
174
+ const isDurableSessionEvent = (item) => Object.hasOwn(SessionEvent2.Durable.cases, item.type);
175
+ const result = Service26.of({
176
176
  create: Effect.fn("Session.create")(function* (input) {
177
177
  const sessionID = input.id ?? SessionSchema2.ID.create();
178
178
  const recorded = yield* store.get(sessionID);
@@ -180,7 +180,7 @@ var layer = Layer.effect(Service21, Effect.gen(function* () {
180
180
  return recorded;
181
181
  const parent = input.parentID ? yield* store.get(input.parentID) : undefined;
182
182
  if (input.parentID && parent === undefined)
183
- return yield* new NotFoundError7({ sessionID: input.parentID });
183
+ return yield* new NotFoundError5({ sessionID: input.parentID });
184
184
  const location = parent?.location ?? input.location;
185
185
  if (location === undefined)
186
186
  return yield* Effect.die(new Error("Session.create requires either location or an existing parentID"));
@@ -197,11 +197,7 @@ var layer = Layer.effect(Service21, Effect.gen(function* () {
197
197
  agent: input.agent,
198
198
  metadata: input.metadata ?? parent?.metadata,
199
199
  permissions: input.permissions ?? parent?.permissions,
200
- model: input.model ? {
201
- id: Model.ID.make(input.model.id),
202
- providerID: input.model.providerID,
203
- variant: input.model.variant
204
- } : undefined
200
+ model: input.model
205
201
  }, { location }).pipe(Effect.as({ type: "created" }), Effect.catchDefect((defect) => {
206
202
  if (!(defect instanceof SessionAlreadyProjected2)) {
207
203
  return Effect.die(defect);
@@ -301,11 +297,11 @@ var layer = Layer.effect(Service21, Effect.gen(function* () {
301
297
  prompt: (input) => sessions.forSession(input.sessionID).prompt(input),
302
298
  generate: Effect.fn("Session.generate")(function* (input) {
303
299
  const session = yield* result.get(input.sessionID);
304
- return yield* generate2({ session, prompt: input.prompt }).pipe(Effect.provideService(Service42, instances), Effect.provideService(Service86, database), Effect.provideService(LLMClient.Service, llm));
300
+ return yield* generate2({ session, prompt: input.prompt }).pipe(Effect.provideService(Service45, instances), Effect.provideService(Service86, database), Effect.provideService(LLMClient.Service, llm));
305
301
  }),
306
302
  command: Effect.fn("Session.command")(function* (input) {
307
303
  const session = yield* result.get(input.sessionID);
308
- return yield* execute2({ ...input, session }).pipe(Effect.provideService(Service42, instances));
304
+ return yield* execute2({ ...input, session }).pipe(Effect.provideService(Service45, instances));
309
305
  }),
310
306
  shell: (input) => sessions.forSession(input.sessionID).shell(input),
311
307
  skill: (input) => sessions.forSession(input.sessionID).skill(input),
@@ -349,27 +345,27 @@ var layer = Layer.effect(Service21, Effect.gen(function* () {
349
345
  });
350
346
  return result;
351
347
  }));
352
- var node24 = Node.makeGlobalNode({
353
- service: Service21,
348
+ var node29 = Node.makeGlobalNode({
349
+ service: Service26,
354
350
  layer,
355
351
  deps: [
356
- node46,
357
- node48,
352
+ node53,
353
+ node67,
358
354
  node90,
359
355
  node89,
360
- node87,
361
- node42,
362
- node32,
363
- llmClient2,
364
- node52,
356
+ node82,
365
357
  node44,
366
- node43,
367
- node25,
368
- node26,
369
- node65,
358
+ node36,
359
+ llmClient2,
360
+ node49,
361
+ node47,
362
+ node45,
363
+ node31,
364
+ node32,
365
+ node56,
370
366
  FSUtil.node,
371
- node58
367
+ node64
372
368
  ]
373
369
  });
374
370
 
375
- export { ListAnchor2, ListCursor2, ListInput2, Service21, node24, exports_session };
371
+ export { ListAnchor2, ListCursor2, ListInput2, Service26, node29, exports_session };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./schema-9rqn6x4v.js";
3
+ } from "./workspace-9rqn6x4v.js";
4
4
 
5
5
  // src/workspace/driver.ts
6
6
  var exports_driver = {};
@@ -11,7 +11,7 @@ __export(exports_driver, {
11
11
  RegistryService: () => RegistryService2,
12
12
  WorkspaceDriver: () => exports_driver,
13
13
  make: () => make21,
14
- node: () => node73,
14
+ node: () => node78,
15
15
  registry: () => registry2,
16
16
  registryNode: () => registryNode2
17
17
  });
@@ -44,6 +44,6 @@ var registryNode2 = (drivers) => makeGlobalNode({
44
44
  layer: Layer.succeed(RegistryService2, RegistryService2.of(registry2(drivers))),
45
45
  deps: []
46
46
  });
47
- var node73 = registryNode2({});
47
+ var node78 = registryNode2({});
48
48
 
49
- export { Binding2, Error5, ProviderNotFound2, make21, RegistryService2, registry2, registryNode2, node73, exports_driver };
49
+ export { Binding2, Error5, ProviderNotFound2, make21, RegistryService2, registry2, registryNode2, node78, exports_driver };