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

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 (800) 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-qen4dbg3.js → shell-042q48mg.js} +6 -6
  9. package/dist/chunks/{model-resolver-b2mj9w79.js → shell-07b0cypv.js} +6 -6
  10. package/dist/chunks/{model-resolver-0ag03ecw.js → shell-0ag03ecw.js} +2 -2
  11. package/dist/chunks/{model-resolver-djyc2dvw.js → shell-0avv30et.js} +7 -7
  12. package/dist/chunks/{model-resolver-d35eame8.js → shell-0ekaf5y1.js} +8 -8
  13. package/dist/chunks/{model-resolver-pm5ge93v.js → shell-0g44et96.js} +14 -14
  14. package/dist/chunks/{model-resolver-0gpahtwn.js → shell-0gpahtwn.js} +2 -2
  15. package/dist/chunks/{model-resolver-18medfkf.js → shell-0kfsnc8s.js} +8 -6
  16. package/dist/chunks/{model-resolver-0pc4kdn1.js → shell-0pc4kdn1.js} +2 -2
  17. package/dist/chunks/{model-resolver-0rz7yd7x.js → shell-0rz7yd7x.js} +1 -1
  18. package/dist/chunks/{model-resolver-r32713pr.js → shell-141a7zs0.js} +6 -6
  19. package/dist/chunks/{model-resolver-vsqc2j7q.js → shell-1n0ft3sp.js} +6 -7
  20. package/dist/chunks/{model-resolver-f4vh7ye9.js → shell-1nkp2xz2.js} +5 -5
  21. package/dist/chunks/{model-resolver-1qdep925.js → shell-2646kmak.js} +6 -6
  22. package/dist/chunks/{model-resolver-264e1nfp.js → shell-264e1nfp.js} +2 -2
  23. package/dist/chunks/{model-resolver-8ezmrsyj.js → shell-273erafq.js} +6 -2
  24. package/dist/chunks/{model-resolver-v1bt6mkm.js → shell-2ax4xmn8.js} +7 -7
  25. package/dist/chunks/{model-resolver-r48cnx81.js → shell-2j9934c7.js} +2 -2
  26. package/dist/chunks/{model-resolver-4wsyak3y.js → shell-2kz3bygf.js} +7 -7
  27. package/dist/chunks/{model-resolver-a8ftngxw.js → shell-2q2tk9tq.js} +10 -10
  28. package/dist/chunks/{model-resolver-2sqw2jjm.js → shell-2sqw2jjm.js} +3 -3
  29. package/dist/chunks/{model-resolver-326j4s6w.js → shell-326j4s6w.js} +2 -2
  30. package/dist/chunks/{model-resolver-3chx3ng6.js → shell-3chx3ng6.js} +1 -1
  31. package/dist/chunks/{model-resolver-3ep0k87g.js → shell-3ep0k87g.js} +3 -3
  32. package/dist/chunks/{model-resolver-4fr8jywp.js → shell-3gmr2bxd.js} +2 -2
  33. package/dist/chunks/{model-resolver-7qpdgm16.js → shell-3gt1rb2e.js} +95 -95
  34. package/dist/chunks/{model-resolver-8tcjfzdf.js → shell-3p7213xt.js} +8 -8
  35. package/dist/chunks/{model-resolver-3tg0cqem.js → shell-3tg0cqem.js} +1 -1
  36. package/dist/chunks/{model-resolver-42zyazrq.js → shell-42zyazrq.js} +1 -1
  37. package/dist/chunks/{model-resolver-67ndm1z2.js → shell-44akcmh3.js} +52 -52
  38. package/dist/chunks/{model-resolver-81kadfkq.js → shell-47tzbbtx.js} +2 -2
  39. package/dist/chunks/{model-resolver-z50wtwd6.js → shell-4mh4bmm5.js} +30 -30
  40. package/dist/chunks/{model-resolver-js6tcg3t.js → shell-4qk8prfw.js} +4 -4
  41. package/dist/chunks/{model-resolver-4v6g3p22.js → shell-4v6g3p22.js} +1 -1
  42. package/dist/chunks/{model-resolver-4w0ckvbq.js → shell-4w0ckvbq.js} +3 -3
  43. package/dist/chunks/{model-resolver-nz4de5b9.js → shell-4xf915ct.js} +3 -9
  44. package/dist/chunks/{model-resolver-51t2tyks.js → shell-51t2tyks.js} +1 -1
  45. package/dist/chunks/{model-resolver-53jxjgr1.js → shell-53jxjgr1.js} +2 -2
  46. package/dist/chunks/{model-resolver-t3r0ngmb.js → shell-55fkmd57.js} +9 -9
  47. package/dist/chunks/{model-resolver-nx1h5ew3.js → shell-5dppjsbb.js} +20 -20
  48. package/dist/chunks/{model-resolver-3mc1hhwa.js → shell-5p6bksbb.js} +3 -3
  49. package/dist/chunks/{model-resolver-0n1ech8q.js → shell-5qp5qbt3.js} +92 -92
  50. package/dist/chunks/{model-resolver-5vbk082d.js → shell-5vbk082d.js} +2 -2
  51. package/dist/chunks/{model-resolver-5y5kqjze.js → shell-5y5kqjze.js} +1 -1
  52. package/dist/chunks/{model-resolver-vcygwjbr.js → shell-64hzgwtd.js} +5 -5
  53. package/dist/chunks/{model-resolver-66mds5ht.js → shell-66mds5ht.js} +1 -1
  54. package/dist/chunks/{model-resolver-68yag814.js → shell-68yag814.js} +1 -1
  55. package/dist/chunks/{model-resolver-6bxzghb6.js → shell-6bxzghb6.js} +1 -1
  56. package/dist/chunks/{model-resolver-p7kv5kq9.js → shell-6dkv011c.js} +20 -20
  57. package/dist/chunks/{model-resolver-6hppa3xw.js → shell-6hppa3xw.js} +2 -2
  58. package/dist/chunks/shell-6m12vprq.js +74 -0
  59. package/dist/chunks/{model-resolver-vbaqktrz.js → shell-6qqxywp2.js} +2 -2
  60. package/dist/chunks/{model-resolver-6vbv4je1.js → shell-6vbv4je1.js} +2 -2
  61. package/dist/chunks/{model-resolver-6wsfy4sp.js → shell-6wsfy4sp.js} +2 -2
  62. package/dist/chunks/{model-resolver-ns8veh4z.js → shell-70qypj5k.js} +5 -5
  63. package/dist/chunks/{model-resolver-8gd72fyf.js → shell-7b5y25fs.js} +5 -5
  64. package/dist/chunks/{model-resolver-0vkt3tck.js → shell-7gcyy9x5.js} +4 -4
  65. package/dist/chunks/shell-7j3d9h1a.js +173 -0
  66. package/dist/chunks/{model-resolver-895xgr1f.js → shell-7jghge8q.js} +5 -5
  67. package/dist/chunks/{model-resolver-7myqjfx6.js → shell-7myqjfx6.js} +1 -1
  68. package/dist/chunks/{model-resolver-fxa9gsr7.js → shell-7rd51vdr.js} +4 -4
  69. package/dist/chunks/{model-resolver-rr20669x.js → shell-7v99w5je.js} +10 -10
  70. package/dist/chunks/{model-resolver-qmw35mw3.js → shell-7za4nbcg.js} +17 -17
  71. package/dist/chunks/{model-resolver-qtvfzxt9.js → shell-80v4fd6z.js} +8 -8
  72. package/dist/chunks/{model-resolver-ath9jwvp.js → shell-87j79ehp.js} +8 -8
  73. package/dist/chunks/{model-resolver-pk53j7qk.js → shell-89fyhav1.js} +3 -2
  74. package/dist/chunks/{model-resolver-89ttfx5q.js → shell-89ttfx5q.js} +2 -2
  75. package/dist/chunks/{model-resolver-8manx9kj.js → shell-8manx9kj.js} +2 -2
  76. package/dist/chunks/{model-resolver-psa1vmjb.js → shell-8q8h9s11.js} +3 -3
  77. package/dist/chunks/{model-resolver-8y5vxhk7.js → shell-8y5vxhk7.js} +1 -1
  78. package/dist/chunks/{model-resolver-50zp5qas.js → shell-8zcrsv5t.js} +5 -5
  79. package/dist/chunks/{model-resolver-gst5vhy7.js → shell-91jk6xaw.js} +18 -18
  80. package/dist/chunks/{model-resolver-hqw3c13n.js → shell-9ak91fv3.js} +17 -17
  81. package/dist/chunks/{model-resolver-9dbv6hqn.js → shell-9dbv6hqn.js} +2 -2
  82. package/dist/chunks/{model-resolver-2kthdmar.js → shell-9dpanzbm.js} +8 -8
  83. package/dist/chunks/{model-resolver-2v2tc4x7.js → shell-9dyp6shn.js} +2 -2
  84. package/dist/chunks/{model-resolver-36pw8tps.js → shell-9jekp4re.js} +4 -4
  85. package/dist/chunks/{model-resolver-yxwnec9y.js → shell-9xr8vq79.js} +10 -10
  86. package/dist/chunks/{model-resolver-a6xqkezx.js → shell-a6xqkezx.js} +1 -1
  87. package/dist/chunks/{model-resolver-ef1eacza.js → shell-a84493y6.js} +3 -3
  88. package/dist/chunks/{model-resolver-qc9f9sqe.js → shell-a8503na0.js} +3 -3
  89. package/dist/chunks/{model-resolver-af42tqdk.js → shell-af42tqdk.js} +2 -2
  90. package/dist/chunks/{model-resolver-c71vnwdm.js → shell-ag4nhqj6.js} +3 -3
  91. package/dist/chunks/{model-resolver-mvw9jqgs.js → shell-ankcqpvn.js} +15 -15
  92. package/dist/chunks/{model-resolver-pnesahrw.js → shell-arcb009s.js} +4 -4
  93. package/dist/chunks/{model-resolver-pmxa1kd1.js → shell-ask3gap1.js} +4 -4
  94. package/dist/chunks/{model-resolver-136r7v3c.js → shell-avzsa1v3.js} +8 -8
  95. package/dist/chunks/{model-resolver-eh2wdxrj.js → shell-b3v8bj34.js} +20 -15
  96. package/dist/chunks/{model-resolver-ranv4wm0.js → shell-b5jaeffq.js} +5 -5
  97. package/dist/chunks/{model-resolver-5swfpf97.js → shell-ba33t81m.js} +3 -3
  98. package/dist/chunks/{model-resolver-165g8spq.js → shell-ba72c74g.js} +8 -8
  99. package/dist/chunks/{model-resolver-kcz5s2sc.js → shell-bc9tkpkc.js} +46 -85
  100. package/dist/chunks/{model-resolver-bd2mvb8t.js → shell-bd2mvb8t.js} +2 -2
  101. package/dist/chunks/{model-resolver-xghrvkpy.js → shell-bkxmnfwx.js} +6 -6
  102. package/dist/chunks/{model-resolver-z5qwd455.js → shell-bmkvq0kr.js} +2 -2
  103. package/dist/chunks/{model-resolver-bnha4c96.js → shell-bnha4c96.js} +1 -1
  104. package/dist/chunks/{model-resolver-e1252xh0.js → shell-c3rqq6n4.js} +14 -14
  105. package/dist/chunks/{model-resolver-c54e84vp.js → shell-c54e84vp.js} +1 -1
  106. package/dist/chunks/{model-resolver-c55cgmsp.js → shell-c55cgmsp.js} +2 -2
  107. package/dist/chunks/{model-resolver-c8ya26sa.js → shell-c8ya26sa.js} +2 -2
  108. package/dist/chunks/{model-resolver-ryxrw20d.js → shell-chwz5826.js} +14 -14
  109. package/dist/chunks/{model-resolver-ckcq38kt.js → shell-ckcq38kt.js} +2 -2
  110. package/dist/chunks/{model-resolver-zz8p0qp8.js → shell-cpsjz0c7.js} +3 -3
  111. package/dist/chunks/{model-resolver-cs1jwk5c.js → shell-cvj1dyzv.js} +90 -29
  112. package/dist/chunks/{model-resolver-bb4yrkhg.js → shell-czwwtdmj.js} +4 -4
  113. package/dist/chunks/{model-resolver-d4h7vwhh.js → shell-d4h7vwhh.js} +2 -2
  114. package/dist/chunks/{model-resolver-dexm22yg.js → shell-dexm22yg.js} +1 -1
  115. package/dist/chunks/{model-resolver-tmfv98ar.js → shell-dg8w2yk3.js} +14 -14
  116. package/dist/chunks/{model-resolver-6a909wmz.js → shell-dj1xm95f.js} +2 -2
  117. package/dist/chunks/{model-resolver-egjtzeas.js → shell-djxb2q0f.js} +9 -9
  118. package/dist/chunks/{model-resolver-dtm6fkaa.js → shell-dtm6fkaa.js} +2 -2
  119. package/dist/chunks/{model-resolver-hfdhxhjt.js → shell-dwrevpn0.js} +7 -7
  120. package/dist/chunks/{model-resolver-3ebhgms6.js → shell-dwvtf5ds.js} +6 -5
  121. package/dist/chunks/{model-resolver-dyhtrhy2.js → shell-dyhtrhy2.js} +1 -1
  122. package/dist/chunks/{model-resolver-e0n16vwa.js → shell-e0n16vwa.js} +2 -2
  123. package/dist/chunks/{model-resolver-y6z22yy0.js → shell-e96z09t7.js} +2 -2
  124. package/dist/chunks/{model-resolver-3rvvyz0j.js → shell-eazsh8dz.js} +23 -45
  125. package/dist/chunks/{model-resolver-eb87q0yv.js → shell-eb87q0yv.js} +1 -1
  126. package/dist/chunks/{model-resolver-edxnhgvj.js → shell-edxnhgvj.js} +1 -1
  127. package/dist/chunks/{model-resolver-9w1bs40q.js → shell-env4mczv.js} +6 -6
  128. package/dist/chunks/{model-resolver-esv5q40e.js → shell-esv5q40e.js} +1 -1
  129. package/dist/chunks/{model-resolver-etbnsc4s.js → shell-etbnsc4s.js} +2 -2
  130. package/dist/chunks/{model-resolver-tmcx57d7.js → shell-f16sbr11.js} +4 -4
  131. package/dist/chunks/{model-resolver-f2nhxfjt.js → shell-f2nhxfjt.js} +2 -2
  132. package/dist/chunks/{model-resolver-mndv4v9k.js → shell-f8hwpd84.js} +10 -10
  133. package/dist/chunks/{model-resolver-f8wvq04h.js → shell-f8wvq04h.js} +1 -1
  134. package/dist/chunks/{model-resolver-myqa85b0.js → shell-f92vt4xc.js} +2 -2
  135. package/dist/chunks/{model-resolver-czskr0xw.js → shell-feq9r64e.js} +3 -3
  136. package/dist/chunks/{model-resolver-dyax5m0p.js → shell-fmf73fvz.js} +2 -2
  137. package/dist/chunks/{model-resolver-fqehnn9p.js → shell-fqehnn9p.js} +2 -2
  138. package/dist/chunks/{model-resolver-03ddbsr9.js → shell-fzc5n3sa.js} +44 -29
  139. package/dist/chunks/{model-resolver-136c8mz3.js → shell-g70ev3a2.js} +4 -4
  140. package/dist/chunks/{model-resolver-g9dd0fv6.js → shell-g9dd0fv6.js} +2 -2
  141. package/dist/chunks/{model-resolver-gb1z7yet.js → shell-gb1z7yet.js} +2 -2
  142. package/dist/chunks/{model-resolver-bsksdwjr.js → shell-gbbcs6dk.js} +3 -3
  143. package/dist/chunks/{model-resolver-gc513wew.js → shell-gc513wew.js} +2 -2
  144. package/dist/chunks/{model-resolver-7g3szxan.js → shell-gcx27tm4.js} +3 -3
  145. package/dist/chunks/{model-resolver-d88sh0qh.js → shell-gebnmg22.js} +4 -4
  146. package/dist/chunks/{model-resolver-4fhh1fay.js → shell-gmw0vgww.js} +8 -8
  147. package/dist/chunks/shell-gqrtc8r6.js +60 -0
  148. package/dist/chunks/{model-resolver-grfz4hhj.js → shell-grfz4hhj.js} +1 -1
  149. package/dist/chunks/{model-resolver-rmrmrh60.js → shell-h5f8a9ks.js} +10 -10
  150. package/dist/chunks/{model-resolver-kr9vgar1.js → shell-hbtzhcxr.js} +13 -5
  151. package/dist/chunks/{model-resolver-vwkqrtae.js → shell-hc47qdwn.js} +9 -9
  152. package/dist/chunks/{model-resolver-hgr9y616.js → shell-hgr9y616.js} +1 -1
  153. package/dist/chunks/{model-resolver-qz5gwjr7.js → shell-hp004neb.js} +5 -5
  154. package/dist/chunks/{model-resolver-hpkeh7wf.js → shell-hpkeh7wf.js} +1 -1
  155. package/dist/chunks/{model-resolver-hs51b0fc.js → shell-hs51b0fc.js} +1 -1
  156. package/dist/chunks/{model-resolver-htmhxvv7.js → shell-htmhxvv7.js} +1 -1
  157. package/dist/chunks/{model-resolver-48xfm273.js → shell-hvccmfya.js} +5 -5
  158. package/dist/chunks/{model-resolver-hvydqsq5.js → shell-hvydqsq5.js} +2 -2
  159. package/dist/chunks/{model-resolver-hy5n5jcn.js → shell-hy5n5jcn.js} +1 -1
  160. package/dist/chunks/{model-resolver-hzag9ake.js → shell-hzag9ake.js} +1 -1
  161. package/dist/chunks/{model-resolver-hzwx8p6y.js → shell-hzwx8p6y.js} +1 -1
  162. package/dist/chunks/{model-resolver-j0feex7e.js → shell-j0feex7e.js} +1 -1
  163. package/dist/chunks/{model-resolver-xq6chnhm.js → shell-j2nrfc47.js} +6 -6
  164. package/dist/chunks/{model-resolver-njadyfry.js → shell-j5vqta4j.js} +21 -19
  165. package/dist/chunks/{model-resolver-dyrfpcd0.js → shell-j6s3yjyb.js} +68 -20
  166. package/dist/chunks/{model-resolver-c8n0v0wx.js → shell-j9a1jgvn.js} +3 -3
  167. package/dist/chunks/{model-resolver-jar52fmb.js → shell-jar52fmb.js} +3 -3
  168. package/dist/chunks/{model-resolver-p9kbbxty.js → shell-jefdyv88.js} +4 -4
  169. package/dist/chunks/{model-resolver-h01zxzks.js → shell-jepqtr73.js} +6 -6
  170. package/dist/chunks/{model-resolver-s7cdvjvw.js → shell-jjxszdq6.js} +9 -9
  171. package/dist/chunks/{model-resolver-qnbjsbym.js → shell-jp46hhdm.js} +65 -61
  172. package/dist/chunks/{model-resolver-jqhp3fpz.js → shell-jqhp3fpz.js} +2 -2
  173. package/dist/chunks/{model-resolver-td9hry5r.js → shell-jxkq3d3v.js} +4 -4
  174. package/dist/chunks/{model-resolver-9ybkn4f3.js → shell-k1vg0xt3.js} +10 -10
  175. package/dist/chunks/{model-resolver-k7hkdbw5.js → shell-k7hkdbw5.js} +2 -2
  176. package/dist/chunks/{model-resolver-se5h029t.js → shell-ka3gxs6j.js} +5 -5
  177. package/dist/chunks/{model-resolver-r6sdn3zs.js → shell-kftmq20s.js} +5 -5
  178. package/dist/chunks/{model-resolver-7fndj6sb.js → shell-kk70vshc.js} +1 -1
  179. package/dist/chunks/{model-resolver-158s554p.js → shell-kk74kxfs.js} +8 -8
  180. package/dist/chunks/{model-resolver-kq3q54gz.js → shell-kq3q54gz.js} +1 -1
  181. package/dist/chunks/{model-resolver-m3k5wttq.js → shell-m3k5wttq.js} +4 -4
  182. package/dist/chunks/{model-resolver-m6a7zjhr.js → shell-m6a7zjhr.js} +1 -1
  183. package/dist/chunks/{model-resolver-m7jtgrng.js → shell-m7jtgrng.js} +2 -2
  184. package/dist/chunks/{model-resolver-mf0hyk7z.js → shell-mf0hyk7z.js} +1 -1
  185. package/dist/chunks/{model-resolver-xn34k971.js → shell-mjazva4s.js} +9 -9
  186. package/dist/chunks/{model-resolver-mnyszbxc.js → shell-mnyszbxc.js} +1 -1
  187. package/dist/chunks/{model-resolver-h3jh27nc.js → shell-mqq97asn.js} +2 -2
  188. package/dist/chunks/{model-resolver-ax34jjm3.js → shell-ms3g46s0.js} +9 -9
  189. package/dist/chunks/{model-resolver-mv81kt5z.js → shell-mv81kt5z.js} +2 -2
  190. package/dist/chunks/{model-resolver-my53s247.js → shell-my53s247.js} +1 -1
  191. package/dist/chunks/{model-resolver-t54q55m1.js → shell-n06hdswm.js} +7 -7
  192. package/dist/chunks/{model-resolver-s2avg5mp.js → shell-n2g2cxnx.js} +4 -4
  193. package/dist/chunks/{model-resolver-qa2w238n.js → shell-n42yafp0.js} +3 -3
  194. package/dist/chunks/{model-resolver-1n8ee09s.js → shell-n8n4ktw0.js} +9 -9
  195. package/dist/chunks/{model-resolver-je7dmgwr.js → shell-nbv6mqns.js} +16 -16
  196. package/dist/chunks/{model-resolver-ngzr6ypz.js → shell-ngzr6ypz.js} +2 -2
  197. package/dist/chunks/{model-resolver-nn16cgj7.js → shell-nn16cgj7.js} +1 -1
  198. package/dist/chunks/{model-resolver-89rn8xzn.js → shell-nr11n6aa.js} +23 -23
  199. package/dist/chunks/{model-resolver-n3ej23f6.js → shell-nrd3ctd8.js} +5 -5
  200. package/dist/chunks/{model-resolver-ntev5d3k.js → shell-ntev5d3k.js} +3 -3
  201. package/dist/chunks/{model-resolver-gfr7wgjb.js → shell-p09n0p06.js} +12 -12
  202. package/dist/chunks/{model-resolver-p1m5qwvv.js → shell-p1m5qwvv.js} +1 -1
  203. package/dist/chunks/{model-resolver-p5gyct0y.js → shell-p5gyct0y.js} +1 -1
  204. package/dist/chunks/{model-resolver-eptw9fc8.js → shell-pgf3e1q2.js} +3 -3
  205. package/dist/chunks/{model-resolver-j44smbby.js → shell-pgrvjceq.js} +3 -3
  206. package/dist/chunks/{model-resolver-15077vr8.js → shell-pmn2j35m.js} +157 -157
  207. package/dist/chunks/{model-resolver-qjkhdsbm.js → shell-pv8kr1wp.js} +7 -7
  208. package/dist/chunks/{model-resolver-pves38xm.js → shell-pves38xm.js} +2 -2
  209. package/dist/chunks/{model-resolver-whbgthyk.js → shell-pvpv4rn6.js} +14 -14
  210. package/dist/chunks/{model-resolver-7ke4vm17.js → shell-q1w4qb6z.js} +4 -4
  211. package/dist/chunks/{model-resolver-q606pcse.js → shell-q606pcse.js} +3 -3
  212. package/dist/chunks/{model-resolver-m0hk48gq.js → shell-q7reqpp2.js} +3 -3
  213. package/dist/chunks/{model-resolver-hwtjfpwk.js → shell-qbfqnn1d.js} +11 -13
  214. package/dist/chunks/{model-resolver-qf52r0wh.js → shell-qf52r0wh.js} +1 -1
  215. package/dist/chunks/{model-resolver-qfvp8zq7.js → shell-qfvp8zq7.js} +1 -1
  216. package/dist/chunks/{model-resolver-dpwr0jqv.js → shell-qkccxvz6.js} +5 -5
  217. package/dist/chunks/{model-resolver-qpxzqy01.js → shell-qpxzqy01.js} +1 -1
  218. package/dist/chunks/{model-resolver-r7a2r1m6.js → shell-r7a2r1m6.js} +2 -2
  219. package/dist/chunks/{model-resolver-dc1577g0.js → shell-r7gm0yzj.js} +3 -3
  220. package/dist/chunks/{model-resolver-r7z6wjth.js → shell-r7z6wjth.js} +1 -1
  221. package/dist/chunks/{model-resolver-yt21b5ce.js → shell-r8f3g7x9.js} +22 -20
  222. package/dist/chunks/{model-resolver-r9d3d23r.js → shell-r9d3d23r.js} +1 -1
  223. package/dist/chunks/{model-resolver-rahat93a.js → shell-rahat93a.js} +1 -1
  224. package/dist/chunks/{model-resolver-jr5m26np.js → shell-rpa95wsa.js} +14 -15
  225. package/dist/chunks/{model-resolver-rr7wbarq.js → shell-rr7wbarq.js} +1 -1
  226. package/dist/chunks/{model-resolver-9d52kcc6.js → shell-rvt91wbj.js} +3 -3
  227. package/dist/chunks/{model-resolver-bztt47zv.js → shell-rxnz5856.js} +6 -6
  228. package/dist/chunks/{model-resolver-aqjetpt7.js → shell-s231yqcx.js} +3 -3
  229. package/dist/chunks/{model-resolver-eqn19kbv.js → shell-s243tsw3.js} +3 -3
  230. package/dist/chunks/{model-resolver-s32nnj3r.js → shell-s32nnj3r.js} +1 -1
  231. package/dist/chunks/{model-resolver-m0zebzgf.js → shell-sdwsqdh9.js} +3 -3
  232. package/dist/chunks/{model-resolver-tn3vtv4h.js → shell-t1qmyghk.js} +5 -5
  233. package/dist/chunks/{model-resolver-m1hg7kzv.js → shell-tde1y35v.js} +9 -9
  234. package/dist/chunks/{model-resolver-m6rc87ej.js → shell-teseat8q.js} +11 -11
  235. package/dist/chunks/{model-resolver-k92s0cap.js → shell-tfcwk9cz.js} +19 -19
  236. package/dist/chunks/{model-resolver-rtktz058.js → shell-tzrgz0z8.js} +4 -4
  237. package/dist/chunks/{model-resolver-nr5fgbs6.js → shell-v50xf5z2.js} +5 -5
  238. package/dist/chunks/{model-resolver-7a4wqe5w.js → shell-v63sw24f.js} +5 -5
  239. package/dist/chunks/{model-resolver-v9qxqszp.js → shell-v9qxqszp.js} +3 -3
  240. package/dist/chunks/{model-resolver-ybr4xq6z.js → shell-vc6t3p1d.js} +53 -34
  241. package/dist/chunks/{model-resolver-vcwr2vpf.js → shell-vcwr2vpf.js} +1 -1
  242. package/dist/chunks/{model-resolver-yrzmcphh.js → shell-vg0pa6wg.js} +6 -6
  243. package/dist/chunks/{model-resolver-y251tsy9.js → shell-vwsdy5q1.js} +4 -4
  244. package/dist/chunks/{model-resolver-vynk8zbr.js → shell-vynk8zbr.js} +1 -1
  245. package/dist/chunks/{model-resolver-jpjemq2p.js → shell-w3124eb9.js} +4 -4
  246. package/dist/chunks/{model-resolver-wz5907jr.js → shell-w5r741x8.js} +5 -5
  247. package/dist/chunks/{model-resolver-w5r9s7kx.js → shell-w5r9s7kx.js} +1 -1
  248. package/dist/chunks/{model-resolver-1pfcdes2.js → shell-w7777901.js} +4 -4
  249. package/dist/chunks/{model-resolver-wbkt8qpj.js → shell-wbkt8qpj.js} +1 -1
  250. package/dist/chunks/shell-wcfnpn6z.js +49 -0
  251. package/dist/chunks/{model-resolver-jsmyr6k0.js → shell-wdhfb1av.js} +5 -5
  252. package/dist/chunks/{model-resolver-wdqva41w.js → shell-wdqva41w.js} +1 -1
  253. package/dist/chunks/{model-resolver-wf5w4wph.js → shell-wf5w4wph.js} +1 -1
  254. package/dist/chunks/{model-resolver-2qq12ds3.js → shell-wht8mw9e.js} +5 -5
  255. package/dist/chunks/{model-resolver-qp4cj2b0.js → shell-wm7n3k6n.js} +6 -6
  256. package/dist/chunks/{model-resolver-wmxdh12w.js → shell-wmxdh12w.js} +1 -1
  257. package/dist/chunks/{model-resolver-zt42x7wk.js → shell-wzz9pqkk.js} +4 -4
  258. package/dist/chunks/{model-resolver-m721zqr5.js → shell-x1cxkrw5.js} +7 -7
  259. package/dist/chunks/{model-resolver-x3vb5b1t.js → shell-x3vb5b1t.js} +1 -1
  260. package/dist/chunks/{model-resolver-x4az4y7r.js → shell-x4az4y7r.js} +1 -1
  261. package/dist/chunks/{model-resolver-xdb88cdw.js → shell-xdb88cdw.js} +2 -2
  262. package/dist/chunks/{model-resolver-xe02v0q7.js → shell-xe02v0q7.js} +2 -2
  263. package/dist/chunks/{model-resolver-vsg6fsmg.js → shell-xvsa7tcp.js} +4 -4
  264. package/dist/chunks/{model-resolver-xws7arpm.js → shell-xws7arpm.js} +1 -1
  265. package/dist/chunks/{model-resolver-6htxnd6w.js → shell-xx7nefqn.js} +7 -7
  266. package/dist/chunks/{model-resolver-yr82tean.js → shell-xytsmcb2.js} +11 -11
  267. package/dist/chunks/{model-resolver-nj6yqve1.js → shell-ymj89trn.js} +7 -3
  268. package/dist/chunks/{model-resolver-8gv3hynm.js → shell-yvpqrhda.js} +13 -13
  269. package/dist/chunks/{model-resolver-fet3yrh0.js → shell-yz2yeez5.js} +59 -21
  270. package/dist/chunks/{model-resolver-emt5rhx5.js → shell-z14yv7mw.js} +6 -6
  271. package/dist/chunks/{model-resolver-w53bf3d8.js → shell-z48apzz2.js} +6 -6
  272. package/dist/chunks/{model-resolver-mz3md7e9.js → shell-z7p6fept.js} +14 -14
  273. package/dist/chunks/{model-resolver-z8c1ty6e.js → shell-z8c1ty6e.js} +1 -1
  274. package/dist/chunks/{model-resolver-zbqqnp0n.js → shell-zbqqnp0n.js} +1 -1
  275. package/dist/chunks/{model-resolver-n120nzhy.js → shell-zdf23kgm.js} +2 -2
  276. package/dist/chunks/{model-resolver-zmbmd7xf.js → shell-zmbmd7xf.js} +2 -2
  277. package/dist/chunks/{model-resolver-7hg4wk1y.js → shell-zmvsednx.js} +4 -4
  278. package/dist/chunks/{model-resolver-zn935gjz.js → shell-zn935gjz.js} +1 -1
  279. package/dist/chunks/shell-zr29p06e.js +136 -0
  280. package/dist/chunks/{model-resolver-zseh86v1.js → shell-zseh86v1.js} +2 -2
  281. package/dist/chunks/{model-resolver-t9t544b9.js → shell-zwfcr2t4.js} +3 -1
  282. package/dist/chunks/{model-resolver-zyyhrfr9.js → shell-zyyhrfr9.js} +1 -1
  283. package/dist/codemode/catalog.js +2 -2
  284. package/dist/codemode/instructions.js +4 -4
  285. package/dist/codemode/tool.js +4 -4
  286. package/dist/command.js +70 -70
  287. package/dist/config/discovery.js +79 -79
  288. package/dist/config/markdown.js +2 -2
  289. package/dist/config/normalize.js +20 -20
  290. package/dist/config/plugin/agent.js +129 -129
  291. package/dist/config/plugin/command.js +211 -115
  292. package/dist/config/plugin/compaction.js +168 -168
  293. package/dist/config/plugin/entry-observer.js +111 -111
  294. package/dist/config/plugin/formatter.js +116 -116
  295. package/dist/config/plugin/image.js +128 -128
  296. package/dist/config/plugin/instruction.js +85 -85
  297. package/dist/config/plugin/location-watcher.js +114 -114
  298. package/dist/config/plugin/mcp.js +124 -124
  299. package/dist/config/plugin/policy.js +113 -113
  300. package/dist/config/plugin/provider.js +112 -112
  301. package/dist/config/plugin/reference.js +116 -116
  302. package/dist/config/plugin/shell.js +115 -115
  303. package/dist/config/plugin/skill-file.js +98 -98
  304. package/dist/config/plugin/skill.js +132 -132
  305. package/dist/config/plugin/snapshot.js +114 -114
  306. package/dist/config/plugin/source.js +112 -112
  307. package/dist/config/plugin/tool-output.js +116 -116
  308. package/dist/config/plugin/websearch.js +112 -112
  309. package/dist/config/variable.js +4 -4
  310. package/dist/config/watch.js +2 -2
  311. package/dist/config.js +110 -110
  312. package/dist/credential/sql.js +3 -3
  313. package/dist/credential.js +71 -71
  314. package/dist/database/database.js +65 -65
  315. package/dist/database/drizzle/effect-sqlite/driver.js +13 -13
  316. package/dist/database/drizzle/effect-sqlite/index.js +13 -13
  317. package/dist/database/drizzle/effect-sqlite/session.js +12 -12
  318. package/dist/database/drizzle/index.js +14 -14
  319. package/dist/database/drizzle/internal/drizzle-utils.js +2 -2
  320. package/dist/database/drizzle/sqlite-core/effect/count.js +2 -2
  321. package/dist/database/drizzle/sqlite-core/effect/db.js +10 -10
  322. package/dist/database/drizzle/sqlite-core/effect/delete.js +3 -3
  323. package/dist/database/drizzle/sqlite-core/effect/index.js +21 -21
  324. package/dist/database/drizzle/sqlite-core/effect/insert.js +3 -3
  325. package/dist/database/drizzle/sqlite-core/effect/query.js +2 -2
  326. package/dist/database/drizzle/sqlite-core/effect/raw.js +2 -2
  327. package/dist/database/drizzle/sqlite-core/effect/select.js +3 -3
  328. package/dist/database/drizzle/sqlite-core/effect/session.js +11 -11
  329. package/dist/database/drizzle/sqlite-core/effect/update.js +3 -3
  330. package/dist/database/drizzle.js +15 -15
  331. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +2 -2
  332. package/dist/database/migration/20260211171708_add_project_commands.js +2 -2
  333. package/dist/database/migration/20260213144116_wakeful_the_professor.js +2 -2
  334. package/dist/database/migration/20260225215848_workspace.js +2 -2
  335. package/dist/database/migration/20260227213759_add_session_workspace_id.js +2 -2
  336. package/dist/database/migration/20260228203230_blue_harpoon.js +2 -2
  337. package/dist/database/migration/20260303231226_add_workspace_fields.js +2 -2
  338. package/dist/database/migration/20260309230000_move_org_to_state.js +2 -2
  339. package/dist/database/migration/20260312043431_session_message_cursor.js +2 -2
  340. package/dist/database/migration/20260323234822_events.js +2 -2
  341. package/dist/database/migration/20260410174513_workspace-name.js +2 -2
  342. package/dist/database/migration/20260413175956_chief_energizer.js +2 -2
  343. package/dist/database/migration/20260423070820_add_icon_url_override.js +2 -2
  344. package/dist/database/migration/20260427172553_slow_nightmare.js +2 -2
  345. package/dist/database/migration/20260428004200_add_session_path.js +2 -2
  346. package/dist/database/migration/20260501142318_next_venus.js +2 -2
  347. package/dist/database/migration/20260504145000_add_sync_owner.js +2 -2
  348. package/dist/database/migration/20260507164347_add_workspace_time.js +2 -2
  349. package/dist/database/migration/20260510033149_session_usage.js +2 -2
  350. package/dist/database/migration/20260511000411_data_migration_state.js +2 -2
  351. package/dist/database/migration/20260511173437_session-metadata.js +2 -2
  352. package/dist/database/migration/20260601010001_normalize_storage_paths.js +2 -2
  353. package/dist/database/migration/20260601202201_amazing_prowler.js +2 -2
  354. package/dist/database/migration/20260602002951_lowly_union_jack.js +2 -2
  355. package/dist/database/migration/20260602182828_add_project_directories.js +2 -2
  356. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +2 -2
  357. package/dist/database/migration/20260603040000_session_message_projection_order.js +2 -2
  358. package/dist/database/migration/20260603141458_session_input_inbox.js +2 -2
  359. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +2 -2
  360. package/dist/database/migration/20260604172448_event_sourced_session_input.js +2 -2
  361. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +2 -2
  362. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +2 -2
  363. package/dist/database/migration/20260611035744_credential.js +2 -2
  364. package/dist/database/migration/20260611192811_lush_chimera.js +2 -2
  365. package/dist/database/migration/20260612174303_project_dir_strategy.js +2 -2
  366. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +2 -2
  367. package/dist/database/migration/20260622170816_reset_v2_session_state.js +2 -2
  368. package/dist/database/migration/20260622202450_simplify_session_input.js +2 -2
  369. package/dist/database/migration/20260804233008_loose_psylocke.js +2 -2
  370. package/dist/database/migration/20260805200742_import_legacy_credentials.js +2 -2
  371. package/dist/database/migration/20260808023530_workspace_domain.js +2 -2
  372. package/dist/database/migration/20260811161259_execution_claim_attempts.js +2 -2
  373. package/dist/database/migration/20260812181746_session_inbox.js +2 -2
  374. package/dist/database/migration/20260812213948_worktree.js +2 -2
  375. package/dist/database/migration/20260819222447_session_viewed_state.js +2 -2
  376. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +2 -2
  377. package/dist/database/migration.gen.js +48 -48
  378. package/dist/database/migration.js +50 -50
  379. package/dist/database/path.js +3 -3
  380. package/dist/database/schema.gen.js +2 -2
  381. package/dist/database/schema.sql.js +2 -2
  382. package/dist/database/sqlite.bun.js +2 -2
  383. package/dist/database/sqlite.js +2 -2
  384. package/dist/database/sqlite.node.js +2 -2
  385. package/dist/database/sqlite.workerd.js +2 -2
  386. package/dist/database/v1-migration.bun.js +75 -75
  387. package/dist/database/v1-migration.js +2 -2
  388. package/dist/database/v1-migration.noop.js +1 -1
  389. package/dist/effect/app-node-builder.js +347 -344
  390. package/dist/effect/app-node-platform.js +3 -3
  391. package/dist/effect/keyed-mutex.js +2 -2
  392. package/dist/effect/websocket-constructor.js +2 -2
  393. package/dist/environment/driver.js +1 -1
  394. package/dist/environment/environment.js +86 -86
  395. package/dist/environment/exec-defaults.js +3 -3
  396. package/dist/environment/files.js +2 -2
  397. package/dist/environment/index.js +88 -88
  398. package/dist/environment/local.js +3 -3
  399. package/dist/environment/memory.js +3 -3
  400. package/dist/environment/unavailable.js +1 -1
  401. package/dist/event/sql.js +2 -2
  402. package/dist/event-logger.js +68 -68
  403. package/dist/file-mutation.js +87 -87
  404. package/dist/file-retention.js +2 -2
  405. package/dist/file.js +2 -2
  406. package/dist/filesystem/fff.bun.js +2 -2
  407. package/dist/filesystem/fff.js +2 -2
  408. package/dist/filesystem/fff.node.js +2 -2
  409. package/dist/filesystem/fff.workerd.js +2 -2
  410. package/dist/filesystem/ignore.js +1 -1
  411. package/dist/filesystem/location-watcher-policy.js +3 -3
  412. package/dist/filesystem/location-watcher.js +219 -219
  413. package/dist/filesystem/protected.js +2 -2
  414. package/dist/filesystem/search.js +91 -91
  415. package/dist/filesystem/watcher-binding.js +2 -2
  416. package/dist/filesystem/watcher.js +4 -4
  417. package/dist/filesystem.js +92 -92
  418. package/dist/form.js +69 -69
  419. package/dist/formatter/builtins.js +3 -3
  420. package/dist/formatter.js +80 -80
  421. package/dist/generate.js +84 -84
  422. package/dist/git.js +5 -5
  423. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +2 -2
  424. package/dist/github-copilot/chat/get-response-metadata.js +2 -2
  425. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +2 -2
  426. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +8 -8
  427. package/dist/github-copilot/chat/openai-compatible-chat-options.js +2 -2
  428. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +2 -2
  429. package/dist/github-copilot/copilot-provider.js +18 -18
  430. package/dist/github-copilot/models.js +4 -4
  431. package/dist/github-copilot/openai-compatible-error.js +2 -2
  432. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +2 -2
  433. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +2 -2
  434. package/dist/github-copilot/responses/openai-error.js +2 -2
  435. package/dist/github-copilot/responses/openai-responses-language-model.js +11 -11
  436. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +7 -7
  437. package/dist/github-copilot/responses/tool/code-interpreter.js +2 -2
  438. package/dist/github-copilot/responses/tool/file-search.js +2 -2
  439. package/dist/github-copilot/responses/tool/image-generation.js +2 -2
  440. package/dist/github-copilot/responses/tool/web-search-preview.js +2 -2
  441. package/dist/github-copilot/responses/tool/web-search.js +2 -2
  442. package/dist/id/id.js +2 -2
  443. package/dist/image/photon-wasm.bun.js +1 -1
  444. package/dist/image/photon-wasm.node.js +1 -1
  445. package/dist/image/photon-wasm.workerd.js +1 -1
  446. package/dist/image/photon.js +94 -94
  447. package/dist/image.js +94 -94
  448. package/dist/instance/service.js +2 -2
  449. package/dist/instance.js +346 -343
  450. package/dist/instruction-discovery.js +72 -72
  451. package/dist/instructions/builtins.js +80 -80
  452. package/dist/instructions/index.js +2 -2
  453. package/dist/integration/connection.js +2 -2
  454. package/dist/integration.js +75 -75
  455. package/dist/job.js +72 -72
  456. package/dist/kv/sql.js +3 -3
  457. package/dist/kv.js +68 -68
  458. package/dist/location-activity.js +82 -82
  459. package/dist/location-mutation.js +79 -79
  460. package/dist/location-service-map.js +79 -79
  461. package/dist/location-services.js +347 -344
  462. package/dist/location.js +78 -78
  463. package/dist/mcp/client.js +87 -87
  464. package/dist/mcp/index.js +93 -93
  465. package/dist/mcp/instructions.js +122 -122
  466. package/dist/mcp/oauth.js +2 -2
  467. package/dist/mcp/stdio.js +87 -87
  468. package/dist/mime.js +2 -2
  469. package/dist/modal/models.js +11 -0
  470. package/dist/model-resolver.js +81 -81
  471. package/dist/model.js +3 -3
  472. package/dist/models-dev.js +75 -75
  473. package/dist/oauth/page.js +2 -2
  474. package/dist/permission/saved.js +71 -71
  475. package/dist/permission/sql.js +6 -6
  476. package/dist/permission.js +95 -95
  477. package/dist/persistent-pty/binary.bun.js +2 -2
  478. package/dist/persistent-pty/binary.node.js +1 -1
  479. package/dist/persistent-pty/binary.workerd.js +1 -1
  480. package/dist/persistent-pty/daemon.js +2 -2
  481. package/dist/persistent-pty/index.js +73 -73
  482. package/dist/persistent-pty/pty-binding.js +2 -2
  483. package/dist/persistent-pty.js +74 -74
  484. package/dist/plugin/agent.js +96 -96
  485. package/dist/plugin/command.js +94 -94
  486. package/dist/plugin/hooks.js +3 -3
  487. package/dist/plugin/host.js +216 -216
  488. package/dist/plugin/instance.js +2 -2
  489. package/dist/plugin/internal.js +318 -315
  490. package/dist/plugin/mcp-codemode-exclusion.js +2 -2
  491. package/dist/plugin/models-dev.js +76 -76
  492. package/dist/plugin/module.js +3 -3
  493. package/dist/plugin/plan.js +96 -96
  494. package/dist/plugin/promise.js +2 -2
  495. package/dist/plugin/provider/alibaba.js +3 -3
  496. package/dist/plugin/provider/amazon-bedrock.js +3 -3
  497. package/dist/plugin/provider/anthropic.js +3 -3
  498. package/dist/plugin/provider/azure.js +120 -120
  499. package/dist/plugin/provider/cerebras.js +3 -3
  500. package/dist/plugin/provider/cloudflare-ai-gateway.js +119 -119
  501. package/dist/plugin/provider/cloudflare-workers-ai.js +119 -119
  502. package/dist/plugin/provider/cohere.js +3 -3
  503. package/dist/plugin/provider/configured.js +116 -116
  504. package/dist/plugin/provider/dynamic.js +3 -3
  505. package/dist/plugin/provider/factory.js +2 -2
  506. package/dist/plugin/provider/gateway.js +3 -3
  507. package/dist/plugin/provider/github-copilot.js +84 -82
  508. package/dist/plugin/provider/gitlab.js +4 -4
  509. package/dist/plugin/provider/google-vertex.js +3 -3
  510. package/dist/plugin/provider/kilo.js +3 -3
  511. package/dist/plugin/provider/llmgateway.js +77 -77
  512. package/dist/plugin/provider/lmstudio.js +117 -117
  513. package/dist/plugin/provider/mistral.js +3 -3
  514. package/dist/plugin/provider/modal.js +85 -0
  515. package/dist/plugin/provider/nvidia.js +3 -3
  516. package/dist/plugin/provider/ollama.js +117 -117
  517. package/dist/plugin/provider/openai-compatible.js +2 -2
  518. package/dist/plugin/provider/openai.js +79 -79
  519. package/dist/plugin/provider/opencode.js +77 -77
  520. package/dist/plugin/provider/openrouter.js +4 -4
  521. package/dist/plugin/provider/perplexity.js +3 -3
  522. package/dist/plugin/provider/sap-ai-core.js +4 -4
  523. package/dist/plugin/provider/sdk-factory.js +2 -2
  524. package/dist/plugin/provider/snowflake-cortex.js +3 -3
  525. package/dist/plugin/provider/venice.js +3 -3
  526. package/dist/plugin/provider/vercel.js +3 -3
  527. package/dist/plugin/provider/vllm.js +117 -117
  528. package/dist/plugin/provider/xai.js +78 -78
  529. package/dist/plugin/provider/zenmux.js +3 -3
  530. package/dist/plugin/provider.js +158 -156
  531. package/dist/plugin/sdk.js +69 -69
  532. package/dist/plugin/service.js +2 -2
  533. package/dist/plugin/skill.js +129 -129
  534. package/dist/plugin/source-directory.js +2 -2
  535. package/dist/plugin/supervisor.js +333 -330
  536. package/dist/plugin/system-prompt.js +2 -2
  537. package/dist/plugin/update.js +3 -3
  538. package/dist/plugin/variant.js +3 -3
  539. package/dist/plugin/vcs/git.js +82 -82
  540. package/dist/plugin/vcs/hg.js +82 -82
  541. package/dist/plugin/warming.js +111 -111
  542. package/dist/plugin/websearch/exa.js +4 -4
  543. package/dist/plugin/websearch/firecrawl.js +5 -5
  544. package/dist/plugin/websearch/index.js +9 -9
  545. package/dist/plugin/websearch/mcp.js +3 -3
  546. package/dist/plugin/websearch/parallel.js +5 -5
  547. package/dist/plugin/websearch/tavily.js +3 -3
  548. package/dist/plugin.js +217 -217
  549. package/dist/project/schema.js +3 -3
  550. package/dist/project/sql.js +5 -5
  551. package/dist/project.js +77 -77
  552. package/dist/provider.js +2 -2
  553. package/dist/pty/protocol.js +1 -1
  554. package/dist/pty/pty.bun.js +14 -1
  555. package/dist/pty/pty.node.js +1 -1
  556. package/dist/pty/pty.workerd.js +1 -1
  557. package/dist/pty/schema.js +2 -2
  558. package/dist/pty/ticket.js +2 -2
  559. package/dist/pty.js +84 -84
  560. package/dist/reference/instructions.js +80 -80
  561. package/dist/reference.js +78 -78
  562. package/dist/repository-cache.js +74 -74
  563. package/dist/repository.js +2 -2
  564. package/dist/ripgrep/binary.js +3 -3
  565. package/dist/ripgrep.js +89 -89
  566. package/dist/rpc.js +79 -79
  567. package/dist/schema.js +2 -2
  568. package/dist/session/command.js +73 -73
  569. package/dist/session/compaction.js +138 -138
  570. package/dist/session/context.js +150 -150
  571. package/dist/session/environment.js +3 -3
  572. package/dist/session/error.js +4 -4
  573. package/dist/session/event.js +2 -2
  574. package/dist/session/execution/restart.js +211 -213
  575. package/dist/session/execution.js +117 -117
  576. package/dist/session/generate.js +153 -153
  577. package/dist/session/history.js +77 -77
  578. package/dist/session/inbox.js +77 -77
  579. package/dist/session/info.js +4 -4
  580. package/dist/session/instruction-entry.js +73 -73
  581. package/dist/session/instruction-state.js +10 -10
  582. package/dist/session/instructions.js +89 -89
  583. package/dist/session/message-updater.js +4 -4
  584. package/dist/session/message.js +2 -2
  585. package/dist/session/model-request.js +134 -134
  586. package/dist/session/model-transport.js +5 -5
  587. package/dist/session/move.js +127 -82
  588. package/dist/session/projector.js +83 -83
  589. package/dist/session/prompt.js +115 -115
  590. package/dist/session/revert.js +87 -87
  591. package/dist/session/run-coordinator.js +2 -2
  592. package/dist/session/runner/index.js +84 -84
  593. package/dist/session/runner/llm.js +226 -226
  594. package/dist/session/runner/max-steps.js +2 -2
  595. package/dist/session/runner/model.js +83 -83
  596. package/dist/session/runner/publish-llm-event.js +4 -4
  597. package/dist/session/runner/retry.js +72 -72
  598. package/dist/session/runner/step.js +143 -143
  599. package/dist/session/runner/to-llm-message.js +2 -2
  600. package/dist/session/schema.js +2 -2
  601. package/dist/session/session.js +173 -173
  602. package/dist/session/shell.js +132 -132
  603. package/dist/session/skill.js +99 -99
  604. package/dist/session/sql.js +6 -6
  605. package/dist/session/stats.js +71 -71
  606. package/dist/session/store.js +79 -79
  607. package/dist/session/subagent-completion.js +8 -4
  608. package/dist/session/subagent-job.js +216 -0
  609. package/dist/session/system-prompt.js +2 -2
  610. package/dist/session/title.js +152 -152
  611. package/dist/session/to-session-error.js +108 -108
  612. package/dist/session/transfer.js +219 -217
  613. package/dist/session/usage.js +2 -2
  614. package/dist/session.js +207 -207
  615. package/dist/shell/parse.js +7 -7
  616. package/dist/shell/parser-wasm.bun.js +1 -1
  617. package/dist/shell/parser-wasm.node.js +1 -1
  618. package/dist/shell/parser-wasm.workerd.js +1 -1
  619. package/dist/shell/result.js +2 -2
  620. package/dist/shell/scan.js +32 -4
  621. package/dist/shell/select.js +4 -4
  622. package/dist/shell.js +129 -129
  623. package/dist/skill/discovery.js +3 -3
  624. package/dist/skill/instructions.js +97 -97
  625. package/dist/skill.js +96 -96
  626. package/dist/snapshot.js +80 -80
  627. package/dist/state.js +4 -2
  628. package/dist/tool/html-markdown.js +2 -2
  629. package/dist/tool/http-body.js +2 -2
  630. package/dist/tool/mcp.js +121 -121
  631. package/dist/tool/plugin/edit.js +108 -108
  632. package/dist/tool/plugin/file-diff.js +2 -2
  633. package/dist/tool/plugin/glob.js +111 -111
  634. package/dist/tool/plugin/grep.js +111 -111
  635. package/dist/tool/plugin/opencode.js +2 -2
  636. package/dist/tool/plugin/patch.js +108 -108
  637. package/dist/tool/plugin/question.js +97 -97
  638. package/dist/tool/plugin/read.js +114 -114
  639. package/dist/tool/plugin/shell.js +210 -210
  640. package/dist/tool/plugin/skill.js +97 -97
  641. package/dist/tool/plugin/subagent.js +210 -209
  642. package/dist/tool/plugin/webfetch.js +98 -98
  643. package/dist/tool/plugin/websearch.js +100 -100
  644. package/dist/tool/plugin/write.js +108 -108
  645. package/dist/tool/read-filesystem.js +94 -94
  646. package/dist/tool/runtime.js +2 -2
  647. package/dist/tool-output.js +5 -5
  648. package/dist/tool.js +114 -114
  649. package/dist/types/config/plugin/command.d.ts +3 -1
  650. package/dist/types/modal/models.d.ts +3 -0
  651. package/dist/types/plugin/provider/github-copilot.d.ts +4 -0
  652. package/dist/types/plugin/provider/modal.d.ts +3 -0
  653. package/dist/types/session/history.d.ts +32 -0
  654. package/dist/types/session/move.d.ts +15 -11
  655. package/dist/types/session/subagent-completion.d.ts +3 -0
  656. package/dist/types/session/subagent-job.d.ts +13 -0
  657. package/dist/types/session/transfer.d.ts +46 -0
  658. package/dist/types/session.d.ts +2 -8
  659. package/dist/types/state.d.ts +18 -0
  660. package/dist/types/tool/plugin/subagent.d.ts +2 -2
  661. package/dist/types/v1/config/migrate.d.ts +3 -2
  662. package/dist/util/array.js +1 -1
  663. package/dist/util/error.js +2 -2
  664. package/dist/util/identifier.js +1 -1
  665. package/dist/util/iife.js +2 -2
  666. package/dist/util/lazy.js +2 -2
  667. package/dist/util/process-lock-ffi.bun.js +1 -1
  668. package/dist/util/process-lock-ffi.node.js +1 -1
  669. package/dist/util/process-lock-ffi.workerd.js +1 -1
  670. package/dist/util/process-lock.js +1 -1
  671. package/dist/util/slug.js +2 -2
  672. package/dist/util/token.js +2 -2
  673. package/dist/util/which.js +2 -2
  674. package/dist/util/wildcard.js +2 -2
  675. package/dist/v1/config/agent.js +4 -4
  676. package/dist/v1/config/attachment.js +3 -3
  677. package/dist/v1/config/command.js +2 -2
  678. package/dist/v1/config/config.js +15 -15
  679. package/dist/v1/config/error.js +3 -3
  680. package/dist/v1/config/formatter.js +2 -2
  681. package/dist/v1/config/layout.js +2 -2
  682. package/dist/v1/config/lsp.js +2 -2
  683. package/dist/v1/config/mcp.js +3 -3
  684. package/dist/v1/config/migrate.js +19 -19
  685. package/dist/v1/config/permission.js +2 -2
  686. package/dist/v1/config/plugin.js +2 -2
  687. package/dist/v1/config/provider-options.js +2 -2
  688. package/dist/v1/config/provider.js +3 -3
  689. package/dist/v1/config/server.js +3 -3
  690. package/dist/v1/config/skills.js +2 -2
  691. package/dist/v1/permission.js +1 -1
  692. package/dist/vcs/patch.js +2 -2
  693. package/dist/vcs.js +81 -81
  694. package/dist/websearch.js +73 -73
  695. package/dist/wellknown/plugin.js +73 -73
  696. package/dist/wellknown.js +72 -72
  697. package/dist/workspace/driver.js +2 -2
  698. package/dist/workspace/sql.js +2 -2
  699. package/dist/workspace.js +69 -69
  700. package/dist/worktree/directory.js +3 -3
  701. package/dist/worktree/git.js +7 -7
  702. package/dist/worktree/sql.js +6 -6
  703. package/dist/worktree.js +82 -82
  704. package/package.json +7 -7
  705. package/dist/chunks/model-resolver-pr1927s1.js +0 -68
  706. package/dist/chunks/model-resolver-zfc8v838.js +0 -34
  707. /package/dist/chunks/{model-resolver-0cgt0xh2.js → shell-0cgt0xh2.js} +0 -0
  708. /package/dist/chunks/{model-resolver-0f48qthw.js → shell-0f48qthw.js} +0 -0
  709. /package/dist/chunks/{model-resolver-0zz82cjq.js → shell-0zz82cjq.js} +0 -0
  710. /package/dist/chunks/{model-resolver-1fb7bmpf.js → shell-1fb7bmpf.js} +0 -0
  711. /package/dist/chunks/{model-resolver-1wcz8fvj.js → shell-1wcz8fvj.js} +0 -0
  712. /package/dist/chunks/{model-resolver-29n7vfk2.js → shell-29n7vfk2.js} +0 -0
  713. /package/dist/chunks/{model-resolver-2qdx6zz3.js → shell-2qdx6zz3.js} +0 -0
  714. /package/dist/chunks/{model-resolver-2xb0r1c6.js → shell-2xb0r1c6.js} +0 -0
  715. /package/dist/chunks/{model-resolver-39ktntah.js → shell-39ktntah.js} +0 -0
  716. /package/dist/chunks/{model-resolver-3g3rpp2x.js → shell-3g3rpp2x.js} +0 -0
  717. /package/dist/chunks/{model-resolver-3w3ybtfd.js → shell-3w3ybtfd.js} +0 -0
  718. /package/dist/chunks/{model-resolver-47ty4mvs.js → shell-47ty4mvs.js} +0 -0
  719. /package/dist/chunks/{model-resolver-4b2tz2m9.js → shell-4b2tz2m9.js} +0 -0
  720. /package/dist/chunks/{model-resolver-5a5ch9ts.js → shell-5a5ch9ts.js} +0 -0
  721. /package/dist/chunks/{model-resolver-5va1yh78.js → shell-5va1yh78.js} +0 -0
  722. /package/dist/chunks/{model-resolver-61ek4hj9.js → shell-61ek4hj9.js} +0 -0
  723. /package/dist/chunks/{model-resolver-69qrqpw0.js → shell-69qrqpw0.js} +0 -0
  724. /package/dist/chunks/{model-resolver-6zqxzw0a.js → shell-6zqxzw0a.js} +0 -0
  725. /package/dist/chunks/{model-resolver-7n9qwqk4.js → shell-7n9qwqk4.js} +0 -0
  726. /package/dist/chunks/{model-resolver-8nn8kqcn.js → shell-8nn8kqcn.js} +0 -0
  727. /package/dist/chunks/{model-resolver-8rpfd2h6.js → shell-8rpfd2h6.js} +0 -0
  728. /package/dist/chunks/{model-resolver-8sj3ajy5.js → shell-8sj3ajy5.js} +0 -0
  729. /package/dist/chunks/{model-resolver-8w9tzfz1.js → shell-8w9tzfz1.js} +0 -0
  730. /package/dist/chunks/{model-resolver-906y0b6d.js → shell-906y0b6d.js} +0 -0
  731. /package/dist/chunks/{model-resolver-9dct5xhx.js → shell-9dct5xhx.js} +0 -0
  732. /package/dist/chunks/{model-resolver-9maxscqf.js → shell-9maxscqf.js} +0 -0
  733. /package/dist/chunks/{model-resolver-9sdtsapf.js → shell-9sdtsapf.js} +0 -0
  734. /package/dist/chunks/{model-resolver-a02svayp.js → shell-a02svayp.js} +0 -0
  735. /package/dist/chunks/{model-resolver-a83yvq99.js → shell-a83yvq99.js} +0 -0
  736. /package/dist/chunks/{model-resolver-ayevdmef.js → shell-ayevdmef.js} +0 -0
  737. /package/dist/chunks/{model-resolver-b02txbh8.js → shell-b02txbh8.js} +0 -0
  738. /package/dist/chunks/{model-resolver-bbqs2y60.js → shell-bbqs2y60.js} +0 -0
  739. /package/dist/chunks/{model-resolver-bjwj8hwv.js → shell-bjwj8hwv.js} +0 -0
  740. /package/dist/chunks/{model-resolver-brsh5f65.js → shell-brsh5f65.js} +0 -0
  741. /package/dist/chunks/{model-resolver-bxdhjb3y.js → shell-bxdhjb3y.js} +0 -0
  742. /package/dist/chunks/{model-resolver-bybkghrn.js → shell-bybkghrn.js} +0 -0
  743. /package/dist/chunks/{model-resolver-c77ad0vh.js → shell-c77ad0vh.js} +0 -0
  744. /package/dist/chunks/{model-resolver-cm67rqy2.js → shell-cm67rqy2.js} +0 -0
  745. /package/dist/chunks/{model-resolver-df3v2q6j.js → shell-df3v2q6j.js} +0 -0
  746. /package/dist/chunks/{model-resolver-dhcq6c44.js → shell-dhcq6c44.js} +0 -0
  747. /package/dist/chunks/{model-resolver-dht5baf0.js → shell-dht5baf0.js} +0 -0
  748. /package/dist/chunks/{model-resolver-dkmkay92.js → shell-dkmkay92.js} +0 -0
  749. /package/dist/chunks/{model-resolver-ehj9csmv.js → shell-ehj9csmv.js} +0 -0
  750. /package/dist/chunks/{model-resolver-em6xpscd.js → shell-em6xpscd.js} +0 -0
  751. /package/dist/chunks/{model-resolver-emmqknsm.js → shell-emmqknsm.js} +0 -0
  752. /package/dist/chunks/{model-resolver-ezs3tagn.js → shell-ezs3tagn.js} +0 -0
  753. /package/dist/chunks/{model-resolver-f14r7hfz.js → shell-f14r7hfz.js} +0 -0
  754. /package/dist/chunks/{model-resolver-f1jj19e8.js → shell-f1jj19e8.js} +0 -0
  755. /package/dist/chunks/{model-resolver-f4cp4g4a.js → shell-f4cp4g4a.js} +0 -0
  756. /package/dist/chunks/{model-resolver-faypg4r1.js → shell-faypg4r1.js} +0 -0
  757. /package/dist/chunks/{model-resolver-fg7fz4q3.js → shell-fg7fz4q3.js} +0 -0
  758. /package/dist/chunks/{model-resolver-fgbfdq62.js → shell-fgbfdq62.js} +0 -0
  759. /package/dist/chunks/{model-resolver-g23fad86.js → shell-g23fad86.js} +0 -0
  760. /package/dist/chunks/{model-resolver-gd5xeqc2.js → shell-gd5xeqc2.js} +0 -0
  761. /package/dist/chunks/{model-resolver-ghm4673n.js → shell-ghm4673n.js} +0 -0
  762. /package/dist/chunks/{model-resolver-ghwjy7my.js → shell-ghwjy7my.js} +0 -0
  763. /package/dist/chunks/{model-resolver-gy500k2r.js → shell-gy500k2r.js} +0 -0
  764. /package/dist/chunks/{model-resolver-hzeg9cfr.js → shell-hzeg9cfr.js} +0 -0
  765. /package/dist/chunks/{model-resolver-j07kk359.js → shell-j07kk359.js} +0 -0
  766. /package/dist/chunks/{model-resolver-jqms80b0.js → shell-jqms80b0.js} +0 -0
  767. /package/dist/chunks/{model-resolver-jve7t217.js → shell-jve7t217.js} +0 -0
  768. /package/dist/chunks/{model-resolver-k3e42drn.js → shell-k3e42drn.js} +0 -0
  769. /package/dist/chunks/{model-resolver-k8b45nas.js → shell-k8b45nas.js} +0 -0
  770. /package/dist/chunks/{model-resolver-kpdbz7gn.js → shell-kpdbz7gn.js} +0 -0
  771. /package/dist/chunks/{model-resolver-kxy11nzk.js → shell-kxy11nzk.js} +0 -0
  772. /package/dist/chunks/{model-resolver-kyyqvx4s.js → shell-kyyqvx4s.js} +0 -0
  773. /package/dist/chunks/{model-resolver-m8cbvarh.js → shell-m8cbvarh.js} +0 -0
  774. /package/dist/chunks/{model-resolver-ma60vzgv.js → shell-ma60vzgv.js} +0 -0
  775. /package/dist/chunks/{model-resolver-n3m50c2t.js → shell-n3m50c2t.js} +0 -0
  776. /package/dist/chunks/{model-resolver-nkm1m8dz.js → shell-nkm1m8dz.js} +0 -0
  777. /package/dist/chunks/{model-resolver-nsc0c3zb.js → shell-nsc0c3zb.js} +0 -0
  778. /package/dist/chunks/{model-resolver-qaarhjrp.js → shell-qaarhjrp.js} +0 -0
  779. /package/dist/chunks/{model-resolver-qc167nrn.js → shell-qc167nrn.js} +0 -0
  780. /package/dist/chunks/{model-resolver-qp95y4jb.js → shell-qp95y4jb.js} +0 -0
  781. /package/dist/chunks/{model-resolver-r8f4w671.js → shell-r8f4w671.js} +0 -0
  782. /package/dist/chunks/{model-resolver-rdfev9jy.js → shell-rdfev9jy.js} +0 -0
  783. /package/dist/chunks/{model-resolver-s7whb9gt.js → shell-s7whb9gt.js} +0 -0
  784. /package/dist/chunks/{model-resolver-se76j685.js → shell-se76j685.js} +0 -0
  785. /package/dist/chunks/{model-resolver-sem2g21k.js → shell-sem2g21k.js} +0 -0
  786. /package/dist/chunks/{model-resolver-snpn6bap.js → shell-snpn6bap.js} +0 -0
  787. /package/dist/chunks/{model-resolver-sp575ygv.js → shell-sp575ygv.js} +0 -0
  788. /package/dist/chunks/{model-resolver-tmb1f636.js → shell-tmb1f636.js} +0 -0
  789. /package/dist/chunks/{model-resolver-ttxf0gsy.js → shell-ttxf0gsy.js} +0 -0
  790. /package/dist/chunks/{model-resolver-tvmhrvfj.js → shell-tvmhrvfj.js} +0 -0
  791. /package/dist/chunks/{model-resolver-v2adqbbe.js → shell-v2adqbbe.js} +0 -0
  792. /package/dist/chunks/{model-resolver-vac9eqd2.js → shell-vac9eqd2.js} +0 -0
  793. /package/dist/chunks/{model-resolver-vpjkya7h.js → shell-vpjkya7h.js} +0 -0
  794. /package/dist/chunks/{model-resolver-wj4sxzqa.js → shell-wj4sxzqa.js} +0 -0
  795. /package/dist/chunks/{model-resolver-wwntjmk1.js → shell-wwntjmk1.js} +0 -0
  796. /package/dist/chunks/{model-resolver-wyqjaaa5.js → shell-wyqjaaa5.js} +0 -0
  797. /package/dist/chunks/{model-resolver-x4q807cx.js → shell-x4q807cx.js} +0 -0
  798. /package/dist/chunks/{model-resolver-yrqrg4vp.js → shell-yrqrg4vp.js} +0 -0
  799. /package/dist/chunks/{model-resolver-z47nswr2.js → shell-z47nswr2.js} +0 -0
  800. /package/dist/chunks/{model-resolver-zsf8rs93.js → shell-zsf8rs93.js} +0 -0
