@opencode/core 0.0.0-dev-271 → 0.0.0-dev-286

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 (843) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +89 -89
  3. package/dist/aisdk-native.js +101 -101
  4. package/dist/aisdk.js +107 -107
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +83 -83
  7. package/dist/chunks/{location-services-aj7mw0zk.js → worktree-034tev2y.js} +2 -2
  8. package/dist/chunks/{location-services-w8ndjz7j.js → worktree-07fp8s5y.js} +29 -29
  9. package/dist/chunks/{location-services-a678287s.js → worktree-09fe5ez7.js} +11 -11
  10. package/dist/chunks/{location-services-76jdhfq7.js → worktree-0b2ad458.js} +12 -12
  11. package/dist/chunks/{location-services-kfcsbfj2.js → worktree-0b8vrwjw.js} +31 -31
  12. package/dist/chunks/{location-services-s7dtnyk2.js → worktree-0ex9mpwx.js} +72 -72
  13. package/dist/chunks/{location-services-wr3re1en.js → worktree-0h8y3ex8.js} +4 -4
  14. package/dist/chunks/{location-services-8nmq4mhy.js → worktree-0q1r2kjj.js} +25 -25
  15. package/dist/chunks/{location-services-gcfys28r.js → worktree-0v2kj0w9.js} +19 -19
  16. package/dist/chunks/{location-services-bg8p5thh.js → worktree-0yrht1zy.js} +27 -27
  17. package/dist/chunks/{location-services-enkpkfwx.js → worktree-160yv0cs.js} +8 -8
  18. package/dist/chunks/{location-services-r4pwrx75.js → worktree-18g90bpv.js} +9 -9
  19. package/dist/chunks/{location-services-1aqsckx4.js → worktree-1aqsckx4.js} +1 -1
  20. package/dist/chunks/{location-services-27w5k9zf.js → worktree-1ep2p91f.js} +2 -2
  21. package/dist/chunks/{location-services-8hfnrd7b.js → worktree-1ktbs3mv.js} +65 -65
  22. package/dist/chunks/{location-services-9w6kyjc8.js → worktree-1wvf0ff0.js} +7 -7
  23. package/dist/chunks/{location-services-1x2knyw4.js → worktree-1x2knyw4.js} +1 -1
  24. package/dist/chunks/{location-services-hrj3d3rg.js → worktree-1y6cskgh.js} +36 -36
  25. package/dist/chunks/{location-services-5sg2j4zb.js → worktree-1yhff8da.js} +12 -12
  26. package/dist/chunks/{location-services-1yq9hg58.js → worktree-1yq9hg58.js} +1 -1
  27. package/dist/chunks/{location-services-204s3925.js → worktree-204s3925.js} +1 -1
  28. package/dist/chunks/{location-services-92ee31my.js → worktree-211v3ywx.js} +27 -27
  29. package/dist/chunks/{location-services-25h84942.js → worktree-25h84942.js} +1 -1
  30. package/dist/chunks/{location-services-mcaz155f.js → worktree-2a9pjh68.js} +6 -6
  31. package/dist/chunks/{location-services-xsdjk4ge.js → worktree-2db5r0en.js} +5 -5
  32. package/dist/chunks/{location-services-nk8zryt9.js → worktree-2f5kzt4v.js} +7 -7
  33. package/dist/chunks/{location-services-faykeh36.js → worktree-2j819t2x.js} +21 -21
  34. package/dist/chunks/{location-services-zwp1eeat.js → worktree-2japvek7.js} +2 -2
  35. package/dist/chunks/{location-services-t9fjyv5p.js → worktree-2mh92g0w.js} +9 -9
  36. package/dist/chunks/{location-services-mm24p6x7.js → worktree-2mnk3cpz.js} +4 -4
  37. package/dist/chunks/{location-services-m8vjyhwb.js → worktree-2rar789x.js} +11 -11
  38. package/dist/chunks/{location-services-x93g9n8c.js → worktree-2sctd9r8.js} +15 -15
  39. package/dist/chunks/{location-services-rqxwm5vf.js → worktree-2xfesqhp.js} +33 -23
  40. package/dist/chunks/{location-services-vb80j1wh.js → worktree-2zp5a6yg.js} +3 -3
  41. package/dist/chunks/{location-services-4pwmc3zk.js → worktree-33e1kph9.js} +13 -13
  42. package/dist/chunks/{location-services-gkg0y7d3.js → worktree-33e37e6x.js} +15 -15
  43. package/dist/chunks/{location-services-a7c68mes.js → worktree-360wd41x.js} +29 -29
  44. package/dist/chunks/{location-services-f12jx86d.js → worktree-3776k8q5.js} +11 -11
  45. package/dist/chunks/{location-services-35ctkm3t.js → worktree-37kqz87b.js} +3 -3
  46. package/dist/chunks/{location-services-3hepkmqq.js → worktree-3hepkmqq.js} +1 -1
  47. package/dist/chunks/{location-services-dw0jwsqt.js → worktree-3m85peyv.js} +27 -27
  48. package/dist/chunks/{location-services-625chkn0.js → worktree-3ndyf3yw.js} +45 -45
  49. package/dist/chunks/{location-services-3nnrz6f6.js → worktree-3nnrz6f6.js} +1 -1
  50. package/dist/chunks/{location-services-701es3rv.js → worktree-3wq0w81j.js} +18 -18
  51. package/dist/chunks/{location-services-4ya28txs.js → worktree-45dn5ykg.js} +21 -21
  52. package/dist/chunks/{location-services-fa27aj77.js → worktree-45hyrqvj.js} +6 -6
  53. package/dist/chunks/{location-services-dcgrx69e.js → worktree-4bzxpxbh.js} +5 -5
  54. package/dist/chunks/{location-services-4dx1dgte.js → worktree-4dx1dgte.js} +1 -1
  55. package/dist/chunks/{location-services-c5gvz1b5.js → worktree-4gwbv0ae.js} +4 -4
  56. package/dist/chunks/{location-services-5t0xdgr9.js → worktree-4m8q87vh.js} +12 -12
  57. package/dist/chunks/{location-services-gtjkmstt.js → worktree-4pn94wwk.js} +38 -38
  58. package/dist/chunks/{location-services-9tvpxs1q.js → worktree-4pw98qd4.js} +4 -4
  59. package/dist/chunks/{location-services-4pyp9zr9.js → worktree-4pyp9zr9.js} +1 -1
  60. package/dist/chunks/{location-services-hcky80w5.js → worktree-4pzvwjr2.js} +4 -4
  61. package/dist/chunks/{location-services-4v008n1t.js → worktree-4v008n1t.js} +1 -1
  62. package/dist/chunks/{location-services-ytz496fy.js → worktree-532k8p5d.js} +5 -5
  63. package/dist/chunks/worktree-5knxw5zw.js +535 -0
  64. package/dist/chunks/{location-services-5m9w47nd.js → worktree-5m9w47nd.js} +1 -1
  65. package/dist/chunks/{location-services-exjf25px.js → worktree-5w6mnkbc.js} +11 -11
  66. package/dist/chunks/{location-services-v2psmyxx.js → worktree-5w72mvse.js} +5 -5
  67. package/dist/chunks/{location-services-060k1ctd.js → worktree-650ewqdt.js} +3 -3
  68. package/dist/chunks/{location-services-bheemw2q.js → worktree-666ta36x.js} +13 -13
  69. package/dist/chunks/{location-services-6esdw8yj.js → worktree-6esdw8yj.js} +1 -1
  70. package/dist/chunks/{location-services-wdw55mq4.js → worktree-6h85yzk8.js} +5 -5
  71. package/dist/chunks/{location-services-z5fvc4pa.js → worktree-6nyhrb0p.js} +21 -21
  72. package/dist/chunks/{location-services-mz3xd1k6.js → worktree-6sayp01d.js} +23 -23
  73. package/dist/chunks/{location-services-rgy8fvzs.js → worktree-6xk3x19f.js} +74 -74
  74. package/dist/chunks/{location-services-zyy8z9rg.js → worktree-71ygcs51.js} +17 -17
  75. package/dist/chunks/{location-services-76cb1hcw.js → worktree-76cb1hcw.js} +1 -1
  76. package/dist/chunks/{location-services-26cw61yh.js → worktree-7a1k840q.js} +12 -12
  77. package/dist/chunks/{location-services-7bmhse3q.js → worktree-7bmhse3q.js} +1 -1
  78. package/dist/chunks/{location-services-av666v8z.js → worktree-7c9g9s0q.js} +13 -13
  79. package/dist/chunks/{location-services-61erhr80.js → worktree-7dtjcr74.js} +19 -19
  80. package/dist/chunks/{location-services-zpn8n3e3.js → worktree-7dvsg837.js} +9 -9
  81. package/dist/chunks/{location-services-rb8dmkdr.js → worktree-7dwprhna.js} +41 -41
  82. package/dist/chunks/{location-services-p9aaxzzm.js → worktree-7fz6tcfs.js} +15 -15
  83. package/dist/chunks/{location-services-c078hgae.js → worktree-7kr66rt3.js} +147 -39
  84. package/dist/chunks/{location-services-6r75hzjy.js → worktree-7n4tbjx2.js} +19 -19
  85. package/dist/chunks/{location-services-kecs8cm0.js → worktree-7q0y7xkk.js} +7 -7
  86. package/dist/chunks/{location-services-txb82dsv.js → worktree-7w11hwx0.js} +20 -20
  87. package/dist/chunks/{location-services-7w2ypzdf.js → worktree-7w2ypzdf.js} +1 -1
  88. package/dist/chunks/{location-services-zx82kmhe.js → worktree-80kgc7k1.js} +30 -30
  89. package/dist/chunks/{location-services-b2g2cd4c.js → worktree-81db11mx.js} +13 -13
  90. package/dist/chunks/{location-services-pygderqp.js → worktree-82h3a1kw.js} +11 -11
  91. package/dist/chunks/{location-services-sxfdfs5r.js → worktree-860029p8.js} +11 -11
  92. package/dist/chunks/{location-services-05aev6jb.js → worktree-8d99dfzw.js} +13 -13
  93. package/dist/chunks/{location-services-fq0hatx6.js → worktree-8jne4ghb.js} +22 -22
  94. package/dist/chunks/{location-services-g3d6ha41.js → worktree-8nt2cb5r.js} +15 -15
  95. package/dist/chunks/{location-services-8wtp7s3z.js → worktree-8wtp7s3z.js} +1 -1
  96. package/dist/chunks/{location-services-zgmb78cs.js → worktree-8yazd8jn.js} +33 -33
  97. package/dist/chunks/{location-services-90zstvax.js → worktree-90zstvax.js} +1 -1
  98. package/dist/chunks/{location-services-yz9rz98a.js → worktree-923ftqyh.js} +6 -6
  99. package/dist/chunks/{location-services-95sp4hdf.js → worktree-95sp4hdf.js} +1 -1
  100. package/dist/chunks/{location-services-kgaj0b42.js → worktree-97jk9fzp.js} +46 -46
  101. package/dist/chunks/{location-services-7s9zy64f.js → worktree-97p996b3.js} +11 -11
  102. package/dist/chunks/{location-services-j4wsft1q.js → worktree-9gmxhkaz.js} +14 -14
  103. package/dist/chunks/{location-services-nm8x0m3s.js → worktree-9k2mwdeg.js} +6 -6
  104. package/dist/chunks/{location-services-d83be7vq.js → worktree-9t20sdzg.js} +6 -6
  105. package/dist/chunks/{location-services-hhcegec1.js → worktree-9t9nbwt3.js} +31 -31
  106. package/dist/chunks/{location-services-m3pbq8ct.js → worktree-9yke2vdy.js} +11 -11
  107. package/dist/chunks/{location-services-af4avevc.js → worktree-abbaypxx.js} +16 -16
  108. package/dist/chunks/{location-services-zsjka0ec.js → worktree-ag4vvxdv.js} +2 -2
  109. package/dist/chunks/{location-services-5zzfvef7.js → worktree-ava6h5x1.js} +6 -6
  110. package/dist/chunks/{location-services-3cbjf1nt.js → worktree-ayjs7tqn.js} +2 -2
  111. package/dist/chunks/{location-services-5jrjkhem.js → worktree-b3mzhchz.js} +29 -29
  112. package/dist/chunks/{location-services-b6vsg801.js → worktree-b6vsg801.js} +2 -2
  113. package/dist/chunks/{location-services-6yaxbs98.js → worktree-b7wjnj3v.js} +20 -20
  114. package/dist/chunks/{location-services-gf94v7ds.js → worktree-b85szd7h.js} +8 -8
  115. package/dist/chunks/{location-services-pqan8706.js → worktree-b9bzekrm.js} +26 -26
  116. package/dist/chunks/{location-services-53f4ettz.js → worktree-bda28c86.js} +19 -19
  117. package/dist/chunks/{location-services-qz087kyw.js → worktree-bgg6fpfq.js} +8 -8
  118. package/dist/chunks/{location-services-ndcaramg.js → worktree-bq56hyj9.js} +8 -8
  119. package/dist/chunks/{location-services-bstexjd6.js → worktree-bstexjd6.js} +1 -1
  120. package/dist/chunks/{location-services-r09xcsm2.js → worktree-c1nvaaxv.js} +256 -35
  121. package/dist/chunks/{location-services-ts3q81hd.js → worktree-c1sj1bpn.js} +3 -3
  122. package/dist/chunks/{location-services-7ffjm3fx.js → worktree-c325tjb6.js} +11 -11
  123. package/dist/chunks/{location-services-5zz88cvn.js → worktree-c9n14t9e.js} +9 -9
  124. package/dist/chunks/{location-services-y98qbkn6.js → worktree-cb1dvkmt.js} +16 -16
  125. package/dist/chunks/{location-services-rwvswa9y.js → worktree-cbcbsb56.js} +6 -6
  126. package/dist/chunks/{location-services-s87tva5r.js → worktree-cgqrqfdd.js} +11 -11
  127. package/dist/chunks/{location-services-4rf7amqy.js → worktree-chfqv0dp.js} +6 -6
  128. package/dist/chunks/{location-services-bxvvv3jc.js → worktree-chw17fk3.js} +16 -16
  129. package/dist/chunks/{location-services-m7xh3h0x.js → worktree-cnj75yzs.js} +4 -4
  130. package/dist/chunks/{location-services-cwrgdav8.js → worktree-cwrgdav8.js} +2 -2
  131. package/dist/chunks/{location-services-8agbak6g.js → worktree-d08zvrj3.js} +11 -11
  132. package/dist/chunks/{location-services-66r9f6z1.js → worktree-d1r5081s.js} +5 -5
  133. package/dist/chunks/{location-services-5c0ay57s.js → worktree-d4qb2rc3.js} +4 -4
  134. package/dist/chunks/{location-services-gn8tkhbf.js → worktree-d4v9tmah.js} +2 -2
  135. package/dist/chunks/{location-services-fse61478.js → worktree-d5k5mzsn.js} +31 -31
  136. package/dist/chunks/{location-services-n94pvp91.js → worktree-d6cs52tr.js} +22 -22
  137. package/dist/chunks/{location-services-5r9j27z7.js → worktree-df3kbw4d.js} +16 -16
  138. package/dist/chunks/{location-services-fn0pn290.js → worktree-dgjy22zw.js} +8 -8
  139. package/dist/chunks/{location-services-x51b6bk0.js → worktree-djd49kbm.js} +2 -2
  140. package/dist/chunks/{location-services-4c0eh56a.js → worktree-dq4stdtd.js} +7 -7
  141. package/dist/chunks/{location-services-sb68qyrv.js → worktree-dr3d1mr5.js} +20 -20
  142. package/dist/chunks/{location-services-dt77769w.js → worktree-dt77769w.js} +1 -1
  143. package/dist/chunks/{location-services-6jdd6yf6.js → worktree-dyk9s1ne.js} +4 -4
  144. package/dist/chunks/{location-services-k3f7456s.js → worktree-e1s0q7va.js} +5 -5
  145. package/dist/chunks/{location-services-bm1x4rjt.js → worktree-e239qjg7.js} +9 -9
  146. package/dist/chunks/{location-services-fngvx4yd.js → worktree-e324kbrg.js} +8 -8
  147. package/dist/chunks/{location-services-e834z07m.js → worktree-e834z07m.js} +1 -1
  148. package/dist/chunks/{location-services-0h0q04aj.js → worktree-ec3b2sgd.js} +8 -8
  149. package/dist/chunks/{location-services-ae75vsr5.js → worktree-erny1hp5.js} +28 -28
  150. package/dist/chunks/{location-services-ht7smmrx.js → worktree-excj9cfq.js} +33 -33
  151. package/dist/chunks/{location-services-k56767v4.js → worktree-eyq3zjg1.js} +1 -1
  152. package/dist/chunks/{location-services-g6dvkvqf.js → worktree-ezgss49s.js} +25 -25
  153. package/dist/chunks/{location-services-vc4cryav.js → worktree-f7n1ssex.js} +9 -9
  154. package/dist/chunks/worktree-f8ma18fn.js +18 -0
  155. package/dist/chunks/{location-services-sab8hb9j.js → worktree-f9201ej8.js} +25 -25
  156. package/dist/chunks/{location-services-fffv3p7h.js → worktree-fffv3p7h.js} +1 -1
  157. package/dist/chunks/{location-services-fg9p65nk.js → worktree-fg9p65nk.js} +2 -2
  158. package/dist/chunks/{location-services-hcdj4fe2.js → worktree-fkc1f79k.js} +29 -29
  159. package/dist/chunks/{location-services-j28mjm60.js → worktree-fmvebq1c.js} +7 -7
  160. package/dist/chunks/{location-services-3sv3e4sh.js → worktree-g0zebgfm.js} +22 -22
  161. package/dist/chunks/{location-services-tptvq6v6.js → worktree-gcye4jv7.js} +4 -4
  162. package/dist/chunks/{location-services-6pkyn431.js → worktree-gf7njwar.js} +21 -21
  163. package/dist/chunks/{location-services-crjm84aa.js → worktree-gfhpa9gk.js} +42 -42
  164. package/dist/chunks/{location-services-dfgayekp.js → worktree-gg4yr8n1.js} +16 -16
  165. package/dist/chunks/{location-services-p8e6hb0k.js → worktree-gnm090bx.js} +14 -14
  166. package/dist/chunks/{location-services-dj84jp87.js → worktree-gvnfypps.js} +14 -14
  167. package/dist/chunks/{location-services-edf6ca2j.js → worktree-h4yv4fhz.js} +173 -173
  168. package/dist/chunks/{location-services-7rnxwetx.js → worktree-hc4wny2n.js} +11 -11
  169. package/dist/chunks/{location-services-41ee7e1g.js → worktree-hf8dhk55.js} +14 -14
  170. package/dist/chunks/{location-services-hgfegmhz.js → worktree-hgfegmhz.js} +3 -3
  171. package/dist/chunks/{location-services-hh7kjqtw.js → worktree-hh7kjqtw.js} +1 -1
  172. package/dist/chunks/{location-services-n91e94x0.js → worktree-hk7hszd6.js} +25 -25
  173. package/dist/chunks/{location-services-ry6m6k45.js → worktree-hndjt1e9.js} +11 -11
  174. package/dist/chunks/{location-services-zcdj67b9.js → worktree-hp6wkjcv.js} +30 -30
  175. package/dist/chunks/{location-services-hpg1pkwy.js → worktree-hpg1pkwy.js} +1 -1
  176. package/dist/chunks/{location-services-49985bx3.js → worktree-hyns4byn.js} +23 -23
  177. package/dist/chunks/{location-services-nv205p9v.js → worktree-ja63h2sr.js} +2 -2
  178. package/dist/chunks/{location-services-mwby5be6.js → worktree-jedcwhf5.js} +19 -19
  179. package/dist/chunks/{location-services-jfaecv01.js → worktree-jfaecv01.js} +1 -1
  180. package/dist/chunks/{location-services-nwn24kq0.js → worktree-jpnvh877.js} +8 -8
  181. package/dist/chunks/{location-services-6tnzhnxt.js → worktree-jr92mdzz.js} +8 -8
  182. package/dist/chunks/{location-services-jtnps1zs.js → worktree-jtnps1zs.js} +2 -2
  183. package/dist/chunks/{location-services-9f1h0s6x.js → worktree-jxvtabbt.js} +21 -21
  184. package/dist/chunks/{location-services-8tx4q2tc.js → worktree-k0jpvv7x.js} +14 -14
  185. package/dist/chunks/{location-services-kbq9sd94.js → worktree-k1xjwggj.js} +13 -13
  186. package/dist/chunks/{location-services-f2738s6n.js → worktree-k536nnb8.js} +3 -3
  187. package/dist/chunks/{location-services-k814nvkf.js → worktree-k814nvkf.js} +1 -1
  188. package/dist/chunks/{location-services-jv2xnyk0.js → worktree-kcg78dnn.js} +2 -2
  189. package/dist/chunks/{location-services-zkyvmhna.js → worktree-kfkfrd1x.js} +8 -8
  190. package/dist/chunks/{location-services-g6c2jpgq.js → worktree-kgh589a5.js} +13 -13
  191. package/dist/chunks/{location-services-kt3bjfbg.js → worktree-kt3bjfbg.js} +1 -1
  192. package/dist/chunks/{location-services-m1714858.js → worktree-m1714858.js} +1 -1
  193. package/dist/chunks/{location-services-x9nckj68.js → worktree-m7fyhed3.js} +18 -18
  194. package/dist/chunks/{location-services-ykap3e57.js → worktree-m7zsfgfm.js} +19 -19
  195. package/dist/chunks/{location-services-zb5gs1ba.js → worktree-m89858wj.js} +3 -3
  196. package/dist/chunks/{location-services-m9w0rfyh.js → worktree-m9w0rfyh.js} +1 -1
  197. package/dist/chunks/{location-services-8z6m94af.js → worktree-mb7mbhnz.js} +3 -3
  198. package/dist/chunks/{location-services-vy4m1q4k.js → worktree-mf3y8h86.js} +58 -58
  199. package/dist/chunks/{location-services-he1z5msn.js → worktree-mj3htrn7.js} +11 -11
  200. package/dist/chunks/{location-services-3t0svxwq.js → worktree-mnsxfp09.js} +14 -14
  201. package/dist/chunks/{location-services-aqhqhhxw.js → worktree-mqcm7x31.js} +19 -19
  202. package/dist/chunks/{location-services-kreataz1.js → worktree-n6jcsk88.js} +9 -9
  203. package/dist/chunks/{location-services-kpd0ft4p.js → worktree-n6jhfx9n.js} +15 -15
  204. package/dist/chunks/{location-services-vkcgzpwt.js → worktree-n73q7gnv.js} +12 -12
  205. package/dist/chunks/{location-services-nah043kf.js → worktree-nah043kf.js} +1 -1
  206. package/dist/chunks/{location-services-6147jgs2.js → worktree-neary136.js} +8 -8
  207. package/dist/chunks/{location-services-rwtt4501.js → worktree-nn94syh7.js} +37 -37
  208. package/dist/chunks/{location-services-mwyy67aj.js → worktree-nnx8h4m9.js} +10 -10
  209. package/dist/chunks/{location-services-1dztdw8x.js → worktree-nxw21s73.js} +12 -12
  210. package/dist/chunks/{location-services-p015t6z3.js → worktree-p015t6z3.js} +2 -2
  211. package/dist/chunks/{location-services-dq6afaen.js → worktree-p65b0w7p.js} +17 -17
  212. package/dist/chunks/{location-services-69f0ar7f.js → worktree-pgkwnhrk.js} +32 -32
  213. package/dist/chunks/{location-services-yx6x8jfj.js → worktree-pjb3r7bt.js} +7 -7
  214. package/dist/chunks/{location-services-pknna89w.js → worktree-pknna89w.js} +1 -1
  215. package/dist/chunks/{location-services-fex8285v.js → worktree-pqv6jrxt.js} +24 -24
  216. package/dist/chunks/{location-services-yh9hqaeq.js → worktree-q2nqdedq.js} +9 -9
  217. package/dist/chunks/{location-services-8jztxfpf.js → worktree-qjgzc4b4.js} +4 -4
  218. package/dist/chunks/{location-services-8ve89bpf.js → worktree-qk8rxpda.js} +8 -8
  219. package/dist/chunks/{location-services-qnqasnye.js → worktree-qnqasnye.js} +3 -3
  220. package/dist/chunks/{location-services-qp7r0hxv.js → worktree-qp7r0hxv.js} +1 -1
  221. package/dist/chunks/{location-services-5xcrp97n.js → worktree-qq6sz745.js} +18 -18
  222. package/dist/chunks/{location-services-xt0z8zst.js → worktree-qqpbcr2p.js} +4 -4
  223. package/dist/chunks/{location-services-qqvy8y24.js → worktree-qqvy8y24.js} +1 -1
  224. package/dist/chunks/{location-services-8zhw5swa.js → worktree-qr9qsn55.js} +32 -32
  225. package/dist/chunks/{location-services-4987t165.js → worktree-qzm6q9ch.js} +6 -6
  226. package/dist/chunks/{location-services-r542h3bh.js → worktree-r542h3bh.js} +1 -1
  227. package/dist/chunks/{location-services-rb9dy4dg.js → worktree-rb9dy4dg.js} +1 -1
  228. package/dist/chunks/{location-services-d7akxsfc.js → worktree-rbndg51d.js} +3 -3
  229. package/dist/chunks/{location-services-r1fhaev6.js → worktree-rg0cxenw.js} +2 -2
  230. package/dist/chunks/{location-services-hwdk6992.js → worktree-rj9j3as3.js} +43 -43
  231. package/dist/chunks/{location-services-0a35qxtn.js → worktree-rjdkgttt.js} +14 -14
  232. package/dist/chunks/{location-services-y9r97bb3.js → worktree-rjtdrb56.js} +9 -9
  233. package/dist/chunks/{location-services-13jgvn4c.js → worktree-rp6wgn9y.js} +17 -17
  234. package/dist/chunks/{location-services-rt5dr6hb.js → worktree-rt5dr6hb.js} +1 -1
  235. package/dist/chunks/{location-services-4tsnxgj1.js → worktree-s4d4pvet.js} +4 -4
  236. package/dist/chunks/{location-services-17cjzed1.js → worktree-s7xmnr8t.js} +8 -8
  237. package/dist/chunks/{location-services-d1scnhdx.js → worktree-s88qfkmz.js} +4 -4
  238. package/dist/chunks/{location-services-sa3fpqfw.js → worktree-sa3fpqfw.js} +2 -2
  239. package/dist/chunks/{location-services-gz7axp6c.js → worktree-scmk72rv.js} +5 -5
  240. package/dist/chunks/{location-services-t815r62s.js → worktree-sfmvmqfk.js} +3 -3
  241. package/dist/chunks/{location-services-5q7cnmnd.js → worktree-spf8w817.js} +5 -5
  242. package/dist/chunks/{location-services-sqjzf8x2.js → worktree-sqjzf8x2.js} +1 -1
  243. package/dist/chunks/{location-services-wj1hwnq7.js → worktree-sqx6yyec.js} +3 -3
  244. package/dist/chunks/{location-services-mtkfycnh.js → worktree-ssfehs1z.js} +4 -4
  245. package/dist/chunks/{location-services-svcy3p9a.js → worktree-svcy3p9a.js} +1 -1
  246. package/dist/chunks/{location-services-rkmfgj7k.js → worktree-sy53apyv.js} +30 -30
  247. package/dist/chunks/{location-services-4pza82rh.js → worktree-t2cdwvq5.js} +22 -22
  248. package/dist/chunks/{location-services-2ywsvzr2.js → worktree-t4zc915k.js} +17 -17
  249. package/dist/chunks/{location-services-88j3sdmx.js → worktree-tc90wnbk.js} +37 -37
  250. package/dist/chunks/{location-services-tczq8hjw.js → worktree-tczq8hjw.js} +1 -1
  251. package/dist/chunks/{location-services-zdpw9dy9.js → worktree-tf0tk0fq.js} +21 -21
  252. package/dist/chunks/{location-services-fb4xs09j.js → worktree-thj7mhbr.js} +18 -18
  253. package/dist/chunks/{location-services-73ktn4xx.js → worktree-tm1e699v.js} +9 -9
  254. package/dist/chunks/{location-services-qw73mqn2.js → worktree-tmt7mk16.js} +31 -31
  255. package/dist/chunks/{location-services-2kqsk57r.js → worktree-ts8fcpse.js} +15 -15
  256. package/dist/chunks/{location-services-twssxy5n.js → worktree-twssxy5n.js} +2 -2
  257. package/dist/chunks/{location-services-254d7qhc.js → worktree-tx8ht019.js} +15 -15
  258. package/dist/chunks/{location-services-w79nt68w.js → worktree-v0t96s7a.js} +4 -4
  259. package/dist/chunks/{location-services-v2r1d0zg.js → worktree-v2r1d0zg.js} +1 -1
  260. package/dist/chunks/{location-services-xrc3640n.js → worktree-v8vd993n.js} +8 -8
  261. package/dist/chunks/{location-services-q4fcarhy.js → worktree-vjmsebym.js} +9 -9
  262. package/dist/chunks/{location-services-eqmd2tfz.js → worktree-vmfhgzt5.js} +7 -7
  263. package/dist/chunks/worktree-vnp0me3e.js +257 -0
  264. package/dist/chunks/{location-services-bfkxtapt.js → worktree-vqqftvvv.js} +11 -11
  265. package/dist/chunks/{location-services-w2eysc6j.js → worktree-w2eysc6j.js} +2 -2
  266. package/dist/chunks/{location-services-s6rqyy7q.js → worktree-w2g8c1h4.js} +44 -44
  267. package/dist/chunks/{location-services-w3wsvvr9.js → worktree-w3wsvvr9.js} +1 -1
  268. package/dist/chunks/{location-services-jcrsb2we.js → worktree-w59ytyqq.js} +9 -9
  269. package/dist/chunks/{location-services-19yw54pw.js → worktree-w66j29kr.js} +15 -15
  270. package/dist/chunks/{location-services-jsrgk7v1.js → worktree-w8ps3wcc.js} +20 -20
  271. package/dist/chunks/{location-services-x99kszcd.js → worktree-wa49e47f.js} +12 -12
  272. package/dist/chunks/{location-services-z89tmfeq.js → worktree-wacb14vy.js} +8 -8
  273. package/dist/chunks/{location-services-wakvkjy4.js → worktree-wakvkjy4.js} +1 -1
  274. package/dist/chunks/{location-services-wd87259q.js → worktree-wd87259q.js} +1 -1
  275. package/dist/chunks/{location-services-nx4vzyjd.js → worktree-wegkxhrn.js} +2 -2
  276. package/dist/chunks/{location-services-bnp5qds0.js → worktree-wh471sqx.js} +5 -5
  277. package/dist/chunks/{location-services-c4cv6xmm.js → worktree-wm1vm6w0.js} +11 -11
  278. package/dist/chunks/{location-services-wnhgecwx.js → worktree-wnhgecwx.js} +1 -1
  279. package/dist/chunks/{location-services-perw67p4.js → worktree-wp5xvy6f.js} +34 -34
  280. package/dist/chunks/{location-services-hnv7rbyt.js → worktree-wyeqency.js} +7 -7
  281. package/dist/chunks/{location-services-tzw071bs.js → worktree-x46kzsvj.js} +20 -20
  282. package/dist/chunks/{location-services-ahrjqvfw.js → worktree-x5xpvpef.js} +23 -23
  283. package/dist/chunks/{location-services-qmv0q6pw.js → worktree-x8mt7ajg.js} +30 -30
  284. package/dist/chunks/{location-services-73nq7rd4.js → worktree-xj8tbvnx.js} +41 -41
  285. package/dist/chunks/{location-services-xmx7xj34.js → worktree-xmx7xj34.js} +1 -1
  286. package/dist/chunks/{location-services-7863p8e9.js → worktree-xr8j28en.js} +45 -45
  287. package/dist/chunks/{location-services-162nfr0g.js → worktree-xrpfz6f8.js} +9 -9
  288. package/dist/chunks/{location-services-99y0fxy8.js → worktree-xyg4a4db.js} +5 -5
  289. package/dist/chunks/{location-services-3dempbt2.js → worktree-y7rptanb.js} +8 -8
  290. package/dist/chunks/{location-services-pxtfkpje.js → worktree-yara3q77.js} +2 -2
  291. package/dist/chunks/{location-services-yb20nhc3.js → worktree-yb20nhc3.js} +1 -1
  292. package/dist/chunks/{location-services-t20evbn4.js → worktree-yegyxjwk.js} +46 -46
  293. package/dist/chunks/{location-services-68291c0v.js → worktree-ynq9889m.js} +35 -35
  294. package/dist/chunks/{location-services-cfh5dtam.js → worktree-yx3jcsf5.js} +30 -30
  295. package/dist/chunks/{location-services-05pzx58r.js → worktree-yxcs01xt.js} +28 -28
  296. package/dist/chunks/worktree-z14rfht5.js +26 -0
  297. package/dist/chunks/{location-services-vwgtfhce.js → worktree-z4ex9h9e.js} +11 -11
  298. package/dist/chunks/{location-services-jjkdzw18.js → worktree-zay1k5wv.js} +15 -15
  299. package/dist/chunks/{location-services-8f2e40mw.js → worktree-zgntrsrs.js} +11 -11
  300. package/dist/chunks/{location-services-nn8146rv.js → worktree-zn3yprmb.js} +13 -13
  301. package/dist/chunks/{location-services-5rab9vhz.js → worktree-zwrzbpfr.js} +18 -18
  302. package/dist/chunks/{location-services-d987wdq8.js → worktree-zy2d75w1.js} +25 -25
  303. package/dist/codemode/catalog.js +1 -1
  304. package/dist/codemode/instructions.js +9 -9
  305. package/dist/codemode/tool.js +3 -3
  306. package/dist/codemode/web.js +1 -1
  307. package/dist/command.js +91 -91
  308. package/dist/config/discovery.js +94 -94
  309. package/dist/config/integration.js +5 -5
  310. package/dist/config/managed.js +1 -1
  311. package/dist/config/markdown.js +1 -1
  312. package/dist/config/normalize.js +111 -111
  313. package/dist/config/plugin/agent.js +129 -129
  314. package/dist/config/plugin/command.js +226 -226
  315. package/dist/config/plugin/compaction.js +169 -169
  316. package/dist/config/plugin/compatibility.js +149 -149
  317. package/dist/config/plugin/entry-observer.js +1 -1
  318. package/dist/config/plugin/formatter.js +130 -130
  319. package/dist/config/plugin/image.js +129 -129
  320. package/dist/config/plugin/instruction.js +129 -129
  321. package/dist/config/plugin/location-watcher.js +131 -131
  322. package/dist/config/plugin/mcp.js +136 -136
  323. package/dist/config/plugin/policy.js +129 -129
  324. package/dist/config/plugin/provider.js +129 -129
  325. package/dist/config/plugin/reference.js +131 -131
  326. package/dist/config/plugin/shell.js +131 -131
  327. package/dist/config/plugin/skill-file.js +145 -145
  328. package/dist/config/plugin/skill-scan.js +1 -1
  329. package/dist/config/plugin/skill.js +152 -152
  330. package/dist/config/plugin/snapshot.js +129 -129
  331. package/dist/config/plugin/source.js +130 -130
  332. package/dist/config/plugin/tool-output.js +130 -130
  333. package/dist/config/plugin/websearch.js +130 -130
  334. package/dist/config/plugin/worktree.js +131 -131
  335. package/dist/config/variable.js +1 -1
  336. package/dist/config/watch.js +1 -1
  337. package/dist/config.js +132 -132
  338. package/dist/console-access.js +1 -1
  339. package/dist/credential/sql.js +2 -2
  340. package/dist/credential.js +91 -91
  341. package/dist/database/database.js +82 -82
  342. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  343. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  344. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  345. package/dist/database/drizzle/index.js +15 -15
  346. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  347. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  348. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  349. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  350. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  351. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  352. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  353. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  354. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  355. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  356. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  357. package/dist/database/drizzle.js +16 -16
  358. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  359. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  360. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  361. package/dist/database/migration/20260225215848_workspace.js +1 -1
  362. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  363. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  364. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  365. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  366. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  367. package/dist/database/migration/20260323234822_events.js +1 -1
  368. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  369. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  370. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  371. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  372. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  373. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  374. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  375. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  376. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  377. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  378. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  379. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  380. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  381. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  382. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  383. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  384. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  385. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  386. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  387. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  388. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  389. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  390. package/dist/database/migration/20260611035744_credential.js +1 -1
  391. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  392. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  393. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  394. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  395. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  396. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  397. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  398. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  399. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  400. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  401. package/dist/database/migration/20260812213948_worktree.js +1 -1
  402. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  403. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  404. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  405. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  406. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  407. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  408. package/dist/database/migration/20261024002554_session_allowance.js +1 -1
  409. package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
  410. package/dist/database/migration/20261025123711_blob.js +1 -1
  411. package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
  412. package/dist/database/migration/20261026223005_schedule.js +1 -1
  413. package/dist/database/migration/20261029002625_session_part.js +1 -1
  414. package/dist/database/migration/20261029073502_session_time_busy.js +1 -1
  415. package/dist/database/migration/20261029165540_schedule_checks.js +1 -1
  416. package/dist/database/migration.gen.js +59 -59
  417. package/dist/database/migration.js +61 -61
  418. package/dist/database/path.js +2 -2
  419. package/dist/database/schema.gen.js +1 -1
  420. package/dist/database/schema.sql.js +1 -1
  421. package/dist/database/sqlite.bun.js +1 -1
  422. package/dist/database/sqlite.js +1 -1
  423. package/dist/database/sqlite.node.js +1 -1
  424. package/dist/database/sqlite.workerd.js +1 -1
  425. package/dist/database/v1-migration.bun.js +97 -97
  426. package/dist/database/v1-migration.js +1 -1
  427. package/dist/effect/app-node-builder.js +392 -392
  428. package/dist/effect/app-node-platform.js +2 -2
  429. package/dist/effect/keyed-mutex.js +3 -3
  430. package/dist/effect/websocket-constructor.js +1 -1
  431. package/dist/environment/driver.js +1 -1
  432. package/dist/environment/environment.js +105 -105
  433. package/dist/environment/exec-defaults.js +2 -2
  434. package/dist/environment/files.js +1 -1
  435. package/dist/environment/index.js +105 -105
  436. package/dist/environment/local.js +2 -2
  437. package/dist/environment/memory.js +2 -2
  438. package/dist/environment/unavailable.js +3 -3
  439. package/dist/event/sql.js +1 -1
  440. package/dist/event-logger.js +82 -82
  441. package/dist/file-access.js +155 -155
  442. package/dist/file-mutation.js +106 -106
  443. package/dist/file-retention.js +1 -1
  444. package/dist/filesystem/fff.bun.js +2 -2
  445. package/dist/filesystem/fff.js +1 -1
  446. package/dist/filesystem/fff.node.js +2 -2
  447. package/dist/filesystem/fff.workerd.js +2 -2
  448. package/dist/filesystem/file-watch.js +88 -88
  449. package/dist/filesystem/location-watcher-policy.js +6 -6
  450. package/dist/filesystem/location-watcher.js +241 -241
  451. package/dist/filesystem/protected.js +1 -1
  452. package/dist/filesystem/search.js +111 -111
  453. package/dist/filesystem/watcher-binding.js +1 -1
  454. package/dist/filesystem/watcher.js +11 -11
  455. package/dist/filesystem.js +114 -114
  456. package/dist/form.js +90 -90
  457. package/dist/formatter/builtins.js +4 -4
  458. package/dist/formatter.js +99 -99
  459. package/dist/generate.js +119 -119
  460. package/dist/git.js +9 -9
  461. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  462. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  463. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  464. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  465. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  466. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  467. package/dist/github-copilot/copilot-provider.js +17 -17
  468. package/dist/github-copilot/models.js +103 -103
  469. package/dist/github-copilot/openai-compatible-error.js +1 -1
  470. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  471. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  472. package/dist/github-copilot/responses/openai-error.js +1 -1
  473. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  474. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  475. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  476. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  477. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  478. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  479. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  480. package/dist/image/notice.js +1 -1
  481. package/dist/image/photon-normalize.js +1 -1
  482. package/dist/image/photon-worker.js +1 -1
  483. package/dist/image/photon.js +4 -4
  484. package/dist/image.js +6 -6
  485. package/dist/instance/service.js +5 -5
  486. package/dist/instance.js +383 -383
  487. package/dist/instruction-discovery.js +90 -90
  488. package/dist/instructions/builtins.js +99 -99
  489. package/dist/instructions/index.js +3 -3
  490. package/dist/integration/connection.js +1 -1
  491. package/dist/integration.js +97 -97
  492. package/dist/job.js +88 -88
  493. package/dist/kv/sql.js +2 -2
  494. package/dist/kv.js +81 -81
  495. package/dist/location-activity.js +171 -171
  496. package/dist/location-lifecycle.js +149 -149
  497. package/dist/location-service-map.js +98 -98
  498. package/dist/location-services.js +380 -380
  499. package/dist/location.js +95 -95
  500. package/dist/managed-policy.js +3 -3
  501. package/dist/mcp/client.js +103 -103
  502. package/dist/mcp/index.js +115 -115
  503. package/dist/mcp/instructions.js +175 -175
  504. package/dist/mcp/oauth.js +88 -88
  505. package/dist/mcp/socket-client.js +1 -1
  506. package/dist/mcp/stdio.js +102 -102
  507. package/dist/mime.js +1 -1
  508. package/dist/modal/models.js +103 -103
  509. package/dist/model-resolver.js +111 -111
  510. package/dist/model-retry.js +1 -1
  511. package/dist/model.js +110 -110
  512. package/dist/models-dev/v1.js +1 -1
  513. package/dist/models-dev.js +116 -116
  514. package/dist/oauth/page.js +1 -1
  515. package/dist/permission/saved.js +90 -90
  516. package/dist/permission/sql.js +5 -5
  517. package/dist/permission.js +148 -148
  518. package/dist/persistent-pty/binary.bun.js +1 -1
  519. package/dist/persistent-pty/daemon.js +1 -1
  520. package/dist/persistent-pty/index.js +92 -92
  521. package/dist/persistent-pty/pty-binding.js +1 -1
  522. package/dist/persistent-pty.js +85 -85
  523. package/dist/plugin/agent.js +84 -84
  524. package/dist/plugin/command.js +112 -112
  525. package/dist/plugin/goal.js +3 -3
  526. package/dist/plugin/hooks.js +5 -5
  527. package/dist/plugin/host.js +232 -232
  528. package/dist/plugin/identity.js +5 -5
  529. package/dist/plugin/instance.js +5 -5
  530. package/dist/plugin/internal.js +359 -359
  531. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  532. package/dist/plugin/models-dev.js +109 -109
  533. package/dist/plugin/module.js +126 -126
  534. package/dist/plugin/optimize.js +4 -4
  535. package/dist/plugin/plan.js +143 -143
  536. package/dist/plugin/promise.js +1 -1
  537. package/dist/plugin/provider/amazon-bedrock.js +103 -103
  538. package/dist/plugin/provider/azure.js +129 -129
  539. package/dist/plugin/provider/cerebras.js +1 -1
  540. package/dist/plugin/provider/chatgpt.js +129 -129
  541. package/dist/plugin/provider/cloudflare-ai-gateway.js +127 -127
  542. package/dist/plugin/provider/cloudflare-workers-ai.js +127 -127
  543. package/dist/plugin/provider/configured.js +125 -125
  544. package/dist/plugin/provider/credential-settings.js +84 -84
  545. package/dist/plugin/provider/databricks.js +1 -1
  546. package/dist/plugin/provider/digitalocean.js +105 -105
  547. package/dist/plugin/provider/dynamic.js +2 -2
  548. package/dist/plugin/provider/github-copilot.js +107 -107
  549. package/dist/plugin/provider/gitlab.js +106 -106
  550. package/dist/plugin/provider/google-vertex.js +126 -126
  551. package/dist/plugin/provider/kilo.js +1 -1
  552. package/dist/plugin/provider/llmgateway.js +88 -88
  553. package/dist/plugin/provider/lmstudio.js +138 -138
  554. package/dist/plugin/provider/local.js +135 -135
  555. package/dist/plugin/provider/modal.js +104 -104
  556. package/dist/plugin/provider/neon.js +1 -1
  557. package/dist/plugin/provider/nvidia.js +1 -1
  558. package/dist/plugin/provider/ollama.js +138 -138
  559. package/dist/plugin/provider/openai-context-caps.js +102 -102
  560. package/dist/plugin/provider/openai.js +131 -131
  561. package/dist/plugin/provider/opencode.js +131 -131
  562. package/dist/plugin/provider/openrouter.js +103 -103
  563. package/dist/plugin/provider/poe.js +89 -89
  564. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  565. package/dist/plugin/provider/sap-ai-core.js +103 -103
  566. package/dist/plugin/provider/sdk-factory.js +1 -1
  567. package/dist/plugin/provider/snowflake-cortex.js +128 -128
  568. package/dist/plugin/provider/vllm.js +138 -138
  569. package/dist/plugin/provider/xai.js +103 -103
  570. package/dist/plugin/provider/zenmux.js +1 -1
  571. package/dist/plugin/provider.js +179 -179
  572. package/dist/plugin/sdk.js +86 -86
  573. package/dist/plugin/service.js +3 -3
  574. package/dist/plugin/skill.js +146 -146
  575. package/dist/plugin/source-directory.js +1 -1
  576. package/dist/plugin/supervisor.js +369 -369
  577. package/dist/plugin/tool-input-repair.js +4 -4
  578. package/dist/plugin/update.js +6 -6
  579. package/dist/plugin/vcs/git.js +98 -98
  580. package/dist/plugin/vcs/hg.js +98 -98
  581. package/dist/plugin/verbosity.js +105 -105
  582. package/dist/plugin/warming.js +127 -127
  583. package/dist/plugin/websearch/exa.js +7 -7
  584. package/dist/plugin/websearch/firecrawl.js +8 -8
  585. package/dist/plugin/websearch/index.js +9 -9
  586. package/dist/plugin/websearch/mcp.js +2 -2
  587. package/dist/plugin/websearch/parallel.js +8 -8
  588. package/dist/plugin/websearch/tavily.js +6 -6
  589. package/dist/plugin/websearch/tinyfish.js +8 -8
  590. package/dist/plugin.js +237 -237
  591. package/dist/project/icon.js +5 -5
  592. package/dist/project/schema.js +2 -2
  593. package/dist/project/sql.js +4 -4
  594. package/dist/project.js +94 -94
  595. package/dist/provider.js +109 -109
  596. package/dist/pty/protocol.js +1 -1
  597. package/dist/pty/ticket.js +1 -1
  598. package/dist/pty.js +102 -102
  599. package/dist/reference/instructions.js +100 -100
  600. package/dist/reference.js +102 -102
  601. package/dist/repository-cache.js +92 -92
  602. package/dist/repository.js +1 -1
  603. package/dist/ripgrep/binary.js +2 -2
  604. package/dist/ripgrep.js +109 -109
  605. package/dist/rpc.js +98 -98
  606. package/dist/schedule/check.js +237 -237
  607. package/dist/schedule/sql.js +6 -6
  608. package/dist/schedule.js +243 -243
  609. package/dist/schema.js +1 -1
  610. package/dist/session/affinity.js +1 -1
  611. package/dist/session/background.js +1 -1
  612. package/dist/session/blob.js +128 -128
  613. package/dist/session/command.js +84 -84
  614. package/dist/session/compaction.js +167 -167
  615. package/dist/session/context.js +191 -191
  616. package/dist/session/diff.js +100 -100
  617. package/dist/session/environment.js +5 -5
  618. package/dist/session/error.js +3 -3
  619. package/dist/session/event.js +1 -1
  620. package/dist/session/execution/restart.js +234 -234
  621. package/dist/session/execution.js +157 -157
  622. package/dist/session/generate.js +197 -197
  623. package/dist/session/history.js +135 -135
  624. package/dist/session/inbox.js +144 -144
  625. package/dist/session/info.js +3 -3
  626. package/dist/session/instruction-entry.js +83 -83
  627. package/dist/session/instruction-state.js +8 -8
  628. package/dist/session/instructions.js +140 -140
  629. package/dist/session/message-updater.js +2 -2
  630. package/dist/session/message.js +1 -1
  631. package/dist/session/model-request.js +162 -162
  632. package/dist/session/model-transport.js +9 -9
  633. package/dist/session/move.js +159 -159
  634. package/dist/session/projector.js +140 -140
  635. package/dist/session/prompt.js +147 -147
  636. package/dist/session/recent-text.js +1 -1
  637. package/dist/session/revert.js +138 -138
  638. package/dist/session/run-coordinator.js +3 -3
  639. package/dist/session/runner/index.js +3 -3
  640. package/dist/session/runner/llm.js +244 -244
  641. package/dist/session/runner/max-steps.js +1 -1
  642. package/dist/session/runner/model.js +112 -112
  643. package/dist/session/runner/publish-llm-event.js +148 -148
  644. package/dist/session/runner/retry.js +3 -3
  645. package/dist/session/runner/step.js +159 -159
  646. package/dist/session/runner/to-llm-message.js +136 -136
  647. package/dist/session/schema.js +5 -5
  648. package/dist/session/session.js +177 -177
  649. package/dist/session/shell.js +143 -143
  650. package/dist/session/skill.js +146 -146
  651. package/dist/session/sql.js +5 -5
  652. package/dist/session/stats.js +83 -83
  653. package/dist/session/store.js +141 -141
  654. package/dist/session/stored.js +2 -2
  655. package/dist/session/subagent-completion.js +1 -1
  656. package/dist/session/subagent-job.js +226 -226
  657. package/dist/session/system-prompt.js +5 -5
  658. package/dist/session/title.js +193 -193
  659. package/dist/session/to-session-error.js +147 -147
  660. package/dist/session/transfer.js +231 -231
  661. package/dist/session/usage.js +1 -1
  662. package/dist/session.js +224 -224
  663. package/dist/shell/parse.js +7 -9
  664. package/dist/shell/result.js +1 -1
  665. package/dist/shell/scan.js +1 -1
  666. package/dist/shell/select.js +7 -7
  667. package/dist/shell.js +145 -145
  668. package/dist/skill/discovery.js +6 -6
  669. package/dist/skill/instructions.js +150 -150
  670. package/dist/skill.js +155 -155
  671. package/dist/snapshot.js +101 -101
  672. package/dist/state.js +1 -1
  673. package/dist/tool/html-markdown.js +1 -1
  674. package/dist/tool/http-body.js +1 -1
  675. package/dist/tool/mcp.js +172 -172
  676. package/dist/tool/plugin/edit.js +163 -163
  677. package/dist/tool/plugin/file-diff.js +1 -1
  678. package/dist/tool/plugin/glob.js +167 -167
  679. package/dist/tool/plugin/grep.js +167 -167
  680. package/dist/tool/plugin/image-generate.js +236 -236
  681. package/dist/tool/plugin/mcp-resource.js +161 -161
  682. package/dist/tool/plugin/opencode.js +160 -160
  683. package/dist/tool/plugin/patch.js +165 -165
  684. package/dist/tool/plugin/question.js +145 -145
  685. package/dist/tool/plugin/read.js +168 -168
  686. package/dist/tool/plugin/schedule.js +243 -243
  687. package/dist/tool/plugin/shell.js +232 -232
  688. package/dist/tool/plugin/skill.js +154 -154
  689. package/dist/tool/plugin/subagent.js +233 -233
  690. package/dist/tool/plugin/todo.js +152 -152
  691. package/dist/tool/plugin/webfetch.js +154 -154
  692. package/dist/tool/plugin/websearch.js +154 -154
  693. package/dist/tool/plugin/write.js +165 -165
  694. package/dist/tool/read-filesystem.js +112 -112
  695. package/dist/tool/runtime.js +1 -1
  696. package/dist/tool-output.js +7 -7
  697. package/dist/tool.js +12 -12
  698. package/dist/types/shell/parse.d.ts +0 -1
  699. package/dist/types/shell/scan.d.ts +1 -0
  700. package/dist/usage-limits.js +95 -95
  701. package/dist/util/error-summary.js +1 -1
  702. package/dist/util/git-executable.js +3 -3
  703. package/dist/util/lazy.js +1 -1
  704. package/dist/util/slug.js +1 -1
  705. package/dist/util/token.js +1 -1
  706. package/dist/util/which.js +1 -1
  707. package/dist/util/wildcard.js +1 -1
  708. package/dist/v1/config/agent.js +5 -5
  709. package/dist/v1/config/command.js +1 -1
  710. package/dist/v1/config/mcp.js +4 -4
  711. package/dist/v1/config/migrate.js +104 -104
  712. package/dist/v1/config/permission.js +3 -3
  713. package/dist/v1/config/plugin.js +1 -1
  714. package/dist/v1/config/provider-options.js +1 -1
  715. package/dist/v1/config/provider.js +2 -2
  716. package/dist/variant.js +103 -103
  717. package/dist/vcs/patch.js +1 -1
  718. package/dist/vcs.js +101 -101
  719. package/dist/voice.js +96 -96
  720. package/dist/websearch.js +94 -94
  721. package/dist/wellknown/plugin.js +86 -86
  722. package/dist/wellknown.js +87 -87
  723. package/dist/workspace/driver.js +5 -5
  724. package/dist/workspace/sql.js +1 -1
  725. package/dist/workspace.js +92 -92
  726. package/dist/worktree/directory.js +2 -2
  727. package/dist/worktree/git.js +11 -11
  728. package/dist/worktree/sql.js +5 -5
  729. package/dist/worktree/strategies.js +101 -101
  730. package/dist/worktree.js +106 -106
  731. package/package.json +8 -8
  732. package/dist/chunks/location-services-5d7ky1sb.js +0 -257
  733. package/dist/chunks/location-services-a2vx32ez.js +0 -535
  734. package/dist/chunks/location-services-a610t88q.js +0 -18
  735. package/dist/chunks/location-services-zf52n5v2.js +0 -26
  736. /package/dist/chunks/{location-services-0qkdqm5v.js → worktree-0qkdqm5v.js} +0 -0
  737. /package/dist/chunks/{location-services-0zkw76rk.js → worktree-0zkw76rk.js} +0 -0
  738. /package/dist/chunks/{location-services-17cy0kzp.js → worktree-17cy0kzp.js} +0 -0
  739. /package/dist/chunks/{location-services-1cnp2v09.js → worktree-1cnp2v09.js} +0 -0
  740. /package/dist/chunks/{location-services-1kah00gy.js → worktree-1kah00gy.js} +0 -0
  741. /package/dist/chunks/{location-services-24dcb14g.js → worktree-24dcb14g.js} +0 -0
  742. /package/dist/chunks/{location-services-2710q6r3.js → worktree-2710q6r3.js} +0 -0
  743. /package/dist/chunks/{location-services-2bv980vf.js → worktree-2bv980vf.js} +0 -0
  744. /package/dist/chunks/{location-services-2c3vjs8z.js → worktree-2c3vjs8z.js} +0 -0
  745. /package/dist/chunks/{location-services-359p4xyc.js → worktree-359p4xyc.js} +0 -0
  746. /package/dist/chunks/{location-services-3asan66x.js → worktree-3asan66x.js} +0 -0
  747. /package/dist/chunks/{location-services-3v8g72cx.js → worktree-3v8g72cx.js} +0 -0
  748. /package/dist/chunks/{location-services-3wcehsnq.js → worktree-3wcehsnq.js} +0 -0
  749. /package/dist/chunks/{location-services-43n2bw4t.js → worktree-43n2bw4t.js} +0 -0
  750. /package/dist/chunks/{location-services-4knz6hnm.js → worktree-4knz6hnm.js} +0 -0
  751. /package/dist/chunks/{location-services-4vcrnpx2.js → worktree-4vcrnpx2.js} +0 -0
  752. /package/dist/chunks/{location-services-4y7fprxs.js → worktree-4y7fprxs.js} +0 -0
  753. /package/dist/chunks/{location-services-53557ph1.js → worktree-53557ph1.js} +0 -0
  754. /package/dist/chunks/{location-services-550bvhaj.js → worktree-550bvhaj.js} +0 -0
  755. /package/dist/chunks/{location-services-5w3e23ze.js → worktree-5w3e23ze.js} +0 -0
  756. /package/dist/chunks/{location-services-6prwharc.js → worktree-6prwharc.js} +0 -0
  757. /package/dist/chunks/{location-services-6q2bdcd1.js → worktree-6q2bdcd1.js} +0 -0
  758. /package/dist/chunks/{location-services-7akdwqpd.js → worktree-7akdwqpd.js} +0 -0
  759. /package/dist/chunks/{location-services-7m9af43g.js → worktree-7m9af43g.js} +0 -0
  760. /package/dist/chunks/{location-services-7stb81gk.js → worktree-7stb81gk.js} +0 -0
  761. /package/dist/chunks/{location-services-822emrt2.js → worktree-822emrt2.js} +0 -0
  762. /package/dist/chunks/{location-services-84wd9syh.js → worktree-84wd9syh.js} +0 -0
  763. /package/dist/chunks/{location-services-88xbtdfr.js → worktree-88xbtdfr.js} +0 -0
  764. /package/dist/chunks/{location-services-8n3pysct.js → worktree-8n3pysct.js} +0 -0
  765. /package/dist/chunks/{location-services-8wj87zfr.js → worktree-8wj87zfr.js} +0 -0
  766. /package/dist/chunks/{location-services-9a4afbnw.js → worktree-9a4afbnw.js} +0 -0
  767. /package/dist/chunks/{location-services-9rqn6x4v.js → worktree-9rqn6x4v.js} +0 -0
  768. /package/dist/chunks/{location-services-a058387c.js → worktree-a058387c.js} +0 -0
  769. /package/dist/chunks/{location-services-a6k6eb26.js → worktree-a6k6eb26.js} +0 -0
  770. /package/dist/chunks/{location-services-af5trqkr.js → worktree-af5trqkr.js} +0 -0
  771. /package/dist/chunks/{location-services-afrmfg78.js → worktree-afrmfg78.js} +0 -0
  772. /package/dist/chunks/{location-services-aqzs7mqg.js → worktree-aqzs7mqg.js} +0 -0
  773. /package/dist/chunks/{location-services-atq7p7m5.js → worktree-atq7p7m5.js} +0 -0
  774. /package/dist/chunks/{location-services-beh6qq61.js → worktree-beh6qq61.js} +0 -0
  775. /package/dist/chunks/{location-services-bkyjaxrp.js → worktree-bkyjaxrp.js} +0 -0
  776. /package/dist/chunks/{location-services-bmr6ed5q.js → worktree-bmr6ed5q.js} +0 -0
  777. /package/dist/chunks/{location-services-cf4snx6d.js → worktree-cf4snx6d.js} +0 -0
  778. /package/dist/chunks/{location-services-cqv5kn06.js → worktree-cqv5kn06.js} +0 -0
  779. /package/dist/chunks/{location-services-cvy3z8tj.js → worktree-cvy3z8tj.js} +0 -0
  780. /package/dist/chunks/{location-services-d9fn303g.js → worktree-d9fn303g.js} +0 -0
  781. /package/dist/chunks/{location-services-d9jj8t3e.js → worktree-d9jj8t3e.js} +0 -0
  782. /package/dist/chunks/{location-services-dap0rakb.js → worktree-dap0rakb.js} +0 -0
  783. /package/dist/chunks/{location-services-df08tz66.js → worktree-df08tz66.js} +0 -0
  784. /package/dist/chunks/{location-services-dy18nga0.js → worktree-dy18nga0.js} +0 -0
  785. /package/dist/chunks/{location-services-e5kj55wp.js → worktree-e5kj55wp.js} +0 -0
  786. /package/dist/chunks/{location-services-e73j6tqm.js → worktree-e73j6tqm.js} +0 -0
  787. /package/dist/chunks/{location-services-ean2d8b5.js → worktree-ean2d8b5.js} +0 -0
  788. /package/dist/chunks/{location-services-ec1grn59.js → worktree-ec1grn59.js} +0 -0
  789. /package/dist/chunks/{location-services-eh3zwz77.js → worktree-eh3zwz77.js} +0 -0
  790. /package/dist/chunks/{location-services-emrn6kk6.js → worktree-emrn6kk6.js} +0 -0
  791. /package/dist/chunks/{location-services-f0mxakyp.js → worktree-f0mxakyp.js} +0 -0
  792. /package/dist/chunks/{location-services-f6n9ztr4.js → worktree-f6n9ztr4.js} +0 -0
  793. /package/dist/chunks/{location-services-faypxj3z.js → worktree-faypxj3z.js} +0 -0
  794. /package/dist/chunks/{location-services-fd410y7t.js → worktree-fd410y7t.js} +0 -0
  795. /package/dist/chunks/{location-services-fkpq3x5p.js → worktree-fkpq3x5p.js} +0 -0
  796. /package/dist/chunks/{location-services-g4wezp1m.js → worktree-g4wezp1m.js} +0 -0
  797. /package/dist/chunks/{location-services-g86h250q.js → worktree-g86h250q.js} +0 -0
  798. /package/dist/chunks/{location-services-gebd4c9n.js → worktree-gebd4c9n.js} +0 -0
  799. /package/dist/chunks/{location-services-gftt206x.js → worktree-gftt206x.js} +0 -0
  800. /package/dist/chunks/{location-services-hcxmzztb.js → worktree-hcxmzztb.js} +0 -0
  801. /package/dist/chunks/{location-services-hk9envan.js → worktree-hk9envan.js} +0 -0
  802. /package/dist/chunks/{location-services-j2ntwpah.js → worktree-j2ntwpah.js} +0 -0
  803. /package/dist/chunks/{location-services-j5zkgpj8.js → worktree-j5zkgpj8.js} +0 -0
  804. /package/dist/chunks/{location-services-jjkms2e6.js → worktree-jjkms2e6.js} +0 -0
  805. /package/dist/chunks/{location-services-jr7sbwjy.js → worktree-jr7sbwjy.js} +0 -0
  806. /package/dist/chunks/{location-services-jwfs4k6c.js → worktree-jwfs4k6c.js} +0 -0
  807. /package/dist/chunks/{location-services-jwr30sdr.js → worktree-jwr30sdr.js} +0 -0
  808. /package/dist/chunks/{location-services-jze0r7bz.js → worktree-jze0r7bz.js} +0 -0
  809. /package/dist/chunks/{location-services-jzg6c2d5.js → worktree-jzg6c2d5.js} +0 -0
  810. /package/dist/chunks/{location-services-m18g726c.js → worktree-m18g726c.js} +0 -0
  811. /package/dist/chunks/{location-services-mp448xyj.js → worktree-mp448xyj.js} +0 -0
  812. /package/dist/chunks/{location-services-msx8hqn2.js → worktree-msx8hqn2.js} +0 -0
  813. /package/dist/chunks/{location-services-n05xt0ee.js → worktree-n05xt0ee.js} +0 -0
  814. /package/dist/chunks/{location-services-n3j8tn72.js → worktree-n3j8tn72.js} +0 -0
  815. /package/dist/chunks/{location-services-ncqqe42p.js → worktree-ncqqe42p.js} +0 -0
  816. /package/dist/chunks/{location-services-nh4v3znn.js → worktree-nh4v3znn.js} +0 -0
  817. /package/dist/chunks/{location-services-njntx4h6.js → worktree-njntx4h6.js} +0 -0
  818. /package/dist/chunks/{location-services-p71gwv9c.js → worktree-p71gwv9c.js} +0 -0
  819. /package/dist/chunks/{location-services-q3sfg36h.js → worktree-q3sfg36h.js} +0 -0
  820. /package/dist/chunks/{location-services-q74kybfr.js → worktree-q74kybfr.js} +0 -0
  821. /package/dist/chunks/{location-services-qaymkmh1.js → worktree-qaymkmh1.js} +0 -0
  822. /package/dist/chunks/{location-services-qb87gjwd.js → worktree-qb87gjwd.js} +0 -0
  823. /package/dist/chunks/{location-services-qfa1cgps.js → worktree-qfa1cgps.js} +0 -0
  824. /package/dist/chunks/{location-services-qg3g05ea.js → worktree-qg3g05ea.js} +0 -0
  825. /package/dist/chunks/{location-services-qrg20bc0.js → worktree-qrg20bc0.js} +0 -0
  826. /package/dist/chunks/{location-services-rcb2kzg1.js → worktree-rcb2kzg1.js} +0 -0
  827. /package/dist/chunks/{location-services-sdp7kfr6.js → worktree-sdp7kfr6.js} +0 -0
  828. /package/dist/chunks/{location-services-ssg3fenm.js → worktree-ssg3fenm.js} +0 -0
  829. /package/dist/chunks/{location-services-stkk57rt.js → worktree-stkk57rt.js} +0 -0
  830. /package/dist/chunks/{location-services-t03h4f5z.js → worktree-t03h4f5z.js} +0 -0
  831. /package/dist/chunks/{location-services-ty7weeps.js → worktree-ty7weeps.js} +0 -0
  832. /package/dist/chunks/{location-services-ve7vex1e.js → worktree-ve7vex1e.js} +0 -0
  833. /package/dist/chunks/{location-services-w803qqfp.js → worktree-w803qqfp.js} +0 -0
  834. /package/dist/chunks/{location-services-wc3fc9cn.js → worktree-wc3fc9cn.js} +0 -0
  835. /package/dist/chunks/{location-services-wer8tq1h.js → worktree-wer8tq1h.js} +0 -0
  836. /package/dist/chunks/{location-services-wtztk69x.js → worktree-wtztk69x.js} +0 -0
  837. /package/dist/chunks/{location-services-x0ckcb58.js → worktree-x0ckcb58.js} +0 -0
  838. /package/dist/chunks/{location-services-x61499pn.js → worktree-x61499pn.js} +0 -0
  839. /package/dist/chunks/{location-services-y44na4kk.js → worktree-y44na4kk.js} +0 -0
  840. /package/dist/chunks/{location-services-y8f7s663.js → worktree-y8f7s663.js} +0 -0
  841. /package/dist/chunks/{location-services-ygaqb7jw.js → worktree-ygaqb7jw.js} +0 -0
  842. /package/dist/chunks/{location-services-z5v4ffb3.js → worktree-z5v4ffb3.js} +0 -0
  843. /package/dist/chunks/{location-services-z9919s4g.js → worktree-z9919s4g.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./location-services-9rqn6x4v.js";
3
+ } from "./worktree-9rqn6x4v.js";
4
4
 
