@opencode/core 0.0.0-dev-20870 → 0.0.0-dev-20871

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 (788) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +83 -83
  3. package/dist/aisdk-native.js +91 -91
  4. package/dist/aisdk.js +94 -94
  5. package/dist/app.js +7 -7
  6. package/dist/bus.js +75 -75
  7. package/dist/chunks/{models-dev-v6ym025c.js → vcs-027pbxtr.js} +11 -11
  8. package/dist/chunks/{models-dev-3d6k3wes.js → vcs-0846j24m.js} +13 -13
  9. package/dist/chunks/{models-dev-ce1fh5qz.js → vcs-0be9ae0k.js} +49 -49
  10. package/dist/chunks/{models-dev-23zvew7z.js → vcs-0bmnjpfs.js} +6 -6
  11. package/dist/chunks/{models-dev-62kspbwq.js → vcs-0cyvwnra.js} +33 -33
  12. package/dist/chunks/{models-dev-w88gdm0z.js → vcs-0k2gez87.js} +16 -16
  13. package/dist/chunks/{models-dev-0vbcp93d.js → vcs-0vbcp93d.js} +2 -2
  14. package/dist/chunks/{models-dev-kxseq8sh.js → vcs-0xcsww42.js} +43 -43
  15. package/dist/chunks/{models-dev-ddhkvars.js → vcs-10bqs83d.js} +36 -36
  16. package/dist/chunks/{models-dev-3g85zhep.js → vcs-166kng33.js} +8 -8
  17. package/dist/chunks/{models-dev-29zbz0jv.js → vcs-16tmjrr7.js} +22 -22
  18. package/dist/chunks/{models-dev-hk5cp4gp.js → vcs-17tyfhk4.js} +3 -3
  19. package/dist/chunks/{models-dev-bjx1sjef.js → vcs-1ffvrpkg.js} +6 -6
  20. package/dist/chunks/{models-dev-rp26en60.js → vcs-1my53vbz.js} +13 -13
  21. package/dist/chunks/{models-dev-4dg124c5.js → vcs-1nwxscpy.js} +5 -5
  22. package/dist/chunks/{models-dev-h6g8pc5k.js → vcs-1taggxgy.js} +22 -22
  23. package/dist/chunks/{models-dev-z8rw9kn4.js → vcs-25j7r69p.js} +10 -10
  24. package/dist/chunks/{models-dev-7pkwsdwd.js → vcs-25mbgvqh.js} +43 -43
  25. package/dist/chunks/{models-dev-mg1vppcc.js → vcs-2dp4snf0.js} +18 -18
  26. package/dist/chunks/{models-dev-jrshg6j8.js → vcs-2e69fd2h.js} +5 -5
  27. package/dist/chunks/{models-dev-tmmm4zfp.js → vcs-2e9b3ynm.js} +9 -9
  28. package/dist/chunks/{models-dev-hfpd1xnt.js → vcs-2ea3t0jj.js} +28 -28
  29. package/dist/chunks/{models-dev-ehy8mm5d.js → vcs-2p5zs7nk.js} +11 -11
  30. package/dist/chunks/{models-dev-bd94ff7m.js → vcs-2r1j4600.js} +8 -8
  31. package/dist/chunks/{models-dev-0nbvmddn.js → vcs-2tn753d6.js} +42 -42
  32. package/dist/chunks/{models-dev-2vvh33eb.js → vcs-2vvh33eb.js} +2 -2
  33. package/dist/chunks/{models-dev-t7qve5aa.js → vcs-2ynabkvb.js} +32 -32
  34. package/dist/chunks/{models-dev-c7czhrjs.js → vcs-2z25gc85.js} +22 -22
  35. package/dist/chunks/{models-dev-nasac2a3.js → vcs-312bjry1.js} +4 -4
  36. package/dist/chunks/{models-dev-h7s7r6s9.js → vcs-31xfzrxg.js} +5 -5
  37. package/dist/chunks/{models-dev-frr120gk.js → vcs-368r6vx6.js} +6 -6
  38. package/dist/chunks/{models-dev-8b7b9gz3.js → vcs-39hv3347.js} +16 -16
  39. package/dist/chunks/{models-dev-q6p849e1.js → vcs-3c0f89xm.js} +35 -35
  40. package/dist/chunks/{models-dev-3fc6dm20.js → vcs-3fc6dm20.js} +1 -1
  41. package/dist/chunks/{models-dev-3hepkmqq.js → vcs-3hepkmqq.js} +1 -1
  42. package/dist/chunks/{models-dev-jky8rjf3.js → vcs-3hq7pe8n.js} +50 -50
  43. package/dist/chunks/{models-dev-3hwn7j4h.js → vcs-3hwn7j4h.js} +2 -2
  44. package/dist/chunks/{models-dev-mb14aw74.js → vcs-3nz0bd4c.js} +2 -2
  45. package/dist/chunks/{models-dev-3smtnn6g.js → vcs-3smtnn6g.js} +1 -1
  46. package/dist/chunks/{models-dev-3tvqynh2.js → vcs-3tvqynh2.js} +1 -1
  47. package/dist/chunks/{models-dev-ns359883.js → vcs-3xww3h3h.js} +11 -11
  48. package/dist/chunks/{models-dev-r2t962mj.js → vcs-3yjz6fr8.js} +15 -15
  49. package/dist/chunks/{models-dev-3zsf4n22.js → vcs-3zsf4n22.js} +1 -1
  50. package/dist/chunks/{models-dev-1r60zs0j.js → vcs-497pgnjq.js} +31 -31
  51. package/dist/chunks/{models-dev-7pb5awq7.js → vcs-4dn37e14.js} +59 -59
  52. package/dist/chunks/{models-dev-sm3x7yyx.js → vcs-4hs5nmtq.js} +15 -15
  53. package/dist/chunks/{models-dev-2d17jkaf.js → vcs-4jd83hme.js} +54 -54
  54. package/dist/chunks/{models-dev-eafzmqzj.js → vcs-4jgprc7m.js} +4 -4
  55. package/dist/chunks/{models-dev-tg6qddtv.js → vcs-4kersrq5.js} +14 -14
  56. package/dist/chunks/{models-dev-c2sed5cq.js → vcs-4pa8nav4.js} +3 -3
  57. package/dist/chunks/{models-dev-ek7a384p.js → vcs-4r1q1eat.js} +63 -63
  58. package/dist/chunks/{models-dev-awmqpm04.js → vcs-4syghzxd.js} +13 -13
  59. package/dist/chunks/{models-dev-2ccvkpx1.js → vcs-4ts7tf6z.js} +2 -2
  60. package/dist/chunks/{models-dev-w9w378fs.js → vcs-4v3q8nh8.js} +22 -22
  61. package/dist/chunks/{models-dev-phz50fbd.js → vcs-4xdpab2z.js} +5 -5
  62. package/dist/chunks/{models-dev-g6yfr6ja.js → vcs-4xpgt2w9.js} +5 -5
  63. package/dist/chunks/{models-dev-6h2htfwq.js → vcs-5dnm1jtf.js} +25 -25
  64. package/dist/chunks/{models-dev-r6a2f23q.js → vcs-5kz1eb2j.js} +17 -17
  65. package/dist/chunks/{models-dev-5m9w47nd.js → vcs-5m9w47nd.js} +1 -1
  66. package/dist/chunks/{models-dev-e3qxr5gk.js → vcs-5qd3pb7m.js} +2 -2
  67. package/dist/chunks/{models-dev-drymhbxd.js → vcs-5r04pg3k.js} +339 -339
  68. package/dist/chunks/{models-dev-88dstv11.js → vcs-5x2cfpbf.js} +13 -13
  69. package/dist/chunks/{models-dev-dt3q8067.js → vcs-5ytf2jfy.js} +26 -26
  70. package/dist/chunks/vcs-619r8v3y.js +18 -0
  71. package/dist/chunks/{models-dev-3c5dzmp1.js → vcs-64c77ye3.js} +7 -7
  72. package/dist/chunks/{models-dev-46d9zvww.js → vcs-65sxefze.js} +23 -23
  73. package/dist/chunks/{models-dev-ac5jr05j.js → vcs-6thf5f3z.js} +19 -19
  74. package/dist/chunks/{models-dev-3qm04pf8.js → vcs-6tvzbcgz.js} +12 -12
  75. package/dist/chunks/{models-dev-6xb47vfp.js → vcs-6xb47vfp.js} +1 -1
  76. package/dist/chunks/{models-dev-bkf7z7kb.js → vcs-6ygjhr04.js} +13 -13
  77. package/dist/chunks/{models-dev-yna2vr6d.js → vcs-6z5a4wk8.js} +18 -18
  78. package/dist/chunks/{models-dev-tpwgg6qw.js → vcs-71zvy8dy.js} +21 -21
  79. package/dist/chunks/{models-dev-5xn1ykzt.js → vcs-782se3sb.js} +186 -186
  80. package/dist/chunks/{models-dev-7bmhse3q.js → vcs-7bmhse3q.js} +1 -1
  81. package/dist/chunks/{models-dev-09ya98b0.js → vcs-7d74ybtc.js} +32 -32
  82. package/dist/chunks/{models-dev-4c7zee8w.js → vcs-7q6ad26h.js} +2 -2
  83. package/dist/chunks/{models-dev-g94xapmr.js → vcs-866m1jdt.js} +6 -6
  84. package/dist/chunks/{models-dev-8m6m0r52.js → vcs-8m6m0r52.js} +1 -1
  85. package/dist/chunks/{models-dev-z8h0ybrz.js → vcs-8sfa5c6m.js} +33 -33
  86. package/dist/chunks/{models-dev-j09zfasm.js → vcs-91qna3x0.js} +3 -3
  87. package/dist/chunks/{models-dev-s3p4hev1.js → vcs-92wkekne.js} +36 -36
  88. package/dist/chunks/{models-dev-1p4v0rya.js → vcs-a1cxz87x.js} +16 -16
  89. package/dist/chunks/{models-dev-svzs2hbr.js → vcs-a3thhpmw.js} +13 -13
  90. package/dist/chunks/{models-dev-jjetjy4t.js → vcs-a628g5fs.js} +23 -23
  91. package/dist/chunks/{models-dev-wq3t9sx7.js → vcs-a8cswz11.js} +11 -11
  92. package/dist/chunks/{models-dev-0khhejdw.js → vcs-a8mkqgf2.js} +23 -23
  93. package/dist/chunks/{models-dev-kdfd6h8e.js → vcs-aeg5rtj6.js} +4 -4
  94. package/dist/chunks/{models-dev-0etcr0n7.js → vcs-agfqwhr2.js} +51 -51
  95. package/dist/chunks/{models-dev-02xfryf1.js → vcs-akvc9nd2.js} +10 -10
  96. package/dist/chunks/{models-dev-w9v533qn.js → vcs-avskyz6d.js} +22 -22
  97. package/dist/chunks/{models-dev-382cchr8.js → vcs-aw6heq8a.js} +26 -26
  98. package/dist/chunks/{models-dev-bt24bpkk.js → vcs-awc9wf28.js} +47 -47
  99. package/dist/chunks/{models-dev-qkttv2kq.js → vcs-b2qkenvk.js} +6 -6
  100. package/dist/chunks/{models-dev-scgrse2b.js → vcs-b3f8fkhc.js} +5 -5
  101. package/dist/chunks/{models-dev-jng9m6h9.js → vcs-b647d22a.js} +18 -18
  102. package/dist/chunks/{models-dev-99tthb6r.js → vcs-bm84a6ma.js} +10 -10
  103. package/dist/chunks/{models-dev-j4bm7a9s.js → vcs-bmbsb43g.js} +1 -1
  104. package/dist/chunks/{models-dev-qqaz4c32.js → vcs-bxg5dfge.js} +28 -28
  105. package/dist/chunks/{models-dev-rj3eygr5.js → vcs-c41wscbt.js} +2 -2
  106. package/dist/chunks/{models-dev-sa8ekw3f.js → vcs-c8ax2afj.js} +2 -2
  107. package/dist/chunks/{models-dev-cnj1sw1b.js → vcs-cam0371k.js} +33 -33
  108. package/dist/chunks/{models-dev-c3e7qbh0.js → vcs-ce5jyjev.js} +10 -10
  109. package/dist/chunks/{models-dev-ft3hqk2c.js → vcs-cpneeje0.js} +9 -9
  110. package/dist/chunks/{models-dev-jyfax2z2.js → vcs-ctt5zw2n.js} +24 -24
  111. package/dist/chunks/{models-dev-467kawmj.js → vcs-cwv6zy4y.js} +81 -81
  112. package/dist/chunks/{models-dev-4jfbys5e.js → vcs-d3z73vbv.js} +5 -5
  113. package/dist/chunks/{models-dev-3p374m05.js → vcs-dn1bgb5b.js} +20 -20
  114. package/dist/chunks/{models-dev-y71avatq.js → vcs-dpkg50ah.js} +4 -4
  115. package/dist/chunks/{models-dev-drwq78ky.js → vcs-drwq78ky.js} +1 -1
  116. package/dist/chunks/{models-dev-v7xdgyp2.js → vcs-dsn3a26r.js} +1 -1
  117. package/dist/chunks/{models-dev-gyn0cezk.js → vcs-dyfpa17v.js} +22 -22
  118. package/dist/chunks/{models-dev-4rqs6yce.js → vcs-e21ryx48.js} +8 -8
  119. package/dist/chunks/{models-dev-02a7j1yb.js → vcs-eaj1djv9.js} +8 -8
  120. package/dist/chunks/{models-dev-wntqe9zb.js → vcs-ecge003d.js} +22 -22
  121. package/dist/chunks/{models-dev-mgt8g71m.js → vcs-edmpqn45.js} +8 -8
  122. package/dist/chunks/{models-dev-ms93yq6r.js → vcs-eeaf82dq.js} +8 -8
  123. package/dist/chunks/{models-dev-eej6y6fw.js → vcs-eej6y6fw.js} +2 -2
  124. package/dist/chunks/{models-dev-ef5x83kb.js → vcs-ef5x83kb.js} +1 -1
  125. package/dist/chunks/{models-dev-nrnyx1y1.js → vcs-efhq09kz.js} +31 -31
  126. package/dist/chunks/{models-dev-2hjbjm0q.js → vcs-eqasdz4j.js} +18 -18
  127. package/dist/chunks/{models-dev-c1fqxshp.js → vcs-es1vcfrp.js} +3 -3
  128. package/dist/chunks/{models-dev-kvb2kdjn.js → vcs-es211df5.js} +20 -20
  129. package/dist/chunks/{models-dev-ybnef321.js → vcs-ez2bcpbz.js} +35 -35
  130. package/dist/chunks/{models-dev-cq0e7jrz.js → vcs-f29mbr7f.js} +4 -4
  131. package/dist/chunks/{models-dev-q0w2kfra.js → vcs-f768v67h.js} +47 -47
  132. package/dist/chunks/{models-dev-4pt1mcxg.js → vcs-fc0t6a5f.js} +17 -17
  133. package/dist/chunks/{models-dev-qgn6gcr1.js → vcs-fcrkznn8.js} +5 -5
  134. package/dist/chunks/{models-dev-zwq605bm.js → vcs-fdj20w9a.js} +25 -25
  135. package/dist/chunks/{models-dev-5tzkd1fy.js → vcs-fpp2shsw.js} +6 -6
  136. package/dist/chunks/{models-dev-29pqcjbj.js → vcs-fr6g643d.js} +4 -4
  137. package/dist/chunks/{models-dev-ckv3nb2m.js → vcs-fw9wgxqa.js} +32 -32
  138. package/dist/chunks/{models-dev-fxaymqdw.js → vcs-fxaymqdw.js} +1 -1
  139. package/dist/chunks/{models-dev-yjn235g6.js → vcs-fyaym6e6.js} +4 -4
  140. package/dist/chunks/{models-dev-5xtgfte3.js → vcs-g0445xdp.js} +6 -6
  141. package/dist/chunks/{models-dev-gd4qta3r.js → vcs-gd4qta3r.js} +1 -1
  142. package/dist/chunks/{models-dev-ryh0a1m0.js → vcs-ge2qvn92.js} +9 -9
  143. package/dist/chunks/{models-dev-jmzfr6ct.js → vcs-gh6yskk8.js} +17 -17
  144. package/dist/chunks/{models-dev-yd4bzqjj.js → vcs-gm31ynds.js} +5 -5
  145. package/dist/chunks/{models-dev-1664kews.js → vcs-gqads2ya.js} +6 -6
  146. package/dist/chunks/{models-dev-69zjn7v3.js → vcs-gvxrta76.js} +36 -36
  147. package/dist/chunks/{models-dev-8qwzp8zc.js → vcs-gxebhbq7.js} +4 -4
  148. package/dist/chunks/{models-dev-5jbjx4bj.js → vcs-h1fz3f88.js} +9 -9
  149. package/dist/chunks/{models-dev-h6vf3j39.js → vcs-h6vf3j39.js} +1 -1
  150. package/dist/chunks/vcs-harb8jx2.js +26 -0
  151. package/dist/chunks/{models-dev-d1mtykxg.js → vcs-hdab2k61.js} +6 -6
  152. package/dist/chunks/{models-dev-9c8kpmyc.js → vcs-hdm35yc0.js} +19 -19
  153. package/dist/chunks/{models-dev-m59ddcfm.js → vcs-henbqntn.js} +39 -39
  154. package/dist/chunks/{models-dev-hgz4x7wa.js → vcs-hgz4x7wa.js} +1 -1
  155. package/dist/chunks/{models-dev-r2c671yp.js → vcs-hz3mdpwn.js} +37 -37
  156. package/dist/chunks/{models-dev-4pgzjgba.js → vcs-j209qe7h.js} +26 -26
  157. package/dist/chunks/{models-dev-j56e64zr.js → vcs-j56e64zr.js} +1 -1
  158. package/dist/chunks/{models-dev-e1qyvkcg.js → vcs-j6p31266.js} +11 -11
  159. package/dist/chunks/{models-dev-6cqe4hkt.js → vcs-j8xej44d.js} +17 -17
  160. package/dist/chunks/{models-dev-92dfjjnn.js → vcs-jbsbkydh.js} +32 -32
  161. package/dist/chunks/{models-dev-yhqse85r.js → vcs-jfkgqr1h.js} +18 -18
  162. package/dist/chunks/{models-dev-bs84j8rj.js → vcs-jh1606gc.js} +35 -35
  163. package/dist/chunks/{models-dev-ev7n2kes.js → vcs-jty2b48d.js} +9 -9
  164. package/dist/chunks/{models-dev-m4rz64sx.js → vcs-k08pfc51.js} +16 -16
  165. package/dist/chunks/{models-dev-x661k3y3.js → vcs-k22b66k8.js} +4 -4
  166. package/dist/chunks/{models-dev-ydw9zp1w.js → vcs-k638bx1v.js} +43 -43
  167. package/dist/chunks/{models-dev-d51195b0.js → vcs-kad49353.js} +14 -14
  168. package/dist/chunks/{models-dev-aegaywqw.js → vcs-kfk5k4be.js} +10 -10
  169. package/dist/chunks/{models-dev-yqrbgmyt.js → vcs-knmerc28.js} +10 -10
  170. package/dist/chunks/{models-dev-hbe1c2zn.js → vcs-kz2ak9g2.js} +23 -23
  171. package/dist/chunks/{models-dev-m9w0rfyh.js → vcs-m9w0rfyh.js} +1 -1
  172. package/dist/chunks/{models-dev-kmx2hz6k.js → vcs-maqbn5g5.js} +15 -15
  173. package/dist/chunks/{models-dev-maspj1v3.js → vcs-maspj1v3.js} +1 -1
  174. package/dist/chunks/{models-dev-fpmctw84.js → vcs-mf9ta1xn.js} +8 -8
  175. package/dist/chunks/{models-dev-0sy5jk4t.js → vcs-mp53wpqx.js} +22 -22
  176. package/dist/chunks/{models-dev-kj4d1zd2.js → vcs-mq1zhn59.js} +12 -12
  177. package/dist/chunks/{models-dev-vmq3jh3w.js → vcs-n9vc7x7y.js} +18 -18
  178. package/dist/chunks/{models-dev-bhad103s.js → vcs-ng6agez8.js} +11 -11
  179. package/dist/chunks/{models-dev-e80seqcp.js → vcs-nma959mg.js} +3 -3
  180. package/dist/chunks/{models-dev-0a1rye92.js → vcs-nsj070s2.js} +24 -24
  181. package/dist/chunks/{models-dev-t1324xhj.js → vcs-nx5rhv7m.js} +24 -24
  182. package/dist/chunks/{models-dev-c9fap7hq.js → vcs-p586dcm5.js} +25 -25
  183. package/dist/chunks/{models-dev-3gvw7rj8.js → vcs-p77ajynp.js} +24 -24
  184. package/dist/chunks/{models-dev-8ebgmdnj.js → vcs-p8bkgt52.js} +13 -13
  185. package/dist/chunks/{models-dev-5h7vwmhz.js → vcs-pcwsepp3.js} +35 -35
  186. package/dist/chunks/{models-dev-kq6zdgch.js → vcs-pghcygtd.js} +5 -5
  187. package/dist/chunks/{models-dev-rypkwkwq.js → vcs-pgqm3tqp.js} +9 -9
  188. package/dist/chunks/{models-dev-pjvnvgmy.js → vcs-pjvnvgmy.js} +1 -1
  189. package/dist/chunks/{models-dev-pknna89w.js → vcs-pknna89w.js} +1 -1
  190. package/dist/chunks/{models-dev-57v25951.js → vcs-pnnjh0kq.js} +1 -1
  191. package/dist/chunks/{models-dev-mtqq3hfy.js → vcs-prksa11n.js} +20 -20
  192. package/dist/chunks/{models-dev-hsjabct9.js → vcs-pyg4v0b6.js} +4 -4
  193. package/dist/chunks/{models-dev-0j77ygfz.js → vcs-q0xm7vwc.js} +6 -6
  194. package/dist/chunks/{models-dev-gcx85esw.js → vcs-q5e7cmwt.js} +1 -1
  195. package/dist/chunks/{models-dev-32k2pbd5.js → vcs-qa6sv8f2.js} +19 -19
  196. package/dist/chunks/{models-dev-5n9bvvdj.js → vcs-qa7z0hws.js} +33 -33
  197. package/dist/chunks/{models-dev-q0kg8399.js → vcs-qccr93cs.js} +13 -13
  198. package/dist/chunks/{models-dev-rdp2zrnb.js → vcs-qgsaj67g.js} +45 -45
  199. package/dist/chunks/{models-dev-ycxxqv5k.js → vcs-qj1kn97d.js} +5 -5
  200. package/dist/chunks/{models-dev-qnc92qwc.js → vcs-qnc92qwc.js} +1 -1
  201. package/dist/chunks/{models-dev-886mzzjn.js → vcs-qqtwe9jw.js} +8 -8
  202. package/dist/chunks/{models-dev-qsdy395h.js → vcs-qsdy395h.js} +1 -1
  203. package/dist/chunks/{models-dev-7m2fqqgt.js → vcs-qwryyce5.js} +76 -76
  204. package/dist/chunks/{models-dev-mjqwzk7n.js → vcs-r7s26dny.js} +10 -10
  205. package/dist/chunks/{models-dev-q6h8xyyf.js → vcs-r8xabzzd.js} +18 -18
  206. package/dist/chunks/{models-dev-54ma36ye.js → vcs-r94pvvab.js} +4 -4
  207. package/dist/chunks/{models-dev-jyh28qe0.js → vcs-rcq240yq.js} +34 -34
  208. package/dist/chunks/{models-dev-rdw6cm16.js → vcs-rdw6cm16.js} +1 -1
  209. package/dist/chunks/{models-dev-rkprpv83.js → vcs-rkprpv83.js} +2 -2
  210. package/dist/chunks/{models-dev-4z3mx211.js → vcs-rmrf6f1s.js} +11 -11
  211. package/dist/chunks/{models-dev-a4v7cagr.js → vcs-rp6acqjd.js} +12 -12
  212. package/dist/chunks/{models-dev-knsa8f7j.js → vcs-rrvsk7kb.js} +8 -8
  213. package/dist/chunks/{models-dev-tkmwgdpd.js → vcs-ryr25ayn.js} +7 -7
  214. package/dist/chunks/{models-dev-qkx97xt7.js → vcs-s0fdspgh.js} +27 -27
  215. package/dist/chunks/{models-dev-51wasa6w.js → vcs-s15m782p.js} +7 -7
  216. package/dist/chunks/{models-dev-ph842b28.js → vcs-s26hbv8p.js} +4 -4
  217. package/dist/chunks/{models-dev-7ca2c6y4.js → vcs-s3qakcq2.js} +27 -27
  218. package/dist/chunks/{models-dev-hkaqgv9y.js → vcs-s4eaajd5.js} +12 -12
  219. package/dist/chunks/{models-dev-j0thgm95.js → vcs-shrk45xr.js} +35 -35
  220. package/dist/chunks/{models-dev-g8tk2qkc.js → vcs-sjkqkpav.js} +11 -11
  221. package/dist/chunks/{models-dev-0mzv8h3q.js → vcs-sq7c9q36.js} +19 -19
  222. package/dist/chunks/{models-dev-ypx73geg.js → vcs-sqmzwr9m.js} +9 -9
  223. package/dist/chunks/{models-dev-k4f7zm4r.js → vcs-sw98rjn3.js} +96 -96
  224. package/dist/chunks/{models-dev-syv4x271.js → vcs-syv4x271.js} +1 -1
  225. package/dist/chunks/{models-dev-czkpeb0p.js → vcs-t7c85dgn.js} +27 -27
  226. package/dist/chunks/{models-dev-tazgh4e4.js → vcs-tazgh4e4.js} +1 -1
  227. package/dist/chunks/{models-dev-89znhe33.js → vcs-tcezcvh9.js} +4 -4
  228. package/dist/chunks/{models-dev-tdstcens.js → vcs-tdstcens.js} +1 -1
  229. package/dist/chunks/{models-dev-jym709mx.js → vcs-tenqbnmp.js} +17 -17
  230. package/dist/chunks/{models-dev-8f2as6r6.js → vcs-tfw4wa1p.js} +9 -9
  231. package/dist/chunks/{models-dev-v0es1rhs.js → vcs-tg7bkhef.js} +7 -7
  232. package/dist/chunks/{models-dev-rert0e01.js → vcs-tkb22qbm.js} +2 -2
  233. package/dist/chunks/{models-dev-tm0kqsz3.js → vcs-tm0kqsz3.js} +1 -1
  234. package/dist/chunks/{models-dev-20gwpwx7.js → vcs-tr54p1dw.js} +5 -5
  235. package/dist/chunks/{models-dev-0v9exxnw.js → vcs-tswf4nyy.js} +30 -30
  236. package/dist/chunks/{models-dev-vvar6fgm.js → vcs-tvxpzwpn.js} +6 -6
  237. package/dist/chunks/{models-dev-21w4c8ct.js → vcs-twa74zd6.js} +24 -24
  238. package/dist/chunks/{models-dev-045nn9pc.js → vcs-txm3e8qz.js} +9 -9
  239. package/dist/chunks/{models-dev-tyytaxap.js → vcs-tyytaxap.js} +1 -1
  240. package/dist/chunks/{models-dev-2zmc9g4q.js → vcs-v3x4kj38.js} +25 -25
  241. package/dist/chunks/{models-dev-v7p4zvkq.js → vcs-v7p4zvkq.js} +2 -2
  242. package/dist/chunks/{models-dev-e5x4shnv.js → vcs-vac5g51f.js} +7 -7
  243. package/dist/chunks/{models-dev-nk5d3wwn.js → vcs-vej3xsr7.js} +3 -3
  244. package/dist/chunks/{models-dev-veqvce7d.js → vcs-veqvce7d.js} +1 -1
  245. package/dist/chunks/{models-dev-44ak30pa.js → vcs-vfjhn2wd.js} +4 -4
  246. package/dist/chunks/{models-dev-rjgv6zv8.js → vcs-vg6da4m0.js} +7 -7
  247. package/dist/chunks/{models-dev-wg0ncn2a.js → vcs-vpsr7n6v.js} +19 -19
  248. package/dist/chunks/{models-dev-ed2gf1xw.js → vcs-vrw3gsr4.js} +24 -24
  249. package/dist/chunks/{models-dev-22hda3w5.js → vcs-vywzeekt.js} +18 -18
  250. package/dist/chunks/{models-dev-vzs5sf6e.js → vcs-vzs5sf6e.js} +1 -1
  251. package/dist/chunks/{models-dev-w1eejvng.js → vcs-w1eejvng.js} +1 -1
  252. package/dist/chunks/{models-dev-xwenbvep.js → vcs-w2tmhhwy.js} +15 -15
  253. package/dist/chunks/{models-dev-w3wsvvr9.js → vcs-w3wsvvr9.js} +1 -1
  254. package/dist/chunks/{models-dev-m2k7ask4.js → vcs-w9dpv18m.js} +33 -33
  255. package/dist/chunks/{models-dev-wd87259q.js → vcs-wd87259q.js} +1 -1
  256. package/dist/chunks/{models-dev-edhc1jgp.js → vcs-wedh7s5e.js} +14 -14
  257. package/dist/chunks/{models-dev-7xzfe72n.js → vcs-wjrz22kk.js} +3 -3
  258. package/dist/chunks/{models-dev-xc1d4vrn.js → vcs-wtfnvg2q.js} +11 -11
  259. package/dist/chunks/{models-dev-b8xrvnvm.js → vcs-wvh0hgrq.js} +11 -11
  260. package/dist/chunks/{models-dev-2pjadknn.js → vcs-wyxbt0gx.js} +20 -20
  261. package/dist/chunks/{models-dev-10x3fwqm.js → vcs-x25y7vnj.js} +5 -5
  262. package/dist/chunks/{models-dev-vhac2bjs.js → vcs-xgczhdrs.js} +5 -5
  263. package/dist/chunks/{models-dev-v3b3kks5.js → vcs-xtzay8t5.js} +1 -1
  264. package/dist/chunks/{models-dev-3a55g1p6.js → vcs-y1by9cg9.js} +5 -5
  265. package/dist/chunks/{models-dev-y1fvbwt7.js → vcs-y1fvbwt7.js} +1 -1
  266. package/dist/chunks/{models-dev-at4e57ft.js → vcs-y7g091qg.js} +14 -14
  267. package/dist/chunks/{models-dev-3mxs1m5f.js → vcs-ybzp76zr.js} +25 -25
  268. package/dist/chunks/{models-dev-t6zjq1qk.js → vcs-yc1h17zv.js} +11 -11
  269. package/dist/chunks/{models-dev-2fqna6rb.js → vcs-yegmnrcf.js} +11 -11
  270. package/dist/chunks/{models-dev-gj71zhbs.js → vcs-ygdna4kr.js} +5 -5
  271. package/dist/chunks/vcs-yk6ehcpt.js +253 -0
  272. package/dist/chunks/{models-dev-f2n192rq.js → vcs-yp2x3t23.js} +4 -4
  273. package/dist/chunks/{models-dev-z0bkrqjs.js → vcs-z0bkrqjs.js} +1 -1
  274. package/dist/chunks/{models-dev-axp4ehpq.js → vcs-z2qvtray.js} +6 -6
  275. package/dist/chunks/{models-dev-4s4a0pfs.js → vcs-z4p0v79k.js} +5 -5
  276. package/dist/chunks/{models-dev-wk5z6jzv.js → vcs-z4ztj7g0.js} +8 -8
  277. package/dist/chunks/{models-dev-3gaq1q4y.js → vcs-z7xgjgz1.js} +11 -11
  278. package/dist/chunks/{models-dev-ddt2bs9e.js → vcs-zav06jzw.js} +4 -4
  279. package/dist/chunks/{models-dev-esps6wgd.js → vcs-zds3bn5a.js} +29 -29
  280. package/dist/chunks/{models-dev-arp3khe5.js → vcs-zjq775dv.js} +13 -13
  281. package/dist/chunks/{models-dev-2egesr2p.js → vcs-znjvq2a2.js} +40 -40
  282. package/dist/chunks/{models-dev-zr2ceqn5.js → vcs-zr2ceqn5.js} +1 -1
  283. package/dist/chunks/{models-dev-zxq2ej10.js → vcs-zxq2ej10.js} +1 -1
  284. package/dist/chunks/{models-dev-e1v7z07n.js → vcs-zxspgnte.js} +15 -15
  285. package/dist/codemode/catalog.js +1 -1
  286. package/dist/codemode/instructions.js +7 -7
  287. package/dist/codemode/tool.js +3 -3
  288. package/dist/codemode/web.js +1 -1
  289. package/dist/command.js +87 -87
  290. package/dist/config/discovery.js +86 -86
  291. package/dist/config/markdown.js +1 -1
  292. package/dist/config/normalize.js +101 -101
  293. package/dist/config/plugin/agent.js +118 -118
  294. package/dist/config/plugin/command.js +207 -207
  295. package/dist/config/plugin/compaction.js +156 -156
  296. package/dist/config/plugin/compatibility.js +136 -136
  297. package/dist/config/plugin/entry-observer.js +1 -1
  298. package/dist/config/plugin/formatter.js +119 -119
  299. package/dist/config/plugin/image.js +118 -118
  300. package/dist/config/plugin/instruction.js +92 -92
  301. package/dist/config/plugin/location-watcher.js +120 -120
  302. package/dist/config/plugin/mcp.js +125 -125
  303. package/dist/config/plugin/policy.js +119 -119
  304. package/dist/config/plugin/provider.js +118 -118
  305. package/dist/config/plugin/reference.js +120 -120
  306. package/dist/config/plugin/shell.js +118 -118
  307. package/dist/config/plugin/skill-file.js +104 -104
  308. package/dist/config/plugin/skill.js +137 -137
  309. package/dist/config/plugin/snapshot.js +118 -118
  310. package/dist/config/plugin/source.js +121 -121
  311. package/dist/config/plugin/tool-output.js +119 -119
  312. package/dist/config/plugin/websearch.js +117 -117
  313. package/dist/config/plugin/worktree.js +120 -120
  314. package/dist/config/variable.js +3 -3
  315. package/dist/config/watch.js +1 -1
  316. package/dist/config.js +123 -123
  317. package/dist/credential/sql.js +2 -2
  318. package/dist/credential.js +87 -87
  319. package/dist/database/database.js +74 -74
  320. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  321. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  322. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  323. package/dist/database/drizzle/index.js +15 -15
  324. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  325. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  326. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  327. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  328. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  329. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  330. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  331. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  332. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  333. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  334. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  335. package/dist/database/drizzle.js +16 -16
  336. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  337. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  338. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  339. package/dist/database/migration/20260225215848_workspace.js +1 -1
  340. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  341. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  342. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  343. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  344. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  345. package/dist/database/migration/20260323234822_events.js +1 -1
  346. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  347. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  348. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  349. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  350. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  351. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  352. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  353. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  354. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  355. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  356. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  357. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  358. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  359. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  360. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  361. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  362. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  363. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  364. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  365. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  366. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  367. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  368. package/dist/database/migration/20260611035744_credential.js +1 -1
  369. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  370. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  371. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  372. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  373. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  374. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  375. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  376. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  377. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  378. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  379. package/dist/database/migration/20260812213948_worktree.js +1 -1
  380. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  381. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  382. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  383. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  384. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  385. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  386. package/dist/database/migration.gen.js +51 -51
  387. package/dist/database/migration.js +53 -53
  388. package/dist/database/path.js +2 -2
  389. package/dist/database/schema.gen.js +1 -1
  390. package/dist/database/schema.sql.js +1 -1
  391. package/dist/database/sqlite.bun.js +1 -1
  392. package/dist/database/sqlite.js +1 -1
  393. package/dist/database/sqlite.node.js +1 -1
  394. package/dist/database/sqlite.workerd.js +1 -1
  395. package/dist/database/v1-migration.bun.js +81 -81
  396. package/dist/database/v1-migration.js +1 -1
  397. package/dist/effect/app-node-builder.js +367 -367
  398. package/dist/effect/app-node-platform.js +2 -2
  399. package/dist/effect/keyed-mutex.js +3 -3
  400. package/dist/effect/websocket-constructor.js +1 -1
  401. package/dist/environment/driver.js +1 -1
  402. package/dist/environment/environment.js +95 -95
  403. package/dist/environment/exec-defaults.js +2 -2
  404. package/dist/environment/files.js +1 -1
  405. package/dist/environment/index.js +97 -97
  406. package/dist/environment/local.js +2 -2
  407. package/dist/environment/memory.js +2 -2
  408. package/dist/environment/unavailable.js +1 -1
  409. package/dist/event/sql.js +1 -1
  410. package/dist/event-logger.js +76 -76
  411. package/dist/file-access.js +106 -106
  412. package/dist/file-mutation.js +96 -96
  413. package/dist/file-retention.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/location-watcher-policy.js +6 -6
  419. package/dist/filesystem/location-watcher.js +222 -222
  420. package/dist/filesystem/protected.js +3 -3
  421. package/dist/filesystem/search.js +105 -105
  422. package/dist/filesystem/watcher-binding.js +3 -3
  423. package/dist/filesystem/watcher.js +15 -15
  424. package/dist/filesystem.js +108 -108
  425. package/dist/form.js +88 -88
  426. package/dist/formatter/builtins.js +4 -4
  427. package/dist/formatter.js +89 -89
  428. package/dist/generate.js +105 -105
  429. package/dist/git.js +10 -10
  430. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  431. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  432. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  433. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  434. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  435. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  436. package/dist/github-copilot/copilot-provider.js +17 -17
  437. package/dist/github-copilot/models.js +93 -93
  438. package/dist/github-copilot/openai-compatible-error.js +1 -1
  439. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  440. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  441. package/dist/github-copilot/responses/openai-error.js +1 -1
  442. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  443. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  444. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  445. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  446. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  447. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  448. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  449. package/dist/image/photon.js +2 -2
  450. package/dist/image.js +6 -6
  451. package/dist/instance/service.js +5 -5
  452. package/dist/instance.js +359 -359
  453. package/dist/instruction-discovery.js +87 -87
  454. package/dist/instructions/builtins.js +89 -89
  455. package/dist/instructions/index.js +5 -5
  456. package/dist/integration/connection.js +3 -3
  457. package/dist/integration.js +89 -89
  458. package/dist/job.js +80 -80
  459. package/dist/kv/sql.js +2 -2
  460. package/dist/kv.js +75 -75
  461. package/dist/location-activity.js +136 -136
  462. package/dist/location-lifecycle.js +109 -109
  463. package/dist/location-service-map.js +88 -88
  464. package/dist/location-services.js +356 -356
  465. package/dist/location.js +89 -89
  466. package/dist/managed-policy.js +8 -8
  467. package/dist/mcp/client.js +93 -93
  468. package/dist/mcp/index.js +111 -111
  469. package/dist/mcp/instructions.js +131 -131
  470. package/dist/mcp/oauth.js +80 -80
  471. package/dist/mcp/stdio.js +92 -92
  472. package/dist/mime.js +1 -1
  473. package/dist/modal/models.js +93 -93
  474. package/dist/model-resolver.js +100 -100
  475. package/dist/model.js +102 -102
  476. package/dist/models-dev.js +109 -109
  477. package/dist/oauth/page.js +1 -1
  478. package/dist/permission/saved.js +82 -82
  479. package/dist/permission/sql.js +5 -5
  480. package/dist/permission.js +119 -119
  481. package/dist/persistent-pty/binary.bun.js +1 -1
  482. package/dist/persistent-pty/daemon.js +1 -1
  483. package/dist/persistent-pty/index.js +88 -88
  484. package/dist/persistent-pty/pty-binding.js +1 -1
  485. package/dist/persistent-pty.js +77 -77
  486. package/dist/plugin/agent.js +76 -76
  487. package/dist/plugin/command.js +102 -102
  488. package/dist/plugin/hooks.js +5 -5
  489. package/dist/plugin/host.js +213 -213
  490. package/dist/plugin/identity.js +3 -3
  491. package/dist/plugin/instance.js +3 -3
  492. package/dist/plugin/internal.js +331 -331
  493. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  494. package/dist/plugin/models-dev.js +98 -98
  495. package/dist/plugin/module.js +119 -119
  496. package/dist/plugin/optimize.js +2 -2
  497. package/dist/plugin/plan.js +104 -104
  498. package/dist/plugin/promise.js +1 -1
  499. package/dist/plugin/provider/amazon-bedrock.js +92 -92
  500. package/dist/plugin/provider/azure.js +118 -118
  501. package/dist/plugin/provider/cerebras.js +1 -1
  502. package/dist/plugin/provider/chatgpt.js +118 -118
  503. package/dist/plugin/provider/cloudflare-ai-gateway.js +115 -115
  504. package/dist/plugin/provider/cloudflare-workers-ai.js +116 -116
  505. package/dist/plugin/provider/cohere.js +2 -2
  506. package/dist/plugin/provider/configured.js +114 -114
  507. package/dist/plugin/provider/databricks.js +1 -1
  508. package/dist/plugin/provider/digitalocean.js +95 -95
  509. package/dist/plugin/provider/dynamic.js +2 -2
  510. package/dist/plugin/provider/factory.js +1 -1
  511. package/dist/plugin/provider/github-copilot.js +97 -97
  512. package/dist/plugin/provider/gitlab.js +95 -95
  513. package/dist/plugin/provider/google-vertex.js +115 -115
  514. package/dist/plugin/provider/kilo.js +1 -1
  515. package/dist/plugin/provider/llmgateway.js +80 -80
  516. package/dist/plugin/provider/lmstudio.js +125 -125
  517. package/dist/plugin/provider/local.js +124 -124
  518. package/dist/plugin/provider/modal.js +94 -94
  519. package/dist/plugin/provider/neon.js +1 -1
  520. package/dist/plugin/provider/nvidia.js +1 -1
  521. package/dist/plugin/provider/ollama.js +127 -127
  522. package/dist/plugin/provider/openai.js +118 -118
  523. package/dist/plugin/provider/opencode.js +99 -99
  524. package/dist/plugin/provider/openrouter.js +93 -93
  525. package/dist/plugin/provider/perplexity.js +2 -2
  526. package/dist/plugin/provider/poe.js +81 -81
  527. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  528. package/dist/plugin/provider/sap-ai-core.js +93 -93
  529. package/dist/plugin/provider/sdk-factory.js +1 -1
  530. package/dist/plugin/provider/snowflake-cortex.js +117 -117
  531. package/dist/plugin/provider/vercel.js +92 -92
  532. package/dist/plugin/provider/vllm.js +125 -125
  533. package/dist/plugin/provider/xai.js +93 -93
  534. package/dist/plugin/provider/zenmux.js +1 -1
  535. package/dist/plugin/provider.js +169 -169
  536. package/dist/plugin/sdk.js +76 -76
  537. package/dist/plugin/service.js +3 -3
  538. package/dist/plugin/skill.js +136 -136
  539. package/dist/plugin/source-directory.js +1 -1
  540. package/dist/plugin/supervisor.js +350 -350
  541. package/dist/plugin/tool-input-repair.js +4 -4
  542. package/dist/plugin/update.js +4 -4
  543. package/dist/plugin/vcs/git.js +88 -88
  544. package/dist/plugin/vcs/hg.js +88 -88
  545. package/dist/plugin/verbosity.js +95 -95
  546. package/dist/plugin/warming.js +116 -116
  547. package/dist/plugin/websearch/exa.js +7 -7
  548. package/dist/plugin/websearch/firecrawl.js +6 -6
  549. package/dist/plugin/websearch/index.js +9 -9
  550. package/dist/plugin/websearch/mcp.js +4 -4
  551. package/dist/plugin/websearch/parallel.js +6 -6
  552. package/dist/plugin/websearch/tavily.js +4 -4
  553. package/dist/plugin/websearch/tinyfish.js +8 -8
  554. package/dist/plugin.js +224 -224
  555. package/dist/project/schema.js +6 -6
  556. package/dist/project/sql.js +4 -4
  557. package/dist/project.js +88 -88
  558. package/dist/provider.js +103 -103
  559. package/dist/pty/protocol.js +1 -1
  560. package/dist/pty/ticket.js +1 -1
  561. package/dist/pty.js +101 -101
  562. package/dist/reference/instructions.js +91 -91
  563. package/dist/reference.js +91 -91
  564. package/dist/repository-cache.js +83 -83
  565. package/dist/repository.js +1 -1
  566. package/dist/ripgrep/binary.js +2 -2
  567. package/dist/ripgrep.js +99 -99
  568. package/dist/rpc.js +88 -88
  569. package/dist/schema.js +1 -1
  570. package/dist/session/affinity.js +3 -3
  571. package/dist/session/command.js +76 -76
  572. package/dist/session/compaction.js +135 -135
  573. package/dist/session/context.js +153 -153
  574. package/dist/session/diff.js +90 -90
  575. package/dist/session/environment.js +5 -5
  576. package/dist/session/error.js +7 -7
  577. package/dist/session/event.js +1 -1
  578. package/dist/session/execution/restart.js +219 -219
  579. package/dist/session/execution.js +129 -129
  580. package/dist/session/generate.js +156 -156
  581. package/dist/session/history.js +15 -15
  582. package/dist/session/inbox.js +90 -90
  583. package/dist/session/info.js +3 -3
  584. package/dist/session/instruction-entry.js +79 -79
  585. package/dist/session/instruction-state.js +8 -8
  586. package/dist/session/instructions.js +99 -99
  587. package/dist/session/message-updater.js +4 -4
  588. package/dist/session/message.js +1 -1
  589. package/dist/session/model-request.js +122 -122
  590. package/dist/session/model-transport.js +9 -9
  591. package/dist/session/move.js +131 -131
  592. package/dist/session/projector.js +88 -88
  593. package/dist/session/prompt.js +107 -107
  594. package/dist/session/provider-context.js +3 -3
  595. package/dist/session/revert.js +92 -92
  596. package/dist/session/run-coordinator.js +3 -3
  597. package/dist/session/runner/index.js +3 -3
  598. package/dist/session/runner/llm.js +226 -226
  599. package/dist/session/runner/max-steps.js +1 -1
  600. package/dist/session/runner/model.js +100 -100
  601. package/dist/session/runner/publish-llm-event.js +115 -115
  602. package/dist/session/runner/retry.js +4 -4
  603. package/dist/session/runner/step.js +127 -127
  604. package/dist/session/runner/to-llm-message.js +2 -2
  605. package/dist/session/schema.js +5 -5
  606. package/dist/session/session.js +164 -164
  607. package/dist/session/shell.js +132 -132
  608. package/dist/session/skill.js +107 -107
  609. package/dist/session/sql.js +5 -5
  610. package/dist/session/stats.js +77 -77
  611. package/dist/session/store.js +89 -89
  612. package/dist/session/subagent-completion.js +1 -1
  613. package/dist/session/subagent-job.js +207 -207
  614. package/dist/session/system-prompt.js +1 -1
  615. package/dist/session/title.js +159 -159
  616. package/dist/session/to-session-error.js +113 -113
  617. package/dist/session/transfer.js +218 -218
  618. package/dist/session/usage.js +1 -1
  619. package/dist/session.js +213 -213
  620. package/dist/shell/parse.js +6 -6
  621. package/dist/shell/result.js +1 -1
  622. package/dist/shell/scan.js +1 -1
  623. package/dist/shell/select.js +13 -13
  624. package/dist/shell.js +134 -134
  625. package/dist/skill/discovery.js +4 -4
  626. package/dist/skill/instructions.js +109 -109
  627. package/dist/skill.js +112 -112
  628. package/dist/snapshot.js +95 -95
  629. package/dist/state.js +1 -1
  630. package/dist/tool/html-markdown.js +1 -1
  631. package/dist/tool/http-body.js +1 -1
  632. package/dist/tool/mcp.js +124 -124
  633. package/dist/tool/plugin/edit.js +122 -122
  634. package/dist/tool/plugin/file-diff.js +1 -1
  635. package/dist/tool/plugin/glob.js +126 -126
  636. package/dist/tool/plugin/grep.js +118 -118
  637. package/dist/tool/plugin/mcp-resource.js +119 -119
  638. package/dist/tool/plugin/opencode.js +111 -111
  639. package/dist/tool/plugin/patch.js +122 -122
  640. package/dist/tool/plugin/question.js +103 -103
  641. package/dist/tool/plugin/read.js +127 -127
  642. package/dist/tool/plugin/shell.js +210 -210
  643. package/dist/tool/plugin/skill.js +115 -115
  644. package/dist/tool/plugin/subagent.js +214 -214
  645. package/dist/tool/plugin/webfetch.js +114 -114
  646. package/dist/tool/plugin/websearch.js +112 -112
  647. package/dist/tool/plugin/write.js +124 -124
  648. package/dist/tool/read-filesystem.js +102 -102
  649. package/dist/tool/runtime.js +1 -1
  650. package/dist/tool-output.js +7 -7
  651. package/dist/tool.js +16 -16
  652. package/dist/util/error-summary.js +1 -1
  653. package/dist/util/error.js +1 -1
  654. package/dist/util/git-executable.js +2 -2
  655. package/dist/util/iife.js +1 -1
  656. package/dist/util/lazy.js +1 -1
  657. package/dist/util/slug.js +1 -1
  658. package/dist/util/token.js +1 -1
  659. package/dist/util/which.js +1 -1
  660. package/dist/util/wildcard.js +1 -1
  661. package/dist/v1/config/agent.js +5 -5
  662. package/dist/v1/config/command.js +5 -5
  663. package/dist/v1/config/error.js +4 -4
  664. package/dist/v1/config/mcp.js +4 -4
  665. package/dist/v1/config/migrate.js +94 -94
  666. package/dist/v1/config/permission.js +7 -7
  667. package/dist/v1/config/plugin.js +3 -3
  668. package/dist/v1/config/provider-options.js +1 -1
  669. package/dist/v1/config/provider.js +4 -4
  670. package/dist/variant.js +95 -95
  671. package/dist/vcs/patch.js +1 -1
  672. package/dist/vcs.js +91 -91
  673. package/dist/websearch.js +84 -84
  674. package/dist/wellknown/plugin.js +78 -78
  675. package/dist/wellknown.js +83 -83
  676. package/dist/workspace/driver.js +5 -5
  677. package/dist/workspace/sql.js +1 -1
  678. package/dist/workspace.js +84 -84
  679. package/dist/worktree/directory.js +2 -2
  680. package/dist/worktree/git.js +10 -10
  681. package/dist/worktree/sql.js +5 -5
  682. package/dist/worktree/strategies.js +91 -91
  683. package/dist/worktree.js +100 -100
  684. package/package.json +8 -8
  685. package/dist/chunks/models-dev-1x5yxq0t.js +0 -26
  686. package/dist/chunks/models-dev-q509s3k3.js +0 -18
  687. package/dist/chunks/models-dev-rntxp1zy.js +0 -253
  688. /package/dist/chunks/{models-dev-0qkdqm5v.js → vcs-0qkdqm5v.js} +0 -0
  689. /package/dist/chunks/{models-dev-0zkw76rk.js → vcs-0zkw76rk.js} +0 -0
  690. /package/dist/chunks/{models-dev-17cy0kzp.js → vcs-17cy0kzp.js} +0 -0
  691. /package/dist/chunks/{models-dev-1cnp2v09.js → vcs-1cnp2v09.js} +0 -0
  692. /package/dist/chunks/{models-dev-1kg9ymc8.js → vcs-1kg9ymc8.js} +0 -0
  693. /package/dist/chunks/{models-dev-24dcb14g.js → vcs-24dcb14g.js} +0 -0
  694. /package/dist/chunks/{models-dev-2710q6r3.js → vcs-2710q6r3.js} +0 -0
  695. /package/dist/chunks/{models-dev-2axfhc9x.js → vcs-2axfhc9x.js} +0 -0
  696. /package/dist/chunks/{models-dev-2bv980vf.js → vcs-2bv980vf.js} +0 -0
  697. /package/dist/chunks/{models-dev-2c3vjs8z.js → vcs-2c3vjs8z.js} +0 -0
  698. /package/dist/chunks/{models-dev-359p4xyc.js → vcs-359p4xyc.js} +0 -0
  699. /package/dist/chunks/{models-dev-3asan66x.js → vcs-3asan66x.js} +0 -0
  700. /package/dist/chunks/{models-dev-3t0ybcrp.js → vcs-3t0ybcrp.js} +0 -0
  701. /package/dist/chunks/{models-dev-3v8g72cx.js → vcs-3v8g72cx.js} +0 -0
  702. /package/dist/chunks/{models-dev-3wcehsnq.js → vcs-3wcehsnq.js} +0 -0
  703. /package/dist/chunks/{models-dev-43n2bw4t.js → vcs-43n2bw4t.js} +0 -0
  704. /package/dist/chunks/{models-dev-4knz6hnm.js → vcs-4knz6hnm.js} +0 -0
  705. /package/dist/chunks/{models-dev-4vcrnpx2.js → vcs-4vcrnpx2.js} +0 -0
  706. /package/dist/chunks/{models-dev-4y7fprxs.js → vcs-4y7fprxs.js} +0 -0
  707. /package/dist/chunks/{models-dev-53557ph1.js → vcs-53557ph1.js} +0 -0
  708. /package/dist/chunks/{models-dev-550bvhaj.js → vcs-550bvhaj.js} +0 -0
  709. /package/dist/chunks/{models-dev-6prwharc.js → vcs-6prwharc.js} +0 -0
  710. /package/dist/chunks/{models-dev-6q2bdcd1.js → vcs-6q2bdcd1.js} +0 -0
  711. /package/dist/chunks/{models-dev-7akdwqpd.js → vcs-7akdwqpd.js} +0 -0
  712. /package/dist/chunks/{models-dev-7m9af43g.js → vcs-7m9af43g.js} +0 -0
  713. /package/dist/chunks/{models-dev-822emrt2.js → vcs-822emrt2.js} +0 -0
  714. /package/dist/chunks/{models-dev-84wd9syh.js → vcs-84wd9syh.js} +0 -0
  715. /package/dist/chunks/{models-dev-88xbtdfr.js → vcs-88xbtdfr.js} +0 -0
  716. /package/dist/chunks/{models-dev-8n3pysct.js → vcs-8n3pysct.js} +0 -0
  717. /package/dist/chunks/{models-dev-8wj87zfr.js → vcs-8wj87zfr.js} +0 -0
  718. /package/dist/chunks/{models-dev-9a4afbnw.js → vcs-9a4afbnw.js} +0 -0
  719. /package/dist/chunks/{models-dev-9rqn6x4v.js → vcs-9rqn6x4v.js} +0 -0
  720. /package/dist/chunks/{models-dev-a6k6eb26.js → vcs-a6k6eb26.js} +0 -0
  721. /package/dist/chunks/{models-dev-af5trqkr.js → vcs-af5trqkr.js} +0 -0
  722. /package/dist/chunks/{models-dev-afrmfg78.js → vcs-afrmfg78.js} +0 -0
  723. /package/dist/chunks/{models-dev-aqzs7mqg.js → vcs-aqzs7mqg.js} +0 -0
  724. /package/dist/chunks/{models-dev-atq7p7m5.js → vcs-atq7p7m5.js} +0 -0
  725. /package/dist/chunks/{models-dev-bkyjaxrp.js → vcs-bkyjaxrp.js} +0 -0
  726. /package/dist/chunks/{models-dev-bmr6ed5q.js → vcs-bmr6ed5q.js} +0 -0
  727. /package/dist/chunks/{models-dev-cf4snx6d.js → vcs-cf4snx6d.js} +0 -0
  728. /package/dist/chunks/{models-dev-cvy3z8tj.js → vcs-cvy3z8tj.js} +0 -0
  729. /package/dist/chunks/{models-dev-d9fn303g.js → vcs-d9fn303g.js} +0 -0
  730. /package/dist/chunks/{models-dev-d9jj8t3e.js → vcs-d9jj8t3e.js} +0 -0
  731. /package/dist/chunks/{models-dev-dajrwvna.js → vcs-dajrwvna.js} +0 -0
  732. /package/dist/chunks/{models-dev-dap0rakb.js → vcs-dap0rakb.js} +0 -0
  733. /package/dist/chunks/{models-dev-df08tz66.js → vcs-df08tz66.js} +0 -0
  734. /package/dist/chunks/{models-dev-dy18nga0.js → vcs-dy18nga0.js} +0 -0
  735. /package/dist/chunks/{models-dev-e5kj55wp.js → vcs-e5kj55wp.js} +0 -0
  736. /package/dist/chunks/{models-dev-e73j6tqm.js → vcs-e73j6tqm.js} +0 -0
  737. /package/dist/chunks/{models-dev-ec1grn59.js → vcs-ec1grn59.js} +0 -0
  738. /package/dist/chunks/{models-dev-eh3zwz77.js → vcs-eh3zwz77.js} +0 -0
  739. /package/dist/chunks/{models-dev-emrn6kk6.js → vcs-emrn6kk6.js} +0 -0
  740. /package/dist/chunks/{models-dev-f0mxakyp.js → vcs-f0mxakyp.js} +0 -0
  741. /package/dist/chunks/{models-dev-f6n9ztr4.js → vcs-f6n9ztr4.js} +0 -0
  742. /package/dist/chunks/{models-dev-faypxj3z.js → vcs-faypxj3z.js} +0 -0
  743. /package/dist/chunks/{models-dev-fd410y7t.js → vcs-fd410y7t.js} +0 -0
  744. /package/dist/chunks/{models-dev-g4wezp1m.js → vcs-g4wezp1m.js} +0 -0
  745. /package/dist/chunks/{models-dev-g86h250q.js → vcs-g86h250q.js} +0 -0
  746. /package/dist/chunks/{models-dev-gebd4c9n.js → vcs-gebd4c9n.js} +0 -0
  747. /package/dist/chunks/{models-dev-gftt206x.js → vcs-gftt206x.js} +0 -0
  748. /package/dist/chunks/{models-dev-hcxmzztb.js → vcs-hcxmzztb.js} +0 -0
  749. /package/dist/chunks/{models-dev-hk9envan.js → vcs-hk9envan.js} +0 -0
  750. /package/dist/chunks/{models-dev-j2ntwpah.js → vcs-j2ntwpah.js} +0 -0
  751. /package/dist/chunks/{models-dev-j5zkgpj8.js → vcs-j5zkgpj8.js} +0 -0
  752. /package/dist/chunks/{models-dev-jjkms2e6.js → vcs-jjkms2e6.js} +0 -0
  753. /package/dist/chunks/{models-dev-jr7sbwjy.js → vcs-jr7sbwjy.js} +0 -0
  754. /package/dist/chunks/{models-dev-jwfs4k6c.js → vcs-jwfs4k6c.js} +0 -0
  755. /package/dist/chunks/{models-dev-jze0r7bz.js → vcs-jze0r7bz.js} +0 -0
  756. /package/dist/chunks/{models-dev-jzg6c2d5.js → vcs-jzg6c2d5.js} +0 -0
  757. /package/dist/chunks/{models-dev-m18g726c.js → vcs-m18g726c.js} +0 -0
  758. /package/dist/chunks/{models-dev-mp448xyj.js → vcs-mp448xyj.js} +0 -0
  759. /package/dist/chunks/{models-dev-msx8hqn2.js → vcs-msx8hqn2.js} +0 -0
  760. /package/dist/chunks/{models-dev-n05xt0ee.js → vcs-n05xt0ee.js} +0 -0
  761. /package/dist/chunks/{models-dev-n3j8tn72.js → vcs-n3j8tn72.js} +0 -0
  762. /package/dist/chunks/{models-dev-njntx4h6.js → vcs-njntx4h6.js} +0 -0
  763. /package/dist/chunks/{models-dev-pkyv6v7h.js → vcs-pkyv6v7h.js} +0 -0
  764. /package/dist/chunks/{models-dev-pyv0edze.js → vcs-pyv0edze.js} +0 -0
  765. /package/dist/chunks/{models-dev-q3sfg36h.js → vcs-q3sfg36h.js} +0 -0
  766. /package/dist/chunks/{models-dev-q74kybfr.js → vcs-q74kybfr.js} +0 -0
  767. /package/dist/chunks/{models-dev-qaymkmh1.js → vcs-qaymkmh1.js} +0 -0
  768. /package/dist/chunks/{models-dev-qb87gjwd.js → vcs-qb87gjwd.js} +0 -0
  769. /package/dist/chunks/{models-dev-qfa1cgps.js → vcs-qfa1cgps.js} +0 -0
  770. /package/dist/chunks/{models-dev-qg3g05ea.js → vcs-qg3g05ea.js} +0 -0
  771. /package/dist/chunks/{models-dev-qrg20bc0.js → vcs-qrg20bc0.js} +0 -0
  772. /package/dist/chunks/{models-dev-rcb2kzg1.js → vcs-rcb2kzg1.js} +0 -0
  773. /package/dist/chunks/{models-dev-sdp7kfr6.js → vcs-sdp7kfr6.js} +0 -0
  774. /package/dist/chunks/{models-dev-ssg3fenm.js → vcs-ssg3fenm.js} +0 -0
  775. /package/dist/chunks/{models-dev-ve7vex1e.js → vcs-ve7vex1e.js} +0 -0
  776. /package/dist/chunks/{models-dev-w803qqfp.js → vcs-w803qqfp.js} +0 -0
  777. /package/dist/chunks/{models-dev-wc3fc9cn.js → vcs-wc3fc9cn.js} +0 -0
  778. /package/dist/chunks/{models-dev-wer8tq1h.js → vcs-wer8tq1h.js} +0 -0
  779. /package/dist/chunks/{models-dev-wjj7prxr.js → vcs-wjj7prxr.js} +0 -0
  780. /package/dist/chunks/{models-dev-wtztk69x.js → vcs-wtztk69x.js} +0 -0
  781. /package/dist/chunks/{models-dev-x0ckcb58.js → vcs-x0ckcb58.js} +0 -0
  782. /package/dist/chunks/{models-dev-x61499pn.js → vcs-x61499pn.js} +0 -0
  783. /package/dist/chunks/{models-dev-y44na4kk.js → vcs-y44na4kk.js} +0 -0
  784. /package/dist/chunks/{models-dev-y8f7s663.js → vcs-y8f7s663.js} +0 -0
  785. /package/dist/chunks/{models-dev-ygaqb7jw.js → vcs-ygaqb7jw.js} +0 -0
  786. /package/dist/chunks/{models-dev-ym463w8f.js → vcs-ym463w8f.js} +0 -0
  787. /package/dist/chunks/{models-dev-z5v4ffb3.js → vcs-z5v4ffb3.js} +0 -0
  788. /package/dist/chunks/{models-dev-z9919s4g.js → vcs-z9919s4g.js} +0 -0