@@ -1,42 +1,54 @@
1
1
  import {
2
- exports_session
3
- } from "./model-resolver-p7kv5kq9.js";
2
+ exports_generate
3
+ } from "./shell-55fkmd57.js";
4
4
  import {
5
5
  exports_command
6
- } from "./model-resolver-js6tcg3t.js";
6
+ } from "./shell-4qk8prfw.js";
7
7
  import {
8
- exports_execution
9
- } from "./model-resolver-mvw9jqgs.js";
8
+ exports_session
9
+ } from "./shell-6dkv011c.js";
10
10
  import {
11
11
  DestinationNotDirectoryError,
12
12
  DestinationNotFoundError,
13
13
  DestinationUnavailableError,
14
14
  exports_move
15
- } from "./model-resolver-pr1927s1.js";
15
+ } from "./shell-7j3d9h1a.js";
16
16
  import {
17
17
  exports_projector
18
- } from "./model-resolver-nx1h5ew3.js";
18
+ } from "./shell-5dppjsbb.js";
19
+ import {
20
+ exports_instruction_entry
21
+ } from "./shell-q1w4qb6z.js";
22
+ import {
23
+ exports_execution
24
+ } from "./shell-ankcqpvn.js";
19
25
  import {
20
26
  exports_inbox
21
- } from "./model-resolver-rmrmrh60.js";
27
+ } from "./shell-h5f8a9ks.js";
22
28
  import {
23
- exports_generate
24
- } from "./model-resolver-t3r0ngmb.js";
29
+ exports_service
30
+ } from "./shell-6bxzghb6.js";
25
31
  import {
26
32
  exports_model_transport
27
- } from "./model-resolver-jr5m26np.js";
33
+ } from "./shell-rpa95wsa.js";
28
34
  import {
29
- exports_instruction_entry
30
- } from "./model-resolver-7ke4vm17.js";
35
+ Slug
36
+ } from "./shell-df3v2q6j.js";
31
37
  import {
32
- exports_service
33
- } from "./model-resolver-6bxzghb6.js";
38
+ llmClient
39
+ } from "./shell-326j4s6w.js";
34
40
  import {
35
- exports_environment
36
- } from "./model-resolver-zn935gjz.js";
41
+ exports_app
42
+ } from "./shell-hs51b0fc.js";
37
43
  import {
38
44
  exports_store
39
- } from "./model-resolver-wz5907jr.js";
45
+ } from "./shell-w5r741x8.js";
46
+ import {
47
+ exports_instruction_state
48
+ } from "./shell-m3k5wttq.js";
49
+ import {
50
+ SessionMessageTable
51
+ } from "./shell-q606pcse.js";
40
52
  import {
41
53
  AttachmentError,
42
54
  BusyError,
@@ -52,54 +64,36 @@ import {
52
64
  PromptConflictError,
53
65
  SkillNotFoundError,
54
66
  SyntheticConflictError
55
- } from "./model-resolver-2sqw2jjm.js";
56
- import {
57
- exports_instruction_state
58
- } from "./model-resolver-m3k5wttq.js";
59
- import {
60
- SessionMessageTable
61
- } from "./model-resolver-q606pcse.js";
67
+ } from "./shell-2sqw2jjm.js";
62
68
  import {
63
69
  SessionEvent
64
- } from "./model-resolver-a83yvq99.js";
70
+ } from "./shell-a83yvq99.js";
65
71
  import {
66
72
  exports_job
67
- } from "./model-resolver-hwtjfpwk.js";
73
+ } from "./shell-qbfqnn1d.js";
68
74
  import {
69
- SessionMessage
70
- } from "./model-resolver-8rpfd2h6.js";
75
+ exports_environment
76
+ } from "./shell-zn935gjz.js";
71
77
  import {
72
78
  ID,
73
79
  Info,
74
80
  SessionSchema
75
- } from "./model-resolver-bjwj8hwv.js";
76
- import {
77
- exports_app
78
- } from "./model-resolver-hs51b0fc.js";
79
- import {
80
- exports_location_service_map
81
- } from "./model-resolver-y6z22yy0.js";
82
- import {
83
- Slug
84
- } from "./model-resolver-df3v2q6j.js";
81
+ } from "./shell-bjwj8hwv.js";
85
82
  import {
86
83
  exports_project
87
- } from "./model-resolver-tmfv98ar.js";
88
- import {
89
- RelativePath
90
- } from "./model-resolver-j07kk359.js";
91
- import {
92
- llmClient
93
- } from "./model-resolver-326j4s6w.js";
84
+ } from "./shell-dg8w2yk3.js";
94
85
  import {
95
86
  exports_bus
96
- } from "./model-resolver-b2mj9w79.js";
87
+ } from "./shell-07b0cypv.js";
97
88
  import {
98
89
  exports_database
99
- } from "./model-resolver-tn3vtv4h.js";
90
+ } from "./shell-t1qmyghk.js";
91
+ import {
92
+ RelativePath
93
+ } from "./shell-j07kk359.js";
100
94
  import {
101
95
  __export
102
- } from "./model-resolver-vpjkya7h.js";
96
+ } from "./shell-vpjkya7h.js";
103
97
 
