@opencode-ai/core 0.0.0-beta-18999 → 0.0.0-beta-19086

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 (802) hide show
  1. package/dist/account/sql.js +2 -2
  2. package/dist/agent.js +70 -70
  3. package/dist/aisdk-native.js +3 -3
  4. package/dist/aisdk.js +4 -4
  5. package/dist/app.js +2 -2
  6. package/dist/bus.js +68 -68
  7. package/dist/catalog.js +78 -78
  8. package/dist/chunks/{model-resolver-0n1ech8q.js → schema-078tha6v.js} +89 -89
  9. package/dist/chunks/{model-resolver-0ag03ecw.js → schema-0ag03ecw.js} +2 -2
  10. package/dist/chunks/{model-resolver-nr5fgbs6.js → schema-0nhdpq2e.js} +7 -7
  11. package/dist/chunks/{model-resolver-0pc4kdn1.js → schema-0pc4kdn1.js} +2 -2
  12. package/dist/chunks/{model-resolver-0rz7yd7x.js → schema-0rz7yd7x.js} +1 -1
  13. package/dist/chunks/{model-resolver-gst5vhy7.js → schema-11qadcdt.js} +12 -12
  14. package/dist/chunks/{model-resolver-67ndm1z2.js → schema-1escsep2.js} +51 -51
  15. package/dist/chunks/{model-resolver-gfr7wgjb.js → schema-1j302hhe.js} +7 -7
  16. package/dist/chunks/{model-resolver-qp4cj2b0.js → schema-1jjzsk9c.js} +4 -4
  17. package/dist/chunks/{model-resolver-8gv3hynm.js → schema-1nf5m1zv.js} +13 -13
  18. package/dist/chunks/{model-resolver-czskr0xw.js → schema-1qtszg6j.js} +3 -3
  19. package/dist/chunks/{model-resolver-81kadfkq.js → schema-22x56hdn.js} +2 -2
  20. package/dist/chunks/{model-resolver-264e1nfp.js → schema-264e1nfp.js} +2 -2
  21. package/dist/chunks/{model-resolver-8ezmrsyj.js → schema-273erafq.js} +6 -2
  22. package/dist/chunks/{model-resolver-td9hry5r.js → schema-2c5k0n78.js} +4 -4
  23. package/dist/chunks/{model-resolver-tmfv98ar.js → schema-2g4twk0n.js} +8 -8
  24. package/dist/chunks/{model-resolver-2sqw2jjm.js → schema-2sqw2jjm.js} +3 -3
  25. package/dist/chunks/{model-resolver-326j4s6w.js → schema-326j4s6w.js} +2 -2
  26. package/dist/chunks/{model-resolver-4fhh1fay.js → schema-32ypdbhb.js} +8 -8
  27. package/dist/chunks/{model-resolver-3chx3ng6.js → schema-3chx3ng6.js} +1 -1
  28. package/dist/chunks/{model-resolver-3ep0k87g.js → schema-3ep0k87g.js} +3 -3
  29. package/dist/chunks/{model-resolver-3mc1hhwa.js → schema-3mc1hhwa.js} +3 -3
  30. package/dist/chunks/{model-resolver-rmrmrh60.js → schema-3rcd4hwd.js} +10 -10
  31. package/dist/chunks/{model-resolver-42zyazrq.js → schema-42zyazrq.js} +1 -1
  32. package/dist/chunks/{model-resolver-4fr8jywp.js → schema-43f3kvve.js} +2 -2
  33. package/dist/chunks/{model-resolver-c71vnwdm.js → schema-45pacypk.js} +3 -3
  34. package/dist/chunks/{model-resolver-p7kv5kq9.js → schema-4hbpra3r.js} +22 -22
  35. package/dist/chunks/{model-resolver-4v6g3p22.js → schema-4v6g3p22.js} +1 -1
  36. package/dist/chunks/{model-resolver-4w0ckvbq.js → schema-4w0ckvbq.js} +3 -3
  37. package/dist/chunks/{model-resolver-w53bf3d8.js → schema-4wg4838e.js} +6 -6
  38. package/dist/chunks/{model-resolver-nz4de5b9.js → schema-4xf915ct.js} +3 -9
  39. package/dist/chunks/{model-resolver-51t2tyks.js → schema-51t2tyks.js} +1 -1
  40. package/dist/chunks/{model-resolver-53jxjgr1.js → schema-53jxjgr1.js} +2 -2
  41. package/dist/chunks/{model-resolver-qa2w238n.js → schema-56r3658h.js} +3 -3
  42. package/dist/chunks/{model-resolver-zz8p0qp8.js → schema-57a903bc.js} +3 -3
  43. package/dist/chunks/{model-resolver-a8ftngxw.js → schema-57j2wsfm.js} +10 -10
  44. package/dist/chunks/{model-resolver-t3r0ngmb.js → schema-5djqxq12.js} +8 -7
  45. package/dist/chunks/{model-resolver-5swfpf97.js → schema-5j084t57.js} +3 -3
  46. package/dist/chunks/{model-resolver-r32713pr.js → schema-5qrxwkqv.js} +6 -6
  47. package/dist/chunks/{model-resolver-9w1bs40q.js → schema-5r9z69ez.js} +6 -6
  48. package/dist/chunks/{model-resolver-5vbk082d.js → schema-5vbk082d.js} +2 -2
  49. package/dist/chunks/{model-resolver-5y5kqjze.js → schema-5y5kqjze.js} +1 -1
  50. package/dist/chunks/{model-resolver-7qpdgm16.js → schema-600p3j5r.js} +96 -96
  51. package/dist/chunks/{model-resolver-1qdep925.js → schema-62kj29x0.js} +6 -6
  52. package/dist/chunks/schema-63c3fvvm.js +49 -0
  53. package/dist/chunks/{model-resolver-yr82tean.js → schema-65mjrg75.js} +12 -11
  54. package/dist/chunks/{model-resolver-66mds5ht.js → schema-66mds5ht.js} +1 -1
  55. package/dist/chunks/{model-resolver-nj6yqve1.js → schema-683rspwx.js} +10 -5
  56. package/dist/chunks/{model-resolver-68yag814.js → schema-68yag814.js} +1 -1
  57. package/dist/chunks/{model-resolver-1pfcdes2.js → schema-69tvj744.js} +4 -4
  58. package/dist/chunks/{model-resolver-0vkt3tck.js → schema-6b7ybj1y.js} +6 -6
  59. package/dist/chunks/{model-resolver-n120nzhy.js → schema-6bwmg5am.js} +2 -2
  60. package/dist/chunks/{model-resolver-6bxzghb6.js → schema-6bxzghb6.js} +1 -1
  61. package/dist/chunks/{model-resolver-6hppa3xw.js → schema-6hppa3xw.js} +2 -2
  62. package/dist/chunks/{model-resolver-6vbv4je1.js → schema-6vbv4je1.js} +2 -2
  63. package/dist/chunks/{model-resolver-6wsfy4sp.js → schema-6wsfy4sp.js} +2 -2
  64. package/dist/chunks/{model-resolver-qjkhdsbm.js → schema-7480bqmm.js} +7 -7
  65. package/dist/chunks/{model-resolver-ath9jwvp.js → schema-766yrv8h.js} +8 -8
  66. package/dist/chunks/{model-resolver-m721zqr5.js → schema-79anhy2w.js} +5 -5
  67. package/dist/chunks/{model-resolver-3rvvyz0j.js → schema-7cnts1xz.js} +24 -46
  68. package/dist/chunks/{model-resolver-7myqjfx6.js → schema-7myqjfx6.js} +1 -1
  69. package/dist/chunks/{model-resolver-z5qwd455.js → schema-7nm0rjt9.js} +2 -2
  70. package/dist/chunks/{model-resolver-xn34k971.js → schema-7vrvnzaw.js} +7 -7
  71. package/dist/chunks/{model-resolver-bsksdwjr.js → schema-82xa3tgg.js} +3 -3
  72. package/dist/chunks/{model-resolver-89ttfx5q.js → schema-89ttfx5q.js} +2 -2
  73. package/dist/chunks/{model-resolver-7hg4wk1y.js → schema-8ahgknnv.js} +4 -4
  74. package/dist/chunks/{model-resolver-m3k5wttq.js → schema-8c5xq4gn.js} +6 -6
  75. package/dist/chunks/{model-resolver-7fndj6sb.js → schema-8e4szv2f.js} +1 -1
  76. package/dist/chunks/{model-resolver-qtvfzxt9.js → schema-8egdkw7k.js} +6 -6
  77. package/dist/chunks/{model-resolver-8manx9kj.js → schema-8manx9kj.js} +2 -2
  78. package/dist/chunks/{model-resolver-tn3vtv4h.js → schema-8scqw7rh.js} +3 -3
  79. package/dist/chunks/{model-resolver-vsg6fsmg.js → schema-8tmvw628.js} +4 -4
  80. package/dist/chunks/{model-resolver-8y5vxhk7.js → schema-8y5vxhk7.js} +1 -1
  81. package/dist/chunks/{model-resolver-9dbv6hqn.js → schema-9dbv6hqn.js} +2 -2
  82. package/dist/chunks/{model-resolver-vbaqktrz.js → schema-9kt3hna5.js} +2 -2
  83. package/dist/chunks/{model-resolver-3tg0cqem.js → schema-a42y10z7.js} +5 -2
  84. package/dist/chunks/{model-resolver-wz5907jr.js → schema-a4wk7wxx.js} +7 -7
  85. package/dist/chunks/{model-resolver-nx1h5ew3.js → schema-a6mq1kfm.js} +17 -17
  86. package/dist/chunks/{model-resolver-a6xqkezx.js → schema-a6xqkezx.js} +1 -1
  87. package/dist/chunks/{model-resolver-tmcx57d7.js → schema-aeh43dyz.js} +4 -4
  88. package/dist/chunks/{model-resolver-pnesahrw.js → schema-aep5wxg9.js} +4 -4
  89. package/dist/chunks/{model-resolver-af42tqdk.js → schema-af42tqdk.js} +2 -2
  90. package/dist/chunks/{model-resolver-pk53j7qk.js → schema-aseryw3y.js} +11 -6
  91. package/dist/chunks/{model-resolver-r48cnx81.js → schema-attsg8d3.js} +2 -2
  92. package/dist/chunks/schema-axwdyrw6.js +173 -0
  93. package/dist/chunks/{model-resolver-h3jh27nc.js → schema-az8m3c6n.js} +2 -2
  94. package/dist/chunks/{model-resolver-qnbjsbym.js → schema-b4v20za7.js} +64 -60
  95. package/dist/chunks/{model-resolver-158s554p.js → schema-b9bp1awf.js} +9 -9
  96. package/dist/chunks/{model-resolver-y6z22yy0.js → schema-bbd9spwe.js} +2 -2
  97. package/dist/chunks/{model-resolver-36pw8tps.js → schema-bbwsb44a.js} +4 -4
  98. package/dist/chunks/{model-resolver-bd2mvb8t.js → schema-bd2mvb8t.js} +2 -2
  99. package/dist/chunks/{model-resolver-bnha4c96.js → schema-bnha4c96.js} +1 -1
  100. package/dist/chunks/{model-resolver-whbgthyk.js → schema-br63wb0q.js} +14 -14
  101. package/dist/chunks/{model-resolver-qc9f9sqe.js → schema-by2e2whs.js} +3 -3
  102. package/dist/chunks/{model-resolver-c54e84vp.js → schema-c54e84vp.js} +1 -1
  103. package/dist/chunks/{model-resolver-c55cgmsp.js → schema-c55cgmsp.js} +2 -2
  104. package/dist/chunks/{model-resolver-8tcjfzdf.js → schema-c5m7vmrw.js} +8 -8
  105. package/dist/chunks/{model-resolver-c8ya26sa.js → schema-c8ya26sa.js} +2 -2
  106. package/dist/chunks/{model-resolver-f4vh7ye9.js → schema-cdy2ypjf.js} +5 -5
  107. package/dist/chunks/{model-resolver-pm5ge93v.js → schema-ce4hyqkb.js} +12 -12
  108. package/dist/chunks/{model-resolver-vsqc2j7q.js → schema-chf795vd.js} +6 -7
  109. package/dist/chunks/{model-resolver-ckcq38kt.js → schema-ckcq38kt.js} +2 -2
  110. package/dist/chunks/{model-resolver-ax34jjm3.js → schema-ctegtqnq.js} +9 -9
  111. package/dist/chunks/{model-resolver-t54q55m1.js → schema-d26zqcqt.js} +7 -7
  112. package/dist/chunks/{model-resolver-d4h7vwhh.js → schema-d4h7vwhh.js} +2 -2
  113. package/dist/chunks/{model-resolver-18medfkf.js → schema-d6pj50wp.js} +6 -4
  114. package/dist/chunks/{model-resolver-psa1vmjb.js → schema-db3nafyd.js} +5 -5
  115. package/dist/chunks/{model-resolver-dexm22yg.js → schema-dexm22yg.js} +1 -1
  116. package/dist/chunks/{model-resolver-xq6chnhm.js → schema-df3kvyqj.js} +4 -4
  117. package/dist/chunks/{model-resolver-6a909wmz.js → schema-dj1xm95f.js} +2 -2
  118. package/dist/chunks/{model-resolver-dyax5m0p.js → schema-dkkkrjgz.js} +2 -2
  119. package/dist/chunks/{model-resolver-hwtjfpwk.js → schema-dt5yw4ma.js} +11 -13
  120. package/dist/chunks/{model-resolver-dtm6fkaa.js → schema-dtm6fkaa.js} +2 -2
  121. package/dist/chunks/{model-resolver-3ebhgms6.js → schema-dwvtf5ds.js} +6 -5
  122. package/dist/chunks/{model-resolver-dyhtrhy2.js → schema-dyhtrhy2.js} +1 -1
  123. package/dist/chunks/{model-resolver-e0n16vwa.js → schema-e0n16vwa.js} +2 -2
  124. package/dist/chunks/{model-resolver-m6rc87ej.js → schema-e2jftvbf.js} +11 -11
  125. package/dist/chunks/{model-resolver-50zp5qas.js → schema-e7nnc03a.js} +5 -5
  126. package/dist/chunks/{model-resolver-eb87q0yv.js → schema-eb87q0yv.js} +1 -1
  127. package/dist/chunks/{model-resolver-edxnhgvj.js → schema-edxnhgvj.js} +1 -1
  128. package/dist/chunks/{model-resolver-v1bt6mkm.js → schema-egn23jh0.js} +7 -7
  129. package/dist/chunks/{model-resolver-vcygwjbr.js → schema-enmke0a7.js} +5 -5
  130. package/dist/chunks/{model-resolver-p9kbbxty.js → schema-erys6mk6.js} +6 -6
  131. package/dist/chunks/{model-resolver-esv5q40e.js → schema-esv5q40e.js} +1 -1
  132. package/dist/chunks/{model-resolver-etbnsc4s.js → schema-etbnsc4s.js} +2 -2
  133. package/dist/chunks/{model-resolver-8gd72fyf.js → schema-eyr78tzb.js} +5 -5
  134. package/dist/chunks/{model-resolver-f2nhxfjt.js → schema-f2nhxfjt.js} +2 -2
  135. package/dist/chunks/{model-resolver-r6sdn3zs.js → schema-f3dqxhwr.js} +5 -5
  136. package/dist/chunks/{model-resolver-f8wvq04h.js → schema-f8wvq04h.js} +1 -1
  137. package/dist/chunks/{model-resolver-b2mj9w79.js → schema-fjb24bmd.js} +4 -4
  138. package/dist/chunks/{model-resolver-fqehnn9p.js → schema-fqehnn9p.js} +2 -2
  139. package/dist/chunks/{model-resolver-ns8veh4z.js → schema-fxa7vmmn.js} +5 -5
  140. package/dist/chunks/schema-g1j3gwgp.js +74 -0
  141. package/dist/chunks/{model-resolver-48xfm273.js → schema-g4r9xws8.js} +3 -3
  142. package/dist/chunks/{model-resolver-136c8mz3.js → schema-g70ev3a2.js} +4 -4
  143. package/dist/chunks/{model-resolver-g9dd0fv6.js → schema-g9dd0fv6.js} +2 -2
  144. package/dist/chunks/{model-resolver-gb1z7yet.js → schema-gb1z7yet.js} +2 -2
  145. package/dist/chunks/{model-resolver-gc513wew.js → schema-gc513wew.js} +2 -2
  146. package/dist/chunks/{model-resolver-bztt47zv.js → schema-gfvhypam.js} +4 -4
  147. package/dist/chunks/{model-resolver-njadyfry.js → schema-gn7btdpk.js} +21 -19
  148. package/dist/chunks/{model-resolver-grfz4hhj.js → schema-grfz4hhj.js} +1 -1
  149. package/dist/chunks/{model-resolver-03ddbsr9.js → schema-gtyed076.js} +65 -34
  150. package/dist/chunks/{model-resolver-hqw3c13n.js → schema-h08da7w8.js} +15 -15
  151. package/dist/chunks/{model-resolver-ef1eacza.js → schema-h0f1t520.js} +3 -3
  152. package/dist/chunks/{model-resolver-7g3szxan.js → schema-h3y8g5ka.js} +3 -3
  153. package/dist/chunks/{model-resolver-bb4yrkhg.js → schema-h4g121et.js} +4 -4
  154. package/dist/chunks/{model-resolver-dpwr0jqv.js → schema-h650edej.js} +5 -5
  155. package/dist/chunks/{model-resolver-kr9vgar1.js → schema-hbtzhcxr.js} +13 -5
  156. package/dist/chunks/{model-resolver-hgr9y616.js → schema-hgr9y616.js} +1 -1
  157. package/dist/chunks/{model-resolver-hpkeh7wf.js → schema-hpkeh7wf.js} +1 -1
  158. package/dist/chunks/{model-resolver-hs51b0fc.js → schema-hs51b0fc.js} +1 -1
  159. package/dist/chunks/{model-resolver-htmhxvv7.js → schema-htmhxvv7.js} +1 -1
  160. package/dist/chunks/{model-resolver-hvydqsq5.js → schema-hvydqsq5.js} +2 -2
  161. package/dist/chunks/{model-resolver-hy5n5jcn.js → schema-hy5n5jcn.js} +1 -1
  162. package/dist/chunks/{model-resolver-hzag9ake.js → schema-hzag9ake.js} +1 -1
  163. package/dist/chunks/{model-resolver-hzwx8p6y.js → schema-hzwx8p6y.js} +1 -1
  164. package/dist/chunks/{model-resolver-j0feex7e.js → schema-j0feex7e.js} +1 -1
  165. package/dist/chunks/{model-resolver-eqn19kbv.js → schema-j2a9eaz5.js} +3 -3
  166. package/dist/chunks/{model-resolver-dyrfpcd0.js → schema-j6s3yjyb.js} +68 -20
  167. package/dist/chunks/{model-resolver-n3ej23f6.js → schema-j8tff6ta.js} +5 -5
  168. package/dist/chunks/{model-resolver-jar52fmb.js → schema-jar52fmb.js} +3 -3
  169. package/dist/chunks/{model-resolver-h01zxzks.js → schema-jepqtr73.js} +6 -6
  170. package/dist/chunks/schema-jfv5epsj.js +60 -0
  171. package/dist/chunks/{model-resolver-pmxa1kd1.js → schema-jgzett5g.js} +4 -4
  172. package/dist/chunks/{model-resolver-yt21b5ce.js → schema-jq0ga1pd.js} +20 -18
  173. package/dist/chunks/{model-resolver-jqhp3fpz.js → schema-jqhp3fpz.js} +2 -2
  174. package/dist/chunks/{model-resolver-js6tcg3t.js → schema-jrpamtww.js} +4 -4
  175. package/dist/chunks/{model-resolver-djyc2dvw.js → schema-k030pceh.js} +6 -6
  176. package/dist/chunks/{model-resolver-k7hkdbw5.js → schema-k7hkdbw5.js} +2 -2
  177. package/dist/chunks/{model-resolver-kq3q54gz.js → schema-kq3q54gz.js} +1 -1
  178. package/dist/chunks/{model-resolver-je7dmgwr.js → schema-kwh3ary7.js} +14 -14
  179. package/dist/chunks/{model-resolver-4wsyak3y.js → schema-kx19mrsa.js} +7 -7
  180. package/dist/chunks/{model-resolver-dc1577g0.js → schema-kxb4nqfb.js} +3 -3
  181. package/dist/chunks/{model-resolver-m6a7zjhr.js → schema-m6a7zjhr.js} +1 -1
  182. package/dist/chunks/{model-resolver-m7jtgrng.js → schema-m7jtgrng.js} +2 -2
  183. package/dist/chunks/{model-resolver-mf0hyk7z.js → schema-mf0hyk7z.js} +1 -1
  184. package/dist/chunks/{model-resolver-mnyszbxc.js → schema-mnyszbxc.js} +1 -1
  185. package/dist/chunks/{model-resolver-mv81kt5z.js → schema-mv81kt5z.js} +2 -2
  186. package/dist/chunks/{model-resolver-7a4wqe5w.js → schema-mw1qz6py.js} +5 -5
  187. package/dist/chunks/{model-resolver-my53s247.js → schema-my53s247.js} +1 -1
  188. package/dist/chunks/{model-resolver-emt5rhx5.js → schema-nec1705c.js} +6 -6
  189. package/dist/chunks/{model-resolver-895xgr1f.js → schema-ng85ggsa.js} +5 -5
  190. package/dist/chunks/{model-resolver-ngzr6ypz.js → schema-ngzr6ypz.js} +2 -2
  191. package/dist/chunks/{model-resolver-136r7v3c.js → schema-nj42wcp7.js} +7 -7
  192. package/dist/chunks/{model-resolver-nn16cgj7.js → schema-nn16cgj7.js} +1 -1
  193. package/dist/chunks/{model-resolver-ntev5d3k.js → schema-ntev5d3k.js} +3 -3
  194. package/dist/chunks/{model-resolver-7ke4vm17.js → schema-p0ye3rhn.js} +4 -4
  195. package/dist/chunks/{model-resolver-p1m5qwvv.js → schema-p1m5qwvv.js} +1 -1
  196. package/dist/chunks/{model-resolver-p5gyct0y.js → schema-p5gyct0y.js} +1 -1
  197. package/dist/chunks/{model-resolver-jsmyr6k0.js → schema-p6fb92cp.js} +5 -5
  198. package/dist/chunks/{model-resolver-y251tsy9.js → schema-paqdssck.js} +4 -4
  199. package/dist/chunks/{model-resolver-pves38xm.js → schema-pves38xm.js} +2 -2
  200. package/dist/chunks/{model-resolver-6htxnd6w.js → schema-pxfvvnmb.js} +9 -9
  201. package/dist/chunks/{model-resolver-kcz5s2sc.js → schema-q1h731cc.js} +43 -82
  202. package/dist/chunks/{model-resolver-q606pcse.js → schema-q606pcse.js} +3 -3
  203. package/dist/chunks/{model-resolver-15077vr8.js → schema-q8tyzv5h.js} +154 -154
  204. package/dist/chunks/{model-resolver-m1hg7kzv.js → schema-qa1y9c59.js} +9 -9
  205. package/dist/chunks/{model-resolver-zt42x7wk.js → schema-qbpdt1wp.js} +4 -4
  206. package/dist/chunks/{model-resolver-s2avg5mp.js → schema-qc2gqwkb.js} +4 -4
  207. package/dist/chunks/{model-resolver-qf52r0wh.js → schema-qf52r0wh.js} +1 -1
  208. package/dist/chunks/{model-resolver-qfvp8zq7.js → schema-qfvp8zq7.js} +1 -1
  209. package/dist/chunks/{model-resolver-vwkqrtae.js → schema-qgxnt6e7.js} +9 -9
  210. package/dist/chunks/{model-resolver-qpxzqy01.js → schema-qpxzqy01.js} +1 -1
  211. package/dist/chunks/{model-resolver-rtktz058.js → schema-qqxqwwkk.js} +4 -4
  212. package/dist/chunks/{model-resolver-s7cdvjvw.js → schema-qst7098g.js} +9 -9
  213. package/dist/chunks/{model-resolver-qz5gwjr7.js → schema-qz5gwjr7.js} +3 -3
  214. package/dist/chunks/{model-resolver-qen4dbg3.js → schema-qzbgfz7c.js} +6 -6
  215. package/dist/chunks/{model-resolver-r7a2r1m6.js → schema-r7a2r1m6.js} +2 -2
  216. package/dist/chunks/{model-resolver-r7z6wjth.js → schema-r7z6wjth.js} +1 -1
  217. package/dist/chunks/{model-resolver-r9d3d23r.js → schema-r9d3d23r.js} +1 -1
  218. package/dist/chunks/{model-resolver-mvw9jqgs.js → schema-r9srg7kj.js} +16 -16
  219. package/dist/chunks/{model-resolver-d88sh0qh.js → schema-ra2q36zd.js} +4 -4
  220. package/dist/chunks/{model-resolver-rahat93a.js → schema-rahat93a.js} +1 -1
  221. package/dist/chunks/{model-resolver-cs1jwk5c.js → schema-rfxr8z2j.js} +90 -29
  222. package/dist/chunks/{model-resolver-eh2wdxrj.js → schema-rgnjkg8c.js} +80 -20
  223. package/dist/chunks/{model-resolver-jr5m26np.js → schema-rpa95wsa.js} +14 -15
  224. package/dist/chunks/{model-resolver-rr7wbarq.js → schema-rr7wbarq.js} +1 -1
  225. package/dist/chunks/{model-resolver-z50wtwd6.js → schema-rrqa2v85.js} +33 -33
  226. package/dist/chunks/{model-resolver-k92s0cap.js → schema-rw7fhbhq.js} +19 -19
  227. package/dist/chunks/{model-resolver-s32nnj3r.js → schema-s32nnj3r.js} +1 -1
  228. package/dist/chunks/{model-resolver-fxa9gsr7.js → schema-s5c7wyma.js} +4 -4
  229. package/dist/chunks/{model-resolver-9d52kcc6.js → schema-saecaj3m.js} +3 -3
  230. package/dist/chunks/{model-resolver-fet3yrh0.js → schema-sdyyem7m.js} +59 -21
  231. package/dist/chunks/{model-resolver-aqjetpt7.js → schema-serjdnzw.js} +3 -3
  232. package/dist/chunks/{model-resolver-hfdhxhjt.js → schema-sjfp0nb7.js} +7 -7
  233. package/dist/chunks/{model-resolver-yrzmcphh.js → schema-snxnyba1.js} +6 -6
  234. package/dist/chunks/{model-resolver-0gpahtwn.js → schema-svrgfpe2.js} +2 -2
  235. package/dist/chunks/{model-resolver-e1252xh0.js → schema-syzvtymk.js} +13 -13
  236. package/dist/chunks/{model-resolver-ybr4xq6z.js → schema-t2za4q0q.js} +51 -31
  237. package/dist/chunks/{model-resolver-xghrvkpy.js → schema-tbzs2pmr.js} +6 -6
  238. package/dist/chunks/{model-resolver-1n8ee09s.js → schema-tm2rcafg.js} +11 -11
  239. package/dist/chunks/{model-resolver-myqa85b0.js → schema-v6sre6kn.js} +2 -2
  240. package/dist/chunks/{model-resolver-v9qxqszp.js → schema-v9qxqszp.js} +3 -3
  241. package/dist/chunks/{model-resolver-vcwr2vpf.js → schema-vcwr2vpf.js} +1 -1
  242. package/dist/chunks/{model-resolver-rr20669x.js → schema-vpm0h4mx.js} +10 -10
  243. package/dist/chunks/{model-resolver-d35eame8.js → schema-vq0y3v9f.js} +8 -8
  244. package/dist/chunks/{model-resolver-vynk8zbr.js → schema-vynk8zbr.js} +1 -1
  245. package/dist/chunks/{model-resolver-2kthdmar.js → schema-vytq6tc6.js} +8 -8
  246. package/dist/chunks/{model-resolver-w5r9s7kx.js → schema-w5r9s7kx.js} +1 -1
  247. package/dist/chunks/{model-resolver-2v2tc4x7.js → schema-wb7ccp3j.js} +2 -2
  248. package/dist/chunks/{model-resolver-wbkt8qpj.js → schema-wbkt8qpj.js} +1 -1
  249. package/dist/chunks/{model-resolver-yxwnec9y.js → schema-wdn309nm.js} +10 -10
  250. package/dist/chunks/{model-resolver-wdqva41w.js → schema-wdqva41w.js} +1 -1
  251. package/dist/chunks/{model-resolver-wf5w4wph.js → schema-wf5w4wph.js} +1 -1
  252. package/dist/chunks/{model-resolver-wmxdh12w.js → schema-wmxdh12w.js} +1 -1
  253. package/dist/chunks/{model-resolver-x3vb5b1t.js → schema-x3vb5b1t.js} +1 -1
  254. package/dist/chunks/{model-resolver-x4az4y7r.js → schema-x4az4y7r.js} +1 -1
  255. package/dist/chunks/{model-resolver-qmw35mw3.js → schema-x4jfk7d8.js} +18 -18
  256. package/dist/chunks/{model-resolver-mz3md7e9.js → schema-x958486m.js} +13 -13
  257. package/dist/chunks/{model-resolver-165g8spq.js → schema-xbmv659f.js} +8 -8
  258. package/dist/chunks/{model-resolver-xdb88cdw.js → schema-xdb88cdw.js} +2 -2
  259. package/dist/chunks/{model-resolver-xe02v0q7.js → schema-xe02v0q7.js} +2 -2
  260. package/dist/chunks/{model-resolver-89rn8xzn.js → schema-xe5n6qar.js} +22 -22
  261. package/dist/chunks/{model-resolver-j44smbby.js → schema-xp4wtg3g.js} +3 -3
  262. package/dist/chunks/{model-resolver-2qq12ds3.js → schema-xvqr7khp.js} +3 -3
  263. package/dist/chunks/{model-resolver-xws7arpm.js → schema-xws7arpm.js} +1 -1
  264. package/dist/chunks/{model-resolver-f1jj19e8.js → schema-xx9qfgev.js} +1 -0
  265. package/dist/chunks/{model-resolver-mndv4v9k.js → schema-xyydncve.js} +10 -10
  266. package/dist/chunks/{model-resolver-c8n0v0wx.js → schema-y2b04s9v.js} +3 -3
  267. package/dist/chunks/{model-resolver-9ybkn4f3.js → schema-y41ny6h1.js} +10 -10
  268. package/dist/chunks/{model-resolver-egjtzeas.js → schema-y71jz153.js} +7 -7
  269. package/dist/chunks/{model-resolver-m0hk48gq.js → schema-ycjmzejc.js} +3 -3
  270. package/dist/chunks/{model-resolver-se5h029t.js → schema-ync59mnp.js} +5 -5
  271. package/dist/chunks/{model-resolver-ryxrw20d.js → schema-yp4wxmaw.js} +16 -15
  272. package/dist/chunks/{model-resolver-m0zebzgf.js → schema-z0nmzarz.js} +3 -3
  273. package/dist/chunks/{model-resolver-z8c1ty6e.js → schema-z8c1ty6e.js} +1 -1
  274. package/dist/chunks/{model-resolver-zbqqnp0n.js → schema-zbqqnp0n.js} +1 -1
  275. package/dist/chunks/{model-resolver-jpjemq2p.js → schema-zdrrxqy8.js} +4 -4
  276. package/dist/chunks/{model-resolver-zmbmd7xf.js → schema-zmbmd7xf.js} +2 -2
  277. package/dist/chunks/{model-resolver-zn935gjz.js → schema-zn935gjz.js} +1 -1
  278. package/dist/chunks/{model-resolver-ranv4wm0.js → schema-zqt2cp2e.js} +3 -3
  279. package/dist/chunks/schema-zr29p06e.js +136 -0
  280. package/dist/chunks/{model-resolver-zseh86v1.js → schema-zseh86v1.js} +2 -2
  281. package/dist/chunks/{model-resolver-t9t544b9.js → schema-zwfcr2t4.js} +3 -1
  282. package/dist/chunks/{model-resolver-eptw9fc8.js → schema-zwp7atcb.js} +3 -3
  283. package/dist/chunks/{model-resolver-zyyhrfr9.js → schema-zyyhrfr9.js} +1 -1
  284. package/dist/codemode/catalog.js +2 -2
  285. package/dist/codemode/instructions.js +4 -4
  286. package/dist/codemode/tool.js +4 -4
  287. package/dist/command.js +70 -70
  288. package/dist/config/discovery.js +79 -79
  289. package/dist/config/markdown.js +2 -2
  290. package/dist/config/normalize.js +20 -20
  291. package/dist/config/plugin/agent.js +129 -129
  292. package/dist/config/plugin/command.js +211 -115
  293. package/dist/config/plugin/compaction.js +169 -168
  294. package/dist/config/plugin/entry-observer.js +111 -111
  295. package/dist/config/plugin/formatter.js +116 -116
  296. package/dist/config/plugin/image.js +128 -128
  297. package/dist/config/plugin/instruction.js +85 -85
  298. package/dist/config/plugin/location-watcher.js +114 -114
  299. package/dist/config/plugin/mcp.js +124 -124
  300. package/dist/config/plugin/policy.js +113 -113
  301. package/dist/config/plugin/provider.js +112 -112
  302. package/dist/config/plugin/reference.js +116 -116
  303. package/dist/config/plugin/shell.js +115 -115
  304. package/dist/config/plugin/skill-file.js +98 -98
  305. package/dist/config/plugin/skill.js +132 -132
  306. package/dist/config/plugin/snapshot.js +114 -114
  307. package/dist/config/plugin/source.js +112 -112
  308. package/dist/config/plugin/tool-output.js +116 -116
  309. package/dist/config/plugin/websearch.js +112 -112
  310. package/dist/config/variable.js +4 -4
  311. package/dist/config/watch.js +2 -2
  312. package/dist/config.js +110 -110
  313. package/dist/credential/sql.js +3 -3
  314. package/dist/credential.js +71 -71
  315. package/dist/database/database.js +65 -65
  316. package/dist/database/drizzle/effect-sqlite/driver.js +13 -13
  317. package/dist/database/drizzle/effect-sqlite/index.js +13 -13
  318. package/dist/database/drizzle/effect-sqlite/session.js +12 -12
  319. package/dist/database/drizzle/index.js +14 -14
  320. package/dist/database/drizzle/internal/drizzle-utils.js +2 -2
  321. package/dist/database/drizzle/sqlite-core/effect/count.js +2 -2
  322. package/dist/database/drizzle/sqlite-core/effect/db.js +10 -10
  323. package/dist/database/drizzle/sqlite-core/effect/delete.js +3 -3
  324. package/dist/database/drizzle/sqlite-core/effect/index.js +21 -21
  325. package/dist/database/drizzle/sqlite-core/effect/insert.js +3 -3
  326. package/dist/database/drizzle/sqlite-core/effect/query.js +2 -2
  327. package/dist/database/drizzle/sqlite-core/effect/raw.js +2 -2
  328. package/dist/database/drizzle/sqlite-core/effect/select.js +3 -3
  329. package/dist/database/drizzle/sqlite-core/effect/session.js +11 -11
  330. package/dist/database/drizzle/sqlite-core/effect/update.js +3 -3
  331. package/dist/database/drizzle.js +15 -15
  332. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +2 -2
  333. package/dist/database/migration/20260211171708_add_project_commands.js +2 -2
  334. package/dist/database/migration/20260213144116_wakeful_the_professor.js +2 -2
  335. package/dist/database/migration/20260225215848_workspace.js +2 -2
  336. package/dist/database/migration/20260227213759_add_session_workspace_id.js +2 -2
  337. package/dist/database/migration/20260228203230_blue_harpoon.js +2 -2
  338. package/dist/database/migration/20260303231226_add_workspace_fields.js +2 -2
  339. package/dist/database/migration/20260309230000_move_org_to_state.js +2 -2
  340. package/dist/database/migration/20260312043431_session_message_cursor.js +2 -2
  341. package/dist/database/migration/20260323234822_events.js +2 -2
  342. package/dist/database/migration/20260410174513_workspace-name.js +2 -2
  343. package/dist/database/migration/20260413175956_chief_energizer.js +2 -2
  344. package/dist/database/migration/20260423070820_add_icon_url_override.js +2 -2
  345. package/dist/database/migration/20260427172553_slow_nightmare.js +2 -2
  346. package/dist/database/migration/20260428004200_add_session_path.js +2 -2
  347. package/dist/database/migration/20260501142318_next_venus.js +2 -2
  348. package/dist/database/migration/20260504145000_add_sync_owner.js +2 -2
  349. package/dist/database/migration/20260507164347_add_workspace_time.js +2 -2
  350. package/dist/database/migration/20260510033149_session_usage.js +2 -2
  351. package/dist/database/migration/20260511000411_data_migration_state.js +2 -2
  352. package/dist/database/migration/20260511173437_session-metadata.js +2 -2
  353. package/dist/database/migration/20260601010001_normalize_storage_paths.js +2 -2
  354. package/dist/database/migration/20260601202201_amazing_prowler.js +2 -2
  355. package/dist/database/migration/20260602002951_lowly_union_jack.js +2 -2
  356. package/dist/database/migration/20260602182828_add_project_directories.js +2 -2
  357. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +2 -2
  358. package/dist/database/migration/20260603040000_session_message_projection_order.js +2 -2
  359. package/dist/database/migration/20260603141458_session_input_inbox.js +2 -2
  360. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +2 -2
  361. package/dist/database/migration/20260604172448_event_sourced_session_input.js +2 -2
  362. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +2 -2
  363. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +2 -2
  364. package/dist/database/migration/20260611035744_credential.js +2 -2
  365. package/dist/database/migration/20260611192811_lush_chimera.js +2 -2
  366. package/dist/database/migration/20260612174303_project_dir_strategy.js +2 -2
  367. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +2 -2
  368. package/dist/database/migration/20260622170816_reset_v2_session_state.js +2 -2
  369. package/dist/database/migration/20260622202450_simplify_session_input.js +2 -2
  370. package/dist/database/migration/20260804233008_loose_psylocke.js +2 -2
  371. package/dist/database/migration/20260805200742_import_legacy_credentials.js +2 -2
  372. package/dist/database/migration/20260808023530_workspace_domain.js +2 -2
  373. package/dist/database/migration/20260811161259_execution_claim_attempts.js +2 -2
  374. package/dist/database/migration/20260812181746_session_inbox.js +2 -2
  375. package/dist/database/migration/20260812213948_worktree.js +2 -2
  376. package/dist/database/migration/20260819222447_session_viewed_state.js +2 -2
  377. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +2 -2
  378. package/dist/database/migration.gen.js +48 -48
  379. package/dist/database/migration.js +50 -50
  380. package/dist/database/path.js +3 -3
  381. package/dist/database/schema.gen.js +2 -2
  382. package/dist/database/schema.sql.js +2 -2
  383. package/dist/database/sqlite.bun.js +2 -2
  384. package/dist/database/sqlite.js +2 -2
  385. package/dist/database/sqlite.node.js +2 -2
  386. package/dist/database/sqlite.workerd.js +2 -2
  387. package/dist/database/v1-migration.bun.js +75 -75
  388. package/dist/database/v1-migration.js +2 -2
  389. package/dist/database/v1-migration.noop.js +1 -1
  390. package/dist/effect/app-node-builder.js +347 -344
  391. package/dist/effect/app-node-platform.js +3 -3
  392. package/dist/effect/keyed-mutex.js +2 -2
  393. package/dist/effect/websocket-constructor.js +2 -2
  394. package/dist/environment/driver.js +1 -1
  395. package/dist/environment/environment.js +86 -86
  396. package/dist/environment/exec-defaults.js +3 -3
  397. package/dist/environment/files.js +2 -2
  398. package/dist/environment/index.js +88 -88
  399. package/dist/environment/local.js +3 -3
  400. package/dist/environment/memory.js +3 -3
  401. package/dist/environment/unavailable.js +1 -1
  402. package/dist/event/sql.js +2 -2
  403. package/dist/event-logger.js +68 -68
  404. package/dist/file-mutation.js +87 -87
  405. package/dist/file-retention.js +2 -2
  406. package/dist/file.js +2 -2
  407. package/dist/filesystem/fff.bun.js +2 -2
  408. package/dist/filesystem/fff.js +2 -2
  409. package/dist/filesystem/fff.node.js +2 -2
  410. package/dist/filesystem/fff.workerd.js +2 -2
  411. package/dist/filesystem/ignore.js +1 -1
  412. package/dist/filesystem/location-watcher-policy.js +3 -3
  413. package/dist/filesystem/location-watcher.js +219 -219
  414. package/dist/filesystem/protected.js +2 -2
  415. package/dist/filesystem/search.js +91 -91
  416. package/dist/filesystem/watcher-binding.js +2 -2
  417. package/dist/filesystem/watcher.js +4 -4
  418. package/dist/filesystem.js +92 -92
  419. package/dist/form.js +69 -69
  420. package/dist/formatter/builtins.js +3 -3
  421. package/dist/formatter.js +80 -80
  422. package/dist/generate.js +84 -84
  423. package/dist/git.js +5 -5
  424. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +2 -2
  425. package/dist/github-copilot/chat/get-response-metadata.js +2 -2
  426. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +2 -2
  427. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +8 -8
  428. package/dist/github-copilot/chat/openai-compatible-chat-options.js +2 -2
  429. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +2 -2
  430. package/dist/github-copilot/copilot-provider.js +20 -20
  431. package/dist/github-copilot/models.js +4 -4
  432. package/dist/github-copilot/openai-compatible-error.js +2 -2
  433. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +2 -2
  434. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +2 -2
  435. package/dist/github-copilot/responses/openai-error.js +2 -2
  436. package/dist/github-copilot/responses/openai-responses-language-model.js +11 -11
  437. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +7 -7
  438. package/dist/github-copilot/responses/tool/code-interpreter.js +2 -2
  439. package/dist/github-copilot/responses/tool/file-search.js +2 -2
  440. package/dist/github-copilot/responses/tool/image-generation.js +2 -2
  441. package/dist/github-copilot/responses/tool/web-search-preview.js +2 -2
  442. package/dist/github-copilot/responses/tool/web-search.js +2 -2
  443. package/dist/id/id.js +2 -2
  444. package/dist/image/photon-wasm.bun.js +1 -1
  445. package/dist/image/photon-wasm.node.js +1 -1
  446. package/dist/image/photon-wasm.workerd.js +1 -1
  447. package/dist/image/photon.js +94 -94
  448. package/dist/image.js +94 -94
  449. package/dist/instance/service.js +2 -2
  450. package/dist/instance.js +346 -343
  451. package/dist/instruction-discovery.js +72 -72
  452. package/dist/instructions/builtins.js +80 -80
  453. package/dist/instructions/index.js +2 -2
  454. package/dist/integration/connection.js +2 -2
  455. package/dist/integration.js +75 -75
  456. package/dist/job.js +72 -72
  457. package/dist/kv/sql.js +3 -3
  458. package/dist/kv.js +68 -68
  459. package/dist/location-activity.js +82 -82
  460. package/dist/location-mutation.js +79 -79
  461. package/dist/location-service-map.js +79 -79
  462. package/dist/location-services.js +347 -344
  463. package/dist/location.js +78 -78
  464. package/dist/mcp/client.js +87 -87
  465. package/dist/mcp/index.js +93 -93
  466. package/dist/mcp/instructions.js +122 -122
  467. package/dist/mcp/oauth.js +2 -2
  468. package/dist/mcp/stdio.js +87 -87
  469. package/dist/mime.js +2 -2
  470. package/dist/modal/models.js +11 -0
  471. package/dist/model-resolver.js +81 -81
  472. package/dist/model.js +3 -3
  473. package/dist/models-dev.js +75 -75
  474. package/dist/oauth/page.js +2 -2
  475. package/dist/permission/saved.js +71 -71
  476. package/dist/permission/sql.js +6 -6
  477. package/dist/permission.js +95 -95
  478. package/dist/persistent-pty/binary.bun.js +2 -2
  479. package/dist/persistent-pty/binary.node.js +1 -1
  480. package/dist/persistent-pty/binary.workerd.js +1 -1
  481. package/dist/persistent-pty/daemon.js +2 -2
  482. package/dist/persistent-pty/index.js +73 -73
  483. package/dist/persistent-pty/pty-binding.js +2 -2
  484. package/dist/persistent-pty.js +74 -74
  485. package/dist/plugin/agent.js +96 -96
  486. package/dist/plugin/command.js +94 -94
  487. package/dist/plugin/hooks.js +3 -3
  488. package/dist/plugin/host.js +216 -216
  489. package/dist/plugin/instance.js +2 -2
  490. package/dist/plugin/internal.js +319 -315
  491. package/dist/plugin/mcp-codemode-exclusion.js +2 -2
  492. package/dist/plugin/models-dev.js +76 -76
  493. package/dist/plugin/module.js +3 -3
  494. package/dist/plugin/plan.js +96 -96
  495. package/dist/plugin/promise.js +2 -2
  496. package/dist/plugin/provider/alibaba.js +3 -3
  497. package/dist/plugin/provider/amazon-bedrock.js +3 -3
  498. package/dist/plugin/provider/anthropic.js +3 -3
  499. package/dist/plugin/provider/azure.js +120 -120
  500. package/dist/plugin/provider/cerebras.js +3 -3
  501. package/dist/plugin/provider/cloudflare-ai-gateway.js +119 -119
  502. package/dist/plugin/provider/cloudflare-workers-ai.js +119 -119
  503. package/dist/plugin/provider/cohere.js +3 -3
  504. package/dist/plugin/provider/configured.js +116 -116
  505. package/dist/plugin/provider/dynamic.js +3 -3
  506. package/dist/plugin/provider/factory.js +2 -2
  507. package/dist/plugin/provider/gateway.js +3 -3
  508. package/dist/plugin/provider/github-copilot.js +87 -84
  509. package/dist/plugin/provider/gitlab.js +4 -4
  510. package/dist/plugin/provider/google-vertex.js +3 -3
  511. package/dist/plugin/provider/kilo.js +3 -3
  512. package/dist/plugin/provider/llmgateway.js +77 -77
  513. package/dist/plugin/provider/lmstudio.js +117 -117
  514. package/dist/plugin/provider/mistral.js +3 -3
  515. package/dist/plugin/provider/modal.js +85 -0
  516. package/dist/plugin/provider/nvidia.js +3 -3
  517. package/dist/plugin/provider/ollama.js +117 -117
  518. package/dist/plugin/provider/openai-compatible.js +2 -2
  519. package/dist/plugin/provider/openai.js +79 -79
  520. package/dist/plugin/provider/opencode.js +77 -77
  521. package/dist/plugin/provider/openrouter.js +4 -4
  522. package/dist/plugin/provider/perplexity.js +3 -3
  523. package/dist/plugin/provider/sap-ai-core.js +4 -4
  524. package/dist/plugin/provider/sdk-factory.js +2 -2
  525. package/dist/plugin/provider/snowflake-cortex.js +3 -3
  526. package/dist/plugin/provider/venice.js +3 -3
  527. package/dist/plugin/provider/vercel.js +3 -3
  528. package/dist/plugin/provider/vllm.js +117 -117
  529. package/dist/plugin/provider/xai.js +78 -78
  530. package/dist/plugin/provider/zenmux.js +3 -3
  531. package/dist/plugin/provider.js +157 -156
  532. package/dist/plugin/sdk.js +69 -69
  533. package/dist/plugin/service.js +2 -2
  534. package/dist/plugin/skill.js +129 -129
  535. package/dist/plugin/source-directory.js +2 -2
  536. package/dist/plugin/supervisor.js +334 -330
  537. package/dist/plugin/system-prompt.js +2 -2
  538. package/dist/plugin/update.js +3 -3
  539. package/dist/plugin/variant.js +3 -3
  540. package/dist/plugin/vcs/git.js +82 -82
  541. package/dist/plugin/vcs/hg.js +82 -82
  542. package/dist/plugin/warming.js +111 -111
  543. package/dist/plugin/websearch/exa.js +4 -4
  544. package/dist/plugin/websearch/firecrawl.js +5 -5
  545. package/dist/plugin/websearch/index.js +9 -9
  546. package/dist/plugin/websearch/mcp.js +3 -3
  547. package/dist/plugin/websearch/parallel.js +5 -5
  548. package/dist/plugin/websearch/tavily.js +3 -3
  549. package/dist/plugin.js +217 -217
  550. package/dist/project/schema.js +3 -3
  551. package/dist/project/sql.js +5 -5
  552. package/dist/project.js +77 -77
  553. package/dist/provider.js +2 -2
  554. package/dist/pty/protocol.js +1 -1
  555. package/dist/pty/pty.bun.js +14 -1
  556. package/dist/pty/pty.node.js +1 -1
  557. package/dist/pty/pty.workerd.js +1 -1
  558. package/dist/pty/schema.js +2 -2
  559. package/dist/pty/ticket.js +2 -2
  560. package/dist/pty.js +84 -84
  561. package/dist/reference/instructions.js +80 -80
  562. package/dist/reference.js +78 -78
  563. package/dist/repository-cache.js +74 -74
  564. package/dist/repository.js +2 -2
  565. package/dist/ripgrep/binary.js +3 -3
  566. package/dist/ripgrep.js +89 -89
  567. package/dist/rpc.js +79 -79
  568. package/dist/schema.js +2 -2
  569. package/dist/session/command.js +73 -73
  570. package/dist/session/compaction.js +139 -138
  571. package/dist/session/context.js +150 -150
  572. package/dist/session/environment.js +3 -3
  573. package/dist/session/error.js +4 -4
  574. package/dist/session/event.js +2 -2
  575. package/dist/session/execution/restart.js +211 -213
  576. package/dist/session/execution.js +117 -117
  577. package/dist/session/generate.js +153 -153
  578. package/dist/session/history.js +77 -77
  579. package/dist/session/inbox.js +77 -77
  580. package/dist/session/info.js +4 -4
  581. package/dist/session/instruction-entry.js +73 -73
  582. package/dist/session/instruction-state.js +10 -10
  583. package/dist/session/instructions.js +89 -89
  584. package/dist/session/message-updater.js +4 -4
  585. package/dist/session/message.js +2 -2
  586. package/dist/session/model-request.js +134 -134
  587. package/dist/session/model-transport.js +5 -5
  588. package/dist/session/move.js +127 -82
  589. package/dist/session/projector.js +83 -83
  590. package/dist/session/prompt.js +115 -115
  591. package/dist/session/revert.js +87 -87
  592. package/dist/session/run-coordinator.js +2 -2
  593. package/dist/session/runner/index.js +84 -84
  594. package/dist/session/runner/llm.js +226 -226
  595. package/dist/session/runner/max-steps.js +2 -2
  596. package/dist/session/runner/model.js +83 -83
  597. package/dist/session/runner/publish-llm-event.js +4 -4
  598. package/dist/session/runner/retry.js +76 -74
  599. package/dist/session/runner/step.js +143 -143
  600. package/dist/session/runner/to-llm-message.js +2 -2
  601. package/dist/session/schema.js +2 -2
  602. package/dist/session/session.js +173 -173
  603. package/dist/session/shell.js +132 -132
  604. package/dist/session/skill.js +99 -99
  605. package/dist/session/sql.js +6 -6
  606. package/dist/session/stats.js +71 -71
  607. package/dist/session/store.js +79 -79
  608. package/dist/session/subagent-completion.js +8 -4
  609. package/dist/session/subagent-job.js +216 -0
  610. package/dist/session/system-prompt.js +2 -2
  611. package/dist/session/title.js +152 -152
  612. package/dist/session/to-session-error.js +108 -108
  613. package/dist/session/transfer.js +215 -213
  614. package/dist/session/usage.js +2 -2
  615. package/dist/session.js +207 -207
  616. package/dist/shell/parse.js +7 -7
  617. package/dist/shell/parser-wasm.bun.js +1 -1
  618. package/dist/shell/parser-wasm.node.js +1 -1
  619. package/dist/shell/parser-wasm.workerd.js +1 -1
  620. package/dist/shell/result.js +2 -2
  621. package/dist/shell/scan.js +32 -4
  622. package/dist/shell/select.js +4 -4
  623. package/dist/shell.js +129 -129
  624. package/dist/skill/discovery.js +3 -3
  625. package/dist/skill/instructions.js +97 -97
  626. package/dist/skill.js +96 -96
  627. package/dist/snapshot.js +80 -80
  628. package/dist/state.js +4 -2
  629. package/dist/tool/html-markdown.js +2 -2
  630. package/dist/tool/http-body.js +2 -2
  631. package/dist/tool/mcp.js +121 -121
  632. package/dist/tool/plugin/edit.js +108 -108
  633. package/dist/tool/plugin/file-diff.js +2 -2
  634. package/dist/tool/plugin/glob.js +111 -111
  635. package/dist/tool/plugin/grep.js +111 -111
  636. package/dist/tool/plugin/opencode.js +2 -2
  637. package/dist/tool/plugin/patch.js +108 -108
  638. package/dist/tool/plugin/question.js +97 -97
  639. package/dist/tool/plugin/read.js +114 -114
  640. package/dist/tool/plugin/shell.js +210 -210
  641. package/dist/tool/plugin/skill.js +97 -97
  642. package/dist/tool/plugin/subagent.js +210 -209
  643. package/dist/tool/plugin/webfetch.js +98 -98
  644. package/dist/tool/plugin/websearch.js +100 -100
  645. package/dist/tool/plugin/write.js +108 -108
  646. package/dist/tool/read-filesystem.js +94 -94
  647. package/dist/tool/runtime.js +2 -2
  648. package/dist/tool-output.js +5 -5
  649. package/dist/tool.js +114 -114
  650. package/dist/types/config/plugin/command.d.ts +3 -1
  651. package/dist/types/modal/models.d.ts +3 -0
  652. package/dist/types/plugin/provider/github-copilot.d.ts +6 -0
  653. package/dist/types/plugin/provider/modal.d.ts +3 -0
  654. package/dist/types/session/history.d.ts +32 -0
  655. package/dist/types/session/model-request.d.ts +3 -0
  656. package/dist/types/session/move.d.ts +15 -11
  657. package/dist/types/session/runner/retry.d.ts +7 -0
  658. package/dist/types/session/subagent-completion.d.ts +3 -0
  659. package/dist/types/session/subagent-job.d.ts +13 -0
  660. package/dist/types/session/transfer.d.ts +46 -0
  661. package/dist/types/session.d.ts +2 -8
  662. package/dist/types/state.d.ts +18 -0
  663. package/dist/types/tool/plugin/subagent.d.ts +2 -2
  664. package/dist/types/v1/config/migrate.d.ts +3 -2
  665. package/dist/util/array.js +1 -1
  666. package/dist/util/error.js +2 -2
  667. package/dist/util/identifier.js +1 -1
  668. package/dist/util/iife.js +2 -2
  669. package/dist/util/lazy.js +2 -2
  670. package/dist/util/process-lock-ffi.bun.js +1 -1
  671. package/dist/util/process-lock-ffi.node.js +1 -1
  672. package/dist/util/process-lock-ffi.workerd.js +1 -1
  673. package/dist/util/process-lock.js +1 -1
  674. package/dist/util/slug.js +2 -2
  675. package/dist/util/token.js +2 -2
  676. package/dist/util/which.js +2 -2
  677. package/dist/util/wildcard.js +2 -2
  678. package/dist/v1/config/agent.js +4 -4
  679. package/dist/v1/config/attachment.js +3 -3
  680. package/dist/v1/config/command.js +2 -2
  681. package/dist/v1/config/config.js +15 -15
  682. package/dist/v1/config/error.js +3 -3
  683. package/dist/v1/config/formatter.js +2 -2
  684. package/dist/v1/config/layout.js +2 -2
  685. package/dist/v1/config/lsp.js +2 -2
  686. package/dist/v1/config/mcp.js +3 -3
  687. package/dist/v1/config/migrate.js +19 -19
  688. package/dist/v1/config/permission.js +2 -2
  689. package/dist/v1/config/plugin.js +2 -2
  690. package/dist/v1/config/provider-options.js +2 -2
  691. package/dist/v1/config/provider.js +3 -3
  692. package/dist/v1/config/server.js +3 -3
  693. package/dist/v1/config/skills.js +2 -2
  694. package/dist/v1/permission.js +1 -1
  695. package/dist/vcs/patch.js +2 -2
  696. package/dist/vcs.js +81 -81
  697. package/dist/websearch.js +73 -73
  698. package/dist/wellknown/plugin.js +73 -73
  699. package/dist/wellknown.js +72 -72
  700. package/dist/workspace/driver.js +2 -2
  701. package/dist/workspace/sql.js +2 -2
  702. package/dist/workspace.js +69 -69
  703. package/dist/worktree/directory.js +3 -3
  704. package/dist/worktree/git.js +7 -7
  705. package/dist/worktree/sql.js +6 -6
  706. package/dist/worktree.js +82 -82
  707. package/package.json +7 -7
  708. package/dist/chunks/model-resolver-pr1927s1.js +0 -68
  709. package/dist/chunks/model-resolver-zfc8v838.js +0 -34
  710. /package/dist/chunks/{model-resolver-0cgt0xh2.js → schema-0cgt0xh2.js} +0 -0
  711. /package/dist/chunks/{model-resolver-0f48qthw.js → schema-0f48qthw.js} +0 -0
  712. /package/dist/chunks/{model-resolver-0zz82cjq.js → schema-0zz82cjq.js} +0 -0
  713. /package/dist/chunks/{model-resolver-1fb7bmpf.js → schema-1fb7bmpf.js} +0 -0
  714. /package/dist/chunks/{model-resolver-1wcz8fvj.js → schema-1wcz8fvj.js} +0 -0
  715. /package/dist/chunks/{model-resolver-29n7vfk2.js → schema-29n7vfk2.js} +0 -0
  716. /package/dist/chunks/{model-resolver-2qdx6zz3.js → schema-2qdx6zz3.js} +0 -0
  717. /package/dist/chunks/{model-resolver-2xb0r1c6.js → schema-2xb0r1c6.js} +0 -0
  718. /package/dist/chunks/{model-resolver-39ktntah.js → schema-39ktntah.js} +0 -0
  719. /package/dist/chunks/{model-resolver-3g3rpp2x.js → schema-3g3rpp2x.js} +0 -0
  720. /package/dist/chunks/{model-resolver-3w3ybtfd.js → schema-3w3ybtfd.js} +0 -0
  721. /package/dist/chunks/{model-resolver-47ty4mvs.js → schema-47ty4mvs.js} +0 -0
  722. /package/dist/chunks/{model-resolver-4b2tz2m9.js → schema-4b2tz2m9.js} +0 -0
  723. /package/dist/chunks/{model-resolver-5a5ch9ts.js → schema-5a5ch9ts.js} +0 -0
  724. /package/dist/chunks/{model-resolver-5va1yh78.js → schema-5va1yh78.js} +0 -0
  725. /package/dist/chunks/{model-resolver-61ek4hj9.js → schema-61ek4hj9.js} +0 -0
  726. /package/dist/chunks/{model-resolver-69qrqpw0.js → schema-69qrqpw0.js} +0 -0
  727. /package/dist/chunks/{model-resolver-6zqxzw0a.js → schema-6zqxzw0a.js} +0 -0
  728. /package/dist/chunks/{model-resolver-7n9qwqk4.js → schema-7n9qwqk4.js} +0 -0
  729. /package/dist/chunks/{model-resolver-8nn8kqcn.js → schema-8nn8kqcn.js} +0 -0
  730. /package/dist/chunks/{model-resolver-8rpfd2h6.js → schema-8rpfd2h6.js} +0 -0
  731. /package/dist/chunks/{model-resolver-8sj3ajy5.js → schema-8sj3ajy5.js} +0 -0
  732. /package/dist/chunks/{model-resolver-8w9tzfz1.js → schema-8w9tzfz1.js} +0 -0
  733. /package/dist/chunks/{model-resolver-906y0b6d.js → schema-906y0b6d.js} +0 -0
  734. /package/dist/chunks/{model-resolver-9dct5xhx.js → schema-9dct5xhx.js} +0 -0
  735. /package/dist/chunks/{model-resolver-9maxscqf.js → schema-9maxscqf.js} +0 -0
  736. /package/dist/chunks/{model-resolver-9sdtsapf.js → schema-9sdtsapf.js} +0 -0
  737. /package/dist/chunks/{model-resolver-a02svayp.js → schema-a02svayp.js} +0 -0
  738. /package/dist/chunks/{model-resolver-a83yvq99.js → schema-a83yvq99.js} +0 -0
  739. /package/dist/chunks/{model-resolver-ayevdmef.js → schema-ayevdmef.js} +0 -0
  740. /package/dist/chunks/{model-resolver-b02txbh8.js → schema-b02txbh8.js} +0 -0
  741. /package/dist/chunks/{model-resolver-bbqs2y60.js → schema-bbqs2y60.js} +0 -0
  742. /package/dist/chunks/{model-resolver-bjwj8hwv.js → schema-bjwj8hwv.js} +0 -0
  743. /package/dist/chunks/{model-resolver-brsh5f65.js → schema-brsh5f65.js} +0 -0
  744. /package/dist/chunks/{model-resolver-bxdhjb3y.js → schema-bxdhjb3y.js} +0 -0
  745. /package/dist/chunks/{model-resolver-bybkghrn.js → schema-bybkghrn.js} +0 -0
  746. /package/dist/chunks/{model-resolver-c77ad0vh.js → schema-c77ad0vh.js} +0 -0
  747. /package/dist/chunks/{model-resolver-cm67rqy2.js → schema-cm67rqy2.js} +0 -0
  748. /package/dist/chunks/{model-resolver-df3v2q6j.js → schema-df3v2q6j.js} +0 -0
  749. /package/dist/chunks/{model-resolver-dhcq6c44.js → schema-dhcq6c44.js} +0 -0
  750. /package/dist/chunks/{model-resolver-dht5baf0.js → schema-dht5baf0.js} +0 -0
  751. /package/dist/chunks/{model-resolver-dkmkay92.js → schema-dkmkay92.js} +0 -0
  752. /package/dist/chunks/{model-resolver-ehj9csmv.js → schema-ehj9csmv.js} +0 -0
  753. /package/dist/chunks/{model-resolver-em6xpscd.js → schema-em6xpscd.js} +0 -0
  754. /package/dist/chunks/{model-resolver-emmqknsm.js → schema-emmqknsm.js} +0 -0
  755. /package/dist/chunks/{model-resolver-ezs3tagn.js → schema-ezs3tagn.js} +0 -0
  756. /package/dist/chunks/{model-resolver-f14r7hfz.js → schema-f14r7hfz.js} +0 -0
  757. /package/dist/chunks/{model-resolver-f4cp4g4a.js → schema-f4cp4g4a.js} +0 -0
  758. /package/dist/chunks/{model-resolver-faypg4r1.js → schema-faypg4r1.js} +0 -0
  759. /package/dist/chunks/{model-resolver-fg7fz4q3.js → schema-fg7fz4q3.js} +0 -0
  760. /package/dist/chunks/{model-resolver-fgbfdq62.js → schema-fgbfdq62.js} +0 -0
  761. /package/dist/chunks/{model-resolver-g23fad86.js → schema-g23fad86.js} +0 -0
  762. /package/dist/chunks/{model-resolver-gd5xeqc2.js → schema-gd5xeqc2.js} +0 -0
  763. /package/dist/chunks/{model-resolver-ghm4673n.js → schema-ghm4673n.js} +0 -0
  764. /package/dist/chunks/{model-resolver-ghwjy7my.js → schema-ghwjy7my.js} +0 -0
  765. /package/dist/chunks/{model-resolver-gy500k2r.js → schema-gy500k2r.js} +0 -0
  766. /package/dist/chunks/{model-resolver-hzeg9cfr.js → schema-hzeg9cfr.js} +0 -0
  767. /package/dist/chunks/{model-resolver-j07kk359.js → schema-j07kk359.js} +0 -0
  768. /package/dist/chunks/{model-resolver-jqms80b0.js → schema-jqms80b0.js} +0 -0
  769. /package/dist/chunks/{model-resolver-jve7t217.js → schema-jve7t217.js} +0 -0
  770. /package/dist/chunks/{model-resolver-k3e42drn.js → schema-k3e42drn.js} +0 -0
  771. /package/dist/chunks/{model-resolver-k8b45nas.js → schema-k8b45nas.js} +0 -0
  772. /package/dist/chunks/{model-resolver-kpdbz7gn.js → schema-kpdbz7gn.js} +0 -0
  773. /package/dist/chunks/{model-resolver-kxy11nzk.js → schema-kxy11nzk.js} +0 -0
  774. /package/dist/chunks/{model-resolver-kyyqvx4s.js → schema-kyyqvx4s.js} +0 -0
  775. /package/dist/chunks/{model-resolver-m8cbvarh.js → schema-m8cbvarh.js} +0 -0
  776. /package/dist/chunks/{model-resolver-ma60vzgv.js → schema-ma60vzgv.js} +0 -0
  777. /package/dist/chunks/{model-resolver-n3m50c2t.js → schema-n3m50c2t.js} +0 -0
  778. /package/dist/chunks/{model-resolver-nkm1m8dz.js → schema-nkm1m8dz.js} +0 -0
  779. /package/dist/chunks/{model-resolver-nsc0c3zb.js → schema-nsc0c3zb.js} +0 -0
  780. /package/dist/chunks/{model-resolver-qaarhjrp.js → schema-qaarhjrp.js} +0 -0
  781. /package/dist/chunks/{model-resolver-qc167nrn.js → schema-qc167nrn.js} +0 -0
  782. /package/dist/chunks/{model-resolver-qp95y4jb.js → schema-qp95y4jb.js} +0 -0
  783. /package/dist/chunks/{model-resolver-r8f4w671.js → schema-r8f4w671.js} +0 -0
  784. /package/dist/chunks/{model-resolver-rdfev9jy.js → schema-rdfev9jy.js} +0 -0
  785. /package/dist/chunks/{model-resolver-s7whb9gt.js → schema-s7whb9gt.js} +0 -0
  786. /package/dist/chunks/{model-resolver-se76j685.js → schema-se76j685.js} +0 -0
  787. /package/dist/chunks/{model-resolver-sem2g21k.js → schema-sem2g21k.js} +0 -0
  788. /package/dist/chunks/{model-resolver-snpn6bap.js → schema-snpn6bap.js} +0 -0
  789. /package/dist/chunks/{model-resolver-sp575ygv.js → schema-sp575ygv.js} +0 -0
  790. /package/dist/chunks/{model-resolver-tmb1f636.js → schema-tmb1f636.js} +0 -0
  791. /package/dist/chunks/{model-resolver-ttxf0gsy.js → schema-ttxf0gsy.js} +0 -0
  792. /package/dist/chunks/{model-resolver-tvmhrvfj.js → schema-tvmhrvfj.js} +0 -0
  793. /package/dist/chunks/{model-resolver-v2adqbbe.js → schema-v2adqbbe.js} +0 -0
  794. /package/dist/chunks/{model-resolver-vac9eqd2.js → schema-vac9eqd2.js} +0 -0
  795. /package/dist/chunks/{model-resolver-vpjkya7h.js → schema-vpjkya7h.js} +0 -0
  796. /package/dist/chunks/{model-resolver-wj4sxzqa.js → schema-wj4sxzqa.js} +0 -0
  797. /package/dist/chunks/{model-resolver-wwntjmk1.js → schema-wwntjmk1.js} +0 -0
  798. /package/dist/chunks/{model-resolver-wyqjaaa5.js → schema-wyqjaaa5.js} +0 -0
  799. /package/dist/chunks/{model-resolver-x4q807cx.js → schema-x4q807cx.js} +0 -0
  800. /package/dist/chunks/{model-resolver-yrqrg4vp.js → schema-yrqrg4vp.js} +0 -0
  801. /package/dist/chunks/{model-resolver-z47nswr2.js → schema-z47nswr2.js} +0 -0
  802. /package/dist/chunks/{model-resolver-zsf8rs93.js → schema-zsf8rs93.js} +0 -0
