@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
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createProviderPlugin
3
- } from "./model-resolver-0zz82cjq.js";
3
+ } from "./schema-0zz82cjq.js";
4
4
  import {
5
5
  __require
6
- } from "./model-resolver-vpjkya7h.js";
6
+ } from "./schema-vpjkya7h.js";
7
7
 
8
8
  // src/plugin/provider/gateway.ts
9
9
  var GatewayPlugin = createProviderPlugin({
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  exports_source_directory
3
- } from "./model-resolver-51t2tyks.js";
3
+ } from "./schema-51t2tyks.js";
4
4
  import {
5
5
  exports_config
6
- } from "./model-resolver-yt21b5ce.js";
6
+ } from "./schema-jq0ga1pd.js";
7
7
  import {
8
8
  exports_watcher
9
- } from "./model-resolver-v9qxqszp.js";
9
+ } from "./schema-v9qxqszp.js";
10
10
  import {
11
11
  exports_location
12
- } from "./model-resolver-vbaqktrz.js";
12
+ } from "./schema-9kt3hna5.js";
13
13
  import {
14
14
  __export
15
- } from "./model-resolver-vpjkya7h.js";
15
+ } from "./schema-vpjkya7h.js";
16
16
 
17
17
  // src/config/plugin/source.ts
18
18
  var exports_source = {};
@@ -0,0 +1,74 @@
1
+ import {
2
+ exports_models
3
+ } from "./schema-zr29p06e.js";
4
+ import {
5
+ exports_catalog
6
+ } from "./schema-32ypdbhb.js";
7
+ import {
8
+ exports_integration
9
+ } from "./schema-b9bp1awf.js";
10
+ import {
11
+ exports_model
12
+ } from "./schema-8manx9kj.js";
13
+ import {
14
+ exports_provider
15
+ } from "./schema-68yag814.js";
16
+ import {
17
+ exports_credential
18
+ } from "./schema-jgzett5g.js";
19
+ import {
20
+ exports_bus
21
+ } from "./schema-fjb24bmd.js";
22
+
23
+ // src/plugin/provider/modal.ts
24
+ import { Effect, Semaphore, Stream } from "effect";
25
+ import { define } from "@opencode-ai/plugin/effect/plugin";
26
+ var providerID = exports_provider.ID.make("modal");
27
+ var ModalPlugin = define({
28
+ id: "opencode.provider.modal",
29
+ effect: Effect.fn(function* (ctx) {
30
+ const catalog = yield* exports_catalog.Service;
31
+ const bus = yield* exports_bus.Service;
32
+ const loading = Semaphore.makeUnsafe(1);
33
+ const loaded = {};
34
+ const load = Effect.fn("ModalPlugin.load")(function* () {
35
+ const connection = yield* ctx.integration.connection.active("modal");
36
+ const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
37
+ return;
38
+ })) : undefined;
39
+ const apiKey = credential?.type === "key" ? credential.key : process.env.MODAL_PROXY_TOKEN;
40
+ const provider = yield* catalog.provider.get(providerID);
41
+ const baseURL = typeof provider?.settings?.baseURL === "string" ? provider.settings.baseURL : undefined;
42
+ if (!apiKey || !baseURL) {
43
+ loaded.baseURL = undefined;
44
+ loaded.models = undefined;
45
+ return;
46
+ }
47
+ loaded.baseURL = baseURL;
48
+ const existing = (yield* catalog.model.all()).filter((model) => model.providerID === providerID);
49
+ loaded.models = yield* Effect.tryPromise({
50
+ try: () => exports_models.get(baseURL, apiKey, existing),
51
+ catch: (cause) => cause
52
+ }).pipe(Effect.catch((cause) => Effect.logWarning("failed to sync Modal models", { cause }).pipe(Effect.as(undefined))));
53
+ });
54
+ yield* ctx.catalog.transform((evt) => {
55
+ const item = evt.provider.get(providerID);
56
+ if (!item)
57
+ return;
58
+ if (!loaded.models)
59
+ return;
60
+ for (const id of item.models.keys()) {
61
+ if (!loaded.models.has(exports_model.ID.make(id)))
62
+ evt.model.remove(item.provider.id, id);
63
+ }
64
+ for (const [id, model] of loaded.models) {
65
+ evt.model.update(item.provider.id, id, (draft) => Object.assign(draft, structuredClone(model)));
66
+ }
67
+ });
68
+ const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.catalog.reload())));
69
+ yield* bus.subscribe(exports_credential.Event.Switched).pipe(Stream.filter((event) => event.data.integrationID === exports_integration.ID.make("modal")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
70
+ yield* refresh().pipe(Effect.forkScoped);
71
+ })
72
+ });
73
+
74
+ export { ModalPlugin };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  migrations
3
- } from "./model-resolver-0n1ech8q.js";
3
+ } from "./schema-078tha6v.js";
4
4
  import {
5
5
  schema_gen_default
6
- } from "./model-resolver-39ktntah.js";
6
+ } from "./schema-39ktntah.js";
7
7
  import {
8
8
  __export
9
- } from "./model-resolver-vpjkya7h.js";
9
+ } from "./schema-vpjkya7h.js";
10
10
 