104
98
  // src/session.ts
105
99
  var exports_session2 = {};
@@ -137,7 +131,6 @@ import { Model } from "@opencode-ai/schema/model";
137
131
  import path from "path";
138
132
  import { Node } from "@opencode-ai/util/effect/app-node";
139
133
  import { FSUtil } from "@opencode-ai/util/fs-util";
140
- import { Global } from "@opencode-ai/util/global";
141
134
  var ListInput = exports_store.ListInput;
142
135
  class Service extends Context.Service()("@opencode/Session") {
143
136
  }
@@ -147,18 +140,15 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
147
140
  const db = database.db;
148
141
  const bus = yield* exports_bus.Service;
149
142
  const projects = yield* exports_project.Service;
150
- const global = yield* Global.Service;
151
143
  const execution = yield* exports_execution.Service;
152
144
  const llm = yield* LLMClient.Service;
153
145
  const transport = yield* exports_model_transport.Service;
154
146
  const store = yield* exports_store.Service;
155
147
  const instances = yield* exports_service.Service;
156
- const locations = yield* exports_location_service_map.Service;
157
- const fs = yield* FSUtil.Service;
148
+ const moves = yield* exports_move.Service;
158
149
  const jobs = yield* exports_job.Service;
159
150
  const environments = yield* exports_environment.Service;
