@opencode/core 0.0.0-dev-19765 → 0.0.0-dev-19767

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 (792) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +74 -74
  3. package/dist/aisdk-native.js +88 -88
  4. package/dist/aisdk.js +93 -93
  5. package/dist/app.js +7 -7
  6. package/dist/bus.js +72 -72
  7. package/dist/chunks/{model-resolver-90q3tcjv.js → worktree-0e1gq3bc.js} +10 -10
  8. package/dist/chunks/{model-resolver-224r8vkv.js → worktree-0gkyeg4t.js} +27 -27
  9. package/dist/chunks/{model-resolver-kyenax63.js → worktree-0kzr3yfx.js} +7 -7
  10. package/dist/chunks/{model-resolver-zm7wj8n5.js → worktree-0mczw89w.js} +5 -5
  11. package/dist/chunks/{model-resolver-0paq2nw3.js → worktree-0paq2nw3.js} +1 -1
  12. package/dist/chunks/{model-resolver-0q0f95c6.js → worktree-0q0f95c6.js} +1 -1
  13. package/dist/chunks/{model-resolver-ynnvn6b9.js → worktree-0yn9kbqd.js} +13 -13
  14. package/dist/chunks/{model-resolver-h5pwwdd2.js → worktree-101vsq39.js} +11 -11
  15. package/dist/chunks/{model-resolver-1kdfkpz7.js → worktree-151xc3da.js} +14 -14
  16. package/dist/chunks/{model-resolver-166kng33.js → worktree-166kng33.js} +1 -1
  17. package/dist/chunks/{model-resolver-esqycg01.js → worktree-1amrr7ey.js} +3 -3
  18. package/dist/chunks/{model-resolver-73tb2d7t.js → worktree-1bbkgx8g.js} +3 -3
  19. package/dist/chunks/{model-resolver-ph04hnrj.js → worktree-1c4g78wp.js} +44 -44
  20. package/dist/chunks/{model-resolver-1dazxqgg.js → worktree-1dazxqgg.js} +2 -2
  21. package/dist/chunks/{model-resolver-n8mmjvp8.js → worktree-1mjwcf4w.js} +8 -8
  22. package/dist/chunks/{model-resolver-ts79a8cx.js → worktree-1vk3brhq.js} +11 -11
  23. package/dist/chunks/{model-resolver-21r38tys.js → worktree-21r38tys.js} +1 -1
  24. package/dist/chunks/{model-resolver-qg0jgkcp.js → worktree-24dd53tp.js} +9 -9
  25. package/dist/chunks/{model-resolver-26k5bknw.js → worktree-26k5bknw.js} +1 -1
  26. package/dist/chunks/{model-resolver-2a5m3afh.js → worktree-2a5m3afh.js} +1 -1
  27. package/dist/chunks/{model-resolver-sm965ndy.js → worktree-2aet7wja.js} +8 -8
  28. package/dist/chunks/{model-resolver-310t7hsf.js → worktree-2hckyyez.js} +170 -170
  29. package/dist/chunks/{model-resolver-pxf1encz.js → worktree-2khg11rk.js} +41 -41
  30. package/dist/chunks/{model-resolver-d27f62ns.js → worktree-2kr5eys4.js} +2 -2
  31. package/dist/chunks/{model-resolver-33w4ejhs.js → worktree-33w4ejhs.js} +2 -2
  32. package/dist/chunks/{model-resolver-v2amp0tf.js → worktree-351z34b3.js} +10 -10
  33. package/dist/chunks/{model-resolver-jvkfksvk.js → worktree-38bsz5b6.js} +33 -33
  34. package/dist/chunks/{model-resolver-3fc6dm20.js → worktree-3fc6dm20.js} +1 -1
  35. package/dist/chunks/{model-resolver-3hepkmqq.js → worktree-3hepkmqq.js} +1 -1
  36. package/dist/chunks/{model-resolver-q5t0te5a.js → worktree-3k6sfp50.js} +6 -6
  37. package/dist/chunks/{model-resolver-3ktbe3hf.js → worktree-3ktbe3hf.js} +3 -3
  38. package/dist/chunks/{model-resolver-3smtnn6g.js → worktree-3smtnn6g.js} +1 -1
  39. package/dist/chunks/{model-resolver-3tvqynh2.js → worktree-3tvqynh2.js} +1 -1
  40. package/dist/chunks/{model-resolver-d55k6vmy.js → worktree-3zgscayf.js} +36 -36
  41. package/dist/chunks/{model-resolver-btw9ee0c.js → worktree-415h19gn.js} +3 -3
  42. package/dist/chunks/{model-resolver-1r39s92t.js → worktree-4bgp2aek.js} +31 -31
  43. package/dist/chunks/{model-resolver-jn50qt18.js → worktree-4gsbf2fy.js} +24 -24
  44. package/dist/chunks/{model-resolver-1pw3knqg.js → worktree-4hxng2fz.js} +84 -84
  45. package/dist/chunks/{model-resolver-xfjax5kj.js → worktree-4vp46et4.js} +6 -6
  46. package/dist/chunks/{model-resolver-57ez7d0k.js → worktree-57ez7d0k.js} +2 -2
  47. package/dist/chunks/{model-resolver-6pb16yyj.js → worktree-58s60hfc.js} +9 -9
  48. package/dist/chunks/{model-resolver-qjg70d8f.js → worktree-5c4wcsgy.js} +74 -74
  49. package/dist/chunks/{model-resolver-5daktx2q.js → worktree-5daktx2q.js} +1 -1
  50. package/dist/chunks/{model-resolver-yew810mr.js → worktree-5egw3kcn.js} +10 -10
  51. package/dist/chunks/{model-resolver-q2b1ymqp.js → worktree-5q02cxx3.js} +4 -4
  52. package/dist/chunks/{model-resolver-5t3nmthw.js → worktree-5t3nmthw.js} +2 -2
  53. package/dist/chunks/{model-resolver-wr76dh16.js → worktree-5v9kt04s.js} +22 -22
  54. package/dist/chunks/{model-resolver-qgn6gcr1.js → worktree-607tc6va.js} +5 -5
  55. package/dist/chunks/{model-resolver-qxf9dtqj.js → worktree-63vazbh0.js} +13 -13
  56. package/dist/chunks/{model-resolver-669tq793.js → worktree-669tq793.js} +1 -1
  57. package/dist/chunks/{model-resolver-6h73sxmp.js → worktree-6h73sxmp.js} +1 -1
  58. package/dist/chunks/{model-resolver-h71w788e.js → worktree-6hjx5zpb.js} +9 -9
  59. package/dist/chunks/{model-resolver-vfpfzq36.js → worktree-6kbabvtn.js} +6 -6
  60. package/dist/chunks/worktree-6kdq0pjd.js +4 -0
  61. package/dist/chunks/{model-resolver-6msgmcgs.js → worktree-6msgmcgs.js} +1 -1
  62. package/dist/chunks/{model-resolver-wfde3x95.js → worktree-6t9jm67f.js} +12 -12
  63. package/dist/chunks/{model-resolver-hrfgvzx7.js → worktree-6wt9h67w.js} +32 -32
  64. package/dist/chunks/{model-resolver-22zy5p6a.js → worktree-6x3wj1ns.js} +47 -47
  65. package/dist/chunks/{model-resolver-nn1j8xnc.js → worktree-76kr4s17.js} +5 -5
  66. package/dist/chunks/{model-resolver-7bmhse3q.js → worktree-7bmhse3q.js} +1 -1
  67. package/dist/chunks/{model-resolver-sqg5arky.js → worktree-7d7kf9r8.js} +13 -13
  68. package/dist/chunks/{model-resolver-sgmbcbbb.js → worktree-7dyhy7q1.js} +29 -29
  69. package/dist/chunks/{model-resolver-nngqe6j4.js → worktree-7p34082x.js} +18 -18
  70. package/dist/chunks/{model-resolver-736bcg6q.js → worktree-7rgj22wf.js} +30 -30
  71. package/dist/chunks/{model-resolver-17fma2k7.js → worktree-7s6gk46a.js} +9 -9
  72. package/dist/chunks/{model-resolver-nfya0jhb.js → worktree-7svxd7hr.js} +32 -32
  73. package/dist/chunks/{model-resolver-vp724954.js → worktree-7vt8smsy.js} +24 -24
  74. package/dist/chunks/{model-resolver-82wf71gc.js → worktree-81gxmrf7.js} +10 -10
  75. package/dist/chunks/{model-resolver-kcggd0et.js → worktree-86v3dky3.js} +22 -22
  76. package/dist/chunks/{model-resolver-5xdpz9c5.js → worktree-89m3s2m0.js} +5 -5
  77. package/dist/chunks/{model-resolver-tcezcvh9.js → worktree-89znhe33.js} +4 -4
  78. package/dist/chunks/{model-resolver-8d7r5vzw.js → worktree-8d7r5vzw.js} +1 -1
  79. package/dist/chunks/{model-resolver-dj2t23y0.js → worktree-8p4f9s12.js} +2 -2
  80. package/dist/chunks/{model-resolver-x4d9s46j.js → worktree-8pb4qd8n.js} +23 -23
  81. package/dist/chunks/{model-resolver-mj95satc.js → worktree-8s9esm8s.js} +3 -3
  82. package/dist/chunks/{model-resolver-92x003m3.js → worktree-8sayz2ry.js} +4 -4
  83. package/dist/chunks/{model-resolver-np9tbams.js → worktree-8vmd40gx.js} +28 -28
  84. package/dist/chunks/{model-resolver-j3f2cck8.js → worktree-973s4paq.js} +3 -3
  85. package/dist/chunks/{model-resolver-2r4wbs08.js → worktree-97grsc5w.js} +11 -11
  86. package/dist/chunks/{model-resolver-f1k0jycj.js → worktree-99jpd8te.js} +16 -16
  87. package/dist/chunks/{model-resolver-hc62tks0.js → worktree-9h6zs5c6.js} +21 -21
  88. package/dist/chunks/{model-resolver-1ajx6rf5.js → worktree-9hn6k4tm.js} +8 -8
  89. package/dist/chunks/{model-resolver-y5k1jt8t.js → worktree-9pnj26g7.js} +32 -32
  90. package/dist/chunks/{model-resolver-k2t9brnj.js → worktree-9s8wz9g9.js} +3 -3
  91. package/dist/chunks/{model-resolver-g8wj080z.js → worktree-9vh5rqp9.js} +3 -3
  92. package/dist/chunks/{model-resolver-6c2x2cd4.js → worktree-9vkyr3gp.js} +11 -11
  93. package/dist/chunks/{model-resolver-5c4hm403.js → worktree-a1bz86dw.js} +3 -3
  94. package/dist/chunks/{model-resolver-50mzsvk4.js → worktree-a8bn8zg0.js} +4 -4
  95. package/dist/chunks/{model-resolver-fybg9cv5.js → worktree-aa3v2t1f.js} +11 -11
  96. package/dist/chunks/{model-resolver-aaet6srn.js → worktree-aaet6srn.js} +2 -2
  97. package/dist/chunks/{model-resolver-jgttmm4a.js → worktree-aeb4sny1.js} +5 -5
  98. package/dist/chunks/{model-resolver-r7999wmh.js → worktree-as812ba0.js} +32 -32
  99. package/dist/chunks/{model-resolver-mbhsxkjz.js → worktree-aswfnv87.js} +23 -23
  100. package/dist/chunks/{model-resolver-b6gygkdw.js → worktree-b6gygkdw.js} +2 -2
  101. package/dist/chunks/{model-resolver-b97cbvw3.js → worktree-b97cbvw3.js} +1 -1
  102. package/dist/chunks/{model-resolver-q1t5m84m.js → worktree-bccs4bt1.js} +25 -25
  103. package/dist/chunks/{model-resolver-2tfmgkzg.js → worktree-bha4atvq.js} +4 -4
  104. package/dist/chunks/{model-resolver-ba2wr92e.js → worktree-bvnyc1t2.js} +56 -56
  105. package/dist/chunks/{model-resolver-3qgwcr55.js → worktree-byvb6gjv.js} +17 -17
  106. package/dist/chunks/{model-resolver-dj9sq318.js → worktree-c78bbtc9.js} +5 -5
  107. package/dist/chunks/{model-resolver-zpgd1f5d.js → worktree-c7dfawsb.js} +32 -32
  108. package/dist/chunks/{model-resolver-zpa21783.js → worktree-cax7e9hb.js} +8 -8
  109. package/dist/chunks/{model-resolver-5bqjzhep.js → worktree-cdjzdxw3.js} +28 -28
  110. package/dist/chunks/{model-resolver-m0jqrx5p.js → worktree-cfpkc3c9.js} +2 -2
  111. package/dist/chunks/{model-resolver-44h5tttr.js → worktree-cpj0znwe.js} +4 -4
  112. package/dist/chunks/{model-resolver-nxhqveyz.js → worktree-cr07tj7n.js} +5 -5
  113. package/dist/chunks/{model-resolver-g3q3rgxp.js → worktree-cvw7k98w.js} +9 -9
  114. package/dist/chunks/{model-resolver-y9nxj4p3.js → worktree-cw2x2bjr.js} +1 -1
  115. package/dist/chunks/{model-resolver-2sejkfem.js → worktree-cwa6csj7.js} +9 -9
  116. package/dist/chunks/{model-resolver-qs02hrtf.js → worktree-cwyz1c8d.js} +8 -8
  117. package/dist/chunks/{model-resolver-qqr60gfs.js → worktree-d04advaa.js} +9 -9
  118. package/dist/chunks/{model-resolver-sxz6gkc3.js → worktree-d216944b.js} +4 -4
  119. package/dist/chunks/{model-resolver-r5zby1m5.js → worktree-d64tg2r5.js} +20 -20
  120. package/dist/chunks/{model-resolver-g03mgfzw.js → worktree-d9kvw835.js} +6 -6
  121. package/dist/chunks/{model-resolver-90k1qenw.js → worktree-dbba7j6z.js} +10 -10
  122. package/dist/chunks/{model-resolver-c970e3h5.js → worktree-dc1e58jh.js} +42 -42
  123. package/dist/chunks/{model-resolver-kzc3h1h3.js → worktree-dj68pnee.js} +4 -4
  124. package/dist/chunks/{model-resolver-yr3tpaeb.js → worktree-drdwtp1b.js} +14 -14
  125. package/dist/chunks/{model-resolver-1k45rzbh.js → worktree-e2qcy9fz.js} +24 -24
  126. package/dist/chunks/{model-resolver-bjeqesjn.js → worktree-e7dyj58f.js} +6 -6
  127. package/dist/chunks/{model-resolver-9xjpjsxw.js → worktree-e9g3nry7.js} +21 -21
  128. package/dist/chunks/{model-resolver-eaj1djv9.js → worktree-eaj1djv9.js} +1 -1
  129. package/dist/chunks/{model-resolver-ef5x83kb.js → worktree-ef5x83kb.js} +1 -1
  130. package/dist/chunks/{model-resolver-erw5rpbs.js → worktree-erw5rpbs.js} +2 -2
  131. package/dist/chunks/{model-resolver-etq0c3wd.js → worktree-etq0c3wd.js} +1 -1
  132. package/dist/chunks/{model-resolver-r27n78xb.js → worktree-f17z2c8t.js} +8 -8
  133. package/dist/chunks/{model-resolver-hdnk95c8.js → worktree-f828m53h.js} +2 -2
  134. package/dist/chunks/{model-resolver-bezhzanq.js → worktree-faj2svbs.js} +9 -9
  135. package/dist/chunks/{model-resolver-pkttb123.js → worktree-fam2aybr.js} +20 -20
  136. package/dist/chunks/{model-resolver-nytdp6jx.js → worktree-fdcdwsmf.js} +11 -11
  137. package/dist/chunks/{model-resolver-vafdc1fs.js → worktree-fqpen2k4.js} +12 -12
  138. package/dist/chunks/{model-resolver-fxbjtjnd.js → worktree-fxbjtjnd.js} +1 -1
  139. package/dist/chunks/{model-resolver-fv8x6qr6.js → worktree-fzc0zagk.js} +11 -11
  140. package/dist/chunks/{model-resolver-mmftq8sy.js → worktree-g6nrwhst.js} +11 -11
  141. package/dist/chunks/{model-resolver-pnpak3cr.js → worktree-gbnkcvp8.js} +23 -23
  142. package/dist/chunks/{model-resolver-gd4qta3r.js → worktree-gd4qta3r.js} +1 -1
  143. package/dist/chunks/{model-resolver-91aeks9h.js → worktree-gft05b0a.js} +8 -8
  144. package/dist/chunks/{model-resolver-ebahhykd.js → worktree-ggex864g.js} +4 -4
  145. package/dist/chunks/{model-resolver-bm3m92rh.js → worktree-gmjq4p6e.js} +12 -12
  146. package/dist/chunks/{model-resolver-q4v73ct2.js → worktree-gnjcy9v4.js} +25 -25
  147. package/dist/chunks/{model-resolver-gv6a8nnw.js → worktree-gv6a8nnw.js} +2 -2
  148. package/dist/chunks/{model-resolver-t9tj2qb4.js → worktree-gynbp3j3.js} +9 -9
  149. package/dist/chunks/{model-resolver-g5yx0azb.js → worktree-h0j9vckn.js} +86 -86
  150. package/dist/chunks/{model-resolver-kb0crpaj.js → worktree-h2pnfxb2.js} +18 -18
  151. package/dist/chunks/{model-resolver-c27tsz6v.js → worktree-h4bptjw1.js} +3 -3
  152. package/dist/chunks/{model-resolver-h6vf3j39.js → worktree-h6vf3j39.js} +1 -1
  153. package/dist/chunks/{model-resolver-g444g17r.js → worktree-hkygx1vj.js} +25 -25
  154. package/dist/chunks/{model-resolver-ccfveryq.js → worktree-hnx402aw.js} +10 -10
  155. package/dist/chunks/{model-resolver-k69qv5g3.js → worktree-hpa29ags.js} +11 -11
  156. package/dist/chunks/{model-resolver-swrhp9b1.js → worktree-hrtbhf2d.js} +21 -21
  157. package/dist/chunks/{model-resolver-y3fgkbp4.js → worktree-ht336jn2.js} +26 -26
  158. package/dist/chunks/{model-resolver-00gg1b3e.js → worktree-hw9rayzm.js} +33 -33
  159. package/dist/chunks/{model-resolver-w9nng7hv.js → worktree-hwe7x4em.js} +6 -6
  160. package/dist/chunks/{model-resolver-j56e64zr.js → worktree-j56e64zr.js} +1 -1
  161. package/dist/chunks/{model-resolver-0rfppqx1.js → worktree-j6mf8xpf.js} +20 -20
  162. package/dist/chunks/{model-resolver-6145a6ex.js → worktree-j72rwyf1.js} +19 -19
  163. package/dist/chunks/{model-resolver-e029vvsz.js → worktree-j972s74s.js} +8 -8
  164. package/dist/chunks/{model-resolver-zhmbkdqz.js → worktree-ja7kfczc.js} +23 -23
  165. package/dist/chunks/{model-resolver-jca4demv.js → worktree-jca4demv.js} +2 -2
  166. package/dist/chunks/{model-resolver-vtt78d7a.js → worktree-jj06xv0y.js} +41 -41
  167. package/dist/chunks/{model-resolver-484v57sd.js → worktree-jja466qr.js} +13 -13
  168. package/dist/chunks/{model-resolver-rwdk379s.js → worktree-jq6rrm66.js} +4 -4
  169. package/dist/chunks/{model-resolver-5k2jh76e.js → worktree-jwbs44k2.js} +30 -30
  170. package/dist/chunks/{model-resolver-aj1am2a4.js → worktree-ka43yy4c.js} +14 -14
  171. package/dist/chunks/{model-resolver-v96vwnpg.js → worktree-kgy5z1s6.js} +37 -37
  172. package/dist/chunks/{model-resolver-4xyx6x5b.js → worktree-kh43tbq9.js} +26 -26
  173. package/dist/chunks/{model-resolver-vr5243nf.js → worktree-kncab3ca.js} +8 -8
  174. package/dist/chunks/{model-resolver-q7jc4hc3.js → worktree-kqs2tyv4.js} +26 -26
  175. package/dist/chunks/{model-resolver-0k1dfe12.js → worktree-krf6f92z.js} +1 -1
  176. package/dist/chunks/{model-resolver-ssxq2qf8.js → worktree-m25ehp29.js} +22 -22
  177. package/dist/chunks/{model-resolver-m3fdjcah.js → worktree-m3fdjcah.js} +1 -1
  178. package/dist/chunks/{model-resolver-bmygya3z.js → worktree-m6zv4rm2.js} +20 -20
  179. package/dist/chunks/{model-resolver-n4p75jwy.js → worktree-m7fm29bt.js} +7 -7
  180. package/dist/chunks/{model-resolver-m9w0rfyh.js → worktree-m9w0rfyh.js} +1 -1
  181. package/dist/chunks/{model-resolver-g4yx06gn.js → worktree-ma5b8j4s.js} +26 -26
  182. package/dist/chunks/{model-resolver-he53wa6d.js → worktree-mkry6x9x.js} +17 -17
  183. package/dist/chunks/{model-resolver-y1bnvh01.js → worktree-mn5995mw.js} +5 -5
  184. package/dist/chunks/{model-resolver-v2n4cb87.js → worktree-mwt0hxwz.js} +25 -25
  185. package/dist/chunks/{model-resolver-x8mcy56q.js → worktree-mzatw618.js} +30 -30
  186. package/dist/chunks/{model-resolver-85ebze8p.js → worktree-n4jz3xah.js} +19 -19
  187. package/dist/chunks/{model-resolver-gf2sqppg.js → worktree-n8j2gzbp.js} +6 -6
  188. package/dist/chunks/{model-resolver-fsrt26q4.js → worktree-ndqsnc2r.js} +37 -37
  189. package/dist/chunks/{model-resolver-w0b273fa.js → worktree-necmxhx4.js} +12 -12
  190. package/dist/chunks/{model-resolver-whjc79nc.js → worktree-ng27n122.js} +6 -6
  191. package/dist/chunks/{model-resolver-vdc5ty7t.js → worktree-nmmfddzk.js} +23 -23
  192. package/dist/chunks/{model-resolver-nzks3jc8.js → worktree-nzks3jc8.js} +3 -3
  193. package/dist/chunks/{model-resolver-p28j5sbe.js → worktree-p28j5sbe.js} +2 -2
  194. package/dist/chunks/{model-resolver-kdg3wy8r.js → worktree-p32pf1ka.js} +54 -54
  195. package/dist/chunks/{model-resolver-pjvnvgmy.js → worktree-pjvnvgmy.js} +1 -1
  196. package/dist/chunks/{model-resolver-pknna89w.js → worktree-pknna89w.js} +1 -1
  197. package/dist/chunks/{model-resolver-ckvjdfyb.js → worktree-pyv0448z.js} +8 -8
  198. package/dist/chunks/{model-resolver-ax2ahcq8.js → worktree-q001hfjm.js} +26 -26
  199. package/dist/chunks/worktree-q509s3k3.js +18 -0
  200. package/dist/chunks/{model-resolver-x1xcpfha.js → worktree-q52v1zkd.js} +13 -13
  201. package/dist/chunks/{model-resolver-xpj1128m.js → worktree-q6xbbyq7.js} +30 -30
  202. package/dist/chunks/{model-resolver-7pmagftx.js → worktree-q9pnxbc2.js} +11 -11
  203. package/dist/chunks/{model-resolver-s4k6rbz4.js → worktree-qfqkpq0b.js} +14 -14
  204. package/dist/chunks/{model-resolver-drwq78ky.js → worktree-qqeeq2t9.js} +7 -7
  205. package/dist/chunks/{model-resolver-qsdy395h.js → worktree-qsdy395h.js} +1 -1
  206. package/dist/chunks/{model-resolver-8fqzhg78.js → worktree-qz10dfen.js} +9 -9
  207. package/dist/chunks/{model-resolver-h0w69axy.js → worktree-qz1kxtc0.js} +10 -10
  208. package/dist/chunks/worktree-r0hfn8wq.js +252 -0
  209. package/dist/chunks/{model-resolver-34326mmr.js → worktree-r424jv4c.js} +4 -4
  210. package/dist/chunks/{model-resolver-cqjcs21s.js → worktree-ra1f23w6.js} +25 -25
  211. package/dist/chunks/{model-resolver-k307gc3k.js → worktree-rb662jkw.js} +12 -12
  212. package/dist/chunks/{model-resolver-rdw6cm16.js → worktree-rdw6cm16.js} +1 -1
  213. package/dist/chunks/{model-resolver-bgxcxs0p.js → worktree-rgs851g5.js} +5 -5
  214. package/dist/chunks/{model-resolver-j2rec9x8.js → worktree-rx78v32q.js} +15 -15
  215. package/dist/chunks/{model-resolver-za5w5jtx.js → worktree-rzd1wbq6.js} +16 -16
  216. package/dist/chunks/{model-resolver-keat3kjn.js → worktree-s0esgemt.js} +4 -4
  217. package/dist/chunks/{model-resolver-nn7cfy5h.js → worktree-s8322d80.js} +15 -15
  218. package/dist/chunks/{model-resolver-yrs7mjrn.js → worktree-ss5j40bg.js} +17 -17
  219. package/dist/chunks/{model-resolver-ze0b84e6.js → worktree-svenkxb1.js} +12 -12
  220. package/dist/chunks/{model-resolver-0rwgfah8.js → worktree-sw0n0a6k.js} +29 -29
  221. package/dist/chunks/{model-resolver-f88gwaxn.js → worktree-sybsj1vd.js} +18 -18
  222. package/dist/chunks/{model-resolver-7y8hn1s8.js → worktree-t744w8jc.js} +13 -13
  223. package/dist/chunks/{model-resolver-n3shvtzh.js → worktree-tajkn4gv.js} +7 -7
  224. package/dist/chunks/{model-resolver-tazgh4e4.js → worktree-tazgh4e4.js} +1 -1
  225. package/dist/chunks/{model-resolver-tdstcens.js → worktree-tdstcens.js} +1 -1
  226. package/dist/chunks/{model-resolver-gf0x0cm7.js → worktree-te6g59r9.js} +5 -5
  227. package/dist/chunks/{model-resolver-gkykxjyj.js → worktree-tkp03cf9.js} +11 -11
  228. package/dist/chunks/{model-resolver-nxhr90dq.js → worktree-tmdzkf58.js} +42 -42
  229. package/dist/chunks/{model-resolver-rw9wzhmw.js → worktree-tmezp53v.js} +22 -22
  230. package/dist/chunks/{model-resolver-tvtrv512.js → worktree-tvtrv512.js} +1 -1
  231. package/dist/chunks/{model-resolver-mqsw6bz5.js → worktree-v4tzcak4.js} +19 -19
  232. package/dist/chunks/{model-resolver-hak66h8f.js → worktree-vb8m6727.js} +12 -12
  233. package/dist/chunks/{model-resolver-91qth17q.js → worktree-vcaqzj1m.js} +20 -20
  234. package/dist/chunks/{model-resolver-5sfs7bry.js → worktree-vcy486hh.js} +15 -15
  235. package/dist/chunks/worktree-vdgcs2tf.js +65 -0
  236. package/dist/chunks/{model-resolver-veqvce7d.js → worktree-veqvce7d.js} +1 -1
  237. package/dist/chunks/{model-resolver-qd3b5f68.js → worktree-vfmzn6hv.js} +47 -47
  238. package/dist/chunks/worktree-vjkgxth0.js +478 -0
  239. package/dist/chunks/{model-resolver-3m3a5rkz.js → worktree-vtk7nzxk.js} +43 -43
  240. package/dist/chunks/{model-resolver-paj0n6dn.js → worktree-vtmwze1j.js} +13 -13
  241. package/dist/chunks/{model-resolver-kgt3w00r.js → worktree-vvm2z6z1.js} +17 -17
  242. package/dist/chunks/{model-resolver-gxzntdky.js → worktree-vy10ba8t.js} +13 -13
  243. package/dist/chunks/{model-resolver-bwxdk6mq.js → worktree-vz8nqtp5.js} +32 -32
  244. package/dist/chunks/{model-resolver-vzcthcp8.js → worktree-vzcthcp8.js} +1 -1
  245. package/dist/chunks/{model-resolver-jy86jdgr.js → worktree-w1kb69s9.js} +3 -3
  246. package/dist/chunks/{model-resolver-w3wsvvr9.js → worktree-w3wsvvr9.js} +1 -1
  247. package/dist/chunks/{model-resolver-g100dm1t.js → worktree-w5s35esc.js} +13 -13
  248. package/dist/chunks/{model-resolver-b1v5zkbk.js → worktree-w676nq5f.js} +13 -13
  249. package/dist/chunks/{model-resolver-evrfjeev.js → worktree-w8ykr7pr.js} +40 -40
  250. package/dist/chunks/worktree-wbb80fv7.js +26 -0
  251. package/dist/chunks/{model-resolver-wd87259q.js → worktree-wd87259q.js} +1 -1
  252. package/dist/chunks/{model-resolver-eyx3sbbq.js → worktree-wg1w1cgy.js} +4 -4
  253. package/dist/chunks/{model-resolver-km09h1rt.js → worktree-wg7aatbm.js} +9 -9
  254. package/dist/chunks/{model-resolver-xjtg51km.js → worktree-wvgpkr3z.js} +5 -5
  255. package/dist/chunks/{model-resolver-x1ezjp6w.js → worktree-x1ezjp6w.js} +1 -1
  256. package/dist/chunks/{model-resolver-721hjktc.js → worktree-x3n1z10k.js} +19 -19
  257. package/dist/chunks/{model-resolver-csj4vvs3.js → worktree-xd9rknpb.js} +12 -12
  258. package/dist/chunks/{model-resolver-e0a154fg.js → worktree-xkrbr206.js} +6 -6
  259. package/dist/chunks/{model-resolver-xvjcz7er.js → worktree-xn1g1etc.js} +7 -7
  260. package/dist/chunks/{model-resolver-cvc17wee.js → worktree-xr43neyx.js} +11 -11
  261. package/dist/chunks/{model-resolver-6xwap4d1.js → worktree-xrkx1905.js} +15 -15
  262. package/dist/chunks/{model-resolver-m7s4xjns.js → worktree-xrvwyrv1.js} +33 -33
  263. package/dist/chunks/{model-resolver-meja1nf7.js → worktree-xw714m32.js} +18 -18
  264. package/dist/chunks/{model-resolver-y1fvbwt7.js → worktree-y1fvbwt7.js} +1 -1
  265. package/dist/chunks/{model-resolver-hc4fnx3k.js → worktree-y35sf2j4.js} +4 -4
  266. package/dist/chunks/{model-resolver-kmpyk7m7.js → worktree-y394sqab.js} +33 -33
  267. package/dist/chunks/{model-resolver-y71avatq.js → worktree-y71avatq.js} +1 -1
  268. package/dist/chunks/{model-resolver-9nsjpsnk.js → worktree-y7668axm.js} +23 -23
  269. package/dist/chunks/{model-resolver-y3q03scc.js → worktree-y7x142mt.js} +8 -8
  270. package/dist/chunks/{model-resolver-r8xr0va3.js → worktree-yp2x3t23.js} +4 -4
  271. package/dist/chunks/{model-resolver-2sdqacf6.js → worktree-ypmw8e4w.js} +8 -8
  272. package/dist/chunks/{model-resolver-yrhqyw5v.js → worktree-yrhqyw5v.js} +1 -1
  273. package/dist/chunks/{model-resolver-yrznvahk.js → worktree-yrznvahk.js} +2 -2
  274. package/dist/chunks/{model-resolver-nf2b587t.js → worktree-yta3sn21.js} +4 -4
  275. package/dist/chunks/{model-resolver-z0bkrqjs.js → worktree-z0bkrqjs.js} +1 -1
  276. package/dist/chunks/{model-resolver-rk6ykxyv.js → worktree-z2bs4c1s.js} +21 -21
  277. package/dist/chunks/{model-resolver-ksn24y69.js → worktree-z4cdtg64.js} +5 -5
  278. package/dist/chunks/{model-resolver-z63w68vq.js → worktree-z63w68vq.js} +2 -2
  279. package/dist/chunks/{model-resolver-emajncad.js → worktree-z8amnqnv.js} +11 -11
  280. package/dist/chunks/{model-resolver-3sf2s9k9.js → worktree-zart4t36.js} +36 -36
  281. package/dist/chunks/{model-resolver-zav06jzw.js → worktree-zcrspsvn.js} +4 -4
  282. package/dist/chunks/{model-resolver-zeh9ct20.js → worktree-zeh9ct20.js} +2 -2
  283. package/dist/chunks/{model-resolver-jqaqchn6.js → worktree-zkgb1gnz.js} +49 -49
  284. package/dist/chunks/{model-resolver-fkjmw100.js → worktree-zqx8wcya.js} +8 -8
  285. package/dist/chunks/{model-resolver-zr2ceqn5.js → worktree-zr2ceqn5.js} +1 -1
  286. package/dist/chunks/{model-resolver-zxq2ej10.js → worktree-zxq2ej10.js} +1 -1
  287. package/dist/codemode/catalog.js +1 -1
  288. package/dist/codemode/instructions.js +9 -9
  289. package/dist/codemode/tool.js +3 -3
  290. package/dist/codemode/web.js +1 -1
  291. package/dist/command.js +82 -82
  292. package/dist/config/discovery.js +83 -83
  293. package/dist/config/markdown.js +1 -1
  294. package/dist/config/normalize.js +105 -105
  295. package/dist/config/plugin/agent.js +122 -122
  296. package/dist/config/plugin/command.js +211 -211
  297. package/dist/config/plugin/compaction.js +159 -159
  298. package/dist/config/plugin/compatibility.js +140 -140
  299. package/dist/config/plugin/entry-observer.js +1 -1
  300. package/dist/config/plugin/formatter.js +123 -123
  301. package/dist/config/plugin/image.js +122 -122
  302. package/dist/config/plugin/instruction.js +87 -87
  303. package/dist/config/plugin/location-watcher.js +124 -124
  304. package/dist/config/plugin/mcp.js +129 -129
  305. package/dist/config/plugin/policy.js +122 -122
  306. package/dist/config/plugin/provider.js +122 -122
  307. package/dist/config/plugin/reference.js +124 -124
  308. package/dist/config/plugin/shell.js +122 -122
  309. package/dist/config/plugin/skill-file.js +101 -101
  310. package/dist/config/plugin/skill.js +141 -141
  311. package/dist/config/plugin/snapshot.js +122 -122
  312. package/dist/config/plugin/source.js +125 -125
  313. package/dist/config/plugin/tool-output.js +124 -124
  314. package/dist/config/plugin/websearch.js +121 -121
  315. package/dist/config/plugin/worktree.js +124 -124
  316. package/dist/config/variable.js +3 -3
  317. package/dist/config/watch.js +1 -1
  318. package/dist/config.js +127 -127
  319. package/dist/credential/sql.js +2 -2
  320. package/dist/credential.js +82 -82
  321. package/dist/database/database.js +65 -65
  322. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  323. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  324. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  325. package/dist/database/drizzle/index.js +13 -13
  326. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  327. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  328. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  329. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  330. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  331. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  332. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  333. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  334. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  335. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  336. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  337. package/dist/database/drizzle.js +14 -14
  338. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  339. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  340. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  341. package/dist/database/migration/20260225215848_workspace.js +1 -1
  342. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  343. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  344. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  345. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  346. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  347. package/dist/database/migration/20260323234822_events.js +1 -1
  348. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  349. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  350. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  351. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  352. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  353. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  354. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  355. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  356. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  357. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  358. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  359. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  360. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  361. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  362. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  363. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  364. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  365. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  366. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  367. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  368. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  369. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  370. package/dist/database/migration/20260611035744_credential.js +1 -1
  371. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  372. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  373. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  374. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  375. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  376. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  377. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  378. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  379. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  380. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  381. package/dist/database/migration/20260812213948_worktree.js +1 -1
  382. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  383. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  384. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  385. package/dist/database/migration.gen.js +48 -48
  386. package/dist/database/migration.js +50 -50
  387. package/dist/database/path.js +2 -2
  388. package/dist/database/schema.gen.js +1 -1
  389. package/dist/database/schema.sql.js +1 -1
  390. package/dist/database/sqlite.bun.js +1 -1
  391. package/dist/database/sqlite.js +1 -1
  392. package/dist/database/sqlite.node.js +1 -1
  393. package/dist/database/sqlite.workerd.js +1 -1
  394. package/dist/database/v1-migration.bun.js +75 -75
  395. package/dist/database/v1-migration.js +1 -1
  396. package/dist/effect/app-node-builder.js +366 -366
  397. package/dist/effect/app-node-platform.js +2 -2
  398. package/dist/effect/keyed-mutex.js +1 -1
  399. package/dist/effect/websocket-constructor.js +1 -1
  400. package/dist/environment/driver.js +1 -1
  401. package/dist/environment/environment.js +92 -92
  402. package/dist/environment/exec-defaults.js +2 -2
  403. package/dist/environment/files.js +1 -1
  404. package/dist/environment/index.js +94 -94
  405. package/dist/environment/local.js +2 -2
  406. package/dist/environment/memory.js +2 -2
  407. package/dist/environment/unavailable.js +1 -1
  408. package/dist/event/sql.js +1 -1
  409. package/dist/event-logger.js +73 -73
  410. package/dist/file-access.js +103 -103
  411. package/dist/file-mutation.js +93 -93
  412. package/dist/file-retention.js +1 -1
  413. package/dist/file.js +1 -1
  414. package/dist/filesystem/fff.bun.js +2 -2
  415. package/dist/filesystem/fff.js +1 -1
  416. package/dist/filesystem/fff.node.js +2 -2
  417. package/dist/filesystem/fff.workerd.js +2 -2
  418. package/dist/filesystem/ignore.js +1 -1
  419. package/dist/filesystem/location-watcher-policy.js +6 -6
  420. package/dist/filesystem/location-watcher.js +226 -226
  421. package/dist/filesystem/protected.js +3 -3
  422. package/dist/filesystem/search.js +102 -102
  423. package/dist/filesystem/watcher-binding.js +1 -1
  424. package/dist/filesystem/watcher.js +13 -13
  425. package/dist/filesystem.js +107 -107
  426. package/dist/form.js +79 -79
  427. package/dist/formatter/builtins.js +4 -4
  428. package/dist/formatter.js +88 -88
  429. package/dist/generate.js +104 -104
  430. package/dist/git.js +10 -10
  431. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  432. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  433. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  434. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  435. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  436. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  437. package/dist/github-copilot/copilot-provider.js +17 -17
  438. package/dist/github-copilot/models.js +98 -98
  439. package/dist/github-copilot/openai-compatible-error.js +1 -1
  440. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  441. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  442. package/dist/github-copilot/responses/openai-error.js +1 -1
  443. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  444. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  445. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  446. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  447. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  448. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  449. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  450. package/dist/id/id.js +1 -1
  451. package/dist/image/photon.js +2 -2
  452. package/dist/image.js +6 -6
  453. package/dist/instance/service.js +5 -5
  454. package/dist/instance.js +357 -357
  455. package/dist/instruction-discovery.js +84 -84
  456. package/dist/instructions/builtins.js +86 -86
  457. package/dist/instructions/index.js +1 -1
  458. package/dist/integration/connection.js +3 -3
  459. package/dist/integration.js +85 -85
  460. package/dist/job.js +78 -78
  461. package/dist/kv/sql.js +2 -2
  462. package/dist/kv.js +72 -72
  463. package/dist/location-activity.js +134 -134
  464. package/dist/location-lifecycle.js +105 -105
  465. package/dist/location-mutation.js +103 -103
  466. package/dist/location-service-map.js +85 -85
  467. package/dist/location-services.js +354 -354
  468. package/dist/location.js +84 -84
  469. package/dist/mcp/client.js +90 -90
  470. package/dist/mcp/index.js +107 -107
  471. package/dist/mcp/instructions.js +125 -125
  472. package/dist/mcp/oauth.js +77 -77
  473. package/dist/mcp/stdio.js +89 -89
  474. package/dist/mime.js +1 -1
  475. package/dist/modal/models.js +98 -98
  476. package/dist/model-resolver.js +95 -95
  477. package/dist/model.js +99 -99
  478. package/dist/models-dev.js +106 -106
  479. package/dist/oauth/page.js +1 -1
  480. package/dist/permission/saved.js +75 -75
  481. package/dist/permission/sql.js +5 -5
  482. package/dist/permission.js +102 -102
  483. package/dist/persistent-pty/binary.bun.js +1 -1
  484. package/dist/persistent-pty/daemon.js +1 -1
  485. package/dist/persistent-pty/index.js +83 -83
  486. package/dist/persistent-pty/pty-binding.js +1 -1
  487. package/dist/persistent-pty.js +74 -74
  488. package/dist/plugin/agent.js +99 -99
  489. package/dist/plugin/command.js +98 -98
  490. package/dist/plugin/hooks.js +1 -1
  491. package/dist/plugin/host.js +217 -217
  492. package/dist/plugin/identity.js +3 -3
  493. package/dist/plugin/instance.js +5 -5
  494. package/dist/plugin/internal.js +328 -328
  495. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  496. package/dist/plugin/models-dev.js +95 -95
  497. package/dist/plugin/module.js +7 -7
  498. package/dist/plugin/optimize.js +4 -4
  499. package/dist/plugin/plan.js +101 -101
  500. package/dist/plugin/promise.js +1 -1
  501. package/dist/plugin/provider/amazon-bedrock.js +89 -89
  502. package/dist/plugin/provider/azure.js +121 -121
  503. package/dist/plugin/provider/cerebras.js +1 -1
  504. package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
  505. package/dist/plugin/provider/cloudflare-workers-ai.js +120 -120
  506. package/dist/plugin/provider/cohere.js +2 -2
  507. package/dist/plugin/provider/configured.js +118 -118
  508. package/dist/plugin/provider/digitalocean.js +92 -92
  509. package/dist/plugin/provider/dynamic.js +2 -2
  510. package/dist/plugin/provider/factory.js +1 -1
  511. package/dist/plugin/provider/gateway.js +2 -2
  512. package/dist/plugin/provider/github-copilot.js +92 -92
  513. package/dist/plugin/provider/gitlab.js +90 -90
  514. package/dist/plugin/provider/google-vertex.js +89 -89
  515. package/dist/plugin/provider/kilo.js +1 -1
  516. package/dist/plugin/provider/llmgateway.js +76 -76
  517. package/dist/plugin/provider/lmstudio.js +121 -121
  518. package/dist/plugin/provider/modal.js +91 -91
  519. package/dist/plugin/provider/nvidia.js +1 -1
  520. package/dist/plugin/provider/ollama.js +121 -121
  521. package/dist/plugin/provider/openai.js +93 -93
  522. package/dist/plugin/provider/opencode.js +92 -92
  523. package/dist/plugin/provider/openrouter.js +90 -90
  524. package/dist/plugin/provider/perplexity.js +2 -2
  525. package/dist/plugin/provider/poe.js +77 -77
  526. package/dist/plugin/provider/prompt-cache-key.js +89 -89
  527. package/dist/plugin/provider/sap-ai-core.js +90 -90
  528. package/dist/plugin/provider/sdk-factory.js +1 -1
  529. package/dist/plugin/provider/snowflake-cortex.js +121 -121
  530. package/dist/plugin/provider/venice.js +2 -2
  531. package/dist/plugin/provider/vercel.js +89 -89
  532. package/dist/plugin/provider/vllm.js +119 -119
  533. package/dist/plugin/provider/xai.js +90 -90
  534. package/dist/plugin/provider/zenmux.js +1 -1
  535. package/dist/plugin/provider.js +158 -158
  536. package/dist/plugin/sdk.js +75 -75
  537. package/dist/plugin/service.js +3 -3
  538. package/dist/plugin/skill.js +138 -138
  539. package/dist/plugin/source-directory.js +1 -1
  540. package/dist/plugin/supervisor.js +347 -347
  541. package/dist/plugin/update.js +6 -6
  542. package/dist/plugin/vcs/git.js +85 -85
  543. package/dist/plugin/vcs/hg.js +85 -85
  544. package/dist/plugin/warming.js +120 -120
  545. package/dist/plugin/websearch/exa.js +7 -7
  546. package/dist/plugin/websearch/firecrawl.js +6 -6
  547. package/dist/plugin/websearch/index.js +9 -9
  548. package/dist/plugin/websearch/mcp.js +2 -2
  549. package/dist/plugin/websearch/parallel.js +6 -6
  550. package/dist/plugin/websearch/tavily.js +6 -6
  551. package/dist/plugin/websearch/tinyfish.js +8 -8
  552. package/dist/plugin.js +224 -224
  553. package/dist/project/schema.js +2 -2
  554. package/dist/project/sql.js +4 -4
  555. package/dist/project.js +83 -83
  556. package/dist/provider.js +98 -98
  557. package/dist/pty/protocol.js +1 -1
  558. package/dist/pty/schema.js +3 -3
  559. package/dist/pty/ticket.js +1 -1
  560. package/dist/pty.js +97 -97
  561. package/dist/reference/instructions.js +88 -88
  562. package/dist/reference.js +90 -90
  563. package/dist/repository-cache.js +76 -76
  564. package/dist/repository.js +1 -1
  565. package/dist/ripgrep/binary.js +2 -2
  566. package/dist/ripgrep.js +96 -96
  567. package/dist/rpc.js +85 -85
  568. package/dist/schema.js +1 -1
  569. package/dist/session/command.js +73 -73
  570. package/dist/session/compaction.js +131 -131
  571. package/dist/session/context.js +151 -151
  572. package/dist/session/diff.js +87 -87
  573. package/dist/session/environment.js +5 -5
  574. package/dist/session/error.js +3 -3
  575. package/dist/session/event.js +1 -1
  576. package/dist/session/execution/restart.js +223 -223
  577. package/dist/session/execution.js +127 -127
  578. package/dist/session/generate.js +152 -152
  579. package/dist/session/history.js +13 -13
  580. package/dist/session/inbox.js +85 -85
  581. package/dist/session/info.js +3 -3
  582. package/dist/session/instruction-entry.js +76 -76
  583. package/dist/session/instruction-state.js +8 -8
  584. package/dist/session/instructions.js +96 -96
  585. package/dist/session/message-updater.js +2 -2
  586. package/dist/session/message.js +1 -1
  587. package/dist/session/model-request.js +118 -118
  588. package/dist/session/model-transport.js +9 -9
  589. package/dist/session/move.js +129 -129
  590. package/dist/session/projector.js +85 -85
  591. package/dist/session/prompt.js +104 -104
  592. package/dist/session/provider-context.js +1 -1
  593. package/dist/session/revert.js +89 -89
  594. package/dist/session/run-coordinator.js +3 -3
  595. package/dist/session/runner/index.js +3 -3
  596. package/dist/session/runner/llm.js +230 -230
  597. package/dist/session/runner/max-steps.js +1 -1
  598. package/dist/session/runner/model.js +97 -97
  599. package/dist/session/runner/publish-llm-event.js +3 -3
  600. package/dist/session/runner/retry.js +113 -113
  601. package/dist/session/runner/step.js +125 -125
  602. package/dist/session/runner/to-llm-message.js +2 -2
  603. package/dist/session/schema.js +1 -1
  604. package/dist/session/session.js +169 -169
  605. package/dist/session/shell.js +137 -137
  606. package/dist/session/skill.js +102 -102
  607. package/dist/session/sql.js +5 -5
  608. package/dist/session/stats.js +72 -72
  609. package/dist/session/store.js +84 -84
  610. package/dist/session/subagent-completion.js +1 -1
  611. package/dist/session/subagent-job.js +209 -209
  612. package/dist/session/system-prompt.js +5 -5
  613. package/dist/session/title.js +155 -155
  614. package/dist/session/to-session-error.js +110 -110
  615. package/dist/session/transfer.js +217 -217
  616. package/dist/session/usage.js +1 -1
  617. package/dist/session.js +211 -211
  618. package/dist/shell/parse.js +6 -6
  619. package/dist/shell/result.js +1 -1
  620. package/dist/shell/scan.js +1 -1
  621. package/dist/shell/select.js +11 -11
  622. package/dist/shell.js +139 -139
  623. package/dist/skill/discovery.js +6 -6
  624. package/dist/skill/instructions.js +104 -104
  625. package/dist/skill.js +111 -111
  626. package/dist/snapshot.js +92 -92
  627. package/dist/state.js +1 -1
  628. package/dist/tool/html-markdown.js +1 -1
  629. package/dist/tool/http-body.js +1 -1
  630. package/dist/tool/mcp.js +124 -124
  631. package/dist/tool/plugin/edit.js +119 -119
  632. package/dist/tool/plugin/file-diff.js +1 -1
  633. package/dist/tool/plugin/glob.js +119 -119
  634. package/dist/tool/plugin/grep.js +123 -123
  635. package/dist/tool/plugin/opencode.js +3 -3
  636. package/dist/tool/plugin/patch.js +121 -121
  637. package/dist/tool/plugin/question.js +102 -102
  638. package/dist/tool/plugin/read.js +124 -124
  639. package/dist/tool/plugin/shell.js +214 -214
  640. package/dist/tool/plugin/skill.js +110 -110
  641. package/dist/tool/plugin/subagent.js +212 -212
  642. package/dist/tool/plugin/webfetch.js +109 -109
  643. package/dist/tool/plugin/websearch.js +109 -109
  644. package/dist/tool/plugin/write.js +121 -121
  645. package/dist/tool/read-filesystem.js +97 -97
  646. package/dist/tool/runtime.js +1 -1
  647. package/dist/tool-output.js +8 -8
  648. package/dist/tool.js +16 -16
  649. package/dist/util/error-summary.js +1 -1
  650. package/dist/util/error.js +1 -1
  651. package/dist/util/git-executable.js +2 -2
  652. package/dist/util/iife.js +1 -1
  653. package/dist/util/lazy.js +1 -1
  654. package/dist/util/slug.js +1 -1
  655. package/dist/util/token.js +1 -1
  656. package/dist/util/which.js +1 -1
  657. package/dist/util/wildcard.js +1 -1
  658. package/dist/v1/config/agent.js +5 -5
  659. package/dist/v1/config/attachment.js +4 -4
  660. package/dist/v1/config/command.js +3 -3
  661. package/dist/v1/config/config.js +16 -16
  662. package/dist/v1/config/error.js +2 -2
  663. package/dist/v1/config/formatter.js +7 -7
  664. package/dist/v1/config/layout.js +1 -1
  665. package/dist/v1/config/lsp.js +5 -5
  666. package/dist/v1/config/mcp.js +4 -4
  667. package/dist/v1/config/migrate.js +91 -91
  668. package/dist/v1/config/permission.js +3 -3
  669. package/dist/v1/config/plugin.js +3 -3
  670. package/dist/v1/config/provider-options.js +1 -1
  671. package/dist/v1/config/provider.js +4 -4
  672. package/dist/v1/config/server.js +2 -2
  673. package/dist/v1/config/skills.js +3 -3
  674. package/dist/v1/permission.js +1 -1
  675. package/dist/variant.js +92 -92
  676. package/dist/vcs/patch.js +1 -1
  677. package/dist/vcs.js +86 -86
  678. package/dist/websearch.js +79 -79
  679. package/dist/wellknown/plugin.js +75 -75
  680. package/dist/wellknown.js +80 -80
  681. package/dist/workspace/driver.js +5 -5
  682. package/dist/workspace/sql.js +1 -1
  683. package/dist/workspace.js +79 -79
  684. package/dist/worktree/directory.js +2 -2
  685. package/dist/worktree/git.js +10 -10
  686. package/dist/worktree/sql.js +5 -5
  687. package/dist/worktree/strategies.js +88 -88
  688. package/dist/worktree.js +97 -97
  689. package/package.json +8 -8
  690. package/dist/chunks/model-resolver-1tm0r3ht.js +0 -4
  691. package/dist/chunks/model-resolver-1x11rq2a.js +0 -18
  692. package/dist/chunks/model-resolver-ns5dg0kc.js +0 -26
  693. package/dist/chunks/model-resolver-qdb30wdd.js +0 -252
  694. package/dist/chunks/model-resolver-thh4zv80.js +0 -65
  695. package/dist/chunks/model-resolver-xrwhq20c.js +0 -478
  696. /package/dist/chunks/{model-resolver-0qkdqm5v.js → worktree-0qkdqm5v.js} +0 -0
  697. /package/dist/chunks/{model-resolver-0zkw76rk.js → worktree-0zkw76rk.js} +0 -0
  698. /package/dist/chunks/{model-resolver-17cy0kzp.js → worktree-17cy0kzp.js} +0 -0
  699. /package/dist/chunks/{model-resolver-1cnp2v09.js → worktree-1cnp2v09.js} +0 -0
  700. /package/dist/chunks/{model-resolver-1kg9ymc8.js → worktree-1kg9ymc8.js} +0 -0
  701. /package/dist/chunks/{model-resolver-24dcb14g.js → worktree-24dcb14g.js} +0 -0
  702. /package/dist/chunks/{model-resolver-2710q6r3.js → worktree-2710q6r3.js} +0 -0
  703. /package/dist/chunks/{model-resolver-2axfhc9x.js → worktree-2axfhc9x.js} +0 -0
  704. /package/dist/chunks/{model-resolver-2c3vjs8z.js → worktree-2c3vjs8z.js} +0 -0
  705. /package/dist/chunks/{model-resolver-359p4xyc.js → worktree-359p4xyc.js} +0 -0
  706. /package/dist/chunks/{model-resolver-3asan66x.js → worktree-3asan66x.js} +0 -0
  707. /package/dist/chunks/{model-resolver-3v8g72cx.js → worktree-3v8g72cx.js} +0 -0
  708. /package/dist/chunks/{model-resolver-3w5fmr99.js → worktree-3w5fmr99.js} +0 -0
  709. /package/dist/chunks/{model-resolver-3wcehsnq.js → worktree-3wcehsnq.js} +0 -0
  710. /package/dist/chunks/{model-resolver-43n2bw4t.js → worktree-43n2bw4t.js} +0 -0
  711. /package/dist/chunks/{model-resolver-4knz6hnm.js → worktree-4knz6hnm.js} +0 -0
  712. /package/dist/chunks/{model-resolver-4vcrnpx2.js → worktree-4vcrnpx2.js} +0 -0
  713. /package/dist/chunks/{model-resolver-4y7fprxs.js → worktree-4y7fprxs.js} +0 -0
  714. /package/dist/chunks/{model-resolver-53557ph1.js → worktree-53557ph1.js} +0 -0
  715. /package/dist/chunks/{model-resolver-550bvhaj.js → worktree-550bvhaj.js} +0 -0
  716. /package/dist/chunks/{model-resolver-5qd3pb7m.js → worktree-5qd3pb7m.js} +0 -0
  717. /package/dist/chunks/{model-resolver-6prwharc.js → worktree-6prwharc.js} +0 -0
  718. /package/dist/chunks/{model-resolver-7akdwqpd.js → worktree-7akdwqpd.js} +0 -0
  719. /package/dist/chunks/{model-resolver-7m9af43g.js → worktree-7m9af43g.js} +0 -0
  720. /package/dist/chunks/{model-resolver-822emrt2.js → worktree-822emrt2.js} +0 -0
  721. /package/dist/chunks/{model-resolver-88xbtdfr.js → worktree-88xbtdfr.js} +0 -0
  722. /package/dist/chunks/{model-resolver-8n3pysct.js → worktree-8n3pysct.js} +0 -0
  723. /package/dist/chunks/{model-resolver-922hggd3.js → worktree-922hggd3.js} +0 -0
  724. /package/dist/chunks/{model-resolver-9a4afbnw.js → worktree-9a4afbnw.js} +0 -0
  725. /package/dist/chunks/{model-resolver-9rqn6x4v.js → worktree-9rqn6x4v.js} +0 -0
  726. /package/dist/chunks/{model-resolver-a6k6eb26.js → worktree-a6k6eb26.js} +0 -0
  727. /package/dist/chunks/{model-resolver-af5trqkr.js → worktree-af5trqkr.js} +0 -0
  728. /package/dist/chunks/{model-resolver-afrmfg78.js → worktree-afrmfg78.js} +0 -0
  729. /package/dist/chunks/{model-resolver-aqzs7mqg.js → worktree-aqzs7mqg.js} +0 -0
  730. /package/dist/chunks/{model-resolver-atq7p7m5.js → worktree-atq7p7m5.js} +0 -0
  731. /package/dist/chunks/{model-resolver-bkyjaxrp.js → worktree-bkyjaxrp.js} +0 -0
  732. /package/dist/chunks/{model-resolver-bmr6ed5q.js → worktree-bmr6ed5q.js} +0 -0
  733. /package/dist/chunks/{model-resolver-cf4snx6d.js → worktree-cf4snx6d.js} +0 -0
  734. /package/dist/chunks/{model-resolver-cvy3z8tj.js → worktree-cvy3z8tj.js} +0 -0
  735. /package/dist/chunks/{model-resolver-d9fn303g.js → worktree-d9fn303g.js} +0 -0
  736. /package/dist/chunks/{model-resolver-d9jj8t3e.js → worktree-d9jj8t3e.js} +0 -0
  737. /package/dist/chunks/{model-resolver-dajrwvna.js → worktree-dajrwvna.js} +0 -0
  738. /package/dist/chunks/{model-resolver-dap0rakb.js → worktree-dap0rakb.js} +0 -0
  739. /package/dist/chunks/{model-resolver-df08tz66.js → worktree-df08tz66.js} +0 -0
  740. /package/dist/chunks/{model-resolver-dy18nga0.js → worktree-dy18nga0.js} +0 -0
  741. /package/dist/chunks/{model-resolver-e5kj55wp.js → worktree-e5kj55wp.js} +0 -0
  742. /package/dist/chunks/{model-resolver-e73j6tqm.js → worktree-e73j6tqm.js} +0 -0
  743. /package/dist/chunks/{model-resolver-ec1grn59.js → worktree-ec1grn59.js} +0 -0
  744. /package/dist/chunks/{model-resolver-eh3zwz77.js → worktree-eh3zwz77.js} +0 -0
  745. /package/dist/chunks/{model-resolver-emrn6kk6.js → worktree-emrn6kk6.js} +0 -0
  746. /package/dist/chunks/{model-resolver-f0mxakyp.js → worktree-f0mxakyp.js} +0 -0
  747. /package/dist/chunks/{model-resolver-f6n9ztr4.js → worktree-f6n9ztr4.js} +0 -0
  748. /package/dist/chunks/{model-resolver-faypxj3z.js → worktree-faypxj3z.js} +0 -0
  749. /package/dist/chunks/{model-resolver-fd410y7t.js → worktree-fd410y7t.js} +0 -0
  750. /package/dist/chunks/{model-resolver-fxgpk5d8.js → worktree-fxgpk5d8.js} +0 -0
  751. /package/dist/chunks/{model-resolver-g4wezp1m.js → worktree-g4wezp1m.js} +0 -0
  752. /package/dist/chunks/{model-resolver-g86h250q.js → worktree-g86h250q.js} +0 -0
  753. /package/dist/chunks/{model-resolver-gebd4c9n.js → worktree-gebd4c9n.js} +0 -0
  754. /package/dist/chunks/{model-resolver-gftt206x.js → worktree-gftt206x.js} +0 -0
  755. /package/dist/chunks/{model-resolver-hjbc5kem.js → worktree-hjbc5kem.js} +0 -0
  756. /package/dist/chunks/{model-resolver-hk9envan.js → worktree-hk9envan.js} +0 -0
  757. /package/dist/chunks/{model-resolver-j2ntwpah.js → worktree-j2ntwpah.js} +0 -0
  758. /package/dist/chunks/{model-resolver-j5zkgpj8.js → worktree-j5zkgpj8.js} +0 -0
  759. /package/dist/chunks/{model-resolver-jjkms2e6.js → worktree-jjkms2e6.js} +0 -0
  760. /package/dist/chunks/{model-resolver-jr7sbwjy.js → worktree-jr7sbwjy.js} +0 -0
  761. /package/dist/chunks/{model-resolver-jwfs4k6c.js → worktree-jwfs4k6c.js} +0 -0
  762. /package/dist/chunks/{model-resolver-jzg6c2d5.js → worktree-jzg6c2d5.js} +0 -0
  763. /package/dist/chunks/{model-resolver-mp448xyj.js → worktree-mp448xyj.js} +0 -0
  764. /package/dist/chunks/{model-resolver-msx8hqn2.js → worktree-msx8hqn2.js} +0 -0
  765. /package/dist/chunks/{model-resolver-n05xt0ee.js → worktree-n05xt0ee.js} +0 -0
  766. /package/dist/chunks/{model-resolver-n3j8tn72.js → worktree-n3j8tn72.js} +0 -0
  767. /package/dist/chunks/{model-resolver-njntx4h6.js → worktree-njntx4h6.js} +0 -0
  768. /package/dist/chunks/{model-resolver-q3sfg36h.js → worktree-q3sfg36h.js} +0 -0
  769. /package/dist/chunks/{model-resolver-q3t37ft6.js → worktree-q3t37ft6.js} +0 -0
  770. /package/dist/chunks/{model-resolver-q74kybfr.js → worktree-q74kybfr.js} +0 -0
  771. /package/dist/chunks/{model-resolver-qaymkmh1.js → worktree-qaymkmh1.js} +0 -0
  772. /package/dist/chunks/{model-resolver-qb87gjwd.js → worktree-qb87gjwd.js} +0 -0
  773. /package/dist/chunks/{model-resolver-qfa1cgps.js → worktree-qfa1cgps.js} +0 -0
  774. /package/dist/chunks/{model-resolver-qg3g05ea.js → worktree-qg3g05ea.js} +0 -0
  775. /package/dist/chunks/{model-resolver-qrg20bc0.js → worktree-qrg20bc0.js} +0 -0
  776. /package/dist/chunks/{model-resolver-rcb2kzg1.js → worktree-rcb2kzg1.js} +0 -0
  777. /package/dist/chunks/{model-resolver-sdp7kfr6.js → worktree-sdp7kfr6.js} +0 -0
  778. /package/dist/chunks/{model-resolver-sk3qaz4a.js → worktree-sk3qaz4a.js} +0 -0
  779. /package/dist/chunks/{model-resolver-ssg3fenm.js → worktree-ssg3fenm.js} +0 -0
  780. /package/dist/chunks/{model-resolver-twg0f83k.js → worktree-twg0f83k.js} +0 -0
  781. /package/dist/chunks/{model-resolver-w803qqfp.js → worktree-w803qqfp.js} +0 -0
  782. /package/dist/chunks/{model-resolver-wc3fc9cn.js → worktree-wc3fc9cn.js} +0 -0
  783. /package/dist/chunks/{model-resolver-wer8tq1h.js → worktree-wer8tq1h.js} +0 -0
  784. /package/dist/chunks/{model-resolver-wtztk69x.js → worktree-wtztk69x.js} +0 -0
  785. /package/dist/chunks/{model-resolver-x0ckcb58.js → worktree-x0ckcb58.js} +0 -0
  786. /package/dist/chunks/{model-resolver-x61499pn.js → worktree-x61499pn.js} +0 -0
  787. /package/dist/chunks/{model-resolver-y44na4kk.js → worktree-y44na4kk.js} +0 -0
  788. /package/dist/chunks/{model-resolver-y8cydn3q.js → worktree-y8cydn3q.js} +0 -0
  789. /package/dist/chunks/{model-resolver-y8f7s663.js → worktree-y8f7s663.js} +0 -0
  790. /package/dist/chunks/{model-resolver-ygaqb7jw.js → worktree-ygaqb7jw.js} +0 -0
  791. /package/dist/chunks/{model-resolver-ym463w8f.js → worktree-ym463w8f.js} +0 -0
  792. /package/dist/chunks/{model-resolver-z9919s4g.js → worktree-z9919s4g.js} +0 -0