11
11
  // src/database/migration.ts
12
12
  var exports_migration = {};
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  exports_catalog
3
- } from "./model-resolver-rr7wbarq.js";
3
+ } from "./schema-rr7wbarq.js";
4
4
  import {
5
5
  exports_instructions
6
- } from "./model-resolver-c54e84vp.js";
6
+ } from "./schema-c54e84vp.js";
7
7
  import {
8
8
  __export
9
- } from "./model-resolver-vpjkya7h.js";
9
+ } from "./schema-vpjkya7h.js";
10
10
 
11
11
  // src/codemode/instructions.ts
12
12
  var exports_instructions2 = {};
@@ -20,7 +20,7 @@ import { searchSignature, toolExpression } from "@opencode-ai/codemode";
20
20
  import { Effect, Schema } from "effect";
21
21
  var prompt = (hasMoreTools) => `The Code Mode tool catalog below is ${hasMoreTools ? "partial" : "complete"}.
22
22
 
23
- ${hasMoreTools ? "The Code Mode catalog and `search` results are" : "This catalog is"} the complete set of tools available within Code Mode. Tools presented elsewhere are not available in this runtime.${hasMoreTools ? `
23
+ ${hasMoreTools ? "The Code Mode catalog and `search` results are" : "This catalog is"} the complete set of tools callable inside \`execute\`. It does not affect tools exposed directly outside Code Mode.${hasMoreTools ? `
24
24
 
25
25
  ## Search
26
26
 
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  PositiveInt
3
- } from "./model-resolver-j07kk359.js";
3
+ } from "./schema-j07kk359.js";
4
4
  import {
5
5
  __export
6
- } from "./model-resolver-vpjkya7h.js";
6
+ } from "./schema-vpjkya7h.js";
7
7
 
8
8
  // src/v1/config/provider.ts
9
9
  var exports_provider = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  ProjectTable
3
- } from "./model-resolver-c8ya26sa.js";
3
+ } from "./schema-c8ya26sa.js";
4
4
  import {
5
5
  absoluteColumn
6
- } from "./model-resolver-zbqqnp0n.js";
6
+ } from "./schema-zbqqnp0n.js";
7
7
 
8
8
  // src/worktree/sql.ts
9
9
  import { integer, primaryKey, sqliteTable, text } from "drizzle-orm/sqlite-core";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AbsolutePath
3
- } from "./model-resolver-j07kk359.js";
3
+ } from "./schema-j07kk359.js";
4
4
  import {
5
5
  __export
6
- } from "./model-resolver-vpjkya7h.js";
6
+ } from "./schema-vpjkya7h.js";
7
7
 
8
8
  // src/worktree/directory.ts
9
9
  var exports_directory = {};
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  exports_entry_observer
3
- } from "./model-resolver-mnyszbxc.js";
3
+ } from "./schema-mnyszbxc.js";
4
4
  import {
5
5
  exports_image
6
- } from "./model-resolver-81kadfkq.js";
6
+ } from "./schema-22x56hdn.js";
7
7
  import {
8
8
  exports_config
9
- } from "./model-resolver-yt21b5ce.js";
9
+ } from "./schema-jq0ga1pd.js";
10
10
  import {
11
11
  __export
12
- } from "./model-resolver-vpjkya7h.js";
12
+ } from "./schema-vpjkya7h.js";
13
13
 