160
151
  const sessions = yield* exports_session.make();
161
- const admission = yield* exports_inbox.Service;
162
152
  const isDurableSessionEvent = Schema.is(SessionEvent.Durable);
163
153
  const result = Service.of({
164
154
  create: Effect.fn("Session.create")(function* (input) {
@@ -273,35 +263,7 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
273
263
  switchAgent: (input) => sessions.forSession(input.sessionID).switchAgent(input),
274
264
  switchModel: (input) => sessions.forSession(input.sessionID).switchModel(input),
275
265
  rename: (input) => sessions.forSession(input.sessionID).rename(input),
276
- move: Effect.fn("Session.move")(function* (input) {
277
- const session = yield* result.get(input.sessionID);
278
- const payload = yield* exports_move.prepare({ ...input, session }).pipe(Effect.provideService(FSUtil.Service, fs), Effect.provideService(Global.Service, global), Effect.provideService(exports_project.Service, projects), Effect.provideService(exports_location_service_map.Service, locations));
279
- const item = exports_inbox.Item.make({
280
- type: "move",
281
- payload,
282
- delivery: input.delivery ?? "steer"
283
- });
284
- yield* exports_inbox.serialized(input.sessionID, Effect.gen(function* () {
285
- const latest = yield* result.get(input.sessionID);
286
- const source = yield* fs.stat(latest.location.directory).pipe(Effect.orElseSucceed(() => {
287
- return;
288
- }));
289
- if ((!source || source.type !== "Directory") && !(yield* execution.isActive(input.sessionID))) {
290
- const cancellations = (yield* exports_inbox.moveIDs(db, input.sessionID)).map((item2) => [SessionEvent.InboxCancelled, { sessionID: input.sessionID, inboxID: item2.id }]);
291
- const moved = [SessionEvent.Moved, { sessionID: input.sessionID, ...payload }];
292
- const first = cancellations[0];
293
- if (!first)
294
- return yield* bus.publish(...moved).pipe(Effect.asVoid);
295
- return yield* bus.publishAll([first, ...cancellations.slice(1), moved]);
296
- }
297
- yield* admission.admit({
298
- id: SessionMessage.ID.create(),
299
- sessionID: input.sessionID,
300
- item
301
- }).pipe(Effect.orDie);
302
- }));
303
- yield* execution.wake(input.sessionID);
304
- }),
266
+ move: moves.move,
305
267
  compact: (input) => sessions.forSession(input.sessionID).compact(input),
306
268
  wait: (sessionID) => sessions.forSession(sessionID).wait(),
307
269
  active: execution.active,
@@ -349,10 +311,9 @@ var node = Node.makeGlobalNode({
349
311
  exports_store.node,
350
312
  exports_service.node,
351
313
  exports_inbox.node,
352
- exports_location_service_map.node,
314
+ exports_move.node,
353
315
  exports_projector.node,
354
316
  FSUtil.node,
355
- Global.node,
356
317
  exports_app.node
357
318
  ]
358
319
  });
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  PositiveInt
3
- } from "./model-resolver-j07kk359.js";
3
+ } from "./shell-j07kk359.js";
4
4
  import {
5
5
  __export
6
- } from "./model-resolver-vpjkya7h.js";
6
+ } from "./shell-vpjkya7h.js";
7
7
 