@@ -1,45 +1,45 @@
1
1
  import {
2
2
  Service83,
3
3
  node87
4
- } from "./model-resolver-j3f2cck8.js";
4
+ } from "./worktree-973s4paq.js";
5
5
  import {
6
6
  latestSequence2,
7
- Service78,
8
- node82
9
- } from "./model-resolver-wfde3x95.js";
7
+ Service79,
8
+ node83
9
+ } from "./worktree-6t9jm67f.js";
10
10
  import {
11
11
  llmClient2
12
- } from "./model-resolver-5t3nmthw.js";
12
+ } from "./worktree-5t3nmthw.js";
13
13
  import {
14
14
  SessionEvent2
15
- } from "./model-resolver-ec1grn59.js";
15
+ } from "./worktree-ec1grn59.js";
16
16
  import {
17
17
  firstUserMessage2
18
- } from "./model-resolver-qs02hrtf.js";
18
+ } from "./worktree-cwyz1c8d.js";
19
19
  import {
20
- Service73,
21
- node77
22
- } from "./model-resolver-hak66h8f.js";
20
+ Service74,
21
+ node78
22
+ } from "./worktree-vb8m6727.js";
23
23
  import {
24
- Service24,
25
- node28
26
- } from "./model-resolver-g5yx0azb.js";
24
+ Service18,
25
+ node22
26
+ } from "./worktree-h0j9vckn.js";
27
27
  import {
28
28
  record2,
29
29
  add2
30
- } from "./model-resolver-tdstcens.js";
30
+ } from "./worktree-tdstcens.js";
31
31
  import {
32
32
  __export
33
- } from "./model-resolver-9rqn6x4v.js";
33
+ } from "./worktree-9rqn6x4v.js";
34
34
 