14
14
  // src/config/plugin/image.ts
15
15
  var exports_image2 = {};
@@ -1,36 +1,36 @@
1
1
  import {
2
2
  exports_migrate
3
- } from "./model-resolver-h01zxzks.js";
3
+ } from "./schema-jepqtr73.js";
4
4
  import {
5
5
  exports_config
6
- } from "./model-resolver-89rn8xzn.js";
6
+ } from "./schema-xe5n6qar.js";
7
7
  import {
8
8
  exports_mcp
9
- } from "./model-resolver-bd2mvb8t.js";
10
- import {
11
- exports_plugin
12
- } from "./model-resolver-wf5w4wph.js";
9
+ } from "./schema-bd2mvb8t.js";
13
10
  import {
14
11
  exports_provider
15
- } from "./model-resolver-g9dd0fv6.js";
12
+ } from "./schema-g9dd0fv6.js";
16
13
  import {
17
- exports_command
18
- } from "./model-resolver-42zyazrq.js";
14
+ exports_agent
15
+ } from "./schema-3ep0k87g.js";
16
+ import {
17
+ exports_permission
18
+ } from "./schema-qfvp8zq7.js";
19
19
  import {
20
20
  exports_attachment
21
- } from "./model-resolver-ngzr6ypz.js";
21
+ } from "./schema-ngzr6ypz.js";
22
22
  import {
23
- exports_agent
24
- } from "./model-resolver-3ep0k87g.js";
23
+ exports_plugin
24
+ } from "./schema-wf5w4wph.js";
25
25
  import {
26
- exports_permission
27
- } from "./model-resolver-qfvp8zq7.js";
26
+ exports_command
27
+ } from "./schema-42zyazrq.js";
28
28
  import {
29
29
  PositiveInt
30
- } from "./model-resolver-j07kk359.js";
30
+ } from "./schema-j07kk359.js";
31
31
  import {
32
32
  __export
33
- } from "./model-resolver-vpjkya7h.js";
33
+ } from "./schema-vpjkya7h.js";
34
34
 
35
35
  // src/config/normalize.ts
36
36
  var exports_normalize = {};