8
8
  // src/v1/config/mcp.ts
9
9
  var exports_mcp = {};
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  exports_permission
3
- } from "./model-resolver-8gv3hynm.js";
4
- import {
5
- exports_bus
6
- } from "./model-resolver-b2mj9w79.js";
3
+ } from "./shell-yvpqrhda.js";
7
4
  import {
8
5
  exports_state
9
- } from "./model-resolver-dyrfpcd0.js";
6
+ } from "./shell-j6s3yjyb.js";
7
+ import {
8
+ exports_bus
9
+ } from "./shell-07b0cypv.js";
10
10
  import {
11
11
  __export
12
- } from "./model-resolver-vpjkya7h.js";
12
+ } from "./shell-vpjkya7h.js";
13
13
 
14
14
  // src/skill.ts
15
15
  var exports_skill = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  exports_config
3
- } from "./model-resolver-yt21b5ce.js";
3
+ } from "./shell-r8f3g7x9.js";
4
4
  import {
5
5
  __export
6
- } from "./model-resolver-vpjkya7h.js";
6
+ } from "./shell-vpjkya7h.js";
7
7
 
8
8
  // src/plugin/warming.ts
9
9
  var exports_warming = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./model-resolver-vpjkya7h.js";
3
+ } from "./shell-vpjkya7h.js";
4
4
 