package/dist/tool.js CHANGED
@@ -8,120 +8,120 @@ import {
8
8
  TextContent,
9
9
  exports_tool,
10
10
  node
11
- } from "./chunks/model-resolver-egjtzeas.js";
12
- import"./chunks/model-resolver-0gpahtwn.js";
13
- import"./chunks/model-resolver-rr7wbarq.js";
14
- import"./chunks/model-resolver-f1jj19e8.js";
15
- import"./chunks/model-resolver-81kadfkq.js";
16
- import"./chunks/model-resolver-8gv3hynm.js";
17
- import"./chunks/model-resolver-5swfpf97.js";
18
- import"./chunks/model-resolver-d4h7vwhh.js";
19
- import"./chunks/model-resolver-wz5907jr.js";
20
- import"./chunks/model-resolver-264e1nfp.js";
21
- import"./chunks/model-resolver-ax34jjm3.js";
22
- import"./chunks/model-resolver-2sqw2jjm.js";
23
- import"./chunks/model-resolver-m3k5wttq.js";
24
- import"./chunks/model-resolver-q606pcse.js";
25
- import"./chunks/model-resolver-edxnhgvj.js";
26
- import"./chunks/model-resolver-c54e84vp.js";
27
- import"./chunks/model-resolver-xws7arpm.js";
28
- import"./chunks/model-resolver-a83yvq99.js";
29
- import"./chunks/model-resolver-jsmyr6k0.js";
30
- import"./chunks/model-resolver-8rpfd2h6.js";
31
- import"./chunks/model-resolver-bjwj8hwv.js";
32
- import"./chunks/model-resolver-fxa9gsr7.js";
33
- import"./chunks/model-resolver-vcygwjbr.js";
34
- import"./chunks/model-resolver-7myqjfx6.js";
35
- import"./chunks/model-resolver-36pw8tps.js";
36
- import"./chunks/model-resolver-rahat93a.js";
37
- import"./chunks/model-resolver-m1hg7kzv.js";
38
- import"./chunks/model-resolver-jqhp3fpz.js";
39
- import"./chunks/model-resolver-6wsfy4sp.js";
40
- import"./chunks/model-resolver-hvydqsq5.js";
41
- import"./chunks/model-resolver-vynk8zbr.js";
42
- import"./chunks/model-resolver-k3e42drn.js";
43
- import"./chunks/model-resolver-136r7v3c.js";
44
- import"./chunks/model-resolver-61ek4hj9.js";
45
- import"./chunks/model-resolver-zyyhrfr9.js";
46
- import"./chunks/model-resolver-vbaqktrz.js";
47
- import"./chunks/model-resolver-tmfv98ar.js";
48
- import"./chunks/model-resolver-m7jtgrng.js";
49
- import"./chunks/model-resolver-gb1z7yet.js";
50
- import"./chunks/model-resolver-c8ya26sa.js";
51
- import"./chunks/model-resolver-zbqqnp0n.js";
52
- import"./chunks/model-resolver-qz5gwjr7.js";
53
- import"./chunks/model-resolver-grfz4hhj.js";
54
- import"./chunks/model-resolver-j07kk359.js";
55
- import"./chunks/model-resolver-sem2g21k.js";
56
- import"./chunks/model-resolver-b2mj9w79.js";
57
- import"./chunks/model-resolver-zsf8rs93.js";
58
- import"./chunks/model-resolver-66mds5ht.js";
59
- import"./chunks/model-resolver-tn3vtv4h.js";
60
- import"./chunks/model-resolver-48xfm273.js";
61
- import"./chunks/model-resolver-0n1ech8q.js";
62
- import"./chunks/model-resolver-2xb0r1c6.js";
63
- import"./chunks/model-resolver-1fb7bmpf.js";
64
- import"./chunks/model-resolver-fgbfdq62.js";
65
- import"./chunks/model-resolver-5va1yh78.js";
66
- import"./chunks/model-resolver-9dct5xhx.js";
67
- import"./chunks/model-resolver-v2adqbbe.js";
68
- import"./chunks/model-resolver-8nn8kqcn.js";
69
- import"./chunks/model-resolver-69qrqpw0.js";
70
- import"./chunks/model-resolver-9sdtsapf.js";
71
- import"./chunks/model-resolver-b02txbh8.js";
72
- import"./chunks/model-resolver-3g3rpp2x.js";
73
- import"./chunks/model-resolver-f4cp4g4a.js";
74
- import"./chunks/model-resolver-kxy11nzk.js";
75
- import"./chunks/model-resolver-wwntjmk1.js";
76
- import"./chunks/model-resolver-ayevdmef.js";
77
- import"./chunks/model-resolver-29n7vfk2.js";
78
- import"./chunks/model-resolver-qc167nrn.js";
79
- import"./chunks/model-resolver-dht5baf0.js";
80
- import"./chunks/model-resolver-ghm4673n.js";
81
- import"./chunks/model-resolver-em6xpscd.js";
82
- import"./chunks/model-resolver-qp95y4jb.js";
83
- import"./chunks/model-resolver-8sj3ajy5.js";
84
- import"./chunks/model-resolver-2qdx6zz3.js";
85
- import"./chunks/model-resolver-yrqrg4vp.js";
86
- import"./chunks/model-resolver-nkm1m8dz.js";
87
- import"./chunks/model-resolver-emmqknsm.js";
88
- import"./chunks/model-resolver-n3m50c2t.js";
89
- import"./chunks/model-resolver-dhcq6c44.js";
90
- import"./chunks/model-resolver-ma60vzgv.js";
91
- import"./chunks/model-resolver-nsc0c3zb.js";
92
- import"./chunks/model-resolver-kpdbz7gn.js";
93
- import"./chunks/model-resolver-906y0b6d.js";
94
- import"./chunks/model-resolver-3w3ybtfd.js";
95
- import"./chunks/model-resolver-ghwjy7my.js";
96
- import"./chunks/model-resolver-f14r7hfz.js";
97
- import"./chunks/model-resolver-47ty4mvs.js";
98
- import"./chunks/model-resolver-se76j685.js";
99
- import"./chunks/model-resolver-wyqjaaa5.js";
100
- import"./chunks/model-resolver-faypg4r1.js";
101
- import"./chunks/model-resolver-z47nswr2.js";
102
- import"./chunks/model-resolver-kyyqvx4s.js";
103
- import"./chunks/model-resolver-6zqxzw0a.js";
104
- import"./chunks/model-resolver-cm67rqy2.js";
105
- import"./chunks/model-resolver-x4q807cx.js";
106
- import"./chunks/model-resolver-gd5xeqc2.js";
107
- import"./chunks/model-resolver-tmb1f636.js";
108
- import"./chunks/model-resolver-39ktntah.js";
109
- import"./chunks/model-resolver-ttxf0gsy.js";
110
- import"./chunks/model-resolver-zz8p0qp8.js";
111
- import"./chunks/model-resolver-dc1577g0.js";
112
- import"./chunks/model-resolver-7fndj6sb.js";
113
- import"./chunks/model-resolver-h3jh27nc.js";
114
- import"./chunks/model-resolver-e1252xh0.js";
115
- import"./chunks/model-resolver-wbkt8qpj.js";
116
- import"./chunks/model-resolver-bxdhjb3y.js";
117
- import"./chunks/model-resolver-vcwr2vpf.js";
118
- import"./chunks/model-resolver-j0feex7e.js";
119
- import"./chunks/model-resolver-s7whb9gt.js";
120
- import"./chunks/model-resolver-0f48qthw.js";
121
- import"./chunks/model-resolver-hgr9y616.js";
122
- import"./chunks/model-resolver-k8b45nas.js";
123
- import"./chunks/model-resolver-dyrfpcd0.js";
124
- import"./chunks/model-resolver-vpjkya7h.js";
11
+ } from "./chunks/schema-y71jz153.js";
12
+ import"./chunks/schema-svrgfpe2.js";
13
+ import"./chunks/schema-rr7wbarq.js";
14
+ import"./chunks/schema-xx9qfgev.js";
15
+ import"./chunks/schema-22x56hdn.js";
16
+ import"./chunks/schema-1nf5m1zv.js";
17
+ import"./chunks/schema-a4wk7wxx.js";
18
+ import"./chunks/schema-ctegtqnq.js";
19
+ import"./chunks/schema-2sqw2jjm.js";
20
+ import"./chunks/schema-8c5xq4gn.js";
21
+ import"./chunks/schema-264e1nfp.js";
22
+ import"./chunks/schema-5j084t57.js";
23
+ import"./chunks/schema-d4h7vwhh.js";
24
+ import"./chunks/schema-edxnhgvj.js";
25
+ import"./chunks/schema-q606pcse.js";
26
+ import"./chunks/schema-p6fb92cp.js";
27
+ import"./chunks/schema-8rpfd2h6.js";
28
+ import"./chunks/schema-a83yvq99.js";
29
+ import"./chunks/schema-s5c7wyma.js";
30
+ import"./chunks/schema-enmke0a7.js";
31
+ import"./chunks/schema-7myqjfx6.js";
32
+ import"./chunks/schema-bbwsb44a.js";
33
+ import"./chunks/schema-rahat93a.js";
34
+ import"./chunks/schema-c54e84vp.js";
35
+ import"./chunks/schema-xws7arpm.js";
36
+ import"./chunks/schema-bjwj8hwv.js";
37
+ import"./chunks/schema-qa1y9c59.js";
38
+ import"./chunks/schema-6wsfy4sp.js";
39
+ import"./chunks/schema-hvydqsq5.js";
40
+ import"./chunks/schema-jqhp3fpz.js";
41
+ import"./chunks/schema-vynk8zbr.js";
42
+ import"./chunks/schema-nj42wcp7.js";
43
+ import"./chunks/schema-zyyhrfr9.js";
44
+ import"./chunks/schema-61ek4hj9.js";
45
+ import"./chunks/schema-9kt3hna5.js";
46
+ import"./chunks/schema-2g4twk0n.js";
47
+ import"./chunks/schema-m7jtgrng.js";
48
+ import"./chunks/schema-gb1z7yet.js";
49
+ import"./chunks/schema-c8ya26sa.js";
50
+ import"./chunks/schema-zbqqnp0n.js";
51
+ import"./chunks/schema-qz5gwjr7.js";
52
+ import"./chunks/schema-k3e42drn.js";
53
+ import"./chunks/schema-j6s3yjyb.js";
54
+ import"./chunks/schema-j07kk359.js";
55
+ import"./chunks/schema-sem2g21k.js";
56
+ import"./chunks/schema-grfz4hhj.js";
57
+ import"./chunks/schema-fjb24bmd.js";
58
+ import"./chunks/schema-zsf8rs93.js";
59
+ import"./chunks/schema-66mds5ht.js";
60
+ import"./chunks/schema-8scqw7rh.js";
61
+ import"./chunks/schema-g4r9xws8.js";
62
+ import"./chunks/schema-ttxf0gsy.js";
63
+ import"./chunks/schema-57a903bc.js";
64
+ import"./chunks/schema-kxb4nqfb.js";
65
+ import"./chunks/schema-8e4szv2f.js";
66
+ import"./chunks/schema-az8m3c6n.js";
67
+ import"./chunks/schema-syzvtymk.js";
68
+ import"./chunks/schema-j0feex7e.js";
69
+ import"./chunks/schema-vcwr2vpf.js";
70
+ import"./chunks/schema-s7whb9gt.js";
71
+ import"./chunks/schema-hgr9y616.js";
72
+ import"./chunks/schema-0f48qthw.js";
73
+ import"./chunks/schema-wbkt8qpj.js";
74
+ import"./chunks/schema-k8b45nas.js";
75
+ import"./chunks/schema-bxdhjb3y.js";
76
+ import"./chunks/schema-078tha6v.js";
77
+ import"./chunks/schema-kyyqvx4s.js";
78
+ import"./chunks/schema-nsc0c3zb.js";
79
+ import"./chunks/schema-1fb7bmpf.js";
80
+ import"./chunks/schema-8nn8kqcn.js";
81
+ import"./chunks/schema-5va1yh78.js";
82
+ import"./chunks/schema-cm67rqy2.js";
83
+ import"./chunks/schema-dhcq6c44.js";
84
+ import"./chunks/schema-2xb0r1c6.js";
85
+ import"./chunks/schema-em6xpscd.js";
86
+ import"./chunks/schema-wyqjaaa5.js";
87
+ import"./chunks/schema-3g3rpp2x.js";
88
+ import"./chunks/schema-z47nswr2.js";
89
+ import"./chunks/schema-x4q807cx.js";
90
+ import"./chunks/schema-69qrqpw0.js";
91
+ import"./chunks/schema-6zqxzw0a.js";
92
+ import"./chunks/schema-fgbfdq62.js";
93
+ import"./chunks/schema-2qdx6zz3.js";
94
+ import"./chunks/schema-47ty4mvs.js";
95
+ import"./chunks/schema-29n7vfk2.js";
96
+ import"./chunks/schema-yrqrg4vp.js";
97
+ import"./chunks/schema-tmb1f636.js";
98
+ import"./chunks/schema-f4cp4g4a.js";
99
+ import"./chunks/schema-ma60vzgv.js";
100
+ import"./chunks/schema-faypg4r1.js";
101
+ import"./chunks/schema-qc167nrn.js";
102
+ import"./chunks/schema-8sj3ajy5.js";
103
+ import"./chunks/schema-9dct5xhx.js";
104
+ import"./chunks/schema-emmqknsm.js";
105
+ import"./chunks/schema-ghm4673n.js";
106
+ import"./chunks/schema-f14r7hfz.js";
107
+ import"./chunks/schema-nkm1m8dz.js";
108
+ import"./chunks/schema-3w3ybtfd.js";
109
+ import"./chunks/schema-ayevdmef.js";
110
+ import"./chunks/schema-ghwjy7my.js";
111
+ import"./chunks/schema-v2adqbbe.js";
112
+ import"./chunks/schema-gd5xeqc2.js";
113
+ import"./chunks/schema-kpdbz7gn.js";
114
+ import"./chunks/schema-se76j685.js";
115
+ import"./chunks/schema-dht5baf0.js";
116
+ import"./chunks/schema-qp95y4jb.js";
117
+ import"./chunks/schema-906y0b6d.js";
118
+ import"./chunks/schema-wwntjmk1.js";
119
+ import"./chunks/schema-9sdtsapf.js";
120
+ import"./chunks/schema-b02txbh8.js";
121
+ import"./chunks/schema-n3m50c2t.js";
122
+ import"./chunks/schema-kxy11nzk.js";
123
+ import"./chunks/schema-39ktntah.js";
124
+ import"./chunks/schema-vpjkya7h.js";
125
125
  export {
126
126
  CallID,
127
127
  Content,
@@ -1,7 +1,9 @@
1
1
  export * as ConfigCommandPlugin from "./command.js";
2
2
  import { AppProcess } from "@opencode-ai/util/process";
3
+ import { Agent } from "../../agent.js";
3
4
  import { Config } from "../../config.js";
4
5
  import { Location } from "../../location.js";
6
+ import { Session } from "../../session.js";
5
7
  import { ShellSelect } from "../../shell/select.js";
6
8
  import { FSUtil } from "@opencode-ai/util/fs-util";
7
- export declare const Plugin: import("@opencode-ai/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | FSUtil.Service | AppProcess.Service | Location.Service | Config.Service | ShellSelect.Service>;
9
+ export declare const Plugin: import("@opencode-ai/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | FSUtil.Service | AppProcess.Service | Location.Service | Agent.Service | Config.Service | ShellSelect.Service | Session.Service | import("../../job.js").Service>;
@@ -0,0 +1,3 @@
1
+ export * as ModalModels from "./models.js";
2
+ import { Model } from "../model.js";
3
+ export declare function get(baseURL: string, apiKey: string, existing: readonly Model.Info[]): Promise<Map<string & import("effect/Brand").Brand<"Model.ID">, import("@opencode-ai/schema/model").Info>>;
@@ -1,8 +1,14 @@
1
+ import type { SessionRequestKind } from "@opencode-ai/plugin/effect/session";
1
2
  import { Catalog } from "../../catalog.js";
2
3
  import { Bus } from "../../bus.js";
3
4
  import { App } from "../../app.js";
4
5
  export declare const GithubCopilotPlugin: import("@opencode-ai/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | Bus.Service | Catalog.Service>;
6
+ export declare function copilotEntitlementError(user: {
7
+ chat_enabled?: boolean;
8
+ can_signup_for_limited?: boolean;
9
+ }): "This GitHub account is not signed up for GitHub Copilot. Sign up for Copilot Free at https://github.com/features/copilot/plans and connect again." | "This GitHub account does not have GitHub Copilot access. It needs an active Copilot subscription or a seat assigned by an organization." | undefined;
5
10
  export declare function copilotBaseURL(metadata?: Readonly<Record<string, unknown>>): string;
6
11
  type Fetch = (input: Parameters<typeof fetch>[0], init?: RequestInit) => Promise<Response>;
7
12
  export declare function copilotFetch(token: string | undefined, upstream: Fetch | undefined, app: App.Info): Fetch;
13
+ export declare function interactionType(kind: SessionRequestKind, child: boolean): "conversation-background" | "conversation-compaction" | "conversation-subagent" | "conversation-agent";
8
14
  export {};
@@ -0,0 +1,3 @@
1
+ import { Bus } from "../../bus.js";
2
+ import { Catalog } from "../../catalog.js";
3
+ export declare const ModalPlugin: import("@opencode-ai/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | Bus.Service | Catalog.Service>;
@@ -336,6 +336,14 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
336
336
  readonly metadata?: {
337
337
  readonly [x: string]: unknown;
338
338
  } | undefined;
339
+ readonly model?: {
340
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
341
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
342
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
343
+ } | undefined;
344
+ readonly providerState?: {
345
+ readonly [x: string]: unknown;
346
+ } | undefined;
339
347
  } | {
340
348
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
341
349
  readonly type: "compaction";
@@ -684,6 +692,14 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
684
692
  readonly metadata?: {
685
693
  readonly [x: string]: unknown;
686
694
  } | undefined;
695
+ readonly model?: {
696
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
697
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
698
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
699
+ } | undefined;
700
+ readonly providerState?: {
701
+ readonly [x: string]: unknown;
702
+ } | undefined;
687
703
  } | {
688
704
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
689
705
  readonly type: "compaction";
@@ -1036,6 +1052,14 @@ export declare const entriesForRunner: (db: import("../database/drizzle.js").Eff
1036
1052
  readonly metadata?: {
1037
1053
  readonly [x: string]: unknown;
1038
1054
  } | undefined;
1055
+ readonly model?: {
1056
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1057
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1058
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1059
+ } | undefined;
1060
+ readonly providerState?: {
1061
+ readonly [x: string]: unknown;
1062
+ } | undefined;
1039
1063
  } | {
1040
1064
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1041
1065
  readonly type: "compaction";
@@ -1388,6 +1412,14 @@ export declare const preview: (db: import("../database/drizzle.js").EffectSQLite
1388
1412
  readonly metadata?: {
1389
1413
  readonly [x: string]: unknown;
1390
1414
  } | undefined;
1415
+ readonly model?: {
1416
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1417
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1418
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1419
+ } | undefined;
1420
+ readonly providerState?: {
1421
+ readonly [x: string]: unknown;
1422
+ } | undefined;
1391
1423
  } | {
1392
1424
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1393
1425
  readonly type: "compaction";
@@ -1,6 +1,7 @@
1
1
  export * as SessionModelRequest from "./model-request.js";
2
2
  import { LLM, LLMRequest, Message, SystemPart } from "@opencode-ai/ai";
3
3
  import type { StreamOptions } from "@opencode-ai/ai/route";
4
+ import type { SessionRequestKind } from "@opencode-ai/plugin/effect/session";
4
5
  import type { Agent } from "@opencode-ai/schema/agent";
5
6
  import type { Model } from "@opencode-ai/schema/model";
6
7
  import { Context, Effect, Layer } from "effect";
@@ -25,6 +26,8 @@ export interface Prepared {
25
26
  readonly executeTool: (input: Parameters<Tool.Snapshot["execute"]>[0]) => Effect.Effect<Tool.NormalizedResult, ExecuteError>;
26
27
  }
27
28
  interface PrepareInput {
29
+ /** Which Session flow issues this request; request hooks receive it alongside the Session identity. */
30
+ readonly kind: SessionRequestKind;
28
31
  readonly scope: {
29
32
  readonly session: SessionSchema.Info;
30
33
  readonly agentID: Agent.ID;
@@ -1,13 +1,10 @@
1
1
  export * as SessionMove from "./move.js";
2
2
  import type { Session } from "@opencode-ai/schema/session";
3
- import type { SessionInbox } from "@opencode-ai/schema/session-inbox";
4
- import { FSUtil } from "@opencode-ai/util/fs-util";
5
- import { Global } from "@opencode-ai/util/global";
6
- import { Cause, Effect, Schema } from "effect";
3
+ import { Cause, Context, Effect, Schema } from "effect";
7
4
  import { Location } from "../location.js";
8
- import { LocationServiceMap } from "../location-service-map.js";
9
- import { Project } from "../project.js";
10
5
  import { AbsolutePath } from "../schema.js";
6
+ import { NotFoundError } from "./error.js";
7
+ import { SessionInbox } from "./inbox.js";
11
8
  declare const DestinationNotFoundError_base: Schema.Class<DestinationNotFoundError, Schema.TaggedStruct<"Session.DestinationNotFoundError", {
12
9
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
13
10
  }>, Cause.YieldableError>;
@@ -23,8 +20,15 @@ declare const DestinationUnavailableError_base: Schema.Class<DestinationUnavaila
23
20
  }>, Cause.YieldableError>;
24
21
  export declare class DestinationUnavailableError extends DestinationUnavailableError_base {
25
22
  }
26
- export declare const prepare: (input: {
27
- session: Session.Info;
28
- directory: AbsolutePath;
29
- workspaceID?: Location.Ref["workspaceID"];
30
- }) => Effect.Effect<SessionInbox.MovePayload, DestinationNotFoundError | DestinationNotDirectoryError | DestinationUnavailableError, Global.Service | FSUtil.Service | Project.Service | LocationServiceMap.Service>;
23
+ export interface Interface {
24
+ readonly move: (input: {
25
+ sessionID: Session.ID;
26
+ directory: AbsolutePath;
27
+ workspaceID?: Location.Ref["workspaceID"];
28
+ delivery?: SessionInbox.Delivery;
29
+ }) => Effect.Effect<void, NotFoundError | DestinationNotFoundError | DestinationNotDirectoryError | DestinationUnavailableError>;
30
+ }
31
+ declare const Service_base: Context.ServiceClass<Service, "@opencode/SessionMove", Interface>;
32
+ export declare class Service extends Service_base {
33
+ }
34
+ export declare const node: import("@opencode-ai/util/effect/layer-node").Provider<Service, never, import("@opencode-ai/util/effect/layer-node").Tag<"global">>;
@@ -22,6 +22,13 @@ export interface Decision {
22
22
  readonly delay: number;
23
23
  }
24
24
  export declare function isRetryable(error: AIError): boolean;
25
+ export declare const policy: (sessionID: SessionSchema.ID) => Effect.Effect<(input: Input) => Effect.Effect<{
26
+ retry: false;
27
+ } | {
28
+ retry: true;
29
+ attempt: number;
30
+ delay: number;
31
+ }, never, never>, never, never>;
25
32
  export declare const make: (bus: Bus.Interface, sessionID: SessionSchema.ID) => Effect.Effect<{
26
33
  decide: (input: Input) => Effect.Effect<{
27
34
  retry: false;
@@ -2,6 +2,9 @@ export * as SubagentCompletion from "./subagent-completion.js";
2
2
  import { Effect } from "effect";
3
3
  import type { Job } from "../job.js";
4
4
  import type { Session } from "../session.js";
5
+ import type { SessionMessage } from "./message.js";
6
+ export declare const NO_TEXT = "Subagent completed without a text response.";
7
+ export declare function text(message: SessionMessage.Info | undefined): string;
5
8
  export declare const deliver: (sessions: Pick<Session.Interface, "synthetic">, jobs: Pick<Job.Interface, "completeBackground">, input: Pick<Job.Info, "status" | "output" | "error" | "notificationID"> & {
6
9
  recovery: Extract<Job.Recovery, {
7
10
  kind: "subagent";
@@ -0,0 +1,13 @@
1
+ export * as SubagentJob from "./subagent-job.js";
2
+ import { Effect, Scope } from "effect";
3
+ import { Job } from "../job.js";
4
+ import { Session } from "../session.js";
5
+ type Recovery = Extract<Job.Recovery, {
6
+ kind: "subagent";
7
+ }>;
8
+ interface Runner {
9
+ start: (recovery: Recovery) => Effect.Effect<Job.Info>;
10
+ background: (recovery: Recovery) => Effect.Effect<void>;
11
+ notify: (recovery: Recovery, startedAt: number) => Effect.Effect<void>;
12
+ }
13
+ export declare const make: Effect.Effect<Runner, never, Session.Service | Job.Service | Scope.Scope>;
@@ -721,6 +721,52 @@ export declare const Data: Schema.Struct<{
721
721
  }>, Schema.Struct<{
722
722
  readonly status: Schema.tag<"completed">;
723
723
  readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
724
+ readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
725
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
726
+ readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
727
+ opencode: string & import("effect/Brand").Brand<"Provider.ID">;
728
+ anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
729
+ openai: string & import("effect/Brand").Brand<"Provider.ID">;
730
+ google: string & import("effect/Brand").Brand<"Provider.ID">;
731
+ googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
732
+ githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
733
+ amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
734
+ azure: string & import("effect/Brand").Brand<"Provider.ID">;
735
+ openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
736
+ mistral: string & import("effect/Brand").Brand<"Provider.ID">;
737
+ gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
738
+ };
739
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
740
+ }> & {
741
+ parse: (input: string) => {
742
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
743
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
744
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
745
+ };
746
+ }>>, Schema.optionalKey<Schema.Struct<{
747
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
748
+ readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
749
+ opencode: string & import("effect/Brand").Brand<"Provider.ID">;
750
+ anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
751
+ openai: string & import("effect/Brand").Brand<"Provider.ID">;
752
+ google: string & import("effect/Brand").Brand<"Provider.ID">;
753
+ googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
754
+ githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
755
+ amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
756
+ azure: string & import("effect/Brand").Brand<"Provider.ID">;
757
+ openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
758
+ mistral: string & import("effect/Brand").Brand<"Provider.ID">;
759
+ gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
760
+ };
761
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
762
+ }> & {
763
+ parse: (input: string) => {
764
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
765
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
766
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
767
+ };
768
+ }>, never, never>;
769
+ readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
724
770
  readonly summary: Schema.String;
725
771
  readonly recent: Schema.String;
726
772
  readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
@@ -7,7 +7,6 @@ import { Location } from "./location.js";
7
7
  import { SessionMessage } from "./session/message.js";
8
8
  import { PromptInput } from "@opencode-ai/schema/prompt-input";
9
9
  import { SessionSchema } from "./session/schema.js";
10
- import { AbsolutePath } from "./schema.js";
11
10
  import { Agent } from "@opencode-ai/schema/agent";
12
11
  import { SessionRunner } from "./session/runner/index.js";
13
12
  import { SessionStore } from "./session/store.js";
@@ -17,7 +16,7 @@ import { LayerNode } from "@opencode-ai/util/effect/layer-node";
17
16
  import { SessionEvent } from "./session/event.js";
18
17
  import { SessionInbox } from "./session/inbox.js";
19
18
  import { SessionGenerate } from "./session/generate.js";
20
- import { DestinationNotFoundError, DestinationNotDirectoryError, DestinationUnavailableError } from "./session/move.js";
19
+ import { SessionMove, DestinationNotFoundError, DestinationNotDirectoryError, DestinationUnavailableError } from "./session/move.js";
21
20
  import { Snapshot } from "./snapshot.js";
22
21
  import { Session } from "./session/session.js";
23
22
  import type { EventLog } from "@opencode-ai/schema/event-log";
@@ -176,12 +175,7 @@ export interface Interface {
176
175
  sessionID: SessionSchema.ID;
177
176
  title: string;
178
177
  }) => Effect.Effect<void, NotFoundError>;
179
- readonly move: (input: {
180
- sessionID: SessionSchema.ID;
181
- directory: AbsolutePath;
182
- workspaceID?: Location.Ref["workspaceID"];
183
- delivery?: SessionInbox.Delivery;
184
- }) => Effect.Effect<void, NotFoundError | DestinationNotFoundError | DestinationNotDirectoryError | DestinationUnavailableError>;
178
+ readonly move: SessionMove.Interface["move"];
185
179
  readonly prompt: (input: Parameters<Session.Handle["prompt"]>[0] & {
186
180
  sessionID: SessionSchema.ID;
187
181
  }) => ReturnType<Session.Handle["prompt"]>;
@@ -22,6 +22,24 @@ export interface Transformable<Editor> {
22
22
  readonly transform: Transform<Editor>;
23
23
  readonly reload: Reload;
24
24
  }
25
+ export interface Failure {
26
+ readonly state: string;
27
+ readonly cause: unknown;
28
+ }
29
+ type GroupedRegistration = {
30
+ readonly remove: () => boolean;
31
+ readonly notify: Effect.Effect<void>;
32
+ };
33
+ type RegistrationGroup = {
34
+ failed: boolean;
35
+ readonly registrations: Set<GroupedRegistration>;
36
+ readonly report: (failure: Failure, refresh: Effect.Effect<void>) => void;
37
+ };
38
+ /**
39
+ * Groups registrations without coupling State to plugin identity or asynchronous cleanup.
40
+ * A failed group is detached synchronously; its supervisor must run refresh and close its scope.
41
+ */
42
+ export declare function group(report: RegistrationGroup["report"]): <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, Exclude<R, never>>;
25
43
  /** Coalesces notifications until the effect completes. Reads inside stay fresh; nothing is rolled back. */
26
44
  export declare function batch<A, E, R>(effect: Effect.Effect<A, E, R>): Effect.Effect<A, E, R>;
27
45
  /** Runs the effect as shutdown: States changed inside it close permanently and never notify again. */
@@ -1,6 +1,6 @@
1
1
  export * as SubagentTool from "./subagent.js";
2
2
  import type { Context } from "@opencode-ai/plugin/effect/plugin";
3
- import { Effect, Schema, Scope } from "effect";
3
+ import { Effect, Schema } from "effect";
4
4
  import { Agent } from "../../agent.js";
5
5
  import { Config } from "../../config.js";
6
6
  import { Job } from "../../job.js";
@@ -28,5 +28,5 @@ export declare const Output: Schema.Struct<{
28
28
  export declare const description: string;
29
29
  export declare const Plugin: {
30
30
  id: string;
31
- effect: (ctx: Context) => Effect.Effect<void, never, Scope.Scope | Agent.Service | Config.Service | Permission.Service | Session.Service | Job.Service>;
31
+ effect: (ctx: Context) => Effect.Effect<void, never, import("effect/Scope").Scope | Agent.Service | Config.Service | Permission.Service | Session.Service | Job.Service>;
32
32
  };
@@ -18,7 +18,7 @@ export declare function migrate(info: typeof ConfigV1.Info.Type): {
18
18
  readonly effect: "allow" | "deny" | "ask";
19
19
  }[] | undefined;
20
20
  readonly share?: "auto" | "disabled" | "manual" | undefined;
21
- readonly update?: "auto" | "disable" | "notify" | undefined;
21
+ readonly update?: "disable" | "notify" | undefined;
22
22
  readonly commands?: {
23
23
  readonly [x: string]: {
24
24
  readonly template: string;
@@ -28,6 +28,7 @@ export declare function migrate(info: typeof ConfigV1.Info.Type): {
28
28
  readonly model: string;
29
29
  readonly variant?: string | undefined;
30
30
  } | undefined;
31
+ readonly subagent?: boolean | undefined;
31
32
  readonly agent?: string | undefined;
32
33
  readonly subtask?: boolean | undefined;
33
34
  };
@@ -323,7 +324,7 @@ export declare function commands(info?: Readonly<Record<string, ConfigCommandV1.
323
324
  providerID: string;
324
325
  model: string;
325
326
  } | undefined;
326
- subtask: boolean | undefined;
327
+ subagent: boolean | undefined;
327
328
  };
328
329
  } | undefined;
329
330
  export declare function migrateMcp(info: ConfigMCPV1.Info): {
@@ -1,4 +1,4 @@
1
- import"../chunks/model-resolver-vpjkya7h.js";
1
+ import"../chunks/schema-vpjkya7h.js";
2
2
 
3
3
  // src/util/array.ts
4
4
  function findLast(items, predicate) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  NamedError
3
- } from "../chunks/model-resolver-hzeg9cfr.js";
4
- import"../chunks/model-resolver-vpjkya7h.js";
3
+ } from "../chunks/schema-hzeg9cfr.js";
4
+ import"../chunks/schema-vpjkya7h.js";
5
5
  export {
6
6
  NamedError
7
7
  };
@@ -1,4 +1,4 @@
1
- import"../chunks/model-resolver-vpjkya7h.js";
1
+ import"../chunks/schema-vpjkya7h.js";
2
2
 
3
3
  // src/util/identifier.ts
4
4
  import * as Identifier from "@opencode-ai/schema/identifier";