@@ -79,6 +79,7 @@ function normalize(input) {
79
79
  unsupportedTopLevel.forEach((key) => unsupportedIfPresent(input, key, [key], diagnostics));
80
80
  const legacySnapshots = own(input, "snapshot") ? decodeEncoded(Schema.Boolean, input.snapshot, ["snapshot"], diagnostics) : undefined;
81
81
  const legacyUpdate = own(input, "autoupdate") ? decodeValue(exports_config.Info.fields.autoupdate, input.autoupdate, ["autoupdate"], diagnostics) : undefined;
82
+ const nativeUpdate = own(input, "update") ? input.update === "auto" ? "notify" : decodeEncoded(Info.fields.update, input.update, ["update"], diagnostics) : undefined;
82
83
  const legacyShare = own(input, "autoshare") ? decodeValue(Schema.Boolean, input.autoshare, ["autoshare"], diagnostics) === true ? "auto" : undefined : undefined;
83
84
  const legacyMedia = own(input, "attachment") ? decodeValue(exports_attachment.Info, input.attachment, ["attachment"], diagnostics) : undefined;
84
85
  if (legacyMedia !== undefined) {
@@ -88,8 +89,10 @@ function normalize(input) {
88
89
  }
89
90
  if (legacySnapshots !== undefined)
90
91
  encoded.snapshots = legacySnapshots;
91
- if (legacyUpdate !== undefined)
92
- encoded.update = exports_migrate.migrate({ autoupdate: legacyUpdate }).update;
92
+ const migratedUpdate = legacyUpdate === undefined ? undefined : exports_migrate.migrate({ autoupdate: legacyUpdate }).update;
93
+ const update = prefer(migratedUpdate, nativeUpdate, ["update"], diagnostics);
94
+ if (update !== undefined)
95
+ encoded.update = update;
93
96
  if (legacyShare !== undefined)
94
97
  encoded.share = legacyShare;
95
98
  const legacyReferences = decodeMap(input.reference, ConfigReference.Entry, ["reference"], diagnostics, decodeEncoded);
@@ -148,7 +151,6 @@ function normalize(input) {
148
151
  shell: Info.fields.shell,
149
152
  model: Info.fields.model,
150
153
  default_agent: Info.fields.default_agent,
151
- update: Info.fields.update,
152
154
  share: Info.fields.share,
153
155
  enterprise: Info.fields.enterprise,
154
156
  username: Info.fields.username,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./model-resolver-vpjkya7h.js";
3
+ } from "./schema-vpjkya7h.js";
4
4
 
5
5
  // src/file.ts
6
6
  var exports_file = {};
@@ -1,39 +1,36 @@
1
1
  import {
2
2
  exports_models
3
- } from "./model-resolver-3ebhgms6.js";
4
- import {
5
- exports_agent
6
- } from "./model-resolver-jsmyr6k0.js";
7
- import {
8
- exports_app
9
- } from "./model-resolver-hs51b0fc.js";
3
+ } from "./schema-dwvtf5ds.js";
10
4
  import {
11
5
  exports_catalog
12
- } from "./model-resolver-4fhh1fay.js";
6
+ } from "./schema-32ypdbhb.js";
13
7
  import {
14
8
  exports_integration
15
- } from "./model-resolver-158s554p.js";
9
+ } from "./schema-b9bp1awf.js";
10
+ import {
11
+ exports_app
12
+ } from "./schema-hs51b0fc.js";
16
13
  import {
17
14
  exports_model
18
- } from "./model-resolver-8manx9kj.js";
15
+ } from "./schema-8manx9kj.js";
19
16
  import {
20
17
  exports_provider
21
- } from "./model-resolver-68yag814.js";
18
+ } from "./schema-68yag814.js";
22
19
  import {
23
20
  exports_credential
24
- } from "./model-resolver-pmxa1kd1.js";
21
+ } from "./schema-jgzett5g.js";
25
22
  import {
26
23
  exports_bus
27
- } from "./model-resolver-b2mj9w79.js";
24
+ } from "./schema-fjb24bmd.js";
28
25
  import {
29
26
  __require
30
- } from "./model-resolver-vpjkya7h.js";
27
+ } from "./schema-vpjkya7h.js";
31
28
 
32
29
  // src/plugin/provider/github-copilot.ts
33
30
  import { Effect, Option, Schema, Semaphore, Stream } from "effect";
34
31
  import { define } from "@opencode-ai/plugin/effect/plugin";
35
32
  var clientID = "Ov23li8tweQw6odWQebz";
36
- var apiVersion = "2026-06-01";
33
+ var apiVersion = "2026-08-01";
37
34
  var userApiVersion = "2025-04-01";
38
35
  var pollingSafetyMargin = 3000;
39
36
  var methodID = exports_integration.MethodID.make("device");
@@ -49,6 +46,8 @@ var Token = Schema.Struct({
49
46
  interval: Schema.optional(Schema.Number)
50
47
  });