5
5
  // src/v1/config/provider-options.ts
6
6
  var exports_provider_options = {};
@@ -1,24 +1,24 @@
1
- import {
2
- SQLiteEffectSelectBuilder
3
- } from "./model-resolver-wbkt8qpj.js";
4
- import {
5
- SQLiteEffectRelationalQueryBuilder
6
- } from "./model-resolver-bxdhjb3y.js";
7
- import {
8
- SQLiteEffectDeleteBase
9
- } from "./model-resolver-vcwr2vpf.js";
10
1
  import {
11
2
  SQLiteEffectUpdateBuilder
12
- } from "./model-resolver-j0feex7e.js";
3
+ } from "./shell-j0feex7e.js";
4
+ import {
5
+ SQLiteEffectInsertBuilder
6
+ } from "./shell-hgr9y616.js";
13
7
  import {
14
8
  SQLiteEffectRaw
15
- } from "./model-resolver-s7whb9gt.js";
9
+ } from "./shell-s7whb9gt.js";
16
10
  import {
17
11
  SQLiteEffectCountBuilder
18
- } from "./model-resolver-0f48qthw.js";
12
+ } from "./shell-0f48qthw.js";
19
13
  import {
20
- SQLiteEffectInsertBuilder
21
- } from "./model-resolver-hgr9y616.js";
14
+ SQLiteEffectDeleteBase
15
+ } from "./shell-vcwr2vpf.js";
16
+ import {
17
+ SQLiteEffectRelationalQueryBuilder
18
+ } from "./shell-bxdhjb3y.js";
19
+ import {
20
+ SQLiteEffectSelectBuilder
21
+ } from "./shell-wbkt8qpj.js";
22
22
 