@@ -1,30 +1,30 @@
1
1
  import {
2
- Service83,
3
- node87
4
- } from "./models-dev-awmqpm04.js";
2
+ Service84,
3
+ node88
4
+ } from "./vcs-4syghzxd.js";
5
5
  import {
6
6
  makeUnsafe2
7
- } from "./models-dev-y71avatq.js";
7
+ } from "./vcs-dpkg50ah.js";
8
8
  import {
9
- Service82,
10
- node86
11
- } from "./models-dev-1p4v0rya.js";
9
+ Service83,
10
+ node87
11
+ } from "./vcs-a1cxz87x.js";
12
12
  import {
13
13
  SessionEvent2
14
- } from "./models-dev-ec1grn59.js";
14
+ } from "./vcs-ec1grn59.js";
15
15
  import {
16
16
  SessionMessage2
17
- } from "./models-dev-gftt206x.js";
17
+ } from "./vcs-gftt206x.js";
18
18
  import {
19
19
  SessionSchema2
20
- } from "./models-dev-c2sed5cq.js";
20
+ } from "./vcs-4pa8nav4.js";
21
21
  import {
22
22
  SessionMessageTable2,
23
23
  SessionInboxTable2
24
- } from "./models-dev-c1fqxshp.js";
24
+ } from "./vcs-es1vcfrp.js";
25
25
  import {
26
26
  __export
27
- } from "./models-dev-9rqn6x4v.js";
27
+ } from "./vcs-9rqn6x4v.js";
28
28
 