51
48
  var User = Schema.Struct({
49
+ chat_enabled: Schema.optional(Schema.Boolean),
50
+ can_signup_for_limited: Schema.optional(Schema.Boolean),
52
51
  endpoints: Schema.optional(Schema.Struct({
53
52
  api: Schema.optional(Schema.String)
54
53
  }))
@@ -114,21 +113,27 @@ var oauth = (app) => ({
114
113
  "User-Agent": exports_app.useragent(app),
115
114
  "X-GitHub-Api-Version": userApiVersion
116
115
  }
117
- }).pipe(Effect.map((user) => Option.getOrUndefined(decodeUser(user))?.endpoints?.api?.replace(/\/+$/, "")), Effect.orElseSucceed(() => {
116
+ }).pipe(Effect.map((user) => Option.getOrUndefined(decodeUser(user))), Effect.orElseSucceed(() => {
118
117
  return;
119
- }), Effect.map((apiEndpoint) => exports_credential.OAuth.make({
120
- type: "oauth",
121
- methodID,
122
- refresh: access,
123
- access,
124
- expires: 0,
125
- ...(enterprise || apiEndpoint) && {
126
- metadata: {
127
- ...enterprise ? { enterpriseUrl: domain } : {},
128
- ...apiEndpoint ? { apiEndpoint } : {}
118
+ }), Effect.flatMap((user) => {
119
+ const denied = user && copilotEntitlementError(user);
120
+ if (denied)
121
+ return Effect.fail(new Error(denied));
122
+ const apiEndpoint = user?.endpoints?.api?.replace(/\/+$/, "");
123
+ return Effect.succeed(exports_credential.OAuth.make({
124
+ type: "oauth",
125
+ methodID,
126
+ refresh: access,
127
+ access,
128
+ expires: 0,
129
+ ...(enterprise || apiEndpoint) && {
130
+ metadata: {
131
+ ...enterprise ? { enterpriseUrl: domain } : {},
132
+ ...apiEndpoint ? { apiEndpoint } : {}
133
+ }
129
134
  }
130
- }
131
- })));
135
+ }));
136
+ }));
132
137
  }
133
138
  if (token.error === "authorization_pending")
134
139
  return Effect.sleep(wait + pollingSafetyMargin).pipe(Effect.andThen(poll(wait)));
@@ -219,13 +224,20 @@ var GithubCopilotPlugin = define({
219
224
  const mod = yield* Effect.promise(() => import("../github-copilot/copilot-provider.js"));
220
225
  evt.sdk = mod.createOpenaiCompatible(evt.options);
221
226
  }));
227
+ yield* ctx.session.hook("model.request", (evt) => Effect.gen(function* () {
228
+ if (evt.model.providerID !== exports_provider.ID.githubCopilot)
229
+ return;
230
+ const session = yield* ctx.session.get({ sessionID: evt.sessionID }).pipe(Effect.orElseSucceed(() => {
231
+ return;
232
+ }));
233
+ const interaction = interactionType(evt.kind, session?.parentID !== undefined);
234
+ evt.headers["X-Interaction-Type"] = interaction;
235
+ if (interaction !== "conversation-agent")
236
+ evt.headers["x-initiator"] = "agent";
237
+ }), { providerID: exports_provider.ID.githubCopilot });
222
238
  yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
223
239
  if (evt.model.providerID !== exports_provider.ID.githubCopilot)
224
240
  return;
225
- if (evt.agent === exports_agent.ID.make("title"))
226
- evt.request.headers.set("X-Interaction-Type", "conversation-background");
227
- if (evt.agent === exports_agent.ID.make("compaction"))
228
- evt.request.headers.set("X-Interaction-Type", "conversation-compaction");
229
241
  const token = evt.request.headers.get("x-api-key");
230
242
  if (!token)
231
243
  return;