35
35
  // src/session/title.ts
36
36
  var exports_title = {};
37
37
  __export(exports_title, {
38
- Service: () => Service2,
38
+ Service: () => Service10,
39
39
  SessionTitle: () => exports_title,
40
40
  isUntitled: () => isUntitled2,
41
- layer: () => layer3,
42
- node: () => node3
41
+ layer: () => layer7,
42
+ node: () => node12
43
43
  });
44
44
  import { isDeepStrictEqual } from "node:util";
45
45
  import { LLMClient, LLMEvent, Message, SystemPart } from "@opencode/ai";
@@ -51,18 +51,18 @@ var MAX_CONTEXT_LENGTH = 8000;
51
51
  var MAX_FIRST_MESSAGE_LENGTH = 2000;
52
52
  var titleChanged = Symbol("Session title changed");
53
53
 
54
- class Service2 extends Context.Service()("@opencode/SessionTitle") {
54
+ class Service10 extends Context.Service()("@opencode/SessionTitle") {
55
55
  }
56
56
  var truncate = (value) => value.length <= MAX_LENGTH ? value : `${value.slice(0, MAX_LENGTH - 3)}...`;
57
57
  var isUntitled2 = (session) => isExactRootFallback({
58
58
  title: session.title,
59
59
  time: { created: DateTime.toEpochMillis(session.time.created) }
60
60
  });
61
- var layer3 = Layer.effect(Service2, Effect.gen(function* () {
62
- const bus = yield* Service78;
61
+ var layer7 = Layer.effect(Service10, Effect.gen(function* () {
62
+ const bus = yield* Service79;
63
63
  const llm = yield* LLMClient.Service;
64
- const context = yield* Service24;
65
- const store = yield* Service73;
64
+ const context = yield* Service18;
65
+ const store = yield* Service74;
66
66
  const db = (yield* Service83).db;
67
67
  const attempt = Effect.fn("SessionTitle.attempt")(function* (input) {
68
68
  const chunks = [];
@@ -145,12 +145,12 @@ Recent conversation:
145
145
  title: truncate(title)
146
146
  }, { commit: (sequence) => sequence === expectedSequence ? Effect.void : Effect.die(titleChanged) }).pipe(Effect.catchDefect((defect) => defect === titleChanged ? Effect.void : Effect.die(defect)));
147
147
  });
148
- return Service2.of({ generate });
148
+ return Service10.of({ generate });
149
149
  }));
150
- var node3 = makeLocationNode({
151
- service: Service2,
152
- layer: layer3,
153
- deps: [node82, llmClient2, node28, node77, node87]
150
+ var node12 = makeLocationNode({
151
+ service: Service10,
152
+ layer: layer7,
153
+ deps: [node83, llmClient2, node22, node78, node87]
154
154
  });
155
155
 
156
- export { Service2, isUntitled2, layer3, node3, exports_title };
156
+ export { Service10, isUntitled2, layer7, node12, exports_title };
@@ -1,30 +1,30 @@
1
1
  import {
2
- Service76,
3
- node80
4
- } from "./model-resolver-s4k6rbz4.js";
2
+ Service77,
3
+ node81
4
+ } from "./worktree-qfqkpq0b.js";
5
5
  import {
6
6
  create3
7
- } from "./model-resolver-rdw6cm16.js";
7
+ } from "./worktree-rdw6cm16.js";
8
8
  import {
9
9
  __export
10
- } from "./model-resolver-9rqn6x4v.js";
10
+ } from "./worktree-9rqn6x4v.js";
11
11
 
12
12
  // src/formatter.ts
13
- var exports_formatter2 = {};
14
- __export(exports_formatter2, {
15
- Formatter: () => exports_formatter2,
16
- Service: () => Service16,
17
- node: () => node18
13
+ var exports_formatter3 = {};
14
+ __export(exports_formatter3, {
15
+ Formatter: () => exports_formatter3,
16
+ Service: () => Service53,
17
+ node: () => node56
18
18
  });
19
19
  import { Context, Effect, Layer } from "effect";
20
20
  import { ChildProcess } from "effect/unstable/process";
21
21
  import path from "path";
22
22
  import { makeLocationNode } from "@opencode/util/effect/app-node";
23
23
  import { AppProcess } from "@opencode/util/process";
24
- class Service16 extends Context.Service()("@opencode/v2/Formatter") {
24
+ class Service53 extends Context.Service()("@opencode/v2/Formatter") {
25
25
  }
26
- var layer = Layer.effect(Service16, Effect.gen(function* () {
27
- const location = yield* Service76;
26
+ var layer = Layer.effect(Service53, Effect.gen(function* () {
27
+ const location = yield* Service77;
28
28
  const processes = yield* AppProcess.Service;
29
29
  const commands = new WeakMap;
30
30
  const state = create3({
@@ -85,12 +85,12 @@ var layer = Layer.effect(Service16, Effect.gen(function* () {
85
85
  }
86
86
  return false;
87
87
  });
88
- return Service16.of({ transform: state.transform, reload: state.reload, file });
88
+ return Service53.of({ transform: state.transform, reload: state.reload, file });
89
89
  }));
90
- var node18 = makeLocationNode({
91
- service: Service16,
90
+ var node56 = makeLocationNode({
91
+ service: Service53,
92
92
  layer,
93
- deps: [node80, AppProcess.node]
93
+ deps: [node81, AppProcess.node]
94
94
  });
95
95
 
96
- export { Service16, node18, exports_formatter2 };
96
+ export { Service53, node56, exports_formatter3 };
@@ -2,20 +2,20 @@ import {
2
2
  NonNegativeInt2,
3
3
  PositiveInt2,
4
4
  RelativePath2
5
- } from "./model-resolver-922hggd3.js";
5
+ } from "./worktree-922hggd3.js";
6
6
  import {
7
- Service44,
8
- node48
9
- } from "./model-resolver-1k45rzbh.js";
7
+ Service55,
8
+ node58
9
+ } from "./worktree-e2qcy9fz.js";
10
10
  import {
11
- Content2
12
- } from "./model-resolver-y5k1jt8t.js";
11
+ Content3
12
+ } from "./worktree-9pnj26g7.js";
13
13
  import {
14
14
  detect2
15
- } from "./model-resolver-3smtnn6g.js";
15
+ } from "./worktree-3smtnn6g.js";
16
16
  import {
17
17
  __export
18
- } from "./model-resolver-9rqn6x4v.js";
18
+ } from "./worktree-9rqn6x4v.js";
19
19
 
20
20
  // src/tool/read-filesystem.ts
21
21
  var exports_read_filesystem = {};
@@ -35,7 +35,7 @@ __export(exports_read_filesystem, {
35
35
  ReadToolFileSystem: () => exports_read_filesystem,
36
36
  Service: () => Service5,
37
37
  TextPage: () => TextPage2,
38
- node: () => node7,
38
+ node: () => node6,
39
39
  read: () => read2
40
40
  });
41
41
  import path from "path";
@@ -89,7 +89,7 @@ var PageInput2 = Schema.Struct({
89
89
  });
90
90
  var FileContent2 = Schema.Struct({
91
91
  type: Schema.Literal("file"),
92
- ...Content2.fields
92
+ ...Content3.fields
93
93
  }).annotate({ identifier: "ReadTool.FileContent" });
94
94
 
95
95
  class TextPage2 extends Schema.Class("ReadTool.TextPage")({
@@ -327,12 +327,12 @@ var nthNewline = (bytes, count) => {
327
327
  }
328
328
  };
329
329
  var layer = Layer.effect(Service5, Effect.gen(function* () {
330
- const environment = yield* Service44;
330
+ const environment = yield* Service55;
331
331
  return Service5.of({
332
332
  list: environment.files.list,
333
333
  read: (path2, resource, page) => read2(environment.files, path2, resource, page)
334
334
  });
335
335
  }));
336
- var node7 = makeLocationNode({ service: Service5, layer, deps: [node48] });
336
+ var node6 = makeLocationNode({ service: Service5, layer, deps: [node58] });
337
337
 
338
- export { MAX_READ_LINES2, MAX_READ_BYTES2, MAX_MEDIA_INGEST_BYTES2, MEDIA_MIMES2, BinaryFileError2, MediaIngestLimitError2, OffsetOutOfRangeError2, PathKindError2, PageInput2, FileContent2, TextPage2, ListEntry2, ListPage2, Service5, read2, node7, exports_read_filesystem };
338
+ export { MAX_READ_LINES2, MAX_READ_BYTES2, MAX_MEDIA_INGEST_BYTES2, MEDIA_MIMES2, BinaryFileError2, MediaIngestLimitError2, OffsetOutOfRangeError2, PathKindError2, PageInput2, FileContent2, TextPage2, ListEntry2, ListPage2, Service5, read2, node6, exports_read_filesystem };
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  useragent2
3
- } from "./model-resolver-e029vvsz.js";
3
+ } from "./worktree-j972s74s.js";
4
4
  import {
5
5
  call2
6
- } from "./model-resolver-33w4ejhs.js";
6
+ } from "./worktree-33w4ejhs.js";
7
7
  import {
8
8
  __export
9
- } from "./model-resolver-9rqn6x4v.js";
9
+ } from "./worktree-9rqn6x4v.js";
10
10
 
11
11
  // src/plugin/websearch/firecrawl.ts
12
12
  var exports_firecrawl = {};
13
13
  __export(exports_firecrawl, {
14
14
  Plugin: () => Plugin15,
15
15
  WebSearchFirecrawl: () => exports_firecrawl,
16
- endpoint: () => endpoint3
16
+ endpoint: () => endpoint2
17
17
  });
18
18
  import { define } from "@opencode/plugin/effect/plugin";
19
19
  import { Effect, Option, Schema } from "effect";
20
20
  import { HttpClient } from "effect/unstable/http";
21
- var endpoint3 = "https://mcp.firecrawl.dev/v2/mcp";
21
+ var endpoint2 = "https://mcp.firecrawl.dev/v2/mcp";
22
22
  var McpInput = Schema.Struct({
23
23
  query: Schema.String,
24
24
  limit: Schema.Number.pipe(Schema.optional)
@@ -59,7 +59,7 @@ var Plugin15 = define({
59
59
  execute: (input) => Effect.gen(function* () {
60
60
  const connection = yield* ctx.integration.connection.active("firecrawl");
61
61
  const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
62
- const result = yield* call2(http, endpoint3, "firecrawl_search", { input: McpInput, output: McpOutput }, { query: input.query, limit: 8 }, {
62
+ const result = yield* call2(http, endpoint2, "firecrawl_search", { input: McpInput, output: McpOutput }, { query: input.query, limit: 8 }, {
63
63
  "User-Agent": useragent2(ctx.app),
64
64
  ...credential?.type === "key" ? { Authorization: `Bearer ${credential.key}` } : {}
65
65
  });
@@ -77,4 +77,4 @@ var Plugin15 = define({
77
77
  })
78
78
  });
79
79
 
80
- export { endpoint3, Plugin15, exports_firecrawl };
80
+ export { endpoint2, Plugin15, exports_firecrawl };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./model-resolver-9rqn6x4v.js";
3
+ } from "./worktree-9rqn6x4v.js";
4
4
 
5
5
  // src/vcs/patch.ts
6
6
  var exports_patch2 = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./model-resolver-9rqn6x4v.js";
3
+ } from "./worktree-9rqn6x4v.js";
4
4
 
5
5
  // src/session/usage.ts
6
6
  var exports_usage = {};
@@ -1,7 +1,7 @@
1
1
  import {
2
- ID10,
3
- Service66
4
- } from "./model-resolver-np9tbams.js";
2
+ ID8,
3
+ Service63
4
+ } from "./worktree-8vmd40gx.js";
5
5
 
6
6
  // src/plugin/provider/llmgateway.ts
7
7
  import { Effect } from "effect";
@@ -9,7 +9,7 @@ import { define } from "@opencode/plugin/effect/plugin";
9
9
  var LLMGatewayPlugin2 = define({
10
10
  id: "opencode.provider.llmgateway",
11
11
  effect: Effect.fn(function* (ctx) {
12
- const integrations = yield* Service66;
12
+ const integrations = yield* Service63;
13
13
  const configured = new Set((yield* integrations.list()).map((integration) => integration.id));
14
14
  yield* ctx.provider.transform((evt) => {
15
15
  for (const item of evt.list()) {
@@ -19,7 +19,7 @@ var LLMGatewayPlugin2 = define({
19
19
  continue;
20
20
  if (item.provider.settings?.baseURL !== "https://api.llmgateway.io/v1")
21
21
  continue;
22
- if (!configured.has(ID10.make(item.provider.id)))
22
+ if (!configured.has(ID8.make(item.provider.id)))
23
23
  continue;
24
24
  evt.update(item.provider.id, (provider) => {
25
25
  provider.headers = {
@@ -1,21 +1,21 @@
1
1
  import {
2
- ID9,
2
+ ID7,
3
3
  isAISDK2,
4
4
  packageName2,
5
5
  mergeOverlay2
6
- } from "./model-resolver-kmpyk7m7.js";
6
+ } from "./worktree-y394sqab.js";
7
7
  import {
8
8
  __export
9
- } from "./model-resolver-9rqn6x4v.js";
9
+ } from "./worktree-9rqn6x4v.js";
10
10
 
11
11
  // src/aisdk.ts
12
12
  var exports_aisdk = {};
13
13
  __export(exports_aisdk, {
14
14
  AISDK: () => exports_aisdk,
15
15
  InitError: () => InitError2,
16
- Service: () => Service64,
16
+ Service: () => Service61,
17
17
  locationLayer: () => locationLayer2,
18
- node: () => node68
18
+ node: () => node65
19
19
  });
20
20
  import { makeLocationNode } from "@opencode/util/effect/app-node";
21
21
  import { APICallError } from "@ai-sdk/provider";
@@ -128,7 +128,7 @@ function prepareOptions(model, pkg) {
128
128
  }
129
129
 
130
130
  class InitError2 extends Schema.TaggedError()("AISDK.InitError", {
131
- providerID: ID9,
131
+ providerID: ID7,
132
132
  cause: Schema.Defect()
133
133
  }) {
134
134
  }
@@ -136,9 +136,9 @@ function initError(providerID) {
136
136
  return Effect.catchCause((cause) => Effect.fail(new InitError2({ providerID, cause: Cause.squash(cause) })));
137
137
  }
138
138
 
139
- class Service64 extends Context.Service()("@opencode/AISDK") {
139
+ class Service61 extends Context.Service()("@opencode/AISDK") {
140
140
  }
141
- var locationLayer2 = Layer.effect(Service64, Effect.gen(function* () {
141
+ var locationLayer2 = Layer.effect(Service61, Effect.gen(function* () {
142
142
  let sdkHooks = [];
143
143
  let languageHooks = [];
144
144
  const languages = new Map;
@@ -176,7 +176,7 @@ var locationLayer2 = Layer.effect(Service64, Effect.gen(function* () {
176
176
  }
177
177
  return event;
178
178
  });
179
- const service = Service64.of({
179
+ const service = Service61.of({
180
180
  hook: {
181
181
  sdk: register(() => sdkHooks, (next) => sdkHooks = next),
182
182
  language: register(() => languageHooks, (next) => languageHooks = next)
@@ -817,6 +817,6 @@ function providerErrorMessage(error) {
817
817
  const prefix = error.statusCode === undefined ? "Provider request failed" : `Provider request failed with HTTP ${error.statusCode}`;
818
818
  return error.message.trim() !== "" ? error.message : message ?? (code === undefined ? prefix : `${prefix}: ${code}`);
819
819
  }
820
- var node68 = makeLocationNode({ service: Service64, layer: locationLayer2, deps: [] });
820
+ var node65 = makeLocationNode({ service: Service61, layer: locationLayer2, deps: [] });
821
821
 
822
- export { InitError2, Service64, locationLayer2, node68, exports_aisdk };
822
+ export { InitError2, Service61, locationLayer2, node65, exports_aisdk };
@@ -1,33 +1,33 @@
1
1
  import {
2
- ID10,
3
- Service66,
4
- node70
5
- } from "./model-resolver-np9tbams.js";
2
+ ID8,
3
+ Service63,
4
+ node67
5
+ } from "./worktree-8vmd40gx.js";
6
6
  import {
7
- ID9,
7
+ ID7,
8
8
  isAISDK2,
9
9
  packageName2,
10
10
  loadPackage2,
11
11
  nativeSettings2,
12
12
  mergeOverlay2,
13
13
  mergeHeaders2,
14
- Service65,
15
- node69
16
- } from "./model-resolver-kmpyk7m7.js";
14
+ Service62,
15
+ node66
16
+ } from "./worktree-y394sqab.js";
17
17
  import {
18
- Service64,
19
- node68
20
- } from "./model-resolver-gkykxjyj.js";
18
+ Service61,
19
+ node65
20
+ } from "./worktree-tkp03cf9.js";
21
21
  import {
22
- ID8,
22
+ ID6,
23
23
  VariantID2,
24
24
  Ref2,
25
- Service63,
26
- node67
27
- } from "./model-resolver-00gg1b3e.js";
25
+ Service60,
26
+ node64
27
+ } from "./worktree-hw9rayzm.js";
28
28
  import {
29
29
  __export
30
- } from "./model-resolver-9rqn6x4v.js";
30
+ } from "./worktree-9rqn6x4v.js";
31
31
 
32
32
  // src/model-resolver.ts
33
33
  var exports_model_resolver = {};
@@ -36,7 +36,7 @@ __export(exports_model_resolver, {
36
36
  ModelConfigurationError: () => ModelConfigurationError3,
37
37
  ModelInitializationError: () => ModelInitializationError3,
38
38
  ModelResolver: () => exports_model_resolver,
39
- Service: () => Service62,
39
+ Service: () => Service59,
40
40
  UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError3,
41
41
  UnsupportedCompactionError: () => UnsupportedCompactionError3,
42
42
  UnsupportedPackageError: () => UnsupportedPackageError3,
@@ -44,7 +44,7 @@ __export(exports_model_resolver, {
44
44
  fromCatalogModel: () => fromCatalogModel2,
45
45
  hasPackage: () => hasPackage2,
46
46
  layer: () => layer24,
47
- node: () => node66,
47
+ node: () => node63,
48
48
  resolveModel: () => resolveModel2,
49
49
  withVariant: () => withVariant2
50
50
  });
@@ -54,8 +54,8 @@ import { Auth } from "@opencode/ai/route";
54
54
  import { Context, Effect, Layer, Schema, Struct } from "effect";
55
55
  import { Npm } from "@opencode/util/npm";
56
56
  class VariantUnavailableError3 extends Schema.TaggedError()("SessionRunnerModel.VariantUnavailableError", {
57
- providerID: ID9,
58
- modelID: ID8,
57
+ providerID: ID7,
58
+ modelID: ID6,
59
59
  variant: VariantID2
60
60
  }) {
61
61
  get message() {
@@ -64,8 +64,8 @@ class VariantUnavailableError3 extends Schema.TaggedError()("SessionRunnerModel.
64
64
  }
65
65
 
66
66
  class UnsupportedPackageError3 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedPackageError", {
67
- providerID: ID9,
68
- modelID: ID8,
67
+ providerID: ID7,
68
+ modelID: ID6,
69
69
  package: Schema.String
70
70
  }) {
71
71
  get message() {
@@ -75,8 +75,8 @@ class UnsupportedPackageError3 extends Schema.TaggedError()("SessionRunnerModel.
75
75
  var InitializationPhase2 = Schema.Literals(["load", "init", "construct"]);
76
76
 
77
77
  class ModelConfigurationError3 extends Schema.TaggedError()("SessionRunnerModel.ModelConfigurationError", {
78
- providerID: ID9,
79
- modelID: ID8,
78
+ providerID: ID7,
79
+ modelID: ID6,
80
80
  package: Schema.String,
81
81
  detail: Schema.String
82
82
  }) {
@@ -86,8 +86,8 @@ class ModelConfigurationError3 extends Schema.TaggedError()("SessionRunnerModel.
86
86
  }
87
87
 
88
88
  class ModelInitializationError3 extends Schema.TaggedError()("SessionRunnerModel.ModelInitializationError", {
89
- providerID: ID9,
90
- modelID: ID8,
89
+ providerID: ID7,
90
+ modelID: ID6,
91
91
  package: Schema.String,
92
92
  phase: InitializationPhase2,
93
93
  detail: Schema.String
@@ -98,8 +98,8 @@ class ModelInitializationError3 extends Schema.TaggedError()("SessionRunnerModel
98
98
  }
99
99
 
100
100
  class UnresolvedProviderVariablesError3 extends Schema.TaggedError()("SessionRunnerModel.UnresolvedProviderVariablesError", {
101
- providerID: ID9,
102
- modelID: ID8,
101
+ providerID: ID7,
102
+ modelID: ID6,
103
103
  variables: Schema.Array(Schema.String)
104
104
  }) {
105
105
  get message() {
@@ -108,8 +108,8 @@ class UnresolvedProviderVariablesError3 extends Schema.TaggedError()("SessionRun
108
108
  }
109
109
 
110
110
  class UnsupportedCompactionError3 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedCompactionError", {
111
- providerID: ID9,
112
- modelID: ID8,
111
+ providerID: ID7,
112
+ modelID: ID6,
113
113
  route: Schema.String
114
114
  }) {
115
115
  get message() {
@@ -117,7 +117,7 @@ class UnsupportedCompactionError3 extends Schema.TaggedError()("SessionRunnerMod
117
117
  }
118
118
  }
119
119
 
120
- class Service62 extends Context.Service()("@opencode/ModelResolver") {
120
+ class Service59 extends Context.Service()("@opencode/ModelResolver") {
121
121
  }
122
122
  var withVariant2 = (model, variantID) => {
123
123
  const id = variantID === "default" ? undefined : variantID;
@@ -257,15 +257,15 @@ var causeMessage = (cause) => {
257
257
  };
258
258
  var resolveModel2 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
259
259
  var hasPackage2 = (model) => Boolean(model.package);
260
- var layer24 = Layer.effect(Service62, Effect.gen(function* () {
261
- const providers = yield* Service65;
262
- const models = yield* Service63;
263
- const integrations = yield* Service66;
260
+ var layer24 = Layer.effect(Service59, Effect.gen(function* () {
261
+ const providers = yield* Service62;
262
+ const models = yield* Service60;
263
+ const integrations = yield* Service63;
264
264
  const npm = yield* Npm.Service;
265
- const aisdk = yield* Service64;
265
+ const aisdk = yield* Service61;
266
266
  const load = Effect.fn("ModelResolver.resolveModel")(function* (selected, variant) {
267
267
  const provider = yield* providers.get(selected.providerID);
268
- const connection = yield* integrations.connection.active(provider?.integrationID ?? ID10.make(selected.providerID));
268
+ const connection = yield* integrations.connection.active(provider?.integrationID ?? ID8.make(selected.providerID));
269
269
  const credential = connection ? yield* integrations.connection.resolve(connection) : undefined;
270
270
  const runtimeInfo = yield* withVariant2(selected, variant);
271
271
  const model = yield* fromCatalogModel2(runtimeInfo, credential, {
@@ -287,7 +287,7 @@ var layer24 = Layer.effect(Service62, Effect.gen(function* () {
287
287
  transport: selected.transport
288
288
  };
289
289
  });
290
- return Service62.of({
290
+ return Service59.of({
291
291
  resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
292
292
  const selected = requested ? yield* models.get(requested.providerID, requested.id) : yield* models.default().pipe(Effect.flatMap((model) => model && hasPackage2(model) ? Effect.succeed(model) : Effect.map(models.available(), (models) => models.find(hasPackage2))));
293
293
  if (!selected)
@@ -304,10 +304,10 @@ function usesAPIKeyAuth(packageName) {
304
304
  const name = packageName2(packageName);
305
305
  return name === "@ai-sdk/openai" || name === "@ai-sdk/anthropic" || name === "@ai-sdk/cerebras" || name === "@ai-sdk/deepinfra" || name === "@ai-sdk/openai-compatible" || name === "@ai-sdk/google" || name === "@ai-sdk/groq" || name === "@ai-sdk/mistral" || name === "@ai-sdk/togetherai" || name === "@ai-sdk/xai" || name === "@openrouter/ai-sdk-provider" || name === "@ai-sdk/azure" || name === "@opencode/ai/providers/openai" || name?.startsWith("@opencode/ai/providers/openai/") === true || name === "@opencode/ai/providers/anthropic" || name === "@opencode/ai/providers/anthropic-compatible" || name === "@opencode/ai/providers/baseten" || name === "@opencode/ai/providers/cerebras" || name === "@opencode/ai/providers/cloudflare-ai-gateway" || name === "@opencode/ai/providers/cloudflare-workers-ai" || name === "@opencode/ai/providers/deepinfra" || name === "@opencode/ai/providers/deepseek" || name === "@opencode/ai/providers/fireworks" || name === "@opencode/ai/providers/openai-compatible" || name === "@opencode/ai/providers/google" || name === "@opencode/ai/providers/groq" || name === "@opencode/ai/providers/mistral" || name === "@opencode/ai/providers/togetherai" || name === "@opencode/ai/providers/xai" || name === "@opencode/ai/providers/openrouter" || name === "@opencode/ai/providers/azure" || name?.startsWith("@opencode/ai/providers/azure/") === true;
306
306
  }
307
- var node66 = makeLocationNode({
308
- service: Service62,
307
+ var node63 = makeLocationNode({
308
+ service: Service59,
309
309
  layer: layer24,
310
- deps: [node69, node67, node70, Npm.node, node68]
310
+ deps: [node66, node64, node67, Npm.node, node65]
311
311
  });
312
312
 
313
- export { VariantUnavailableError3, UnsupportedPackageError3, InitializationPhase2, ModelConfigurationError3, ModelInitializationError3, UnresolvedProviderVariablesError3, UnsupportedCompactionError3, Service62, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer24, node66, exports_model_resolver };
313
+ export { VariantUnavailableError3, UnsupportedPackageError3, InitializationPhase2, ModelConfigurationError3, ModelInitializationError3, UnresolvedProviderVariablesError3, UnsupportedCompactionError3, Service59, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer24, node63, exports_model_resolver };
@@ -1,25 +1,25 @@
1
1
  import {
2
- ID9,
2
+ ID7,
3
3
  aisdk2,
4
4
  mergeOverlay2
5
- } from "./model-resolver-kmpyk7m7.js";
5
+ } from "./worktree-y394sqab.js";
6
6
  import {
7
- ID8,
7
+ ID6,
8
8
  VariantID2,
9
9
  Family2,
10
- Info22
11
- } from "./model-resolver-00gg1b3e.js";
10
+ Info20
11
+ } from "./worktree-hw9rayzm.js";
12
12
  import {
13
13
  __export
14
- } from "./model-resolver-9rqn6x4v.js";
14
+ } from "./worktree-9rqn6x4v.js";
15
15
 
16
16
  // src/github-copilot/models.ts
17
- var exports_models = {};
18
- __export(exports_models, {
19
- CopilotModels: () => exports_models,
20
- derive: () => derive2,
21
- get: () => get2,
22
- load: () => load2
17
+ var exports_models2 = {};
18
+ __export(exports_models2, {
19
+ CopilotModels: () => exports_models2,
20
+ derive: () => derive3,
21
+ get: () => get3,
22
+ load: () => load3
23
23
  });
24
24
  import { Money } from "@opencode/schema/money";
25
25
  import { Option, Schema } from "effect";
@@ -68,10 +68,10 @@ var RemoteModel = Schema.Struct({
68
68
  var Response = Schema.Struct({ data: Schema.Array(Schema.Unknown) });
69
69
  var decodeResponse = Schema.decodeUnknownSync(Response);
70
70
  var decodeModel = Schema.decodeUnknownOption(RemoteModel);
71
- async function get2(baseURL, headers, existing) {
72
- return derive2(baseURL, await load2(baseURL, headers), existing);
71
+ async function get3(baseURL, headers, existing) {
72
+ return derive3(baseURL, await load3(baseURL, headers), existing);
73
73
  }
74
- async function load2(baseURL, headers) {
74
+ async function load3(baseURL, headers) {
75
75
  const response = await fetch(`${baseURL}/models`, {
76
76
  headers,
77
77
  signal: AbortSignal.timeout(5000)
@@ -83,7 +83,7 @@ async function load2(baseURL, headers) {
83
83
  return model && usable(model) ? [[model.id, model]] : [];
84
84
  }));
85
85
  }
86
- function derive2(baseURL, remote, existing) {
86
+ function derive3(baseURL, remote, existing) {
87
87
  const result = new Map(existing.map((model) => [model.id, model]));
88
88
  for (const [id, model] of result) {
89
89
  const current = remote.get(model.modelID);
@@ -94,7 +94,7 @@ function derive2(baseURL, remote, existing) {
94
94
  result.set(id, build(id, current, baseURL, model));
95
95
  }
96
96
  for (const [id, model] of remote) {
97
- const key = ID8.make(id);
97
+ const key = ID6.make(id);
98
98
  if (result.has(key))
99
99
  continue;
100
100
  result.set(key, build(key, model, baseURL));
@@ -118,11 +118,11 @@ function build(id, remote, baseURL, previous) {
118
118
  const usdPerMillion = prices && prices.batch_size > 0 ? 1e4 / prices.batch_size : 0;
119
119
  const version = remote.version.startsWith(`${remote.id}-`) ? remote.version.slice(remote.id.length + 1) : remote.version;
120
120
  const released = previous?.time.released || Date.parse(version);
121
- return Info22.make({
122
- ...Info22.default(ID9.githubCopilot, id),
121
+ return Info20.make({
122
+ ...Info20.default(ID7.githubCopilot, id),
123
123
  id,
124
- modelID: ID8.make(remote.id),
125
- providerID: ID9.githubCopilot,
124
+ modelID: ID6.make(remote.id),
125
+ providerID: ID7.githubCopilot,
126
126
  family: previous?.family ?? Family2.make(remote.capabilities.family),
127
127
  name: previous?.name ?? remote.name,
128
128
  package: messages ? "@opencode/ai/providers/anthropic" : aisdk2("@ai-sdk/github-copilot"),
@@ -197,4 +197,4 @@ function variants(remote, messages) {
197
197
  ];
198
198
  }
199
199
 
200
- export { get2, load2, derive2, exports_models };
200
+ export { get3, load3, derive3, exports_models2 };