23
23
  // src/database/drizzle/sqlite-core/effect/db.ts
24
24
  import { Effect } from "effect";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./model-resolver-vpjkya7h.js";
3
+ } from "./shell-vpjkya7h.js";
4
4
 
5
5
  // src/instructions/index.ts
6
6
  var exports_instructions = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  exports_provider
3
- } from "./model-resolver-68yag814.js";
3
+ } from "./shell-68yag814.js";
4
4
  import {
5
5
  __export
6
- } from "./model-resolver-vpjkya7h.js";
6
+ } from "./shell-vpjkya7h.js";
7
7
 
8
8
  // src/aisdk-native.ts
9
9
  var exports_aisdk_native = {};
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  absoluteArrayColumn,
3
3
  absoluteColumn
4
- } from "./model-resolver-zbqqnp0n.js";
4
+ } from "./shell-zbqqnp0n.js";
5
5
  import {
6
6
  Timestamps
7
- } from "./model-resolver-sem2g21k.js";
7
+ } from "./shell-sem2g21k.js";
8
8
 
9
9
  // src/project/sql.ts
10
10
  import { isNotNull, isNull, ne, or } from "drizzle-orm";
@@ -1,30 +1,30 @@
1
- import {
2
- exports_question
3
- } from "./model-resolver-bsksdwjr.js";
4
1
  import {
5
2
  toLLMMessages
6
- } from "./model-resolver-g23fad86.js";
3
+ } from "./shell-g23fad86.js";
4
+ import {
5
+ exports_model_transport
6
+ } from "./shell-rpa95wsa.js";
7
7
  import {
8
8
  exports_system_prompt
9
- } from "./model-resolver-hzwx8p6y.js";
9
+ } from "./shell-hzwx8p6y.js";
10
10
  import {
11
- exports_model_transport
12
- } from "./model-resolver-jr5m26np.js";
11
+ exports_question
12
+ } from "./shell-gbbcs6dk.js";
13
+ import {
14
+ exports_app
15
+ } from "./shell-hs51b0fc.js";
13
16
  import {
14
17
  exports_tool
15
- } from "./model-resolver-egjtzeas.js";
18
+ } from "./shell-djxb2q0f.js";
16
19
  import {
17
20
  exports_permission
18
- } from "./model-resolver-8gv3hynm.js";
21
+ } from "./shell-yvpqrhda.js";
19
22
  import {
20
23
  exports_hooks
21
- } from "./model-resolver-xws7arpm.js";
22
- import {
23
- exports_app
24
- } from "./model-resolver-hs51b0fc.js";
24
+ } from "./shell-xws7arpm.js";
25
25
  import {
26
26
  __export
27
- } from "./model-resolver-vpjkya7h.js";
27
+ } from "./shell-vpjkya7h.js";
28
28
 
29
29
  // src/session/model-request.ts
30
30
  var exports_model_request = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  exports_model
3
- } from "./model-resolver-8manx9kj.js";
3
+ } from "./shell-8manx9kj.js";
4
4
  import {
5
5
  exports_provider
6
- } from "./model-resolver-68yag814.js";
6
+ } from "./shell-68yag814.js";
7
7
 
8
8
  // src/plugin/provider/openrouter.ts
9
9
  import { Effect } from "effect";
@@ -3,15 +3,15 @@ import {
3
3
  EffectSQLiteDatabase,
4
4
  make,
5
5
  makeWithDefaults
6
- } from "./model-resolver-dc1577g0.js";
6
+ } from "./shell-r7gm0yzj.js";
7
7
  import {
8
8
  EffectSQLiteSession,
9
9
  EffectSQLiteTransaction,
10
10
  managesTransactionsNatively
11
- } from "./model-resolver-7fndj6sb.js";
11
+ } from "./shell-kk70vshc.js";
12
12
  import {
13
13
  __export
14
- } from "./model-resolver-vpjkya7h.js";
14
+ } from "./shell-vpjkya7h.js";
15
15
 