@@ -266,6 +278,13 @@ function oauthURLs(domain) {
266
278
  function baseURL(enterprise) {
267
279
  return enterprise ? `https://copilot-api.${normalizeDomain(enterprise)}` : "https://api.githubcopilot.com";
268
280
  }
281
+ function copilotEntitlementError(user) {
282
+ if (user.chat_enabled !== false)
283
+ return;
284
+ if (user.can_signup_for_limited)
285
+ return "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.";
286
+ return "This GitHub account does not have GitHub Copilot access. It needs an active Copilot subscription or a seat assigned by an organization.";
287
+ }
269
288
  function copilotBaseURL(metadata) {
270
289
  const endpoint = metadata?.apiEndpoint;
271
290
  if (typeof endpoint === "string" && endpoint)
@@ -310,12 +329,24 @@ function applyHeaders(headers2, token, app, metadata, anthropic) {
310
329
  headers2.set("User-Agent", exports_app.useragent(app));
311
330
  headers2.set("Openai-Intent", "conversation-edits");
312
331
  headers2.set("X-GitHub-Api-Version", apiVersion);
313
- headers2.set("x-initiator", metadata.agent ? "agent" : "user");
332
+ if (metadata.agent)
333
+ headers2.set("x-initiator", "agent");
334
+ else if (!headers2.has("x-initiator"))
335
+ headers2.set("x-initiator", "user");
314
336
  if (metadata.vision)
315
337
  headers2.set("Copilot-Vision-Request", "true");
316
338
  if (anthropic)
317
339
  headers2.set("anthropic-beta", "interleaved-thinking-2025-05-14");
318
340
  }
341
+ function interactionType(kind, child) {
342
+ if (kind === "title")
343
+ return "conversation-background";
344
+ if (kind === "compaction")
345
+ return "conversation-compaction";
346
+ if (child)
347
+ return "conversation-subagent";
348
+ return "conversation-agent";
349
+ }
319
350
  function requestMetadata(url, body) {
320
351
  if (!record(body))
321
352
  return { agent: false, vision: false };
@@ -345,4 +376,4 @@ function record(input) {
345
376
  return typeof input === "object" && input !== null && !Array.isArray(input);
346
377
  }
347
378
 
348
- export { GithubCopilotPlugin, copilotBaseURL, copilotFetch };
379
+ export { GithubCopilotPlugin, copilotEntitlementError, copilotBaseURL, copilotFetch, interactionType };
@@ -1,36 +1,36 @@
1
1
  import {
2
2
  createLLMEventPublisher
3
- } from "./model-resolver-nz4de5b9.js";
3
+ } from "./schema-4xf915ct.js";
4
4
  import {
5
5
  exports_retry
6
- } from "./model-resolver-pk53j7qk.js";
6
+ } from "./schema-aseryw3y.js";
7
7
  import {
8
8
  exports_usage
9
- } from "./model-resolver-nn16cgj7.js";
9
+ } from "./schema-nn16cgj7.js";
10
10
  import {
11
11
  toSessionError
12
- } from "./model-resolver-18medfkf.js";
13
- import {
14
- exports_tool
15
- } from "./model-resolver-egjtzeas.js";
12
+ } from "./schema-d6pj50wp.js";
16
13
  import {
17
14
  exports_snapshot
18
- } from "./model-resolver-v1bt6mkm.js";
15
+ } from "./schema-egn23jh0.js";
16
+ import {
17
+ exports_tool
18
+ } from "./schema-y71jz153.js";
19
19
  import {
20
20
  StepFailedError
21
- } from "./model-resolver-2sqw2jjm.js";
21
+ } from "./schema-2sqw2jjm.js";
22
22
  import {
23
23
  SessionEvent
24
- } from "./model-resolver-a83yvq99.js";
25
- import {
26
- exports_bus
27
- } from "./model-resolver-b2mj9w79.js";
24
+ } from "./schema-a83yvq99.js";
28
25
  import {
29
26
  exports_tool_output
30
- } from "./model-resolver-0vkt3tck.js";
27
+ } from "./schema-6b7ybj1y.js";
28
+ import {
29
+ exports_bus
30
+ } from "./schema-fjb24bmd.js";
31
31
  import {
32
32
  __export
33
- } from "./model-resolver-vpjkya7h.js";
33
+ } from "./schema-vpjkya7h.js";
34
34
 
35
35
  // src/session/runner/step.ts
36
36
  var exports_step = {};
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  exports_mcp
3
- } from "./model-resolver-je7dmgwr.js";
3
+ } from "./schema-kwh3ary7.js";
4
4
  import {
5
5
  exports_config
6
- } from "./model-resolver-yt21b5ce.js";
6
+ } from "./schema-jq0ga1pd.js";
7
7
  import {
8
8
  __export
9
- } from "./model-resolver-vpjkya7h.js";
9
+ } from "./schema-vpjkya7h.js";
10
10
 
11
11
  // src/config/plugin/mcp.ts
12
12
  var exports_mcp2 = {};
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  foldSettings
3
- } from "./model-resolver-r6sdn3zs.js";
3
+ } from "./schema-f3dqxhwr.js";
4
4
  import {
5
5
  exports_config
6
- } from "./model-resolver-yt21b5ce.js";
6
+ } from "./schema-jq0ga1pd.js";
7
7
  import {
8
8
  exports_model
9
- } from "./model-resolver-8manx9kj.js";
9
+ } from "./schema-8manx9kj.js";
10
10
 
11
11
  // src/plugin/provider/lmstudio.ts