29
29
  // src/session/inbox.ts
30
30
  var exports_inbox = {};
@@ -32,12 +32,12 @@ __export(exports_inbox, {
32
32
  Compaction: () => Compaction2,
33
33
  CompactionPayload: () => CompactionPayload2,
34
34
  Delivery: () => Delivery2,
35
- Info: () => Info5,
35
+ Info: () => Info7,
36
36
  Item: () => Item2,
37
37
  LifecycleConflict: () => LifecycleConflict2,
38
38
  Move: () => Move2,
39
39
  MovePayload: () => MovePayload2,
40
- Service: () => Service37,
40
+ Service: () => Service49,
41
41
  SessionInbox: () => exports_inbox,
42
42
  Synthetic: () => Synthetic2,
43
43
  SyntheticPayload: () => SyntheticPayload2,
@@ -45,12 +45,12 @@ __export(exports_inbox, {
45
45
  UserPayload: () => UserPayload2,
46
46
  find: () => find2,
47
47
  has: () => has2,
48
- layer: () => layer18,
48
+ layer: () => layer20,
49
49
  list: () => list3,
50
- make: () => make16,
50
+ make: () => make17,
51
51
  moveIDs: () => moveIDs2,
52
52
  nextPromotable: () => nextPromotable2,
53
- node: () => node39,
53
+ node: () => node51,
54
54
  projectAdmitted: () => projectAdmitted2,
55
55
  projectCancelled: () => projectCancelled2,
56
56
  projectDelivered: () => projectDelivered2,
@@ -65,7 +65,7 @@ import {
65
65
  Compaction as Compaction2,
66
66
  CompactionPayload as CompactionPayload2,
67
67
  Delivery as Delivery2,
68
- Info as Info5,
68
+ Info as Info7,
69
69
  Item as Item2,
70
70
  Move as Move2,
71
71
  MovePayload as MovePayload2,
@@ -151,12 +151,12 @@ var promotedFromMessage = Effect.fn("SessionInbox.promotedFromMessage")(function
151
151
  return yield* new LifecycleConflict2({ id });
152
152
  });
153
153
 
154
- class Service37 extends Context.Service()("@opencode/SessionInbox") {
154
+ class Service49 extends Context.Service()("@opencode/SessionInbox") {
155
155
  }
156
- var make16 = Effect.fn("SessionInbox.make")(function* () {
157
- const database = yield* Service83;
156
+ var make17 = Effect.fn("SessionInbox.make")(function* () {
157
+ const database = yield* Service84;
158
158
  const db = database.db;
159
- const bus = yield* Service82;
159
+ const bus = yield* Service83;
160
160
  const reconcile = Effect.fn("SessionInbox.reconcile")(function* (request) {
161
161
  const existing = (yield* find2(db, request.id)) ?? (yield* promotedFromMessage(db, request.sessionID, request.id, request.delivery));
162
162
  if (existing === undefined)
@@ -173,7 +173,7 @@ var make16 = Effect.fn("SessionInbox.make")(function* () {
173
173
  inboxID: request.id,
174
174
  sessionID: request.sessionID,
175
175
  item: request.item
176
- }).pipe(Effect.map((event) => Info5.make({
176
+ }).pipe(Effect.map((event) => Info7.make({
177
177
  id: request.id,
178
178
  sessionID: request.sessionID,
179
179
  time: { created: DateTime.makeUnsafe(event.created) },
@@ -227,8 +227,8 @@ var make16 = Effect.fn("SessionInbox.make")(function* () {
227
227
  queue
228
228
  };
229
229
  });
230
- var layer18 = Layer.effect(Service37, make16());
231
- var node39 = makeGlobalNode({ service: Service37, layer: layer18, deps: [node87, node86] });
230
+ var layer20 = Layer.effect(Service49, make17());
231
+ var node51 = makeGlobalNode({ service: Service49, layer: layer20, deps: [node88, node87] });
232
232
  var projectAdmitted2 = Effect.fn("SessionInbox.projectAdmitted")(function* (db, request) {
233
233
  const message = yield* db.select({ id: SessionMessageTable2.id }).from(SessionMessageTable2).where(eq(SessionMessageTable2.id, request.id)).get().pipe(Effect.orDie);
234
234
  if (message !== undefined)
@@ -326,4 +326,4 @@ var pendingSteers = (db, sessionID) => db.select().from(SessionInboxTable2).wher
326
326
  return rows;
327
327
  }));
328
328
 
329
- export { Compaction2, CompactionPayload2, Delivery2, Info5, Item2, Move2, MovePayload2, Synthetic2, SyntheticPayload2, User2, UserPayload2, serialized2, LifecycleConflict2, find2, Service37, make16, layer18, node39, projectAdmitted2, projectDelivered2, projectCancelled2, projectDeliveryChanged2, list3, moveIDs2, nextPromotable2, has2, promote2, exports_inbox };
329
+ export { Compaction2, CompactionPayload2, Delivery2, Info7, Item2, Move2, MovePayload2, Synthetic2, SyntheticPayload2, User2, UserPayload2, serialized2, LifecycleConflict2, find2, Service49, make17, layer20, node51, projectAdmitted2, projectDelivered2, projectCancelled2, projectDeliveryChanged2, list3, moveIDs2, nextPromotable2, has2, promote2, exports_inbox };
@@ -1,34 +1,34 @@
1
1
  import {
2
2
  useragent2
3
- } from "./models-dev-z8rw9kn4.js";
3
+ } from "./vcs-25j7r69p.js";
4
4
  import {
5
- Service82
6
- } from "./models-dev-1p4v0rya.js";
5
+ Service83
6
+ } from "./vcs-a1cxz87x.js";
7
7
  import {
8
- ID15,
9
- Event18,
10
- Service73
11
- } from "./models-dev-5h7vwmhz.js";
8
+ ID10,
9
+ Event15,
10
+ Service68
11
+ } from "./vcs-pcwsepp3.js";
12
12
  import {
13
13
  key2
14
- } from "./models-dev-x661k3y3.js";
14
+ } from "./vcs-k22b66k8.js";
15
15
  import {
16
- ID14,
16
+ ID9,
17
17
  MethodID2
18
- } from "./models-dev-m2k7ask4.js";
18
+ } from "./vcs-w9dpv18m.js";
19
19
  import {
20
20
  which2
21
- } from "./models-dev-qaymkmh1.js";
21
+ } from "./vcs-qaymkmh1.js";
22
22
  import {
23
- ID13,
24
- Service71
25
- } from "./models-dev-j0thgm95.js";
23
+ ID8,
24
+ Service66
25
+ } from "./vcs-shrk45xr.js";
26
26
  import {
27
- ID12
28
- } from "./models-dev-5n9bvvdj.js";
27
+ ID7
28
+ } from "./vcs-qa7z0hws.js";
29
29
  import {
30
30
  configuredSettings2
31
- } from "./models-dev-qkttv2kq.js";
31
+ } from "./vcs-b2qkenvk.js";
32
32
 
33
33
  // src/plugin/provider/azure.ts
34
34
  import { Clock, Effect, FiberHandle, Option, Schema, Semaphore, Stream } from "effect";
@@ -63,18 +63,18 @@ var decodeManagementDeployment = Schema.decodeUnknownOption(Schema.Struct({
63
63
  }));
64
64
  var ResourceQuery = Schema.Struct({ query: Schema.String });
65
65
  var Resources = Schema.Struct({ data: Schema.Array(Schema.Struct({ id: Schema.NonEmptyString })) });
66
- function make8(endpoints = {
66
+ function make7(endpoints = {
67
67
  resource: (name) => `https://${name}.openai.azure.com/openai`,
68
68
  management: "https://management.azure.com"
69
69
  }) {
70
70
  return define({
71
71
  id: "opencode.provider.azure",
72
72
  effect: Effect.fn(function* (ctx) {
73
- const configured = yield* configuredSettings2(ID13.azure);
73
+ const configured = yield* configuredSettings2(ID8.azure);
74
74
  const processes = yield* AppProcess.Service;
75
- const bus = yield* Service82;
76
- const credentials = yield* Service73;
77
- const providers = yield* Service71;
75
+ const bus = yield* Service83;
76
+ const credentials = yield* Service68;
77
+ const providers = yield* Service66;
78
78
  const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
79
79
  const tokens = new Map;
80
80
  const resourceIDs = new Map;
@@ -100,11 +100,11 @@ function make8(endpoints = {
100
100
  const configuredResource = Boolean(resolveResourceName(configured) || typeof configured?.baseURL === "string");
101
101
  yield* ctx.integration.transform((editor) => {
102
102
  editor.method.update({
103
- integrationID: ID13.azure,
103
+ integrationID: ID8.azure,
104
104
  method: { type: "env", names: ["AZURE_API_KEY", "AZURE_COGNITIVE_SERVICES_API_KEY"] }
105
105
  });
106
106
  editor.method.update({
107
- integrationID: ID13.azure,
107
+ integrationID: ID8.azure,
108
108
  method: {
109
109
  type: "key",
110
110
  label: "API key",
@@ -122,7 +122,7 @@ function make8(endpoints = {
122
122
  if (!available)
123
123
  return;
124
124
  editor.method.update({
125
- integrationID: ID13.azure,
125
+ integrationID: ID8.azure,
126
126
  method: {
127
127
  id: methodID,
128
128
  type: "external",
@@ -142,8 +142,8 @@ function make8(endpoints = {
142
142
  });
143
143
  });
144
144
  const load = Effect.fn("AzurePlugin.load")(function* () {
145
- const connection = yield* ctx.integration.connection.active(ID13.azure);
146
- const stored = connection?.type === "credential" ? yield* credentials.get(ID15.make(connection.id)) : undefined;
145
+ const connection = yield* ctx.integration.connection.active(ID8.azure);
146
+ const stored = connection?.type === "credential" ? yield* credentials.get(ID10.make(connection.id)) : undefined;
147
147
  return { connection, resource: credentialResource(stored?.value) };
148
148
  });
149
149
  const findResource = Effect.fn("AzurePlugin.findResource")(function* (resource) {
@@ -182,7 +182,7 @@ function make8(endpoints = {
182
182
  }));
183
183
  const discover = Effect.fn("AzurePlugin.discover")(function* () {
184
184
  const connection = loaded.connection;
185
- const settings = (yield* providers.get(ID13.azure))?.settings;
185
+ const settings = (yield* providers.get(ID8.azure))?.settings;
186
186
  const name = loaded.resource ?? resolveResourceName(settings);
187
187
  const url = connection && name !== undefined && resourcePattern.test(name) && typeof settings?.baseURL !== "string" ? `${endpoints.resource(name)}/deployments?api-version=2022-12-01` : undefined;
188
188
  if (loaded.connection !== connection)
@@ -204,11 +204,11 @@ function make8(endpoints = {
204
204
  const found = yield* deployments(url, name, credential).pipe(Effect.map((list) => list.toSorted((a, b) => a.name.localeCompare(b.name))), Effect.catch((cause) => Effect.logWarning("failed to sync Azure deployments", { cause }).pipe(Effect.as(undefined))));
205
205
  if (!found)
206
206
  return;
207
- if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(ID13.azure)))
207
+ if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(ID8.azure)))
208
208
  return;
209
209
  if (JSON.stringify(found) === JSON.stringify(loaded.deployments))
210
210
  return;
211
- const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(ID13.azure)?.models.keys() ?? [], (id) => [
211
+ const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(ID8.azure)?.models.keys() ?? [], (id) => [
212
212
  id.toLowerCase(),
213
213
  id
214
214
  ]));
@@ -221,11 +221,11 @@ function make8(endpoints = {
221
221
  yield* ctx.model.reload();
222
222
  });
223
223
  const refresh = () => rebind().pipe(Effect.andThen(FiberHandle.run(discovery, discover())));
224
- const resourceFor = (provider) => provider.id === ID13.azure ? loaded.resource ?? resolveResourceName(provider.settings) : resolveResourceName(provider.settings, loaded.resource);
224
+ const resourceFor = (provider) => provider.id === ID8.azure ? loaded.resource ?? resolveResourceName(provider.settings) : resolveResourceName(provider.settings, loaded.resource);
225
225
  Object.assign(loaded, yield* load());
226
226
  yield* ctx.provider.transform((evt) => {
227
227
  for (const item of evt.list()) {
228
- if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
228
+ if (item.provider.id !== ID8.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
229
229
  continue;
230
230
  const resourceName = resourceFor(item.provider);
231
231
  const websocket = responsesWebSocketCapable(item.provider);
@@ -240,7 +240,7 @@ function make8(endpoints = {
240
240
  };
241
241
  });
242
242
  }
243
- const item = evt.get(ID13.azure);
243
+ const item = evt.get(ID8.azure);
244
244
  if (!item)
245
245
  return;
246
246
  evt.add({
@@ -251,7 +251,7 @@ function make8(endpoints = {
251
251
  });
252
252
  yield* ctx.model.transform((models) => {
253
253
  for (const item of models.provider.list()) {
254
- if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
254
+ if (item.provider.id !== ID8.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
255
255
  continue;
256
256
  const resourceName = resourceFor(item.provider);
257
257
  for (const model of models.list(item.provider.id)) {
@@ -263,20 +263,20 @@ function make8(endpoints = {
263
263
  }
264
264
  if (!loaded.deployments)
265
265
  return;
266
- const catalog = models.list(ID13.azure);
266
+ const catalog = models.list(ID8.azure);
267
267
  const deployed = deployedModels(loaded.deployments, catalog);
268
268
  for (const model of catalog) {
269
269
  if (!deployed.has(model.id))
270
- models.remove(ID13.azure, model.id);
270
+ models.remove(ID8.azure, model.id);
271
271
  }
272
272
  for (const [id, model] of deployed) {
273
- models.update(ID13.azure, id, (draft) => Object.assign(draft, model));
273
+ models.update(ID8.azure, id, (draft) => Object.assign(draft, model));
274
274
  }
275
275
  });
276
- yield* bus.subscribe(Event18.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("azure")), Stream.runForEach(() => refresh()), Effect.forkScoped({ startImmediately: true }));
276
+ yield* bus.subscribe(Event15.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID9.make("azure")), Stream.runForEach(() => refresh()), Effect.forkScoped({ startImmediately: true }));
277
277
  yield* refresh().pipe(Effect.forkScoped);
278
278
  const bearer = Effect.fn("AzurePlugin.bearer")(function* (url) {
279
- const connection = yield* ctx.integration.connection.active(ID13.azure);
279
+ const connection = yield* ctx.integration.connection.active(ID8.azure);
280
280
  const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
281
281
  return;
282
282
  })) : undefined;
@@ -288,7 +288,7 @@ function make8(endpoints = {
288
288
  return `Bearer ${current.access}`;
289
289
  });
290
290
  yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
291
- if (evt.model.providerID !== ID13.azure)
291
+ if (evt.model.providerID !== ID8.azure)
292
292
  return;
293
293
  const authorization = yield* bearer(evt.request.url);
294
294
  if (!authorization)
@@ -297,9 +297,9 @@ function make8(endpoints = {
297
297
  evt.request.headers.delete("x-api-key");
298
298
  evt.request.headers.set("authorization", authorization);
299
299
  evt.request.headers.set("user-agent", useragent2(ctx.app));
300
- }), { providerID: ID13.azure });
300
+ }), { providerID: ID8.azure });
301
301
  yield* ctx.session.hook("experimental.ws.handshake", (evt) => Effect.gen(function* () {
302
- if (evt.model.providerID !== ID13.azure)
302
+ if (evt.model.providerID !== ID8.azure)
303
303
  return;
304
304
  const authorization = yield* bearer(evt.url);
305
305
  if (!authorization)
@@ -308,11 +308,11 @@ function make8(endpoints = {
308
308
  delete evt.headers["x-api-key"];
309
309
  evt.headers.authorization = authorization;
310
310
  evt.headers["user-agent"] = useragent2(ctx.app);
311
- }), { providerID: ID13.azure });
311
+ }), { providerID: ID8.azure });
312
312
  })
313
313
  });
314
314
  }
315
- var AzurePlugin2 = make8();
315
+ var AzurePlugin2 = make7();
316
316
  function resolveResourceName(settings, fallback) {
317
317
  const configured = settings?.resourceName;
318
318
  if (typeof configured === "string" && configured.trim() !== "")
@@ -342,11 +342,11 @@ function deployedModels(deployments, catalog) {
342
342
  const model = catalogModel(models, deployment);
343
343
  if (!model)
344
344
  return [];
345
- const id = ID12.make(deployment.name.toLowerCase());
345
+ const id = ID7.make(deployment.name.toLowerCase());
346
346
  const info = {
347
347
  ...structuredClone(model),
348
348
  id,
349
- modelID: ID12.make(deployment.name),
349
+ modelID: ID7.make(deployment.name),
350
350
  name: id === model.id.toLowerCase() ? model.name : `${model.name} (${deployment.name})`
351
351
  };
352
352
  return [[id, info]];
@@ -368,4 +368,4 @@ function responsesWebSocketCapable(provider) {
368
368
  return /^https:\/\/[^/]+\.openai\.azure\.com(?:\/|$)/i.test(settings.baseURL);
369
369
  }
370
370
 
371
- export { make8, AzurePlugin2 };
371
+ export { make7, AzurePlugin2 };
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  mergeOverlay2,
3
- Service71
4
- } from "./models-dev-j0thgm95.js";
3
+ Service66
4
+ } from "./vcs-shrk45xr.js";
5
5
  import {
6
- Service52
7
- } from "./models-dev-ce1fh5qz.js";
6
+ Service58
7
+ } from "./vcs-0be9ae0k.js";
8
8
 
9
9
  // src/plugin/provider/configured.ts
10
10
  import { Effect, Option } from "effect";
11
11
  var configuredSettings2 = Effect.fn("ProviderPlugin.configuredSettings")(function* (id) {
12
- const providers = yield* Service71;
12
+ const providers = yield* Service66;
13
13
  const current = (yield* providers.get(id))?.settings;
14
- const service = yield* Effect.serviceOption(Service52);
14
+ const service = yield* Effect.serviceOption(Service58);
15
15
  const entries = Option.isSome(service) ? yield* service.value.entries() : [];
16
16
  return foldSettings2(entries, id, current);
17
17
  });
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  SessionEvent2
3
- } from "./models-dev-ec1grn59.js";
3
+ } from "./vcs-ec1grn59.js";
4
4
  import {
5
5
  __export
6
- } from "./models-dev-9rqn6x4v.js";
6
+ } from "./vcs-9rqn6x4v.js";
7
7
 
8
8
  // src/session/runner/retry.ts
9
9
  var exports_retry = {};
10
10
  __export(exports_retry, {
11
11
  SessionRunnerRetry: () => exports_retry,
12
12
  isRetryable: () => isRetryable2,
13
- make: () => make9,
13
+ make: () => make10,
14
14
  policy: () => policy2
15
15
  });
16
16
  import { isRetryable as isRetryable2 } from "@opencode/ai";
@@ -60,7 +60,7 @@ var policy2 = (sessionID) => Effect.gen(function* () {
60
60
  return { retry: true, attempt, delay: normalized };
61
61
  });
62
62
  });
63
- var make9 = (bus, sessionID) => Effect.gen(function* () {
63
+ var make10 = (bus, sessionID) => Effect.gen(function* () {
64
64
  const decide = yield* policy2(sessionID);
65
65
  const wait = (input) => Effect.gen(function* () {
66
66
  const scheduled = yield* Clock.currentTimeMillis;
@@ -77,4 +77,4 @@ var make9 = (bus, sessionID) => Effect.gen(function* () {
77
77
  return { decide, wait };
78
78
  });
79
79
 
80
- export { isRetryable2, policy2, make9, exports_retry };
80
+ export { isRetryable2, policy2, make10, exports_retry };
@@ -1,43 +1,43 @@
1
1
  import {
2
- Service83
3
- } from "./models-dev-awmqpm04.js";
2
+ Service84
3
+ } from "./vcs-4syghzxd.js";
4
4
  import {
5
- Service39
6
- } from "./models-dev-d1mtykxg.js";
5
+ Service51
6
+ } from "./vcs-hdab2k61.js";
7
7
  import {
8
8
  awaitActivation2
9
- } from "./models-dev-q509s3k3.js";
9
+ } from "./vcs-619r8v3y.js";
10
10
  import {
11
11
  provenance2
12
- } from "./models-dev-cq0e7jrz.js";
12
+ } from "./vcs-f29mbr7f.js";
13
13
  import {
14
14
  preview2
15
- } from "./models-dev-ehy8mm5d.js";
15
+ } from "./vcs-2p5zs7nk.js";
16
16
  import {
17
17
  baseTranscript2
18
- } from "./models-dev-62kspbwq.js";
18
+ } from "./vcs-0cyvwnra.js";
19
19
  import {
20
- Service23
21
- } from "./models-dev-467kawmj.js";
20
+ Service24
21
+ } from "./vcs-cwv6zy4y.js";
22
22
  import {
23
23
  __export
24
- } from "./models-dev-9rqn6x4v.js";
24
+ } from "./vcs-9rqn6x4v.js";
25
25
 
26
26
  // src/session/generate.ts
27
- var exports_generate2 = {};
28
- __export(exports_generate2, {
29
- SessionGenerate: () => exports_generate2,
27
+ var exports_generate = {};
28
+ __export(exports_generate, {
29
+ SessionGenerate: () => exports_generate,
30
30
  generate: () => generate2
31
31
  });
32
32
  import { LLMClient, Message } from "@opencode/ai";
33
33
  import { Effect } from "effect";
34
34
  var generate2 = Effect.fn("SessionGenerate.generate")(function* (input) {
35
- const instances = yield* Service39;
36
- const database = yield* Service83;
35
+ const instances = yield* Service51;
36
+ const database = yield* Service84;
37
37
  const llm = yield* LLMClient.Service;
38
38
  return yield* Effect.gen(function* () {
39
39
  yield* awaitActivation2;
40
- const context = yield* Service23;
40
+ const context = yield* Service24;
41
41
  const selection = yield* context.select(input.session.id);
42
42
  const model = yield* context.resolveModel(selection.session);
43
43
  const history = yield* preview2(database.db, selection.session.id, selection.instructions, provenance2(model) ?? "local");
@@ -71,4 +71,4 @@ var generate2 = Effect.fn("SessionGenerate.generate")(function* (input) {
71
71
  }).pipe(instances.provide(input.session));
72
72
  });
73
73
 
74
- export { generate2, exports_generate2 };
74
+ export { generate2, exports_generate };
@@ -1,29 +1,29 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./models-dev-z5v4ffb3.js";
3
+ } from "./vcs-z5v4ffb3.js";
4
4
  import {
5
- Service79
6
- } from "./models-dev-m4rz64sx.js";
5
+ Service78
6
+ } from "./vcs-k08pfc51.js";
7
7
  import {
8
8
  __export
9
- } from "./models-dev-9rqn6x4v.js";
9
+ } from "./vcs-9rqn6x4v.js";
10
10
 
11
11
  // src/config/discovery.ts
12
12
  var exports_discovery2 = {};
13
13
  __export(exports_discovery2, {
14
14
  ConfigDiscovery: () => exports_discovery2,
15
15
  discover: () => discover3,
16
- names: () => names3
16
+ names: () => names4
17
17
  });
18
18
  import path from "path";
19
19
  import { Effect } from "effect";
20
20
  import { FSUtil } from "@opencode/util/fs-util";
21
21
  import { Global } from "@opencode/util/global";
22
- var names3 = ["opencode.json", "opencode.jsonc"];
22
+ var names4 = ["opencode.json", "opencode.jsonc"];
23
23
  var discover3 = Effect.fn("ConfigDiscovery.discover")(function* (options) {
24
24
  const fs = yield* FSUtil.Service;
25
25
  const global = yield* Global.Service;
26
- const location = yield* Service79;
26
+ const location = yield* Service78;
27
27
  const globalDirectory = AbsolutePath2.make(global.config);
28
28
  const globalAgentsDirectory = AbsolutePath2.make(path.join(global.home, ".agents"));
29
29
  const globalClaudeDirectory = AbsolutePath2.make(path.join(global.home, ".claude"));
@@ -31,10 +31,10 @@ var discover3 = Effect.fn("ConfigDiscovery.discover")(function* (options) {
31
31
  const directories = (yield* fs.resolve(location.directory)) === globalRoots[0] || options?.project === false ? [] : yield* fs.up({ targets: ["."], start: location.directory }).pipe(Effect.orDie);
32
32
  const discovered = yield* Effect.forEach(directories, (directory) => Effect.gen(function* () {
33
33
  const parent = yield* fs.resolve(directory);
34
- return yield* Effect.forEach([".claude", ".agents", ".opencode", ...names3.toReversed()], (name) => fs.resolve(path.join(parent, name)).pipe(Effect.map((resolved) => ({ item: AbsolutePath2.make(path.join(directory, name)), resolved }))));
34
+ return yield* Effect.forEach([".claude", ".agents", ".opencode", ...names4.toReversed()], (name) => fs.resolve(path.join(parent, name)).pipe(Effect.map((resolved) => ({ item: AbsolutePath2.make(path.join(directory, name)), resolved }))));
35
35
  })).pipe(Effect.map((items) => items.flat()), Effect.orDie);
36
36
  const globalEnabled = options?.global !== false;
37
- const globalFiles = yield* Effect.forEach(names3, (name) => fs.resolve(path.join(globalDirectory, name)));
37
+ const globalFiles = yield* Effect.forEach(names4, (name) => fs.resolve(path.join(globalDirectory, name)));
38
38
  const visible = discovered.filter(({ resolved }) => globalEnabled ? !globalRoots.includes(resolved) && !globalFiles.includes(resolved) : !globalRoots.some((root) => resolved === root || resolved.startsWith(root + path.sep))).map(({ item }) => item);
39
39
  return {
40
40
  global: globalEnabled ? globalDirectory : undefined,
@@ -56,4 +56,4 @@ var discover3 = Effect.fn("ConfigDiscovery.discover")(function* (options) {
56
56
  };
57
57
  });
58
58
 
59
- export { names3, discover3, exports_discovery2 };
59
+ export { names4, discover3, exports_discovery2 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createLocalProviderPlugin2
3
- } from "./models-dev-tg6qddtv.js";
3
+ } from "./vcs-4kersrq5.js";
4
4
 
5
5
  // src/plugin/provider/lmstudio.ts
6
6
  import { Effect, Schema } from "effect";
@@ -1,33 +1,33 @@
1
1
  import {
2
- Service82,
3
- node86
4
- } from "./models-dev-1p4v0rya.js";
2
+ Service83,
3
+ node87
4
+ } from "./vcs-a1cxz87x.js";
5
5
  import {
6
6
  create3
7
- } from "./models-dev-rdw6cm16.js";
7
+ } from "./vcs-rdw6cm16.js";
8
8
  import {
9
9
  __export
10
- } from "./models-dev-9rqn6x4v.js";
10
+ } from "./vcs-9rqn6x4v.js";
11
11
 
12
12
  // src/command.ts
13
- var exports_command5 = {};
14
- __export(exports_command5, {
15
- Command: () => exports_command5,
16
- Event: () => Event20,
13
+ var exports_command4 = {};
14
+ __export(exports_command4, {
15
+ Command: () => exports_command4,
16
+ Event: () => Event6,
17
17
  ExecutionError: () => ExecutionError2,
18
- Info: () => Info26,
19
- NotFoundError: () => NotFoundError10,
20
- Service: () => Service77,
21
- layer: () => layer26,
22
- node: () => node81
18
+ Info: () => Info5,
19
+ NotFoundError: () => NotFoundError5,
20
+ Service: () => Service33,
21
+ layer: () => layer15,
22
+ node: () => node37
23
23
  });
24
24
  import { Command } from "@opencode/schema/command";
25
25
  import { makeLocationNode } from "@opencode/util/effect/app-node";
26
26
  import { Context, Effect, Layer, Schema } from "effect";
27
- import { Event as Event20 } from "@opencode/schema/command";
28
- var Info26 = Command.Info;
27
+ import { Event as Event6 } from "@opencode/schema/command";
28
+ var Info5 = Command.Info;
29
29
 
30
- class NotFoundError10 extends Schema.TaggedError()("Command.NotFoundError", {
30
+ class NotFoundError5 extends Schema.TaggedError()("Command.NotFoundError", {
31
31
  command: Schema.String,
32
32
  message: Schema.String
33
33
  }) {
@@ -39,10 +39,10 @@ class ExecutionError2 extends Schema.TaggedError()("Command.ExecutionError", {
39
39
  }) {
40
40
  }
41
41
 
42
- class Service77 extends Context.Service()("@opencode/Command") {
42
+ class Service33 extends Context.Service()("@opencode/Command") {
43
43
  }
44
- var layer26 = Layer.effect(Service77, Effect.gen(function* () {
45
- const bus = yield* Service82;
44
+ var layer15 = Layer.effect(Service33, Effect.gen(function* () {
45
+ const bus = yield* Service83;
46
46
  const state = create3({
47
47
  name: "command",
48
48
  initial: () => new Map,
@@ -51,11 +51,11 @@ var layer26 = Layer.effect(Service77, Effect.gen(function* () {
51
51
  }),
52
52
  notify: () => bus.publish(Command.Event.Updated, {}).pipe(Effect.asVoid)
53
53
  });
54
- const info = (definition) => Info26.make({
54
+ const info = (definition) => Info5.make({
55
55
  name: definition.name,
56
56
  description: definition.description
57
57
  });
58
- return Service77.of({
58
+ return Service33.of({
59
59
  reload: state.reload,
60
60
  transform: state.transform,
61
61
  get: Effect.fn("Command.get")((name) => Effect.sync(() => {
@@ -66,15 +66,15 @@ var layer26 = Layer.effect(Service77, Effect.gen(function* () {
66
66
  execute: Effect.fn("Command.execute")(function* (input) {
67
67
  const definition = state.get().get(input.name);
68
68
  if (!definition)
69
- return yield* new NotFoundError10({ command: input.name, message: `Command not found: ${input.name}` });
69
+ return yield* new NotFoundError5({ command: input.name, message: `Command not found: ${input.name}` });
70
70
  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) })));
71
71
  })
72
72
  });
73
73
  }));
74
- var node81 = makeLocationNode({
75
- service: Service77,
76
- layer: layer26,
77
- deps: [node86]
74
+ var node37 = makeLocationNode({
75
+ service: Service33,
76
+ layer: layer15,
77
+ deps: [node87]
78
78
  });
79
79
  function errorMessage(error) {
80
80
  if (error instanceof Error)
@@ -86,4 +86,4 @@ function errorMessage(error) {
86
86
  return "Command execution failed";
87
87
  }
88
88
 
89
- export { Info26, NotFoundError10, ExecutionError2, Service77, layer26, node81, exports_command5, Event20 };
89
+ export { Info5, NotFoundError5, ExecutionError2, Service33, layer15, node37, exports_command4, Event6 };