5
5
  // src/shell/scan.ts
6
6
  var exports_scan = {};
@@ -173,11 +173,14 @@ function finishBashWord(state) {
173
173
  state.commandStart ??= state.wordStart;
174
174
  state.words.push(state.word);
175
175
  state.rawWords.push(state.input.slice(state.wordStart, state.wordEnd));
176
- state.commandEnd = state.wordEnd;
177
176
  }
178
- if (state.hereString && state.resourceEnd === undefined)
179
- state.commandEnd = state.wordEnd;
177
+ if (state.redirectTarget) {
178
+ if (!state.dupRedirect || !/^(?:\d+-?|-)$/.test(state.input.slice(state.wordStart, state.wordEnd)))
179
+ state.hasFileRedirect = true;
180
+ state.redirectPrefixEnd ??= state.wordEnd;
181
+ }
180
182
  state.redirectTarget = false;
183
+ state.dupRedirect = false;
181
184
  state.hereString = false;
182
185
  state.word = "";
183
186
  state.literal = "";
@@ -251,12 +254,12 @@ function finishBashCommand(state, boundary = false, newline = false) {
251
254
  if (name >= 0 && !state.words[name])
252
255
  state.invalid ??= "invalid-structure";
253
256
  if (name >= 0 && !inHeader) {
254
- const resource = state.input.slice(state.commandStart, state.resourceEnd ?? state.wordEnd).replace(/^[ \t\n]+|[ \t\n]+$/g, "");
257
+ const resource = state.input.slice(state.commandStart, state.wordEnd).replace(/^[ \t\n]+|[ \t\n]+$/g, "");
255
258
  const command = {
256
259
  resource,
257
260
  words: state.words.slice(name),
258
261
  rawWords: state.rawWords.slice(name),
259
- ...name === 0 && BASH_DECLARATIONS.has(state.rawWords[0]) && resource.startsWith(state.rawWords[0]) ? { declaration: true } : {},
262
+ ...name === 0 && !state.hasRedirect && BASH_DECLARATIONS.has(state.rawWords[0]) && resource.startsWith(state.rawWords[0]) ? { declaration: true } : {},
260
263
  ...state.redirectWordCount !== undefined && state.redirectWordCount < state.words.length ? { redirectWordCount: state.redirectWordCount - name } : {}
261
264
  };
262
265
  state.commands.push(command);
@@ -281,11 +284,35 @@ function finishBashCommand(state, boundary = false, newline = false) {
281
284
  if (heredoc.owned)
282
285
  continue;
283
286
  heredoc.owned = true;
284
- if (newline && state.resourceEnd === undefined) {
287
+ if (newline) {
285
288
  heredoc.command = command;
286
289
  heredoc.start = state.commandStart;
287
290
  }
288
291
  }
292
+ } else if (name < 0 && !inHeader && state.commandStart !== undefined && (state.hasFileRedirect || state.hasRedirect && !state.compoundEnd)) {
293
+ const rawSpan = state.input.slice(state.commandStart, state.wordEnd);
294
+ const leading = /^[ \t\n]+/.exec(rawSpan)?.[0].length ?? 0;
295
+ const resource = rawSpan.slice(leading).replace(/[ \t\n]+$/g, "");
296
+ if (resource) {
297
+ const prefixEnd = state.redirectPrefixEnd !== undefined ? Math.max(1, Math.min(resource.length, state.redirectPrefixEnd - state.commandStart - leading)) : resource.length;
298
+ const prefixToken = resource.slice(0, prefixEnd);
299
+ const command = {
300
+ resource,
301
+ words: [prefixToken],
302
+ rawWords: [prefixToken],
303
+ redirectPrefixEnd: prefixEnd
304
+ };
305
+ state.commands.push(command);
306
+ for (const heredoc of state.heredocs) {
307
+ if (heredoc.owned)
308
+ continue;
309
+ heredoc.owned = true;
310
+ if (newline) {
311
+ heredoc.command = command;
312
+ heredoc.start = state.commandStart;
313
+ }
314
+ }
315
+ }
289
316
  }
290
317
  for (const heredoc of state.heredocs)
291
318
  heredoc.owned = true;
@@ -300,9 +327,11 @@ function finishBashCommand(state, boundary = false, newline = false) {
300
327
  state.rawWords.length = 0;
301
328
  state.commandWordIndex = -1;
302
329
  state.commandStart = undefined;
330
+ state.dupRedirect = false;
303
331
  state.hasRedirect = false;
304
- state.resourceEnd = undefined;
332
+ state.hasFileRedirect = false;
305
333
  state.redirectWordCount = undefined;
334
+ state.redirectPrefixEnd = undefined;
306
335
  state.ampersandRedirectWords = undefined;
307
336
  state.compoundEnd = false;
308
337
  state.dangling = false;
@@ -326,17 +355,18 @@ function scanBash(input, start, depth, context, close, heredocs, outer) {
326
355
  wordStart: start,
327
356
  wordEnd: start,
328
357
  commandStart: undefined,
329
- commandEnd: start,
330
- resourceEnd: undefined,
331
358
  redirectWordCount: undefined,
359
+ redirectPrefixEnd: undefined,
332
360
  ampersandRedirectWords: undefined,
333
361
  commandWordIndex: -1,
334
362
  assignmentWord: false,
335
363
  assignmentHeadUnsafe: false,
336
364
  invalid: undefined,
337
365
  redirectTarget: false,
366
+ dupRedirect: false,
338
367
  hereString: false,
339
368
  hasRedirect: false,
369
+ hasFileRedirect: false,
340
370
  compoundEnd: false,
341
371
  dangling: false,
342
372
  outer
@@ -496,8 +526,6 @@ function scanBashOperatorOrSeparator(state, index, depth, context) {
496
526
  state.invalid ??= "invalid-redirect";
497
527
  const fdPrefix = state.wordStarted && !state.assignmentHeadUnsafe && /^(?:\d+|\{[A-Za-z_][A-Za-z0-9_]*\})$/.test(state.word);
498
528
  if (fdPrefix) {
499
- if (state.wordEnd < index)
500
- state.commandEnd = state.wordEnd;
501
529
  state.word = "";
502
530
  state.literal = "";
503
531
  state.output = "";
@@ -510,19 +538,23 @@ function scanBashOperatorOrSeparator(state, index, depth, context) {
510
538
  if (state.redirectWordCount === undefined && state.commandWordIndex >= 0) {
511
539
  state.redirectWordCount = state.words.length;
512
540
  }
513
- if (state.dangling && redirect !== "<<<" && state.commandWordIndex >= 0) {
514
- state.resourceEnd ??= state.commandEnd;
515
- }
516
541
  if (redirect === "<<" || redirect === "<<-") {
517
542
  const delimiter = bashHeredocDelimiter(input, index + redirect.length, redirect === "<<-");
518
543
  if (!delimiter)
519
544
  return { kind: "opaque", reason: "invalid-redirect" };
545
+ state.hasFileRedirect = true;
546
+ state.redirectPrefixEnd ??= " \t".includes(input[index + redirect.length] ?? "") ? index + redirect.length : delimiter.end + 1;
520
547
  state.heredocs.push(delimiter);
521
548
  state.wordEnd = delimiter.end + 1;
522
549
  state.redirectTarget = false;
550
+ state.dupRedirect = false;
523
551
  return delimiter.end;
524
552
  }
553
+ if (`
554
+ `.includes(input[index + redirect.length] ?? ""))
555
+ state.redirectPrefixEnd ??= index + redirect.length;
525
556
  state.redirectTarget = true;
557
+ state.dupRedirect = redirect === "<&" || redirect === ">&";
526
558
  state.hereString = redirect === "<<<";
527
559
  return index + redirect.length - 1;
528
560
  }
@@ -1483,6 +1515,9 @@ function scanPowerShellList(input, start, depth, budget, close, hash = false, sk
1483
1515
  let clause = initialClause;
1484
1516
  let after;
1485
1517
  let indexable = false;
1518
+ let memberChainStart;
1519
+ let hasMemberAccess = false;
1520
+ let hasFileRedirect = false;
1486
1521
  let stopParsing = false;
1487
1522
  let commandEnd = start;
1488
1523
  let statementHead = true;
@@ -1490,13 +1525,18 @@ function scanPowerShellList(input, start, depth, budget, close, hash = false, sk
1490
1525
  let redirectTarget = false;
1491
1526
  let dangling = false;
1492
1527
  let invocation = false;
1528
+ const resetMember = () => {
1529
+ indexable = false;
1530
+ memberChainStart = undefined;
1531
+ hasMemberAccess = false;
1532
+ };
1493
1533
  const finishWord = (end) => {
1494
1534
  if (!started)
1495
1535
  return;
1496
1536
  if (word === "--%" && words.length > 0 && !expression && !clause && !redirectTarget && !/['"]/.test(input[wordStart]) && !rawWords.at(-1)?.endsWith(",") && !POWERSHELL_PARAMETER_COLON_RE.test(rawWords.at(-1) ?? ""))
1497
1537
  stopParsing = true;
1498
1538
  if (!redirectTarget) {
1499
- if (!words.length && !invocation && !expression)
1539
+ if (!words.length && !invocation)
1500
1540
  segment = wordStart;
1501
1541
  words.push(word);
1502
1542
  rawWords.push(input.slice(wordStart, end));
@@ -1510,13 +1550,13 @@ function scanPowerShellList(input, start, depth, budget, close, hash = false, sk
1510
1550
  };
1511
1551
  const finishCommand = (end, required = false) => {
1512
1552
  finishWord(end);
1513
- if (words.length && !expression && !clause)
1553
+ if (words.length && (!expression && !clause || hasFileRedirect))
1514
1554
  commands.push({
1515
1555
  resource: input.slice(segment, commandEnd).trimEnd(),
1516
1556
  words: [...words],
1517
1557
  rawWords: [...rawWords],
1518
1558
  wordEnds: wordEnds.map((value) => value - segment),
1519
- ...statementHead && !invocation ? { statementHead: true } : {}
1559
+ ...statementHead && !invocation && !expression && !clause ? { statementHead: true } : {}
1520
1560
  });
1521
1561
  else if (!expression && !clause && invocation || required && !words.length && !nestedCommands.length || clause !== undefined && clause !== "member")
1522
1562
  invalid = true;
@@ -1527,11 +1567,12 @@ function scanPowerShellList(input, start, depth, budget, close, hash = false, sk
1527
1567
  rawWords.length = 0;
1528
1568
  wordEnds.length = 0;
1529
1569
  redirectTarget = false;
1570
+ hasFileRedirect = false;
1530
1571
  invocation = false;
1531
1572
  expression = initialExpression;
1532
1573
  clause = initialClause;
1533
1574
  after = undefined;
1534
- indexable = false;
1575
+ resetMember();
1535
1576
  stopParsing = false;
1536
1577
  };
1537
1578
  let index = start;
@@ -1602,9 +1643,15 @@ function scanPowerShellList(input, start, depth, budget, close, hash = false, sk
1602
1643
  if (!started && words.length === 0 && !invocation)
1603
1644
  expression = true;
1604
1645
  quote = char;
1605
- standalone = atBoundary || expression && !redirectTarget || indexable === "member" && /[.:]$/.test(word);
1606
- if (!standalone)
1607
- indexable = false;
1646
+ const dynamicMember = indexable === "member" && /[.:]$/.test(started ? word : words.at(-1) ?? "");
1647
+ standalone = atBoundary || expression && !redirectTarget || dynamicMember;
1648
+ if (dynamicMember)
1649
+ hasMemberAccess = true;
1650
+ else if (standalone) {
1651
+ memberChainStart = index;
1652
+ hasMemberAccess = false;
1653
+ } else
1654
+ resetMember();
1608
1655
  started = true;
1609
1656
  continue;
1610
1657
  }
@@ -1617,7 +1664,8 @@ function scanPowerShellList(input, start, depth, budget, close, hash = false, sk
1617
1664
  finishWord(index);
1618
1665
  else if (!atBoundary || !rawSpace) {
1619
1666
  started = true;
1620
- indexable = false;
1667
+ if (!(indexable === "member" && /[\p{L}\p{Nl}\d_]/u.test(escape.value)))
1668
+ resetMember();
1621
1669
  word += escape.value;
1622
1670
  }
1623
1671
  index = escape.end;
@@ -1638,7 +1686,7 @@ function scanPowerShellList(input, start, depth, budget, close, hash = false, sk
1638
1686
  if (end < 0)
1639
1687
  return { kind: "opaque", reason: "invalid-structure" };
1640
1688
  if (!memberOperator)
1641
- indexable = false;
1689
+ resetMember();
1642
1690
  index = end + 1;
1643
1691
  continue;
1644
1692
  }
@@ -1670,7 +1718,9 @@ function scanPowerShellList(input, start, depth, budget, close, hash = false, sk
1670
1718
  if (redirectTarget || words.length === 0 || clause && clause !== "member")
1671
1719
  return { kind: "opaque", reason: "invalid-redirect" };
1672
1720
  redirectTarget = !redirect.includes("&");
1673
- indexable = false;
1721
+ if (redirectTarget)
1722
+ hasFileRedirect = true;
1723
+ resetMember();
1674
1724
  index += redirect.length - 1;
1675
1725
  commandEnd = index + 1;
1676
1726
  continue;
@@ -1705,7 +1755,8 @@ function scanPowerShellList(input, start, depth, budget, close, hash = false, sk
1705
1755
  rawWords.length = 0;
1706
1756
  wordEnds.length = 0;
1707
1757
  expression = false;
1708
- indexable = false;
1758
+ hasFileRedirect = false;
1759
+ resetMember();
1709
1760
  if (!assign || char !== "=")
1710
1761
  index++;
1711
1762
  continue;
@@ -1726,6 +1777,8 @@ function scanPowerShellList(input, start, depth, budget, close, hash = false, sk
1726
1777
  started = true;
1727
1778
  index = literal.end;
1728
1779
  finishWord(index + 1);
1780
+ memberChainStart = wordStart;
1781
+ hasMemberAccess = false;
1729
1782
  indexable = "closed";
1730
1783
  continue;
1731
1784
  }
@@ -1735,7 +1788,16 @@ function scanPowerShellList(input, start, depth, budget, close, hash = false, sk
1735
1788
  return { kind: "opaque", reason: "invalid-structure" };
1736
1789
  if (!started && !words.length && !invocation && hash !== "switch")
1737
1790
  expression = true;
1738
- indexable = atBoundary || indexable === "member" && /[.:]$/.test(word) ? "closed" : false;
1791
+ const dynamicMember = indexable === "member" && /[.:]$/.test(started ? word : words.at(-1) ?? "");
1792
+ if (dynamicMember) {
1793
+ indexable = "closed";
1794
+ hasMemberAccess = true;
1795
+ } else if (atBoundary) {
1796
+ memberChainStart = index;
1797
+ hasMemberAccess = false;
1798
+ indexable = "closed";
1799
+ } else
1800
+ resetMember();
1739
1801
  word += input.slice(index, end + 1);
1740
1802
  started = true;
1741
1803
  index = end;
@@ -1745,7 +1807,12 @@ function scanPowerShellList(input, start, depth, budget, close, hash = false, sk
1745
1807
  }
1746
1808
  const opener = (char === "$" || atBoundary && char === "@") && input[index + 1] === "(" ? index + 1 : atBoundary && char === "@" && input[index + 1] === "{" ? index + 1 : char === "(" || char === "{" || char === "[" && (inExpression || Boolean(indexable) || !started && !invocation && (!words.length || clause === "block" || clause === "try")) ? index : undefined;
1747
1809
  if (opener !== undefined) {
1810
+ const tokenIndex = index;
1748
1811
  const openChar = input[opener];
1812
+ const prevMemberWord = started ? word : words.at(-1) ?? "";
1813
+ const dynamicMemberOpener = indexable === "member" && /[.:]$/.test(prevMemberWord);
1814
+ const priorIndexable = Boolean(indexable);
1815
+ const isMethodCall = char === "(" && opener === tokenIndex && memberChainStart !== undefined && (indexable === "member" && started && !/[.:]$/.test(word) || indexable === "closed" && !started && hasMemberAccess);
1749
1816
  const standaloneBlock = atBoundary || inExpression || char === "(" || openChar === "{";
1750
1817
  const blockClose = openChar === "(" ? ")" : openChar === "[" ? "]" : "}";
1751
1818
  const blockHash = openChar === "[" ? true : char === "@" && openChar === "{" ? true : clause === "switch" && openChar === "{" ? "switch" : clause === "clause" && openChar === "{" ? "clause" : close === "]" && char === "(" && started ? "clause" : false;
@@ -1766,13 +1833,31 @@ function scanPowerShellList(input, start, depth, budget, close, hash = false, sk
1766
1833
  started = true;
1767
1834
  word += input.slice(index, result.end + 1);
1768
1835
  index = result.end;
1769
- if (openChar === "[") {
1836
+ if (isMethodCall && memberChainStart !== undefined) {
1837
+ finishWord(index + 1);
1838
+ const callResource = input.slice(memberChainStart, result.end + 1);
1839
+ const head = input.slice(memberChainStart, opener);
1840
+ const args = input.slice(opener, result.end + 1);
1841
+ nestedCommands.push({
1842
+ resource: callResource,
1843
+ words: [head, args],
1844
+ rawWords: [head, args],
1845
+ wordEnds: [head.length, callResource.length]
1846
+ });
1847
+ indexable = "closed";
1848
+ hasMemberAccess = false;
1849
+ } else if (openChar === "[") {
1770
1850
  indexable = "closed";
1851
+ if (!priorIndexable)
1852
+ memberChainStart = tokenIndex;
1771
1853
  if (input[index + 1] !== "[")
1772
1854
  finishWord(index + 1);
1773
1855
  } else if (standaloneBlock) {
1774
1856
  finishWord(index + 1);
1775
1857
  indexable = "closed";
1858
+ if (!dynamicMemberOpener)
1859
+ memberChainStart = tokenIndex;
1860
+ hasMemberAccess = dynamicMemberOpener;
1776
1861
  }
1777
1862
  if (clause === "paren" && char === "(" || clause && clause !== "paren" && char === "{") {
1778
1863
  const completed = clause === "do" || clause === "if" || clause === "try" ? clause : undefined;
@@ -1796,8 +1881,10 @@ function scanPowerShellList(input, start, depth, budget, close, hash = false, sk
1796
1881
  }
1797
1882
  if (/\s/.test(char) && char !== `
1798
1883
  ` && char !== "\r") {
1884
+ const memberOperator = indexable === "member" && /[.:]$/.test(started ? word : words.at(-1) ?? "");
1799
1885
  finishWord(index);
1800
- indexable = false;
1886
+ if (!memberOperator)
1887
+ resetMember();
1801
1888
  continue;
1802
1889
  }
1803
1890
  const next = input[index + 1];
@@ -1816,12 +1903,12 @@ function scanPowerShellList(input, start, depth, budget, close, hash = false, sk
1816
1903
  finishWord(index);
1817
1904
  index += separator.length - 1;
1818
1905
  if (!memberOperator)
1819
- indexable = false;
1906
+ resetMember();
1820
1907
  continue;
1821
1908
  }
1822
1909
  if (!started && !words.length && !invocation) {
1823
1910
  index += separator.length - 1;
1824
- indexable = false;
1911
+ resetMember();
1825
1912
  continue;
1826
1913
  }
1827
1914
  }
@@ -1837,14 +1924,35 @@ function scanPowerShellList(input, start, depth, budget, close, hash = false, sk
1837
1924
  }
1838
1925
  if (!started && !words.length && !invocation && hash !== "switch" && testAt(POWERSHELL_EXPRESSION_RE, input, index))
1839
1926
  expression = true;
1840
- if ((atBoundary || indexable === "member" && /[.:]$/.test(word)) && char === "$")
1841
- indexable = testAt(POWERSHELL_INDEXABLE_VAR_RE, input, index + 1) ? "variable" : false;
1842
- else if (indexable === "closed")
1843
- indexable = char === "." && input[index + 1] !== "." && !/\s/.test(input[index + 1] ?? "") || !started && char === ":" && input[index + 1] === ":" && !/\s/.test(input[index + 2] ?? "") || !started && char === "?" && input[index + 1] === "." && input[index + 2] !== "." && !/\s/.test(input[index + 2] ?? "") ? "member" : !started && char === "?" && input[index + 1] === "[" ? "closed" : false;
1844
- else if (indexable === "variable")
1845
- indexable = char === "." && input[index + 1] !== "." && !/\s/.test(input[index + 1] ?? "") || char === ":" && input[index + 1] === ":" && !/\s/.test(input[index + 2] ?? "") ? "member" : char === "." && input[index + 1] === "." || !/[\p{L}\p{Nl}\d_:?]/u.test(char) ? false : "variable";
1846
- else if (indexable === "member")
1847
- indexable = char === "." && input[index + 1] === "." ? false : char === "." && !/\s/.test(input[index + 1] ?? "") || char === ":" && (input[index + 1] === ":" || input[index - 1] === ":") || char === "?" && input[index + 1] === "." && input[index + 2] !== "." || /[\p{L}\p{Nl}\d_]/u.test(char) ? "member" : false;
1927
+ const prevMember = started ? word : words.at(-1) ?? "";
1928
+ if ((atBoundary || indexable === "member" && /[.:]$/.test(prevMember)) && char === "$") {
1929
+ if (testAt(POWERSHELL_INDEXABLE_VAR_RE, input, index + 1)) {
1930
+ if (indexable === "member" && /[.:]$/.test(prevMember))
1931
+ hasMemberAccess = true;
1932
+ else {
1933
+ memberChainStart = index;
1934
+ hasMemberAccess = false;
1935
+ }
1936
+ indexable = "variable";
1937
+ } else
1938
+ resetMember();
1939
+ } else if (indexable === "closed") {
1940
+ indexable = char === "." && input[index + 1] !== "." && (!/\s/.test(input[index + 1] ?? "") || inExpression) || !started && char === ":" && input[index + 1] === ":" || !started && char === "?" && input[index + 1] === "." && input[index + 2] !== "." && (!/\s/.test(input[index + 2] ?? "") || inExpression) ? "member" : !started && char === "?" && input[index + 1] === "[" ? "closed" : false;
1941
+ if (indexable === "member")
1942
+ hasMemberAccess = true;
1943
+ else if (!indexable)
1944
+ resetMember();
1945
+ } else if (indexable === "variable") {
1946
+ indexable = char === "." && input[index + 1] !== "." && (!/\s/.test(input[index + 1] ?? "") || inExpression) || char === ":" && input[index + 1] === ":" ? "member" : char === "." && input[index + 1] === "." || !/[\p{L}\p{Nl}\d_:?]/u.test(char) ? false : "variable";
1947
+ if (indexable === "member")
1948
+ hasMemberAccess = true;
1949
+ else if (!indexable)
1950
+ resetMember();
1951
+ } else if (indexable === "member") {
1952
+ indexable = char === "." && input[index + 1] === "." ? false : char === "." && (!/\s/.test(input[index + 1] ?? "") || inExpression) || char === ":" && (input[index + 1] === ":" || input[index - 1] === ":") || char === "?" && input[index + 1] === "." && input[index + 2] !== "." || /[\p{L}\p{Nl}\d_]/u.test(char) ? "member" : false;
1953
+ if (!indexable)
1954
+ resetMember();
1955
+ }
1848
1956
  after = undefined;
1849
1957
  started = true;
1850
1958
  dangling = false;
@@ -1,37 +1,37 @@
1
1
  import {
2
2
  useragent2
3
- } from "./location-services-f12jx86d.js";
3
+ } from "./worktree-3776k8q5.js";
4
4
  import {
5
5
  Service86
6
- } from "./location-services-m3pbq8ct.js";
6
+ } from "./worktree-9yke2vdy.js";
7
7
  import {
8
8
  OAuth3,
9
9
  Event19,
10
- Service81
11
- } from "./location-services-fq0hatx6.js";
10
+ Service80
11
+ } from "./worktree-8jne4ghb.js";
12
12
  import {
13
- ID15,
13
+ ID14,
14
14
  MethodID2
15
- } from "./location-services-05pzx58r.js";
15
+ } from "./worktree-yxcs01xt.js";
16
16
  import {
17
- ID14,
17
+ ID13,
18
18
  mergeOverlay2
19
- } from "./location-services-d987wdq8.js";
19
+ } from "./worktree-zy2d75w1.js";
20
20
  import {
21
- ID13,
21
+ ID12,
22
22
  VariantID2,
23
- Info23
24
- } from "./location-services-92ee31my.js";
23
+ Info22
24
+ } from "./worktree-211v3ywx.js";
25
25
  import {
26
26
  success2,
27
27
  error2
28
- } from "./location-services-yb20nhc3.js";
28
+ } from "./worktree-yb20nhc3.js";
29
29
  import {
30
30
  get5
31
- } from "./location-services-3nnrz6f6.js";
31
+ } from "./worktree-3nnrz6f6.js";
32
32
  import {
33
33
  configuredSettings2
34
- } from "./location-services-nm8x0m3s.js";
34
+ } from "./worktree-9k2mwdeg.js";
35
35
 
36
36
  // src/plugin/provider/chatgpt.ts
37
37
  import { define } from "@opencode/plugin/effect/plugin";
@@ -43,8 +43,8 @@ var issuer = "https://auth.openai.com";
43
43
  var tokenURL = `${issuer}/api/accounts/oauth/token`;
44
44
  var resource = "https://api.openai.com/v1";
45
45
  var tokenSharingScope = "chatgpt.tokens.use.direct";
46
- var providerID = ID14.openai;
47
- var integrationID = ID15.make("openai");
46
+ var providerID = ID13.openai;
47
+ var integrationID = ID14.make("openai");
48
48
  var methodID = MethodID2.make("chatgpt-token-sharing");
49
49
  var modelCacheKey = (clientID) => `models:${clientID}`;
50
50
  var fallbackModels = new Set([
@@ -182,7 +182,7 @@ var ChatGPTPlugin2 = define({
182
182
  id: "opencode.provider.chatgpt",
183
183
  effect: Effect.fn(function* (ctx) {
184
184
  const bus = yield* Service86;
185
- const credentials = yield* Service81;
185
+ const credentials = yield* Service80;
186
186
  const loading = Semaphore.makeUnsafe(1);
187
187
  let chatgpt;
188
188
  let source;
@@ -197,7 +197,7 @@ var ChatGPTPlugin2 = define({
197
197
  yield* ctx.integration.transform((editor) => {
198
198
  editor.method.update(signIn(ctx.app, () => Option.getOrUndefined(decodeMetadata(chatgpt?.metadata))?.clientID, ctx.storage));
199
199
  });
200
- yield* Effect.forEach(yield* credentials.list(ID15.make("openai")), (entry) => {
200
+ yield* Effect.forEach(yield* credentials.list(ID14.make("openai")), (entry) => {
201
201
  const value = entry.value;
202
202
  if (value.type !== "oauth" || value.methodID !== MethodID2.make("chatgpt-browser"))
203
203
  return Effect.void;
@@ -327,7 +327,7 @@ function deriveModels2(remote, existing) {
327
327
  const found = byID.get(model.modelID);
328
328
  return found ? [deriveModel(found, model)] : [];
329
329
  }),
330
- ...remote.filter((model) => !known.has(ID13.make(model.slug))).map((model) => deriveModel(model, Info23.default(ID14.openai, ID13.make(model.slug))))
330
+ ...remote.filter((model) => !known.has(ID12.make(model.slug))).map((model) => deriveModel(model, Info22.default(ID13.openai, ID12.make(model.slug))))
331
331
  ];
332
332
  }
333
333
  function deriveModel(remote, previous) {
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  Service87,
3
- node91
4
- } from "./location-services-ry6m6k45.js";
3
+ node90
4
+ } from "./worktree-hndjt1e9.js";
5
5
  import {
6
6
  KVTable2
7
- } from "./location-services-3hepkmqq.js";
7
+ } from "./worktree-3hepkmqq.js";
8
8
  import {
9
9
  __export
10
- } from "./location-services-9rqn6x4v.js";
10
+ } from "./worktree-9rqn6x4v.js";
11
11
 
12
12
  // src/kv.ts
13
13
  var exports_kv = {};
14
14
  __export(exports_kv, {
15
15
  KV: () => exports_kv,
16
16
  Service: () => Service82,
17
- node: () => node86
17
+ node: () => node85
18
18
  });
19
19
  import { and, asc, eq, gt, gte, lt } from "drizzle-orm";
20
20
  import { Context, Effect, Layer } from "effect";
@@ -51,6 +51,6 @@ function prefixEnd(prefix) {
51
51
  return;
52
52
  return `${points.slice(0, index).join("")}${String.fromCodePoint(points[index].codePointAt(0) + 1)}`;
53
53
  }
54
- var node86 = makeGlobalNode({ service: Service82, layer, deps: [node91] });
54
+ var node85 = makeGlobalNode({ service: Service82, layer, deps: [node90] });
55
55
 
56
- export { Service82, node86, exports_kv };
56
+ export { Service82, node85, exports_kv };
@@ -1,34 +1,34 @@
1
1
  import {
2
2
  Service86,
3
- node90
4
- } from "./location-services-m3pbq8ct.js";
3
+ node89
4
+ } from "./worktree-9yke2vdy.js";
5
5
  import {
6
6
  changes2,
7
7
  create3
8
- } from "./location-services-204s3925.js";
8
+ } from "./worktree-204s3925.js";
9
9
  import {
10
10
  __export
11
- } from "./location-services-9rqn6x4v.js";
11
+ } from "./worktree-9rqn6x4v.js";
12
12
 
13
13
  // src/command.ts
14
14
  var exports_command4 = {};
15
15
  __export(exports_command4, {
16
16
  Command: () => exports_command4,
17
- Event: () => Event10,
17
+ Event: () => Event9,
18
18
  ExecutionError: () => ExecutionError2,
19
19
  Info: () => Info10,
20
- NotFoundError: () => NotFoundError8,
21
- Service: () => Service51,
22
- layer: () => layer20,
23
- node: () => node54
20
+ NotFoundError: () => NotFoundError6,
21
+ Service: () => Service43,
22
+ layer: () => layer17,
23
+ node: () => node46
24
24
  });
25
25
  import { Command } from "@opencode/schema/command";
26
26
  import { makeLocationNode } from "@opencode/util/effect/app-node";
27
27
  import { Context, Effect, Layer, Schema } from "effect";
28
- import { Event as Event10 } from "@opencode/schema/command";
28
+ import { Event as Event9 } from "@opencode/schema/command";
29
29
  var Info10 = Command.Info;
30
30
 
31
- class NotFoundError8 extends Schema.TaggedError()("Command.NotFoundError", {
31
+ class NotFoundError6 extends Schema.TaggedError()("Command.NotFoundError", {
32
32
  command: Schema.String,
33
33
  message: Schema.String
34
34
  }) {
@@ -40,9 +40,9 @@ class ExecutionError2 extends Schema.TaggedError()("Command.ExecutionError", {
40
40
  }) {
41
41
  }
42
42
 
43
- class Service51 extends Context.Service()("@opencode/Command") {
43
+ class Service43 extends Context.Service()("@opencode/Command") {
44
44
  }
45
- var layer20 = Layer.effect(Service51, Effect.gen(function* () {
45
+ var layer17 = Layer.effect(Service43, Effect.gen(function* () {
46
46
  const bus = yield* Service86;
47
47
  const info = (definition) => Info10.make({
48
48
  name: definition.name,
@@ -56,7 +56,7 @@ var layer20 = Layer.effect(Service51, Effect.gen(function* () {
56
56
  }),
57
57
  notify: changes2((commands) => Array.from(commands.values(), info), () => bus.publish(Command.Event.Updated, {}).pipe(Effect.asVoid))
58
58
  });
59
- return Service51.of({
59
+ return Service43.of({
60
60
  reload: state.reload,
61
61
  transform: state.transform,
62
62
  get: Effect.fn("Command.get")((name) => Effect.sync(() => {
@@ -67,15 +67,15 @@ var layer20 = Layer.effect(Service51, Effect.gen(function* () {
67
67
  execute: Effect.fn("Command.execute")(function* (input) {
68
68
  const definition = state.get().get(input.name);
69
69
  if (!definition)
70
- return yield* new NotFoundError8({ command: input.name, message: `Command not found: ${input.name}` });
70
+ return yield* new NotFoundError6({ command: input.name, message: `Command not found: ${input.name}` });
71
71
  return yield* definition.execute(input.invocation).pipe(Effect.tapError((error) => Effect.logError("command execution failed", { command: input.name, error })), Effect.mapError((error) => new ExecutionError2({ command: input.name, message: errorMessage(error) })));
72
72
  })
73
73
  });
74
74
  }));
75
- var node54 = makeLocationNode({
76
- service: Service51,
77
- layer: layer20,
78
- deps: [node90]
75
+ var node46 = makeLocationNode({
76
+ service: Service43,
77
+ layer: layer17,
78
+ deps: [node89]
79
79
  });
80
80
  function errorMessage(error) {
81
81
  if (error instanceof Error)
@@ -87,4 +87,4 @@ function errorMessage(error) {
87
87
  return "Command execution failed";
88
88
  }
89
89
 
90
- export { Info10, NotFoundError8, ExecutionError2, Service51, layer20, node54, exports_command4, Event10 };
90
+ export { Info10, NotFoundError6, ExecutionError2, Service43, layer17, node46, exports_command4, Event9 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./location-services-9rqn6x4v.js";
3
+ } from "./worktree-9rqn6x4v.js";
4
4
 
5
5
  // src/config/variable.ts
6
6
  var exports_variable = {};