12
12
  import { define } from "@opencode-ai/plugin/effect/plugin";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  exports_websearch
3
- } from "./model-resolver-r32713pr.js";
3
+ } from "./schema-5qrxwkqv.js";
4
4
  import {
5
5
  exports_permission
6
- } from "./model-resolver-8gv3hynm.js";
6
+ } from "./schema-1nf5m1zv.js";
7
7
  import {
8
8
  exports_form
9
- } from "./model-resolver-n120nzhy.js";
9
+ } from "./schema-6bwmg5am.js";
10
10
  import {
11
11
  __export
12
- } from "./model-resolver-vpjkya7h.js";
12
+ } from "./schema-vpjkya7h.js";
13
13
 
14
14
  // src/tool/plugin/websearch.ts
15
15
  var exports_websearch2 = {};
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  exports_mime
3
- } from "./model-resolver-kq3q54gz.js";
3
+ } from "./schema-kq3q54gz.js";
4
4
  import {
5
5
  exports_filesystem
6
- } from "./model-resolver-fxa9gsr7.js";
6
+ } from "./schema-s5c7wyma.js";
7
7
  import {
8
8
  exports_environment1 as exports_environment
9
- } from "./model-resolver-m1hg7kzv.js";
9
+ } from "./schema-qa1y9c59.js";
10
10
  import {
11
11
  NonNegativeInt,
12
12
  PositiveInt,
13
13
  RelativePath
14
- } from "./model-resolver-j07kk359.js";
14
+ } from "./schema-j07kk359.js";
15
15
  import {
16
16
  __export
17
- } from "./model-resolver-vpjkya7h.js";
17
+ } from "./schema-vpjkya7h.js";
18
18
 
19
19
  // src/tool/read-filesystem.ts
20
20
  var exports_read_filesystem = {};
@@ -1,26 +1,34 @@
1
1
  import {
2
2
  __export
3
- } from "./model-resolver-vpjkya7h.js";
3
+ } from "./schema-vpjkya7h.js";
4
4
 
5
5
  // src/session/subagent-completion.ts
6
6
  var exports_subagent_completion = {};
7
7
  __export(exports_subagent_completion, {
8
+ NO_TEXT: () => NO_TEXT,
8
9
  SubagentCompletion: () => exports_subagent_completion,
9
- deliver: () => deliver
10
+ deliver: () => deliver,
11
+ text: () => text
10
12
  });
11
13
  import { Effect } from "effect";
14
+ var NO_TEXT = "Subagent completed without a text response.";
15
+ function text(message) {
16
+ if (message?.type !== "assistant")
17
+ return NO_TEXT;
18
+ return message.content.filter((part) => part.type === "text").map((part) => part.text).join("") || NO_TEXT;
19
+ }
12
20
  var deliver = Effect.fnUntraced(function* (sessions, jobs, input) {
13
21
  if (input.status === "running")
14
22
  return;
15
23
  const recovery = input.recovery;
16
- const text = input.status === "completed" ? input.output ?? "Subagent completed without a text response." : input.status === "error" ? input.error ?? "Subagent failed" : "Subagent cancelled";
24
+ const text2 = input.status === "completed" ? input.output ?? NO_TEXT : input.status === "error" ? input.error ?? "Subagent failed" : "Subagent cancelled";
17
25
  yield* sessions.synthetic({
18
26
  ...input.notificationID ? { id: input.notificationID } : {},
19
27
  sessionID: recovery.parentSessionID,
20
28
  ...input.resume === false ? { resume: false } : {},
21
29
  description: recovery.description,
22
30
  text: `<subagent sessionID="${recovery.childSessionID}" state="${input.status}" description="${recovery.description}">
23
- ${text}
31
+ ${text2}
24
32
  </subagent>`,
25
33
  metadata: { source: "subagent", childID: recovery.childSessionID, agent: recovery.agent, state: input.status }
26
34
  });
@@ -28,4 +36,4 @@ ${text}
28
36
  yield* jobs.completeBackground(input.notificationID);
29
37
  });
30
38
 
31
- export { deliver, exports_subagent_completion };
39
+ export { NO_TEXT, text, deliver, exports_subagent_completion };