16
16
  // src/database/drizzle/index.ts
17
17
  var exports_drizzle = {};
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  exports_host
3
- } from "./model-resolver-67ndm1z2.js";
3
+ } from "./shell-44akcmh3.js";
4
4
  import {
5
5
  Service,
6
6
  awaitActivation
7
- } from "./model-resolver-esv5q40e.js";
7
+ } from "./shell-esv5q40e.js";
8
8
  import {
9
9
  exports_kv
10
- } from "./model-resolver-c8n0v0wx.js";
11
- import {
12
- exports_bus
13
- } from "./model-resolver-b2mj9w79.js";
10
+ } from "./shell-j9a1jgvn.js";
14
11
  import {
15
12
  exports_state
16
- } from "./model-resolver-dyrfpcd0.js";
13
+ } from "./shell-j6s3yjyb.js";
14
+ import {
15
+ exports_bus
16
+ } from "./shell-07b0cypv.js";
17
17
  import {
18
18
  __export
19
- } from "./model-resolver-vpjkya7h.js";
19
+ } from "./shell-vpjkya7h.js";
20
20
 
21
21
  // src/plugin.ts
22
22
  var exports_plugin = {};
@@ -34,7 +34,7 @@ __export(exports_plugin, {
34
34
  import { Event, ID, Info, Source, State } from "@opencode-ai/schema/plugin";
35
35
  import { Plugin } from "@opencode-ai/schema/plugin";
36
36
  import { Node } from "@opencode-ai/util/effect/app-node";
37
- import { Cause, Context, Effect, Exit, Latch, Layer, Logger, References, Scope, Semaphore } from "effect";
37
+ import { Cause, Context, Effect, Exit, Latch, Layer, Logger, Queue, References, Scope, Semaphore } from "effect";
38
38
  var layer = Layer.effect(Service, Effect.gen(function* () {
39
39
  const bus = yield* exports_bus.Service;
40
40
  const kv = yield* exports_kv.Service;
@@ -43,7 +43,10 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
43
43
  const lock = Semaphore.makeUnsafe(1);
44
44
  const ready = yield* Latch.make(true);
45
45
  const pending = new Set;
46
- const hold = () => Effect.sync(() => {
46
+ let closed = false;
47
+ const holdUnsafe = () => {
48
+ if (closed)
49
+ return Effect.void;
47
50
  const token = {};
48
51
  pending.add(token);
49
52
  ready.closeUnsafe();
@@ -51,23 +54,40 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
51
54
  if (pending.delete(token) && pending.size === 0)
52
55
  ready.openUnsafe();
53
56
  });
54
- });
57
+ };
58
+ const hold = () => Effect.sync(holdUnsafe);
59
+ const pendingFailures = yield* Queue.unbounded();
60
+ let discovered = [];
55
61
  let inventory = [];
56
62
  const list = Effect.fn("Plugin.list")(function* () {
57
63
  return inventory;
58
64
  });
59
65
  const host = yield* exports_host.make({ list });
60
66
  const load = Effect.fnUntraced(function* (plugin) {
61
- const child = yield* Scope.fork(scope);
67
+ const activation = { plugin, scope: yield* Scope.fork(scope) };
62
68
  const inherit = yield* exports_state.inherit();
63
- const loaded = yield* Effect.suspend(() => plugin.effect({ ...host, storage: exports_host.storage(kv, plugin.id) })).pipe(inherit, Effect.updateContext((context) => Context.make(Scope.Scope, child).pipe(Context.add(Logger.CurrentLoggers, Context.get(context, Logger.CurrentLoggers)), Context.add(References.MinimumLogLevel, Context.get(context, References.MinimumLogLevel)))), Effect.withSpan("Plugin.load", { attributes: { "plugin.id": plugin.id } }), Effect.onExit((exit) => Exit.isFailure(exit) ? Scope.close(child, exit) : Effect.void), Effect.exit);
64
- if (Exit.isSuccess(loaded))
65
- return { scope: child };
69
+ const grouped = exports_state.group((failure, refresh) => {
70
+ activation.failure = {
71
+ error: `Plugin disabled after ${failure.state}.transform failed. Check server logs for details.`,
72
+ ref: `err_${crypto.randomUUID().slice(0, 8)}`
73
+ };
74
+ Queue.offerUnsafe(pendingFailures, {
75
+ plugin,
76
+ scope: activation.scope,
77
+ failure,
78
+ refresh,
79
+ ref: activation.failure.ref,
80
+ release: holdUnsafe()
81
+ });
82
+ });
83
+ const exit = yield* Effect.suspend(() => plugin.effect({ ...host, storage: exports_host.storage(kv, plugin.id) })).pipe(grouped, inherit, Effect.updateContext((context) => Context.make(Scope.Scope, activation.scope).pipe(Context.add(Logger.CurrentLoggers, Context.get(context, Logger.CurrentLoggers)), Context.add(References.MinimumLogLevel, Context.get(context, References.MinimumLogLevel)))), Effect.withSpan("Plugin.load", { attributes: { "plugin.id": plugin.id } }), Effect.onExit((exit2) => Exit.isFailure(exit2) && !activation.failure ? Scope.close(activation.scope, exit2) : Effect.void), Effect.exit);
84
+ if (activation.failure || Exit.isSuccess(exit))
85
+ return { activation };
66
86
  yield* Effect.logWarning("failed to load plugin", {
67
87
  "plugin.id": plugin.id,
68
- cause: loaded.cause
88
+ cause: exit.cause
69
89
  });
70
- return { error: Cause.pretty(loaded.cause) };
90
+ return { error: Cause.pretty(exit.cause) };
71
91
  });
72
92
  const activate = Effect.fn("Plugin.activate")(function* (plugins, failures = []) {
73
93
  const definitions = plugins.map((plugin) => ({ ...plugin, id: Plugin.ID.make(plugin.id) }));
@@ -78,6 +98,9 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
78
98
  ids.add(definition.id);
79
99
  }
80
100
  yield* Effect.acquireUseRelease(hold(), () => lock.withPermit(Effect.gen(function* () {
101
+ if (closed)
102
+ return;
103
+ discovered = failures;
81
104
  const current = Array.from(active.values());
82
105
  const changed = definitions.findIndex((definition, index) => {
83
106
  const entry = current[index];
@@ -101,28 +124,33 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
101
124
  const previous = new Map(Array.from(active.entries()).slice(prefix));
102
125
  yield* Effect.forEach(Array.from(previous.entries()).toReversed(), ([id, slot]) => Effect.gen(function* () {
103
126
  active.delete(id);
104
- if (slot.loaded)
105
- yield* Scope.close(slot.loaded.scope, Exit.void);
127
+ if (slot.activation && !slot.activation.failure)
128
+ yield* Scope.close(slot.activation.scope, Exit.void);
106
129
  }), { discard: true });
107
130
  for (const definition of definitions.slice(prefix)) {
108
- const loaded = yield* load(definition);
109
- if (loaded.scope !== undefined) {
131
+ const slot = previous.get(definition.id);
132
+ if (slot?.activation?.failure && slot.plugin.revision === definition.revision) {
133
+ active.set(definition.id, { ...slot, plugin: definition });
134
+ continue;
135
+ }
136
+ const result = yield* load(definition);
137
+ if (result.activation !== undefined) {
110
138
  active.set(definition.id, {
111
139
  plugin: definition,
112
- loaded: { plugin: definition, scope: loaded.scope }
140
+ activation: result.activation
113
141
  });
114
142
  continue;
115
143
  }
116
- active.set(definition.id, { plugin: definition, error: loaded.error });
117
- const fallback = previous.get(definition.id)?.loaded;
118
- if (!fallback)
144
+ active.set(definition.id, { plugin: definition, error: result.error });
145
+ const fallback = slot?.activation;
146
+ if (!fallback || fallback.failure)
119
147
  continue;
120
148
  const restored = yield* load(fallback.plugin);
121
- if (restored.scope !== undefined) {
149
+ if (restored.activation !== undefined) {
122
150
  active.set(definition.id, {
123
151
  plugin: definition,
124
- loaded: { plugin: fallback.plugin, scope: restored.scope },
125
- error: loaded.error
152
+ activation: restored.activation,
153
+ error: result.error
126
154
  });
127
155
  continue;
128
156
  }
@@ -135,7 +163,39 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
135
163
  yield* bus.publish(Plugin.Event.Updated, {});
136
164
  })), (release) => release);
137
165
  });
166
+ yield* Queue.take(pendingFailures).pipe(Effect.flatMap((item) => Effect.gen(function* () {
167
+ yield* Effect.logWarning("disabled plugin after transform failure", {
168
+ "plugin.id": item.plugin.id,
169
+ state: item.failure.state,
170
+ ref: item.ref,
171
+ cause: Cause.die(item.failure.cause)
172
+ });
173
+ yield* lock.withPermit(Effect.gen(function* () {
174
+ if (closed)
175
+ return;
176
+ inventory = [...Array.from(active.values()).map(slotInfo), ...discovered];
177
+ const refreshed = yield* exports_state.batch(item.refresh).pipe(Effect.exit);
178
+ yield* bus.publish(Plugin.Event.Updated, {});
179
+ if (Exit.isFailure(refreshed))
180
+ yield* Effect.logWarning("failed to refresh state after disabling plugin", {
181
+ "plugin.id": item.plugin.id,
182
+ ref: item.ref,
183
+ cause: refreshed.cause
184
+ });
185
+ }));
186
+ }).pipe(Effect.ensuring(Scope.close(item.scope, Exit.void).pipe(Effect.catchCause((cause) => Effect.logWarning("failed to clean up disabled plugin", {
187
+ "plugin.id": item.plugin.id,
188
+ ref: item.ref,
189
+ cause
190
+ })), Effect.forkScoped({ startImmediately: true }))), Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logError("failed to report disabled plugin", {
191
+ "plugin.id": item.plugin.id,
192
+ ref: item.ref,
193
+ cause
194
+ })), Effect.ensuring(item.release))), Effect.forever, Effect.forkScoped);
138
195
  const close = (exit) => lock.withPermit(Effect.gen(function* () {
196
+ closed = true;
197
+ pending.clear();
198
+ ready.openUnsafe();
139
199
  active.clear();
140
200
  yield* exports_state.shutdown(Scope.close(scope, exit));
141
201
  }));
@@ -149,10 +209,11 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
149
209
  });
150
210
  }));
151
211
  function slotInfo(slot) {
212
+ const failure = slot.activation?.failure ?? (slot.error === undefined ? undefined : { error: slot.error });
152
213
  return {
153
214
  id: Plugin.ID.make(slot.plugin.id),
154
215
  source: slot.plugin.source ?? { type: "builtin" },
155
- state: slot.error === undefined ? { status: "active" } : { status: "failed", error: slot.error },
216
+ state: failure === undefined ? { status: "active" } : { status: "failed", ...failure },
156
217
  features: { server: true, ...slot.plugin.features }
157
218
  };
158
219
  }
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  exports_websearch
3
- } from "./model-resolver-r32713pr.js";
3
+ } from "./shell-141a7zs0.js";
4
4
  import {
5
5
  exports_permission
6
- } from "./model-resolver-8gv3hynm.js";
6
+ } from "./shell-yvpqrhda.js";
7
7
  import {
8
8
  exports_form
9
- } from "./model-resolver-n120nzhy.js";
9
+ } from "./shell-zdf23kgm.js";
10
10
  import {
11
11
  __export
12
- } from "./model-resolver-vpjkya7h.js";
12
+ } from "./shell-vpjkya7h.js";
13
13
 
14
14
  // src/tool/plugin/websearch.ts
15
15
  var exports_websearch2 = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  ProjectTable
3
- } from "./model-resolver-c8ya26sa.js";
3
+ } from "./shell-c8ya26sa.js";
4
4
  import {
5
5
  Timestamps
6
- } from "./model-resolver-sem2g21k.js";
6
+ } from "./shell-sem2g21k.js";
7
7
 
8
8
  // src/permission/sql.ts
9
9
  import { sqliteTable, text, uniqueIndex } from "drizzle-orm/sqlite-core";