@opencode-ai/core 0.0.0-dev-19173 → 0.0.0-dev-19178

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 (774) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +79 -79
  3. package/dist/aisdk-native.js +2 -2
  4. package/dist/aisdk.js +6 -6
  5. package/dist/app.js +7 -7
  6. package/dist/bus.js +71 -71
  7. package/dist/catalog.js +82 -82
  8. package/dist/chunks/{pty-g3wwtpwc.js → kv-07pjb4yj.js} +8 -8
  9. package/dist/chunks/{pty-4cv9f4xd.js → kv-0drwrr20.js} +18 -18
  10. package/dist/chunks/{pty-0e0xafbb.js → kv-0e0xafbb.js} +2 -2
  11. package/dist/chunks/{pty-x2bc45f6.js → kv-0kj443hm.js} +5 -5
  12. package/dist/chunks/{pty-0paq2nw3.js → kv-0paq2nw3.js} +1 -1
  13. package/dist/chunks/{pty-795x97jf.js → kv-0pz84dxy.js} +9 -9
  14. package/dist/chunks/{pty-0s9ayhjt.js → kv-0s9ayhjt.js} +1 -1
  15. package/dist/chunks/{pty-47k6q3bb.js → kv-12fnx30g.js} +8 -8
  16. package/dist/chunks/{pty-0e772669.js → kv-14hmenm3.js} +3 -3
  17. package/dist/chunks/{pty-ckat2zwp.js → kv-14mbnhb1.js} +6 -6
  18. package/dist/chunks/{pty-hy45d0wx.js → kv-16yc1m91.js} +11 -11
  19. package/dist/chunks/{pty-1ct4r87x.js → kv-1ct4r87x.js} +1 -1
  20. package/dist/chunks/{pty-twhbvx3p.js → kv-1mg2yz7f.js} +3 -3
  21. package/dist/chunks/{pty-mjz8v7j0.js → kv-1r3zydfx.js} +4 -4
  22. package/dist/chunks/{pty-21r38tys.js → kv-21r38tys.js} +1 -1
  23. package/dist/chunks/{pty-js4d4dxf.js → kv-238pagf0.js} +2 -2
  24. package/dist/chunks/{pty-6h73sxmp.js → kv-2402vzrj.js} +5 -5
  25. package/dist/chunks/{pty-z63w68vq.js → kv-29x78va6.js} +6 -6
  26. package/dist/chunks/{pty-2a5m3afh.js → kv-2a5m3afh.js} +1 -1
  27. package/dist/chunks/{pty-5bhgc7xv.js → kv-2bac7mmh.js} +15 -15
  28. package/dist/chunks/{pty-2ht70gj7.js → kv-2ht70gj7.js} +1 -1
  29. package/dist/chunks/{pty-agqvteqs.js → kv-2stffz79.js} +21 -21
  30. package/dist/chunks/{pty-e9dn8ye0.js → kv-2v1h19tk.js} +6 -6
  31. package/dist/chunks/{pty-n5e0mvgx.js → kv-31fmz1fp.js} +23 -23
  32. package/dist/chunks/{pty-3fc6dm20.js → kv-3fc6dm20.js} +1 -1
  33. package/dist/chunks/{pty-btc4hvws.js → kv-3g2y1byn.js} +5 -5
  34. package/dist/chunks/{pty-9srbvtnp.js → kv-3gfsa2we.js} +18 -18
  35. package/dist/chunks/{pty-3hepkmqq.js → kv-3hepkmqq.js} +1 -1
  36. package/dist/chunks/{pty-3qzbfqsy.js → kv-3qzbfqsy.js} +2 -2
  37. package/dist/chunks/{pty-3bdhpy4d.js → kv-3rdd7m9r.js} +21 -21
  38. package/dist/chunks/{pty-3smtnn6g.js → kv-3smtnn6g.js} +1 -1
  39. package/dist/chunks/{pty-3tvqynh2.js → kv-3tvqynh2.js} +1 -1
  40. package/dist/chunks/{pty-j4bwgw4b.js → kv-3wfq9j39.js} +14 -14
  41. package/dist/chunks/{pty-j7hcs84d.js → kv-3z7ymfy8.js} +11 -11
  42. package/dist/chunks/{pty-454k5vzh.js → kv-454k5vzh.js} +1 -1
  43. package/dist/chunks/{pty-3k79xy7t.js → kv-496a646b.js} +15 -15
  44. package/dist/chunks/{pty-r0f40ks0.js → kv-4ga6yzkg.js} +27 -27
  45. package/dist/chunks/{pty-a92fabfr.js → kv-4qf6hhyh.js} +9 -9
  46. package/dist/chunks/{pty-4r2nyarf.js → kv-4r2nyarf.js} +1 -1
  47. package/dist/chunks/{pty-fa23b81s.js → kv-4rsfp5k5.js} +5 -5
  48. package/dist/chunks/{pty-c2s86k7e.js → kv-4z6b0fg6.js} +6 -6
  49. package/dist/chunks/{pty-3kv6khp1.js → kv-57w39xht.js} +5 -5
  50. package/dist/chunks/{pty-g75wm5bg.js → kv-599cnyq5.js} +29 -29
  51. package/dist/chunks/{pty-5daktx2q.js → kv-5daktx2q.js} +1 -1
  52. package/dist/chunks/{pty-5fmxt4p5.js → kv-5fmxt4p5.js} +1 -1
  53. package/dist/chunks/{pty-j7ped6hz.js → kv-5g0p4mxq.js} +26 -26
  54. package/dist/chunks/{pty-vbv643qx.js → kv-5ggkvp9f.js} +9 -9
  55. package/dist/chunks/{pty-snc6smv8.js → kv-5gqcqfwy.js} +18 -18
  56. package/dist/chunks/{pty-5jvc5tg2.js → kv-5jvc5tg2.js} +1 -1
  57. package/dist/chunks/{pty-pgqf2fs8.js → kv-5k3f87xj.js} +1 -1
  58. package/dist/chunks/{pty-1f7ccf2p.js → kv-5pdq8qgg.js} +6 -6
  59. package/dist/chunks/{pty-jrpapbxf.js → kv-5wnbjqvg.js} +17 -17
  60. package/dist/chunks/{pty-m686xbyy.js → kv-5y6pdc3x.js} +9 -9
  61. package/dist/chunks/{pty-nnp2759g.js → kv-605y5xjw.js} +13 -13
  62. package/dist/chunks/{pty-42fxgygn.js → kv-65yprxq5.js} +6 -6
  63. package/dist/chunks/{pty-rktjfj3k.js → kv-676wedsd.js} +20 -20
  64. package/dist/chunks/{pty-p32d7zzt.js → kv-68dvzq1z.js} +5 -5
  65. package/dist/chunks/{pty-0g1jdj53.js → kv-69pzhmr6.js} +28 -28
  66. package/dist/chunks/{pty-6z5bwd8g.js → kv-6abnk40k.js} +9 -9
  67. package/dist/chunks/{pty-mtcjf44p.js → kv-6e958v7x.js} +4 -4
  68. package/dist/chunks/{pty-s6ymxyzv.js → kv-6enr500s.js} +6 -6
  69. package/dist/chunks/{pty-c7tgvdzj.js → kv-6gz15wwc.js} +36 -36
  70. package/dist/chunks/{pty-qm0v3jhh.js → kv-6hh8tjw2.js} +7 -7
  71. package/dist/chunks/{pty-t54hfqtt.js → kv-6nmsy562.js} +4 -4
  72. package/dist/chunks/{pty-hydvtqtc.js → kv-6xz6dfh8.js} +35 -35
  73. package/dist/chunks/{pty-711hfp6y.js → kv-711hfp6y.js} +2 -2
  74. package/dist/chunks/{pty-72nftnjy.js → kv-72nftnjy.js} +2 -2
  75. package/dist/chunks/{pty-27cy7znn.js → kv-7a2871xe.js} +6 -6
  76. package/dist/chunks/{pty-7bmhse3q.js → kv-7bmhse3q.js} +1 -1
  77. package/dist/chunks/{pty-5jh1sprz.js → kv-7c21gvyv.js} +178 -178
  78. package/dist/chunks/{pty-nez52ejm.js → kv-7cnkxtbd.js} +9 -9
  79. package/dist/chunks/{pty-qx4mzfcc.js → kv-7hmj7g9f.js} +17 -17
  80. package/dist/chunks/{pty-eekp03xz.js → kv-7n2xhmm7.js} +7 -7
  81. package/dist/chunks/{pty-pjzvknbe.js → kv-7r35fj82.js} +46 -46
  82. package/dist/chunks/{pty-ghjew0fg.js → kv-868x4neb.js} +9 -9
  83. package/dist/chunks/{pty-v86v6hh1.js → kv-86s3977f.js} +1 -1
  84. package/dist/chunks/{pty-89znhe33.js → kv-89znhe33.js} +1 -1
  85. package/dist/chunks/{pty-q98e8ctt.js → kv-8fgv5w73.js} +14 -14
  86. package/dist/chunks/{pty-93a8yfjt.js → kv-93a8yfjt.js} +2 -2
  87. package/dist/chunks/{pty-e5w0frp6.js → kv-9epfrg2r.js} +8 -8
  88. package/dist/chunks/{pty-q6affv31.js → kv-9kbmc1bn.js} +10 -10
  89. package/dist/chunks/{pty-xv6rm4x2.js → kv-9q10gh9c.js} +11 -11
  90. package/dist/chunks/{pty-9qm9egsn.js → kv-9qm9egsn.js} +2 -2
  91. package/dist/chunks/{pty-aaet6srn.js → kv-aaet6srn.js} +2 -2
  92. package/dist/chunks/{pty-nsb2bjtz.js → kv-afs1gfwh.js} +9 -9
  93. package/dist/chunks/{pty-3bk28qgk.js → kv-aj9ffb68.js} +10 -10
  94. package/dist/chunks/{pty-ajtjthsy.js → kv-ajtjthsy.js} +2 -2
  95. package/dist/chunks/{pty-00z3vp5f.js → kv-an7cqtb7.js} +4 -4
  96. package/dist/chunks/{pty-885bgk82.js → kv-ayqzvvm1.js} +8 -8
  97. package/dist/chunks/{pty-hc93tgr1.js → kv-b1cc60s2.js} +41 -41
  98. package/dist/chunks/{pty-f2vpb3bg.js → kv-b2nzchm7.js} +11 -11
  99. package/dist/chunks/{pty-b6gygkdw.js → kv-b6gygkdw.js} +2 -2
  100. package/dist/chunks/{pty-b9wsbatv.js → kv-b9wsbatv.js} +1 -1
  101. package/dist/chunks/{pty-rhk22a8q.js → kv-baw8dctm.js} +13 -13
  102. package/dist/chunks/{pty-0hvb2nf8.js → kv-bv80vwep.js} +16 -16
  103. package/dist/chunks/{pty-95zhbw9r.js → kv-bvz5j511.js} +15 -15
  104. package/dist/chunks/{pty-m75mcjf9.js → kv-bw6y50md.js} +8 -8
  105. package/dist/chunks/{pty-mw3zcnx5.js → kv-cq9zegd4.js} +3 -3
  106. package/dist/chunks/{pty-g2fgb7sn.js → kv-cxmh4q5b.js} +4 -4
  107. package/dist/chunks/{pty-44zne82a.js → kv-d09b090m.js} +8 -8
  108. package/dist/chunks/{pty-920gn045.js → kv-d4cb5k3p.js} +8 -8
  109. package/dist/chunks/{pty-d72308c8.js → kv-d72308c8.js} +2 -2
  110. package/dist/chunks/{pty-adq4trrh.js → kv-db49mgn0.js} +21 -21
  111. package/dist/chunks/{pty-39zpmefd.js → kv-dcspmnv1.js} +32 -32
  112. package/dist/chunks/{pty-229n223y.js → kv-dctx0khx.js} +32 -32
  113. package/dist/chunks/kv-dh0q6p2e.js +247 -0
  114. package/dist/chunks/{pty-hv1w3vyq.js → kv-dhqg8tcb.js} +9 -9
  115. package/dist/chunks/{pty-qk456gnd.js → kv-djkavt39.js} +24 -24
  116. package/dist/chunks/{pty-9p5wwx95.js → kv-dmqmcw2r.js} +41 -41
  117. package/dist/chunks/{pty-6dj4wchm.js → kv-e10cy4w0.js} +29 -29
  118. package/dist/chunks/{pty-nbmnd9cx.js → kv-e2jdrf4x.js} +23 -23
  119. package/dist/chunks/{pty-0e01nj6k.js → kv-e5b0qn1c.js} +1 -1
  120. package/dist/chunks/{pty-yqr5arb9.js → kv-ephmsh67.js} +24 -24
  121. package/dist/chunks/{pty-6wv9sdr8.js → kv-erz98jwc.js} +32 -32
  122. package/dist/chunks/{pty-at2ecxq3.js → kv-f1kgb3zy.js} +17 -17
  123. package/dist/chunks/{pty-28f1y114.js → kv-ffs8r943.js} +13 -13
  124. package/dist/chunks/{pty-7ngn7mvv.js → kv-fhgm40mk.js} +4 -4
  125. package/dist/chunks/{pty-qfs8az97.js → kv-fs7t3exj.js} +11 -11
  126. package/dist/chunks/{pty-e38w1s41.js → kv-fv8a344a.js} +8 -8
  127. package/dist/chunks/{pty-fxbjtjnd.js → kv-fxbjtjnd.js} +1 -1
  128. package/dist/chunks/{pty-fxypknc8.js → kv-fxypknc8.js} +1 -1
  129. package/dist/chunks/{pty-1n116cmy.js → kv-fz1pdqz4.js} +9 -9
  130. package/dist/chunks/{pty-7vtvr31n.js → kv-fzf7e7x1.js} +43 -43
  131. package/dist/chunks/{pty-034xe7ps.js → kv-g41n1fn3.js} +5 -5
  132. package/dist/chunks/{pty-ewr8avhk.js → kv-g54w6h1q.js} +15 -15
  133. package/dist/chunks/{pty-1kqw4rdd.js → kv-gcn4jvqh.js} +43 -43
  134. package/dist/chunks/{pty-gd4qta3r.js → kv-gd4qta3r.js} +1 -1
  135. package/dist/chunks/{pty-584xbtr7.js → kv-gfvkvwrv.js} +28 -28
  136. package/dist/chunks/{pty-qhpqdgv6.js → kv-gj8036k9.js} +34 -34
  137. package/dist/chunks/{pty-j18aeme6.js → kv-h1f297k2.js} +18 -18
  138. package/dist/chunks/{pty-kehgt38c.js → kv-h5rg6ge7.js} +30 -30
  139. package/dist/chunks/{pty-n2dx2xaf.js → kv-h625df0a.js} +12 -12
  140. package/dist/chunks/{pty-h6vf3j39.js → kv-h6vf3j39.js} +1 -1
  141. package/dist/chunks/{pty-60njtda4.js → kv-h73jd86c.js} +24 -24
  142. package/dist/chunks/{pty-heyhwy2w.js → kv-heyhwy2w.js} +1 -1
  143. package/dist/chunks/{pty-xahd2mgy.js → kv-hhxcwp9f.js} +29 -29
  144. package/dist/chunks/{pty-6pvvrh2h.js → kv-hjrjbgez.js} +5 -5
  145. package/dist/chunks/{pty-hrvm11jt.js → kv-hrvm11jt.js} +3 -3
  146. package/dist/chunks/{pty-bbpqbves.js → kv-hv4p2p21.js} +24 -24
  147. package/dist/chunks/{pty-kfv3m3yk.js → kv-hw73h5pz.js} +37 -37
  148. package/dist/chunks/{pty-dsa3zh6h.js → kv-hzecryb5.js} +18 -18
  149. package/dist/chunks/{pty-paphc93g.js → kv-j935v87r.js} +2 -2
  150. package/dist/chunks/{pty-2e5bqtpa.js → kv-jg1zcjqp.js} +35 -35
  151. package/dist/chunks/{pty-kxq1x6r5.js → kv-jhf9a7kk.js} +64 -64
  152. package/dist/chunks/{pty-tmr8q769.js → kv-jm1tdwje.js} +16 -16
  153. package/dist/chunks/{pty-6vbgb2w8.js → kv-jq2whtdt.js} +11 -11
  154. package/dist/chunks/{pty-ccfsy1h3.js → kv-js3p9a9k.js} +11 -11
  155. package/dist/chunks/{pty-05rkf16m.js → kv-jy629emf.js} +13 -13
  156. package/dist/chunks/{pty-k4bwy1x5.js → kv-k4bwy1x5.js} +1 -1
  157. package/dist/chunks/{pty-3gq0vy0h.js → kv-k6fnztft.js} +2 -2
  158. package/dist/chunks/{pty-zsky2and.js → kv-k7dwhv72.js} +18 -18
  159. package/dist/chunks/{pty-4gnp7s9d.js → kv-k8x9vhm8.js} +11 -11
  160. package/dist/chunks/{pty-anbsaymy.js → kv-kd8v050h.js} +12 -12
  161. package/dist/chunks/{pty-pcvxjvjj.js → kv-kf8thf07.js} +28 -28
  162. package/dist/chunks/{pty-kg06axw8.js → kv-kg06axw8.js} +1 -1
  163. package/dist/chunks/{pty-hw4pv20g.js → kv-kvsjn1dr.js} +2 -2
  164. package/dist/chunks/{pty-c2bqpta2.js → kv-kw3wy51s.js} +43 -43
  165. package/dist/chunks/{pty-rb27xt0t.js → kv-kwvtfp1b.js} +10 -10
  166. package/dist/chunks/{pty-5fnfwqar.js → kv-m3fm0fm8.js} +5 -5
  167. package/dist/chunks/{pty-9tv260m8.js → kv-m4p2ftrf.js} +13 -13
  168. package/dist/chunks/{pty-42tkewwq.js → kv-m60hmjpw.js} +4 -4
  169. package/dist/chunks/{pty-m9w0rfyh.js → kv-m9w0rfyh.js} +1 -1
  170. package/dist/chunks/{pty-n2hm0s76.js → kv-mav5hcv8.js} +27 -27
  171. package/dist/chunks/{pty-50sdxj4q.js → kv-mcxg6pmm.js} +1 -1
  172. package/dist/chunks/{pty-czptf2ey.js → kv-mdnhxyz2.js} +11 -11
  173. package/dist/chunks/{pty-xd6am0g0.js → kv-mfe1qetb.js} +16 -16
  174. package/dist/chunks/{pty-jaxg81k6.js → kv-mn48t6tr.js} +17 -17
  175. package/dist/chunks/kv-mq1xgkyh.js +22 -0
  176. package/dist/chunks/{pty-2e2d6q87.js → kv-mqds9z8y.js} +28 -28
  177. package/dist/chunks/{pty-t15q1rjz.js → kv-mqyp5gdj.js} +20 -20
  178. package/dist/chunks/{pty-pa8g9c14.js → kv-mwvt73nw.js} +46 -46
  179. package/dist/chunks/{pty-pn7b7v58.js → kv-mxs1xwvp.js} +9 -9
  180. package/dist/chunks/{pty-n38qs1ar.js → kv-n38qs1ar.js} +2 -2
  181. package/dist/chunks/{pty-sa79eh7w.js → kv-n6a7rk8g.js} +24 -24
  182. package/dist/chunks/kv-n6k242f4.js +18 -0
  183. package/dist/chunks/{pty-xza2q296.js → kv-n7731ngr.js} +13 -13
  184. package/dist/chunks/{pty-k2rh24n9.js → kv-nkkerv85.js} +10 -10
  185. package/dist/chunks/{pty-xtm2ympe.js → kv-npzt3p1j.js} +15 -15
  186. package/dist/chunks/{pty-c0w37k4q.js → kv-nr9x74c1.js} +24 -24
  187. package/dist/chunks/{pty-jfbxega8.js → kv-p198ap2v.js} +33 -33
  188. package/dist/chunks/{pty-e1yeq7kc.js → kv-p425gb1k.js} +10 -10
  189. package/dist/chunks/{pty-d3mwe7xz.js → kv-p66fc0fz.js} +11 -11
  190. package/dist/chunks/{pty-j4v8sn08.js → kv-p88s56y3.js} +24 -24
  191. package/dist/chunks/{pty-4xah2tk6.js → kv-pa8bv90n.js} +25 -25
  192. package/dist/chunks/{pty-wftjy6b7.js → kv-ph38rbv1.js} +4 -4
  193. package/dist/chunks/{pty-pjvnvgmy.js → kv-pjvnvgmy.js} +1 -1
  194. package/dist/chunks/{pty-hcj2ya9p.js → kv-pk502bdp.js} +16 -16
  195. package/dist/chunks/{pty-pknna89w.js → kv-pknna89w.js} +1 -1
  196. package/dist/chunks/{pty-yt5m2mw4.js → kv-pv5nzn32.js} +5 -5
  197. package/dist/chunks/{pty-8q711cp6.js → kv-pwb001t0.js} +32 -32
  198. package/dist/chunks/{pty-6k404gxp.js → kv-py42k196.js} +4 -4
  199. package/dist/chunks/{pty-mhk6k3g8.js → kv-q77zht3w.js} +4 -4
  200. package/dist/chunks/{pty-k58vdtz8.js → kv-qcz5xzee.js} +32 -32
  201. package/dist/chunks/{pty-x227sajd.js → kv-qfja8fnv.js} +7 -7
  202. package/dist/chunks/{pty-607tc6va.js → kv-qgn6gcr1.js} +5 -5
  203. package/dist/chunks/{pty-zpgaey8y.js → kv-qhwr7wtz.js} +13 -13
  204. package/dist/chunks/{pty-59fxchxt.js → kv-qnb0t8zm.js} +59 -59
  205. package/dist/chunks/{pty-43nyxw14.js → kv-qnbahbj0.js} +16 -16
  206. package/dist/chunks/{pty-9yz748bb.js → kv-qqz1053v.js} +71 -71
  207. package/dist/chunks/{pty-qsdy395h.js → kv-qsdy395h.js} +1 -1
  208. package/dist/chunks/{pty-qba7ejvk.js → kv-qxsy5p3f.js} +13 -13
  209. package/dist/chunks/{pty-ak1pjm22.js → kv-r0keqwvg.js} +23 -23
  210. package/dist/chunks/{pty-bcezcar3.js → kv-r5s1f9ds.js} +5 -5
  211. package/dist/chunks/{pty-mhkvc446.js → kv-r5x6zcsm.js} +3 -3
  212. package/dist/chunks/{pty-r8dhm0tv.js → kv-r8dhm0tv.js} +1 -1
  213. package/dist/chunks/{pty-ydjwxjd3.js → kv-rfjq507z.js} +53 -53
  214. package/dist/chunks/{pty-0qpy8c3h.js → kv-rk9sw2av.js} +8 -8
  215. package/dist/chunks/{pty-n09fkg1f.js → kv-rkjw441a.js} +302 -302
  216. package/dist/chunks/{pty-kxpygcw9.js → kv-rp8jz6x1.js} +4 -4
  217. package/dist/chunks/{pty-16r38w9g.js → kv-rvhss2m2.js} +4 -4
  218. package/dist/chunks/{pty-w420m8em.js → kv-ry7mz5fv.js} +15 -15
  219. package/dist/chunks/{pty-qsbb4ejq.js → kv-rynqx63d.js} +35 -35
  220. package/dist/chunks/{pty-yc4s7c8p.js → kv-rz1r1rv7.js} +20 -20
  221. package/dist/chunks/{pty-8ewp3a8x.js → kv-s2px886z.js} +1 -1
  222. package/dist/chunks/{pty-v79494tb.js → kv-s3eqpch7.js} +1 -1
  223. package/dist/chunks/{pty-pdvxz7zn.js → kv-s4ss2bw5.js} +51 -51
  224. package/dist/chunks/{pty-88nptzkr.js → kv-sb910js5.js} +20 -20
  225. package/dist/chunks/{pty-sba4qhjf.js → kv-sba4qhjf.js} +1 -1
  226. package/dist/chunks/kv-sv33epe9.js +20 -0
  227. package/dist/chunks/{pty-6pa79em5.js → kv-syq477mx.js} +46 -46
  228. package/dist/chunks/{pty-0s2shbjn.js → kv-t1bhb1bg.js} +11 -11
  229. package/dist/chunks/{pty-q4mk538t.js → kv-t6srx486.js} +7 -7
  230. package/dist/chunks/{pty-tazgh4e4.js → kv-tazgh4e4.js} +1 -1
  231. package/dist/chunks/{pty-708tkjkz.js → kv-tgaxz472.js} +28 -28
  232. package/dist/chunks/{pty-dx29x28q.js → kv-tj8gy5c5.js} +17 -17
  233. package/dist/chunks/{pty-tjykrgmx.js → kv-tjykrgmx.js} +1 -1
  234. package/dist/chunks/{pty-afhjd4jv.js → kv-tq1jg9v7.js} +10 -10
  235. package/dist/chunks/{pty-x5n4q9yc.js → kv-ts23zk9x.js} +28 -28
  236. package/dist/chunks/{pty-d6kfye11.js → kv-twy610cz.js} +18 -18
  237. package/dist/chunks/{pty-39hnsdnv.js → kv-v1ggvvtw.js} +39 -39
  238. package/dist/chunks/{pty-30jr7zz1.js → kv-v2aawvfd.js} +18 -18
  239. package/dist/chunks/{pty-csm7mmwy.js → kv-v4bdvzd3.js} +90 -90
  240. package/dist/chunks/{pty-djtdz80w.js → kv-vep9yay1.js} +4 -4
  241. package/dist/chunks/{pty-b6xrda6h.js → kv-vq25wjhh.js} +25 -25
  242. package/dist/chunks/{pty-h2g666ee.js → kv-vxz8nws8.js} +11 -11
  243. package/dist/chunks/{pty-zfyvq2j7.js → kv-vy051p0e.js} +10 -10
  244. package/dist/chunks/kv-w3vb4krt.js +4 -0
  245. package/dist/chunks/{pty-w3wsvvr9.js → kv-w3wsvvr9.js} +1 -1
  246. package/dist/chunks/{pty-tstrzs8j.js → kv-w60ndp2z.js} +36 -36
  247. package/dist/chunks/{pty-njfgd6ze.js → kv-w75j66fn.js} +9 -9
  248. package/dist/chunks/{pty-rt7tws36.js → kv-wawr59mw.js} +28 -28
  249. package/dist/chunks/{pty-wd87259q.js → kv-wd87259q.js} +1 -1
  250. package/dist/chunks/{pty-nx46162a.js → kv-wfvjw4z7.js} +22 -22
  251. package/dist/chunks/{pty-v794b4ar.js → kv-wgfc0hft.js} +9 -9
  252. package/dist/chunks/{pty-yjk1z796.js → kv-wgxn7ww3.js} +4 -4
  253. package/dist/chunks/{pty-7zv350dg.js → kv-wkz0j4q5.js} +20 -20
  254. package/dist/chunks/{pty-sx5qmy0w.js → kv-wrvstr67.js} +15 -15
  255. package/dist/chunks/{pty-x1ezjp6w.js → kv-x1ezjp6w.js} +1 -1
  256. package/dist/chunks/{pty-27rbv8e3.js → kv-x3stwmqx.js} +21 -21
  257. package/dist/chunks/{pty-vgtfkpzm.js → kv-xczcj508.js} +31 -31
  258. package/dist/chunks/{pty-m1q1d0y4.js → kv-xez3q0qn.js} +91 -91
  259. package/dist/chunks/{pty-7ec5mhmx.js → kv-xf5bdvwx.js} +23 -23
  260. package/dist/chunks/{pty-45rge8j9.js → kv-xn9aqqx6.js} +10 -10
  261. package/dist/chunks/{pty-9yc3kf06.js → kv-xqkm9ax4.js} +4 -4
  262. package/dist/chunks/{pty-9xvgy1m6.js → kv-xqsy6kp0.js} +1 -1
  263. package/dist/chunks/{pty-2xwkyk0m.js → kv-xw8eq9f1.js} +5 -5
  264. package/dist/chunks/{pty-sp4bteyd.js → kv-xxzj7qcx.js} +6 -6
  265. package/dist/chunks/{pty-vnhhhj0r.js → kv-xyvw3pp2.js} +11 -11
  266. package/dist/chunks/{pty-6fvx7cth.js → kv-y18qbtn0.js} +3 -3
  267. package/dist/chunks/{pty-y1fvbwt7.js → kv-y1fvbwt7.js} +1 -1
  268. package/dist/chunks/{pty-b7d3s2yt.js → kv-y6nt3k22.js} +2 -2
  269. package/dist/chunks/{pty-dpkg50ah.js → kv-y71avatq.js} +4 -4
  270. package/dist/chunks/{pty-yfbd16n1.js → kv-yfbd16n1.js} +2 -2
  271. package/dist/chunks/{pty-ngxtnptd.js → kv-yhh6951v.js} +8 -8
  272. package/dist/chunks/{pty-v5v99x5c.js → kv-ykcesz1b.js} +4 -4
  273. package/dist/chunks/{pty-gw4mnhe1.js → kv-ykk6pqwd.js} +23 -23
  274. package/dist/chunks/{pty-br3wnqmy.js → kv-yms21qcc.js} +20 -20
  275. package/dist/chunks/{pty-mkyvm1mp.js → kv-yydg8tay.js} +6 -6
  276. package/dist/chunks/{pty-z1k01bn4.js → kv-z1k01bn4.js} +2 -2
  277. package/dist/chunks/{pty-b3qm0p9n.js → kv-z3qt4vrk.js} +27 -27
  278. package/dist/chunks/{pty-hc9rwb2s.js → kv-z89789qm.js} +22 -22
  279. package/dist/chunks/{pty-rt5xed8c.js → kv-zess5s1n.js} +26 -26
  280. package/dist/chunks/{pty-jp51vptf.js → kv-zgne66ps.js} +43 -43
  281. package/dist/chunks/{pty-y8ztchkp.js → kv-zjvrjqxt.js} +7 -7
  282. package/dist/chunks/{pty-4bszfkn1.js → kv-zn2pq4p8.js} +5 -5
  283. package/dist/chunks/{pty-g3m9axkp.js → kv-zqg3qsz2.js} +4 -4
  284. package/dist/chunks/{pty-zxq2ej10.js → kv-zxq2ej10.js} +1 -1
  285. package/dist/codemode/catalog.js +1 -1
  286. package/dist/codemode/instructions.js +7 -7
  287. package/dist/codemode/tool.js +2 -2
  288. package/dist/command.js +83 -83
  289. package/dist/config/discovery.js +77 -77
  290. package/dist/config/markdown.js +1 -1
  291. package/dist/config/normalize.js +19 -19
  292. package/dist/config/plugin/agent.js +116 -116
  293. package/dist/config/plugin/command.js +207 -207
  294. package/dist/config/plugin/compaction.js +153 -153
  295. package/dist/config/plugin/entry-observer.js +1 -1
  296. package/dist/config/plugin/formatter.js +116 -116
  297. package/dist/config/plugin/image.js +114 -114
  298. package/dist/config/plugin/instruction.js +85 -85
  299. package/dist/config/plugin/location-watcher.js +114 -114
  300. package/dist/config/plugin/mcp.js +125 -125
  301. package/dist/config/plugin/policy.js +113 -113
  302. package/dist/config/plugin/provider.js +112 -112
  303. package/dist/config/plugin/reference.js +116 -116
  304. package/dist/config/plugin/shell.js +115 -115
  305. package/dist/config/plugin/skill-file.js +96 -96
  306. package/dist/config/plugin/skill.js +134 -134
  307. package/dist/config/plugin/snapshot.js +114 -114
  308. package/dist/config/plugin/source.js +116 -116
  309. package/dist/config/plugin/tool-output.js +116 -116
  310. package/dist/config/plugin/websearch.js +112 -112
  311. package/dist/config/plugin/worktree.js +117 -117
  312. package/dist/config/variable.js +3 -3
  313. package/dist/config/watch.js +1 -1
  314. package/dist/config.js +118 -118
  315. package/dist/credential/sql.js +2 -2
  316. package/dist/credential.js +80 -80
  317. package/dist/database/database.js +68 -68
  318. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  319. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  320. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  321. package/dist/database/drizzle/index.js +15 -15
  322. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  323. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  324. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  325. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  326. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  327. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  328. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  329. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  330. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  331. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  332. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  333. package/dist/database/drizzle.js +16 -16
  334. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  335. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  336. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  337. package/dist/database/migration/20260225215848_workspace.js +1 -1
  338. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  339. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  340. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  341. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  342. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  343. package/dist/database/migration/20260323234822_events.js +1 -1
  344. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  345. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  346. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  347. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  348. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  349. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  350. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  351. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  352. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  353. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  354. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  355. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  356. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  357. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  358. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  359. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  360. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  361. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  362. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  363. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  364. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  365. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  366. package/dist/database/migration/20260611035744_credential.js +1 -1
  367. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  368. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  369. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  370. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  371. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  372. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  373. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  374. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  375. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  376. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  377. package/dist/database/migration/20260812213948_worktree.js +1 -1
  378. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  379. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  380. package/dist/database/migration.gen.js +47 -47
  381. package/dist/database/migration.js +49 -49
  382. package/dist/database/path.js +2 -2
  383. package/dist/database/schema.gen.js +1 -1
  384. package/dist/database/schema.sql.js +1 -1
  385. package/dist/database/sqlite.bun.js +1 -1
  386. package/dist/database/sqlite.js +1 -1
  387. package/dist/database/sqlite.node.js +1 -1
  388. package/dist/database/sqlite.workerd.js +1 -1
  389. package/dist/database/v1-migration.bun.js +77 -77
  390. package/dist/database/v1-migration.js +1 -1
  391. package/dist/effect/app-node-builder.js +358 -358
  392. package/dist/effect/app-node-platform.js +2 -2
  393. package/dist/effect/keyed-mutex.js +3 -3
  394. package/dist/effect/websocket-constructor.js +1 -1
  395. package/dist/environment/driver.js +1 -1
  396. package/dist/environment/environment.js +88 -88
  397. package/dist/environment/exec-defaults.js +2 -2
  398. package/dist/environment/files.js +1 -1
  399. package/dist/environment/index.js +90 -90
  400. package/dist/environment/local.js +2 -2
  401. package/dist/environment/memory.js +2 -2
  402. package/dist/environment/unavailable.js +1 -1
  403. package/dist/event/sql.js +1 -1
  404. package/dist/event-logger.js +72 -72
  405. package/dist/file-mutation.js +89 -89
  406. package/dist/file-retention.js +1 -1
  407. package/dist/file.js +1 -1
  408. package/dist/filesystem/fff.bun.js +2 -2
  409. package/dist/filesystem/fff.js +1 -1
  410. package/dist/filesystem/fff.node.js +2 -2
  411. package/dist/filesystem/fff.workerd.js +2 -2
  412. package/dist/filesystem/ignore.js +1 -1
  413. package/dist/filesystem/location-watcher-policy.js +6 -6
  414. package/dist/filesystem/location-watcher.js +218 -218
  415. package/dist/filesystem/protected.js +1 -1
  416. package/dist/filesystem/search.js +99 -99
  417. package/dist/filesystem/watcher-binding.js +3 -3
  418. package/dist/filesystem/watcher.js +15 -15
  419. package/dist/filesystem.js +96 -96
  420. package/dist/form.js +82 -82
  421. package/dist/formatter/builtins.js +4 -4
  422. package/dist/formatter.js +84 -84
  423. package/dist/generate.js +88 -88
  424. package/dist/git.js +7 -7
  425. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  426. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  427. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  428. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  429. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  430. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  431. package/dist/github-copilot/copilot-provider.js +17 -17
  432. package/dist/github-copilot/models.js +7 -7
  433. package/dist/github-copilot/openai-compatible-error.js +1 -1
  434. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  435. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  436. package/dist/github-copilot/responses/openai-error.js +1 -1
  437. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  438. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  439. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  440. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  441. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  442. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  443. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  444. package/dist/id/id.js +1 -1
  445. package/dist/image/photon.js +2 -2
  446. package/dist/image.js +6 -6
  447. package/dist/instance/service.js +7 -7
  448. package/dist/instance.js +349 -349
  449. package/dist/instruction-discovery.js +79 -79
  450. package/dist/instructions/builtins.js +82 -82
  451. package/dist/instructions/index.js +3 -3
  452. package/dist/integration/connection.js +1 -1
  453. package/dist/integration.js +83 -83
  454. package/dist/job.js +75 -75
  455. package/dist/kv/sql.js +2 -2
  456. package/dist/kv.js +71 -71
  457. package/dist/location-activity.js +86 -86
  458. package/dist/location-mutation.js +81 -81
  459. package/dist/location-service-map.js +81 -81
  460. package/dist/location-services.js +346 -346
  461. package/dist/location.js +84 -84
  462. package/dist/mcp/client.js +86 -86
  463. package/dist/mcp/index.js +102 -102
  464. package/dist/mcp/instructions.js +120 -120
  465. package/dist/mcp/oauth.js +2 -2
  466. package/dist/mcp/stdio.js +85 -85
  467. package/dist/mime.js +1 -1
  468. package/dist/modal/models.js +7 -7
  469. package/dist/model-resolver.js +85 -85
  470. package/dist/model.js +10 -10
  471. package/dist/models-dev.js +86 -86
  472. package/dist/oauth/page.js +1 -1
  473. package/dist/permission/saved.js +78 -78
  474. package/dist/permission/sql.js +5 -5
  475. package/dist/permission.js +109 -109
  476. package/dist/persistent-pty/binary.bun.js +1 -1
  477. package/dist/persistent-pty/daemon.js +1 -1
  478. package/dist/persistent-pty/index.js +84 -84
  479. package/dist/persistent-pty/pty-binding.js +1 -1
  480. package/dist/persistent-pty.js +73 -73
  481. package/dist/plugin/agent.js +98 -98
  482. package/dist/plugin/command.js +95 -95
  483. package/dist/plugin/hooks.js +5 -5
  484. package/dist/plugin/host.js +211 -211
  485. package/dist/plugin/instance.js +5 -5
  486. package/dist/plugin/internal.js +320 -320
  487. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  488. package/dist/plugin/models-dev.js +75 -75
  489. package/dist/plugin/module.js +7 -7
  490. package/dist/plugin/plan.js +96 -96
  491. package/dist/plugin/promise.js +1 -1
  492. package/dist/plugin/provider/alibaba.js +2 -2
  493. package/dist/plugin/provider/amazon-bedrock.js +2 -2
  494. package/dist/plugin/provider/anthropic.js +2 -2
  495. package/dist/plugin/provider/azure.js +117 -117
  496. package/dist/plugin/provider/cerebras.js +2 -2
  497. package/dist/plugin/provider/cloudflare-ai-gateway.js +116 -116
  498. package/dist/plugin/provider/cloudflare-workers-ai.js +116 -116
  499. package/dist/plugin/provider/cohere.js +2 -2
  500. package/dist/plugin/provider/configured.js +113 -113
  501. package/dist/plugin/provider/dynamic.js +2 -2
  502. package/dist/plugin/provider/factory.js +1 -1
  503. package/dist/plugin/provider/gateway.js +2 -2
  504. package/dist/plugin/provider/github-copilot.js +79 -79
  505. package/dist/plugin/provider/gitlab.js +3 -3
  506. package/dist/plugin/provider/google-vertex.js +2 -2
  507. package/dist/plugin/provider/kilo.js +2 -2
  508. package/dist/plugin/provider/llmgateway.js +75 -75
  509. package/dist/plugin/provider/lmstudio.js +116 -116
  510. package/dist/plugin/provider/mistral.js +2 -2
  511. package/dist/plugin/provider/modal.js +78 -78
  512. package/dist/plugin/provider/nvidia.js +2 -2
  513. package/dist/plugin/provider/ollama.js +116 -116
  514. package/dist/plugin/provider/openai-compatible.js +1 -1
  515. package/dist/plugin/provider/openai.js +79 -79
  516. package/dist/plugin/provider/opencode.js +75 -75
  517. package/dist/plugin/provider/openrouter.js +3 -3
  518. package/dist/plugin/provider/perplexity.js +2 -2
  519. package/dist/plugin/provider/sap-ai-core.js +3 -3
  520. package/dist/plugin/provider/sdk-factory.js +1 -1
  521. package/dist/plugin/provider/snowflake-cortex.js +2 -2
  522. package/dist/plugin/provider/venice.js +2 -2
  523. package/dist/plugin/provider/vercel.js +2 -2
  524. package/dist/plugin/provider/vllm.js +116 -116
  525. package/dist/plugin/provider/xai.js +76 -76
  526. package/dist/plugin/provider/zenmux.js +2 -2
  527. package/dist/plugin/provider.js +154 -154
  528. package/dist/plugin/sdk.js +74 -74
  529. package/dist/plugin/service.js +5 -5
  530. package/dist/plugin/skill.js +131 -131
  531. package/dist/plugin/source-directory.js +1 -1
  532. package/dist/plugin/supervisor.js +339 -339
  533. package/dist/plugin/system-prompt.js +4 -4
  534. package/dist/plugin/update.js +6 -6
  535. package/dist/plugin/variant.js +4 -4
  536. package/dist/plugin/vcs/git.js +82 -82
  537. package/dist/plugin/vcs/hg.js +82 -82
  538. package/dist/plugin/warming.js +111 -111
  539. package/dist/plugin/websearch/exa.js +5 -5
  540. package/dist/plugin/websearch/firecrawl.js +6 -6
  541. package/dist/plugin/websearch/index.js +8 -8
  542. package/dist/plugin/websearch/mcp.js +6 -6
  543. package/dist/plugin/websearch/parallel.js +8 -8
  544. package/dist/plugin/websearch/tavily.js +6 -6
  545. package/dist/plugin.js +216 -216
  546. package/dist/project/schema.js +8 -8
  547. package/dist/project/sql.js +4 -4
  548. package/dist/project.js +85 -85
  549. package/dist/provider.js +5 -5
  550. package/dist/pty/protocol.js +1 -1
  551. package/dist/pty/schema.js +3 -3
  552. package/dist/pty/ticket.js +1 -1
  553. package/dist/pty.js +92 -92
  554. package/dist/reference/instructions.js +84 -84
  555. package/dist/reference.js +86 -86
  556. package/dist/repository-cache.js +76 -76
  557. package/dist/repository.js +3 -3
  558. package/dist/ripgrep/binary.js +2 -2
  559. package/dist/ripgrep.js +91 -91
  560. package/dist/rpc.js +81 -81
  561. package/dist/schema.js +1 -1
  562. package/dist/session/command.js +72 -72
  563. package/dist/session/compaction.js +125 -125
  564. package/dist/session/context.js +145 -145
  565. package/dist/session/environment.js +5 -5
  566. package/dist/session/error.js +7 -7
  567. package/dist/session/event.js +1 -1
  568. package/dist/session/execution/restart.js +217 -217
  569. package/dist/session/execution.js +120 -120
  570. package/dist/session/generate.js +144 -144
  571. package/dist/session/history.js +14 -14
  572. package/dist/session/inbox.js +86 -86
  573. package/dist/session/info.js +3 -3
  574. package/dist/session/instruction-entry.js +77 -77
  575. package/dist/session/instruction-state.js +8 -8
  576. package/dist/session/instructions.js +87 -87
  577. package/dist/session/message-updater.js +2 -2
  578. package/dist/session/message.js +1 -1
  579. package/dist/session/model-request.js +112 -112
  580. package/dist/session/model-transport.js +9 -9
  581. package/dist/session/move.js +124 -124
  582. package/dist/session/projector.js +84 -84
  583. package/dist/session/prompt.js +99 -99
  584. package/dist/session/revert.js +85 -85
  585. package/dist/session/run-coordinator.js +3 -3
  586. package/dist/session/runner/index.js +3 -3
  587. package/dist/session/runner/llm.js +223 -223
  588. package/dist/session/runner/max-steps.js +1 -1
  589. package/dist/session/runner/model.js +85 -85
  590. package/dist/session/runner/publish-llm-event.js +3 -3
  591. package/dist/session/runner/retry.js +4 -4
  592. package/dist/session/runner/step.js +119 -119
  593. package/dist/session/runner/to-llm-message.js +1 -1
  594. package/dist/session/schema.js +5 -5
  595. package/dist/session/session.js +167 -167
  596. package/dist/session/shell.js +130 -130
  597. package/dist/session/skill.js +97 -97
  598. package/dist/session/sql.js +5 -5
  599. package/dist/session/stats.js +73 -73
  600. package/dist/session/store.js +82 -82
  601. package/dist/session/subagent-completion.js +1 -1
  602. package/dist/session/subagent-job.js +203 -203
  603. package/dist/session/system-prompt.js +3 -3
  604. package/dist/session/title.js +149 -149
  605. package/dist/session/to-session-error.js +105 -105
  606. package/dist/session/transfer.js +216 -216
  607. package/dist/session/usage.js +1 -1
  608. package/dist/session.js +209 -209
  609. package/dist/shell/parse.js +6 -6
  610. package/dist/shell/result.js +1 -1
  611. package/dist/shell/scan.js +1 -1
  612. package/dist/shell/select.js +11 -11
  613. package/dist/shell.js +132 -132
  614. package/dist/skill/discovery.js +2 -2
  615. package/dist/skill/instructions.js +101 -101
  616. package/dist/skill.js +106 -106
  617. package/dist/snapshot.js +84 -84
  618. package/dist/state.js +1 -1
  619. package/dist/tool/html-markdown.js +1 -1
  620. package/dist/tool/http-body.js +1 -1
  621. package/dist/tool/mcp.js +117 -117
  622. package/dist/tool/plugin/edit.js +114 -114
  623. package/dist/tool/plugin/file-diff.js +1 -1
  624. package/dist/tool/plugin/glob.js +119 -119
  625. package/dist/tool/plugin/grep.js +119 -119
  626. package/dist/tool/plugin/opencode.js +3 -3
  627. package/dist/tool/plugin/patch.js +116 -116
  628. package/dist/tool/plugin/question.js +97 -97
  629. package/dist/tool/plugin/read.js +120 -120
  630. package/dist/tool/plugin/shell.js +208 -208
  631. package/dist/tool/plugin/skill.js +103 -103
  632. package/dist/tool/plugin/subagent.js +212 -212
  633. package/dist/tool/plugin/webfetch.js +106 -106
  634. package/dist/tool/plugin/websearch.js +106 -106
  635. package/dist/tool/plugin/write.js +116 -116
  636. package/dist/tool/read-filesystem.js +96 -96
  637. package/dist/tool/runtime.js +1 -1
  638. package/dist/tool-output.js +8 -8
  639. package/dist/tool.js +11 -11
  640. package/dist/util/error.js +1 -1
  641. package/dist/util/iife.js +1 -1
  642. package/dist/util/lazy.js +1 -1
  643. package/dist/util/slug.js +1 -1
  644. package/dist/util/token.js +1 -1
  645. package/dist/util/which.js +1 -1
  646. package/dist/util/wildcard.js +1 -1
  647. package/dist/v1/config/agent.js +5 -5
  648. package/dist/v1/config/attachment.js +4 -4
  649. package/dist/v1/config/command.js +5 -5
  650. package/dist/v1/config/config.js +16 -16
  651. package/dist/v1/config/error.js +4 -4
  652. package/dist/v1/config/formatter.js +5 -5
  653. package/dist/v1/config/layout.js +1 -1
  654. package/dist/v1/config/lsp.js +3 -3
  655. package/dist/v1/config/mcp.js +4 -4
  656. package/dist/v1/config/migrate.js +4 -4
  657. package/dist/v1/config/permission.js +7 -7
  658. package/dist/v1/config/plugin.js +3 -3
  659. package/dist/v1/config/provider-options.js +1 -1
  660. package/dist/v1/config/provider.js +4 -4
  661. package/dist/v1/config/server.js +2 -2
  662. package/dist/v1/config/skills.js +3 -3
  663. package/dist/v1/permission.js +1 -1
  664. package/dist/vcs/patch.js +1 -1
  665. package/dist/vcs.js +85 -85
  666. package/dist/websearch.js +82 -82
  667. package/dist/wellknown/plugin.js +74 -74
  668. package/dist/wellknown.js +77 -77
  669. package/dist/workspace/driver.js +3 -3
  670. package/dist/workspace/sql.js +1 -1
  671. package/dist/workspace.js +78 -78
  672. package/dist/worktree/directory.js +2 -2
  673. package/dist/worktree/git.js +7 -7
  674. package/dist/worktree/refresh.js +338 -338
  675. package/dist/worktree/sql.js +5 -5
  676. package/dist/worktree.js +89 -89
  677. package/package.json +7 -7
  678. package/dist/chunks/pty-06sgeqe0.js +0 -22
  679. package/dist/chunks/pty-6wpcenx3.js +0 -247
  680. package/dist/chunks/pty-9zwhrd2p.js +0 -4
  681. package/dist/chunks/pty-npy4s4aj.js +0 -20
  682. package/dist/chunks/pty-vnkjks7b.js +0 -18
  683. /package/dist/chunks/{pty-0fabt78z.js → kv-0fabt78z.js} +0 -0
  684. /package/dist/chunks/{pty-0qkdqm5v.js → kv-0qkdqm5v.js} +0 -0
  685. /package/dist/chunks/{pty-0zkw76rk.js → kv-0zkw76rk.js} +0 -0
  686. /package/dist/chunks/{pty-17cy0kzp.js → kv-17cy0kzp.js} +0 -0
  687. /package/dist/chunks/{pty-1cnp2v09.js → kv-1cnp2v09.js} +0 -0
  688. /package/dist/chunks/{pty-1kg9ymc8.js → kv-1kg9ymc8.js} +0 -0
  689. /package/dist/chunks/{pty-2710q6r3.js → kv-2710q6r3.js} +0 -0
  690. /package/dist/chunks/{pty-2axfhc9x.js → kv-2axfhc9x.js} +0 -0
  691. /package/dist/chunks/{pty-2c3vjs8z.js → kv-2c3vjs8z.js} +0 -0
  692. /package/dist/chunks/{pty-359p4xyc.js → kv-359p4xyc.js} +0 -0
  693. /package/dist/chunks/{pty-3asan66x.js → kv-3asan66x.js} +0 -0
  694. /package/dist/chunks/{pty-3t738kvx.js → kv-3t738kvx.js} +0 -0
  695. /package/dist/chunks/{pty-3v8g72cx.js → kv-3v8g72cx.js} +0 -0
  696. /package/dist/chunks/{pty-3wcehsnq.js → kv-3wcehsnq.js} +0 -0
  697. /package/dist/chunks/{pty-41nvscxy.js → kv-41nvscxy.js} +0 -0
  698. /package/dist/chunks/{pty-43n2bw4t.js → kv-43n2bw4t.js} +0 -0
  699. /package/dist/chunks/{pty-4knz6hnm.js → kv-4knz6hnm.js} +0 -0
  700. /package/dist/chunks/{pty-4y7fprxs.js → kv-4y7fprxs.js} +0 -0
  701. /package/dist/chunks/{pty-53557ph1.js → kv-53557ph1.js} +0 -0
  702. /package/dist/chunks/{pty-550bvhaj.js → kv-550bvhaj.js} +0 -0
  703. /package/dist/chunks/{pty-6prwharc.js → kv-6prwharc.js} +0 -0
  704. /package/dist/chunks/{pty-7akdwqpd.js → kv-7akdwqpd.js} +0 -0
  705. /package/dist/chunks/{pty-7m9af43g.js → kv-7m9af43g.js} +0 -0
  706. /package/dist/chunks/{pty-822emrt2.js → kv-822emrt2.js} +0 -0
  707. /package/dist/chunks/{pty-88xbtdfr.js → kv-88xbtdfr.js} +0 -0
  708. /package/dist/chunks/{pty-8n3pysct.js → kv-8n3pysct.js} +0 -0
  709. /package/dist/chunks/{pty-982e01ww.js → kv-982e01ww.js} +0 -0
  710. /package/dist/chunks/{pty-9a4afbnw.js → kv-9a4afbnw.js} +0 -0
  711. /package/dist/chunks/{pty-9rqn6x4v.js → kv-9rqn6x4v.js} +0 -0
  712. /package/dist/chunks/{pty-a1tpkmh4.js → kv-a1tpkmh4.js} +0 -0
  713. /package/dist/chunks/{pty-af5trqkr.js → kv-af5trqkr.js} +0 -0
  714. /package/dist/chunks/{pty-afrmfg78.js → kv-afrmfg78.js} +0 -0
  715. /package/dist/chunks/{pty-aqzs7mqg.js → kv-aqzs7mqg.js} +0 -0
  716. /package/dist/chunks/{pty-atq7p7m5.js → kv-atq7p7m5.js} +0 -0
  717. /package/dist/chunks/{pty-bkyjaxrp.js → kv-bkyjaxrp.js} +0 -0
  718. /package/dist/chunks/{pty-bmr6ed5q.js → kv-bmr6ed5q.js} +0 -0
  719. /package/dist/chunks/{pty-cf4snx6d.js → kv-cf4snx6d.js} +0 -0
  720. /package/dist/chunks/{pty-cvy3z8tj.js → kv-cvy3z8tj.js} +0 -0
  721. /package/dist/chunks/{pty-d9fn303g.js → kv-d9fn303g.js} +0 -0
  722. /package/dist/chunks/{pty-d9jj8t3e.js → kv-d9jj8t3e.js} +0 -0
  723. /package/dist/chunks/{pty-dajrwvna.js → kv-dajrwvna.js} +0 -0
  724. /package/dist/chunks/{pty-dap0rakb.js → kv-dap0rakb.js} +0 -0
  725. /package/dist/chunks/{pty-df08tz66.js → kv-df08tz66.js} +0 -0
  726. /package/dist/chunks/{pty-dy18nga0.js → kv-dy18nga0.js} +0 -0
  727. /package/dist/chunks/{pty-e5kj55wp.js → kv-e5kj55wp.js} +0 -0
  728. /package/dist/chunks/{pty-e73j6tqm.js → kv-e73j6tqm.js} +0 -0
  729. /package/dist/chunks/{pty-eh3zwz77.js → kv-eh3zwz77.js} +0 -0
  730. /package/dist/chunks/{pty-emrn6kk6.js → kv-emrn6kk6.js} +0 -0
  731. /package/dist/chunks/{pty-f0mxakyp.js → kv-f0mxakyp.js} +0 -0
  732. /package/dist/chunks/{pty-f6n9ztr4.js → kv-f6n9ztr4.js} +0 -0
  733. /package/dist/chunks/{pty-faypxj3z.js → kv-faypxj3z.js} +0 -0
  734. /package/dist/chunks/{pty-fd410y7t.js → kv-fd410y7t.js} +0 -0
  735. /package/dist/chunks/{pty-fxgpk5d8.js → kv-fxgpk5d8.js} +0 -0
  736. /package/dist/chunks/{pty-g4wezp1m.js → kv-g4wezp1m.js} +0 -0
  737. /package/dist/chunks/{pty-g86h250q.js → kv-g86h250q.js} +0 -0
  738. /package/dist/chunks/{pty-gebd4c9n.js → kv-gebd4c9n.js} +0 -0
  739. /package/dist/chunks/{pty-hk9envan.js → kv-hk9envan.js} +0 -0
  740. /package/dist/chunks/{pty-j2ntwpah.js → kv-j2ntwpah.js} +0 -0
  741. /package/dist/chunks/{pty-j5zkgpj8.js → kv-j5zkgpj8.js} +0 -0
  742. /package/dist/chunks/{pty-jr7sbwjy.js → kv-jr7sbwjy.js} +0 -0
  743. /package/dist/chunks/{pty-jwfs4k6c.js → kv-jwfs4k6c.js} +0 -0
  744. /package/dist/chunks/{pty-jzg6c2d5.js → kv-jzg6c2d5.js} +0 -0
  745. /package/dist/chunks/{pty-mntxs535.js → kv-mntxs535.js} +0 -0
  746. /package/dist/chunks/{pty-mp448xyj.js → kv-mp448xyj.js} +0 -0
  747. /package/dist/chunks/{pty-msx8hqn2.js → kv-msx8hqn2.js} +0 -0
  748. /package/dist/chunks/{pty-n05xt0ee.js → kv-n05xt0ee.js} +0 -0
  749. /package/dist/chunks/{pty-n3j8tn72.js → kv-n3j8tn72.js} +0 -0
  750. /package/dist/chunks/{pty-njntx4h6.js → kv-njntx4h6.js} +0 -0
  751. /package/dist/chunks/{pty-p8qxwesx.js → kv-p8qxwesx.js} +0 -0
  752. /package/dist/chunks/{pty-q3sfg36h.js → kv-q3sfg36h.js} +0 -0
  753. /package/dist/chunks/{pty-q74kybfr.js → kv-q74kybfr.js} +0 -0
  754. /package/dist/chunks/{pty-qaymkmh1.js → kv-qaymkmh1.js} +0 -0
  755. /package/dist/chunks/{pty-qb87gjwd.js → kv-qb87gjwd.js} +0 -0
  756. /package/dist/chunks/{pty-qfa1cgps.js → kv-qfa1cgps.js} +0 -0
  757. /package/dist/chunks/{pty-qrg20bc0.js → kv-qrg20bc0.js} +0 -0
  758. /package/dist/chunks/{pty-rcb2kzg1.js → kv-rcb2kzg1.js} +0 -0
  759. /package/dist/chunks/{pty-sdp7kfr6.js → kv-sdp7kfr6.js} +0 -0
  760. /package/dist/chunks/{pty-se0s1eqw.js → kv-se0s1eqw.js} +0 -0
  761. /package/dist/chunks/{pty-sk3qaz4a.js → kv-sk3qaz4a.js} +0 -0
  762. /package/dist/chunks/{pty-ssg3fenm.js → kv-ssg3fenm.js} +0 -0
  763. /package/dist/chunks/{pty-twg0f83k.js → kv-twg0f83k.js} +0 -0
  764. /package/dist/chunks/{pty-w803qqfp.js → kv-w803qqfp.js} +0 -0
  765. /package/dist/chunks/{pty-wer8tq1h.js → kv-wer8tq1h.js} +0 -0
  766. /package/dist/chunks/{pty-wtztk69x.js → kv-wtztk69x.js} +0 -0
  767. /package/dist/chunks/{pty-x0ckcb58.js → kv-x0ckcb58.js} +0 -0
  768. /package/dist/chunks/{pty-x1b8g1yb.js → kv-x1b8g1yb.js} +0 -0
  769. /package/dist/chunks/{pty-x61499pn.js → kv-x61499pn.js} +0 -0
  770. /package/dist/chunks/{pty-y44na4kk.js → kv-y44na4kk.js} +0 -0
  771. /package/dist/chunks/{pty-y8cydn3q.js → kv-y8cydn3q.js} +0 -0
  772. /package/dist/chunks/{pty-ygaqb7jw.js → kv-ygaqb7jw.js} +0 -0
  773. /package/dist/chunks/{pty-z9919s4g.js → kv-z9919s4g.js} +0 -0
  774. /package/dist/chunks/{pty-zbjnn3ac.js → kv-zbjnn3ac.js} +0 -0
@@ -1,30 +1,30 @@
1
1
  import {
2
- Service80,
3
- node85
4
- } from "./pty-0s2shbjn.js";
2
+ Service77,
3
+ node82
4
+ } from "./kv-t1bhb1bg.js";
5
5
  import {
6
6
  EventSequenceTable2,
7
7
  EventTable2
8
- } from "./pty-2710q6r3.js";
8
+ } from "./kv-2710q6r3.js";
9
9
  import {
10
10
  makeUnsafe2
11
- } from "./pty-dpkg50ah.js";
11
+ } from "./kv-y71avatq.js";
12
12
  import {
13
13
  __export
14
- } from "./pty-9rqn6x4v.js";
14
+ } from "./kv-9rqn6x4v.js";
15
15
 
16
16
  // src/bus.ts
17
17
  var exports_bus = {};
18
18
  __export(exports_bus, {
19
19
  Bus: () => exports_bus,
20
20
  InvalidDurableEventError: () => InvalidDurableEventError2,
21
- Service: () => Service79,
21
+ Service: () => Service76,
22
22
  configured: () => configured12,
23
23
  durable: () => durable2,
24
24
  ephemeral: () => ephemeral2,
25
25
  isSynced: () => isSynced2,
26
26
  latestSequence: () => latestSequence2,
27
- node: () => node84,
27
+ node: () => node81,
28
28
  reserveSequence: () => reserveSequence2,
29
29
  versionedType: () => versionedType2
30
30
  });
@@ -76,13 +76,13 @@ var ephemeral2 = Event.ephemeral;
76
76
  var isSynced2 = (item) => item.type === "log.synced";
77
77
  var isDefinition = (input) => !Array.isArray(input);
78
78
 
79
- class Service79 extends Context.Service()("@opencode/Bus") {
79
+ class Service76 extends Context.Service()("@opencode/Bus") {
80
80
  }
81
81
  function configured12(options) {
82
82
  return makeGlobalNode({
83
- service: Service79,
84
- deps: [node85],
85
- layer: Layer.effect(Service79, Effect.gen(function* () {
83
+ service: Service76,
84
+ deps: [node82],
85
+ layer: Layer.effect(Service76, Effect.gen(function* () {
86
86
  const { Location } = yield* Effect.promise(() => import("../location.js"));
87
87
  const { SessionTable } = yield* Effect.promise(() => import("../session/sql.js"));
88
88
  const pubsub = {
@@ -93,7 +93,7 @@ function configured12(options) {
93
93
  const projectors = new Map;
94
94
  const listeners = new Array;
95
95
  const durableLocks = makeUnsafe2();
96
- const { db } = yield* Service80;
96
+ const { db } = yield* Service77;
97
97
  const logReadPageSize = options?.logReadPageSize ?? 512;
98
98
  const persist = options?.persist ?? false;
99
99
  const sessions = new Map;
@@ -525,7 +525,7 @@ function configured12(options) {
525
525
  list.push((event) => projector(event));
526
526
  projectors.set(key, list);
527
527
  });
528
- return Service79.of({
528
+ return Service76.of({
529
529
  publish,
530
530
  publishAll,
531
531
  subscribe,
@@ -539,6 +539,6 @@ function configured12(options) {
539
539
  }))
540
540
  });
541
541
  }
542
- var node84 = configured12();
542
+ var node81 = configured12();
543
543
 
544
- export { latestSequence2, reserveSequence2, InvalidDurableEventError2, versionedType2, durable2, ephemeral2, isSynced2, Service79, configured12, node84, exports_bus };
544
+ export { latestSequence2, reserveSequence2, InvalidDurableEventError2, versionedType2, durable2, ephemeral2, isSynced2, Service76, configured12, node81, exports_bus };
@@ -1,29 +1,29 @@
1
1
  import {
2
- Service80,
3
- node85
4
- } from "./pty-0s2shbjn.js";
2
+ Service77,
3
+ node82
4
+ } from "./kv-t1bhb1bg.js";
5
5
  import {
6
6
  SessionTable2,
7
7
  SessionMessageTable2
8
- } from "./pty-hrvm11jt.js";
8
+ } from "./kv-hrvm11jt.js";
9
9
  import {
10
10
  decodeMessageRow2,
11
- load3
12
- } from "./pty-afhjd4jv.js";
11
+ load2
12
+ } from "./kv-tq1jg9v7.js";
13
13
  import {
14
14
  fromRow2
15
- } from "./pty-js4d4dxf.js";
15
+ } from "./kv-238pagf0.js";
16
16
  import {
17
17
  __export
18
- } from "./pty-9rqn6x4v.js";
18
+ } from "./kv-9rqn6x4v.js";
19
19
 
20
20
  // src/session/store.ts
21
21
  var exports_store = {};
22
22
  __export(exports_store, {
23
23
  ListInput: () => ListInput3,
24
- Service: () => Service42,
24
+ Service: () => Service47,
25
25
  SessionStore: () => exports_store,
26
- node: () => node45
26
+ node: () => node50
27
27
  });
28
28
  import { and, asc, desc, eq, gt, isNotNull, isNull, like, lt, notInArray, or, sql } from "drizzle-orm";
29
29
  import { Context, Effect, Layer, Schema } from "effect";
@@ -52,11 +52,11 @@ var ListProjectInput = Schema.Struct({
52
52
  var ListAllInput = Schema.Struct(ListInputBase);
53
53
  var ListInput3 = Schema.Union([ListDirectoryInput, ListProjectInput, ListAllInput]);
54
54
 
55
- class Service42 extends Context.Service()("@opencode/SessionStore") {
55
+ class Service47 extends Context.Service()("@opencode/SessionStore") {
56
56
  }
57
- var layer = Layer.effect(Service42, Effect.gen(function* () {
58
- const { db } = yield* Service80;
59
- return Service42.of({
57
+ var layer = Layer.effect(Service47, Effect.gen(function* () {
58
+ const { db } = yield* Service77;
59
+ return Service47.of({
60
60
  get: Effect.fnUntraced(function* (sessionID) {
61
61
  const row = yield* db.select().from(SessionTable2).where(eq(SessionTable2.id, sessionID)).get().pipe(Effect.orDie);
62
62
  return row ? fromRow2(row) : undefined;
@@ -99,7 +99,7 @@ var layer = Layer.effect(Service42, Effect.gen(function* () {
99
99
  const rows = yield* (input.limit === undefined ? query.all() : query.limit(input.limit).all()).pipe(Effect.orDie);
100
100
  return yield* Effect.forEach(direction === "previous" ? rows.toReversed() : rows, decodeMessageRow2);
101
101
  }),
102
- context: Effect.fn("SessionStore.context")((sessionID) => load3(db, sessionID)),
102
+ context: Effect.fn("SessionStore.context")((sessionID) => load2(db, sessionID)),
103
103
  message: Effect.fn("SessionStore.message")(function* (messageID) {
104
104
  const row = yield* db.select().from(SessionMessageTable2).where(eq(SessionMessageTable2.id, messageID)).get().pipe(Effect.orDie);
105
105
  return row ? {
@@ -126,6 +126,6 @@ var layer = Layer.effect(Service42, Effect.gen(function* () {
126
126
  })
127
127
  });
128
128
  }));
129
- var node45 = makeGlobalNode({ service: Service42, layer, deps: [node85] });
129
+ var node50 = makeGlobalNode({ service: Service47, layer, deps: [node82] });
130
130
 
131
- export { ListInput3, Service42, node45, exports_store };
131
+ export { ListInput3, Service47, node50, exports_store };
@@ -0,0 +1,22 @@
1
+ import {
2
+ Plugin35
3
+ } from "./kv-68dvzq1z.js";
4
+ import {
5
+ Plugin36
6
+ } from "./kv-14mbnhb1.js";
7
+ import {
8
+ Plugin34
9
+ } from "./kv-4qf6hhyh.js";
10
+ import {
11
+ Plugin33
12
+ } from "./kv-12fnx30g.js";
13
+
14
+ // src/plugin/websearch/index.ts
15
+ var WebSearchPlugins2 = [
16
+ Plugin35,
17
+ Plugin36,
18
+ Plugin34,
19
+ Plugin33
20
+ ];
21
+
22
+ export { WebSearchPlugins2 };
@@ -1,45 +1,45 @@
1
1
  import {
2
2
  mergeOverlay2,
3
3
  mergeHeaders2,
4
- Info22
5
- } from "./pty-c2s86k7e.js";
4
+ Info32
5
+ } from "./kv-4z6b0fg6.js";
6
6
  import {
7
- Info21
8
- } from "./pty-j4bwgw4b.js";
7
+ Info31
8
+ } from "./kv-3wfq9j39.js";
9
9
  import {
10
- Service79,
11
- node84
12
- } from "./pty-xd6am0g0.js";
10
+ Service76,
11
+ node81
12
+ } from "./kv-mfe1qetb.js";
13
13
  import {
14
14
  create3
15
- } from "./pty-kg06axw8.js";
15
+ } from "./kv-kg06axw8.js";
16
16
  import {
17
- ID11,
18
- Service55,
19
- node59
20
- } from "./pty-b3qm0p9n.js";
17
+ ID14,
18
+ Service73,
19
+ node78
20
+ } from "./kv-z3qt4vrk.js";
21
21
  import {
22
22
  __export
23
- } from "./pty-9rqn6x4v.js";
23
+ } from "./kv-9rqn6x4v.js";
24
24
 
25
25
  // src/catalog.ts
26
26
  var exports_catalog2 = {};
27
27
  __export(exports_catalog2, {
28
28
  Catalog: () => exports_catalog2,
29
- Event: () => Event12,
30
- Service: () => Service53,
31
- node: () => node57
29
+ Event: () => Event17,
30
+ Service: () => Service72,
31
+ node: () => node77
32
32
  });
33
33
  import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
34
34
  import { Array, Context, Effect, Layer, Order, pipe } from "effect";
35
35
  import { Catalog } from "@opencode-ai/schema/catalog";
36
- import { Event as Event12 } from "@opencode-ai/schema/catalog";
36
+ import { Event as Event17 } from "@opencode-ai/schema/catalog";
37
37
 
38
- class Service53 extends Context.Service()("@opencode/Catalog") {
38
+ class Service72 extends Context.Service()("@opencode/Catalog") {
39
39
  }
40
- var layer = Layer.effect(Service53, Effect.gen(function* () {
41
- const bus = yield* Service79;
42
- const integrations = yield* Service55;
40
+ var layer = Layer.effect(Service72, Effect.gen(function* () {
41
+ const bus = yield* Service76;
42
+ const integrations = yield* Service73;
43
43
  const available = (provider, integration) => {
44
44
  if (provider.activation === "disabled")
45
45
  return false;
@@ -71,7 +71,7 @@ var layer = Layer.effect(Service53, Effect.gen(function* () {
71
71
  let current = editor.providers.get(providerID);
72
72
  if (!current) {
73
73
  current = {
74
- provider: Info22.empty(providerID),
74
+ provider: Info32.empty(providerID),
75
75
  models: new Map
76
76
  };
77
77
  editor.providers.set(providerID, current);
@@ -89,12 +89,12 @@ var layer = Layer.effect(Service53, Effect.gen(function* () {
89
89
  let record = editor.providers.get(providerID);
90
90
  if (!record) {
91
91
  record = {
92
- provider: Info22.empty(providerID),
92
+ provider: Info32.empty(providerID),
93
93
  models: new Map
94
94
  };
95
95
  editor.providers.set(providerID, record);
96
96
  }
97
- const model = record.models.get(modelID) ?? Info21.default(providerID, modelID);
97
+ const model = record.models.get(modelID) ?? Info31.default(providerID, modelID);
98
98
  if (!record.models.has(modelID))
99
99
  record.models.set(modelID, model);
100
100
  fn(model);
@@ -128,7 +128,7 @@ var layer = Layer.effect(Service53, Effect.gen(function* () {
128
128
  }),
129
129
  available: Effect.fn("Catalog.provider.available")(function* () {
130
130
  const active = new Map((yield* integrations.list()).map((integration) => [integration.id, integration]));
131
- return (yield* result.provider.all()).filter((provider) => available(provider, active.get(provider.integrationID ?? ID11.make(provider.id))));
131
+ return (yield* result.provider.all()).filter((provider) => available(provider, active.get(provider.integrationID ?? ID14.make(provider.id))));
132
132
  })
133
133
  },
134
134
  model: {
@@ -183,9 +183,9 @@ var layer = Layer.effect(Service53, Effect.gen(function* () {
183
183
  })
184
184
  }
185
185
  };
186
- return Service53.of(result);
186
+ return Service72.of(result);
187
187
  }));
188
188
  var SMALL_MODEL_FAMILY_PRIORITY = ["gpt-luna", "gemini-flash-lite", "gemini-flash", "claude-haiku"];
189
- var node57 = makeLocationNode({ service: Service53, layer, deps: [node84, node59] });
189
+ var node77 = makeLocationNode({ service: Service72, layer, deps: [node81, node78] });
190
190
 
191
- export { Service53, node57, exports_catalog2, Event12 };
191
+ export { Service72, node77, exports_catalog2, Event17 };
@@ -2,31 +2,31 @@ import {
2
2
  Key3,
3
3
  removed2,
4
4
  empty3,
5
- make18,
5
+ make19,
6
6
  diffByKey2
7
- } from "./pty-mtcjf44p.js";
7
+ } from "./kv-6e958v7x.js";
8
8
  import {
9
- ID4,
9
+ ID5,
10
10
  Name2,
11
11
  available2,
12
- Service40,
13
- node43
14
- } from "./pty-pcvxjvjj.js";
12
+ Service45,
13
+ node48
14
+ } from "./kv-kf8thf07.js";
15
15
  import {
16
16
  __export
17
- } from "./pty-9rqn6x4v.js";
17
+ } from "./kv-9rqn6x4v.js";
18
18
 
19
19
  // src/skill/instructions.ts
20
- var exports_instructions2 = {};
21
- __export(exports_instructions2, {
22
- Service: () => Service19,
23
- SkillInstructions: () => exports_instructions2,
24
- node: () => node23
20
+ var exports_instructions4 = {};
21
+ __export(exports_instructions4, {
22
+ Service: () => Service28,
23
+ SkillInstructions: () => exports_instructions4,
24
+ node: () => node33
25
25
  });
26
26
  import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
27
27
  import { Context, Effect, Layer, Schema } from "effect";
28
28
  var Summary = Schema.Struct({
29
- id: ID4,
29
+ id: ID5,
30
30
  name: Name2,
31
31
  description: Schema.String
32
32
  });
@@ -60,17 +60,17 @@ var update = (previous, current) => {
60
60
  `);
61
61
  };
62
62
 
63
- class Service19 extends Context.Service()("@opencode/SkillInstructions") {
63
+ class Service28 extends Context.Service()("@opencode/SkillInstructions") {
64
64
  }
65
- var layer = Layer.effect(Service19, Effect.gen(function* () {
66
- const skills = yield* Service40;
67
- return Service19.of({
65
+ var layer = Layer.effect(Service28, Effect.gen(function* () {
66
+ const skills = yield* Service45;
67
+ return Service28.of({
68
68
  load: Effect.fn("SkillInstructions.load")(function* (selection) {
69
69
  const agent = selection.info;
70
70
  if (!agent)
71
71
  return empty3;
72
72
  const available = available2(yield* skills.list(), agent).flatMap((skill) => skill.description === undefined || skill.autoinvoke === false ? [] : [{ id: skill.id, name: skill.name, description: skill.description }]).toSorted((a, b) => a.id.localeCompare(b.id));
73
- return make18({
73
+ return make19({
74
74
  key: Key3.make("core/skill-guidance"),
75
75
  codec: Schema.toCodecJson(Schema.Array(Summary)),
76
76
  read: Effect.succeed(available.length === 0 ? removed2 : available),
@@ -83,6 +83,6 @@ var layer = Layer.effect(Service19, Effect.gen(function* () {
83
83
  })
84
84
  });
85
85
  }));
86
- var node23 = makeLocationNode({ service: Service19, layer, deps: [node43] });
86
+ var node33 = makeLocationNode({ service: Service28, layer, deps: [node48] });
87
87
 
88
- export { Service19, node23, exports_instructions2 };
88
+ export { Service28, node33, exports_instructions4 };
@@ -1,49 +1,49 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./pty-p8qxwesx.js";
3
+ } from "./kv-p8qxwesx.js";
4
4
  import {
5
- Service80,
6
- node85
7
- } from "./pty-0s2shbjn.js";
8
- import {
9
- Service79,
10
- node84
11
- } from "./pty-xd6am0g0.js";
5
+ Service77,
6
+ node82
7
+ } from "./kv-t1bhb1bg.js";
12
8
  import {
13
9
  Service76,
14
10
  node81
15
- } from "./pty-q6affv31.js";
11
+ } from "./kv-mfe1qetb.js";
12
+ import {
13
+ Service67,
14
+ node72
15
+ } from "./kv-9kbmc1bn.js";
16
16
  import {
17
- ID17,
17
+ ID12,
18
18
  Current3,
19
- Info32,
19
+ Info26,
20
20
  UpdateInput4,
21
- Event19,
21
+ Event15,
22
22
  Vcs3
23
- } from "./pty-m686xbyy.js";
23
+ } from "./kv-5y6pdc3x.js";
24
24
  import {
25
25
  ProjectTable2,
26
26
  upsertProject2
27
- } from "./pty-9qm9egsn.js";
27
+ } from "./kv-9qm9egsn.js";
28
28
  import {
29
29
  WorktreeTable2
30
- } from "./pty-ajtjthsy.js";
30
+ } from "./kv-ajtjthsy.js";
31
31
  import {
32
32
  __export
33
- } from "./pty-9rqn6x4v.js";
33
+ } from "./kv-9rqn6x4v.js";
34
34
 
35
35
  // src/project.ts
36
36
  var exports_project = {};
37
37
  __export(exports_project, {
38
38
  Current: () => Current2,
39
- ID: () => ID16,
40
- Info: () => Info31,
41
- NotFoundError: () => NotFoundError10,
39
+ ID: () => ID11,
40
+ Info: () => Info25,
41
+ NotFoundError: () => NotFoundError9,
42
42
  Project: () => exports_project,
43
- Service: () => Service75,
43
+ Service: () => Service66,
44
44
  UpdateInput: () => UpdateInput3,
45
45
  Vcs: () => Vcs2,
46
- node: () => node80,
46
+ node: () => node71,
47
47
  root: () => root2
48
48
  });
49
49
  import { Context, Effect, Layer, Schema } from "effect";
@@ -55,14 +55,14 @@ import { FSUtil } from "@opencode-ai/util/fs-util";
55
55
  import { AppProcess } from "@opencode-ai/util/process";
56
56
  import { makeGlobalNode } from "@opencode-ai/util/effect/app-node";
57
57
  import { Hash } from "@opencode-ai/util/hash";
58
- var ID16 = ID17;
58
+ var ID11 = ID12;
59
59
  var Vcs2 = Vcs3;
60
60
  var Current2 = Current3;
61
- var Info31 = Info32;
61
+ var Info25 = Info26;
62
62
  var UpdateInput3 = UpdateInput4;
63
63
 
64
- class NotFoundError10 extends Schema.TaggedError()("Project.NotFoundError", {
65
- projectID: ID16
64
+ class NotFoundError9 extends Schema.TaggedError()("Project.NotFoundError", {
65
+ projectID: ID11
66
66
  }) {
67
67
  }
68
68
  var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", ".hg"]) {
@@ -71,7 +71,7 @@ var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", "
71
71
  }));
72
72
  });
73
73
 
74
- class Service75 extends Context.Service()("@opencode/Project") {
74
+ class Service66 extends Context.Service()("@opencode/Project") {
75
75
  }
76
76
  function fromRow(row) {
77
77
  const icon = row.icon_url || row.icon_url_override || row.icon_color ? {
@@ -94,12 +94,12 @@ function fromRow(row) {
94
94
  sandboxes: row.sandboxes
95
95
  };
96
96
  }
97
- var layer = Layer.effect(Service75, Effect.gen(function* () {
97
+ var layer = Layer.effect(Service66, Effect.gen(function* () {
98
98
  const fs = yield* FSUtil.Service;
99
- const git = yield* Service76;
99
+ const git = yield* Service67;
100
100
  const proc = yield* AppProcess.Service;
101
- const bus = yield* Service79;
102
- const db = (yield* Service80).db;
101
+ const bus = yield* Service76;
102
+ const db = (yield* Service77).db;
103
103
  const announcing = new Set;
104
104
  const persist = Effect.fnUntraced(function* (project) {
105
105
  const previous = yield* db.select({ canonical: ProjectTable2.worktree }).from(ProjectTable2).where(eq(ProjectTable2.id, project.id)).get().pipe(Effect.orDie);
@@ -107,7 +107,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
107
107
  if (previous && previous.canonical !== project.canonical && !(yield* fs.exists(previous.canonical).pipe(Effect.orElseSucceed(() => true)))) {
108
108
  const row = yield* db.update(ProjectTable2).set({ worktree: project.canonical }).where(eq(ProjectTable2.id, project.id)).returning().get().pipe(Effect.orDie);
109
109
  if (row)
110
- yield* bus.publish(Event19.Updated, fromRow(row));
110
+ yield* bus.publish(Event15.Updated, fromRow(row));
111
111
  }
112
112
  if (!project.vcs)
113
113
  return project;
@@ -144,7 +144,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
144
144
  yield* bus.publish(Worktree.Event.Resolved, {
145
145
  projectID: item.projectID,
146
146
  directory: item.directory,
147
- previous: project.previous ?? ID16.global,
147
+ previous: project.previous ?? ID11.global,
148
148
  ...adopted.length ? { adopted: adopted.map((candidate) => candidate.id) } : {}
149
149
  }, {
150
150
  commit: () => db.insert(WorktreeTable2).values({ project_id: item.projectID, directory: item.directory, strategy: item.strategy }).onConflictDoNothing().run().pipe(Effect.orDie, Effect.asVoid)
@@ -166,13 +166,13 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
166
166
  time_updated: Date.now()
167
167
  }).where(eq(ProjectTable2.id, input.projectID)).returning().get().pipe(Effect.orDie);
168
168
  if (!row)
169
- return yield* new NotFoundError10({ projectID: input.projectID });
169
+ return yield* new NotFoundError9({ projectID: input.projectID });
170
170
  const project = fromRow(row);
171
- yield* bus.publish(Event19.Updated, project);
171
+ yield* bus.publish(Event15.Updated, project);
172
172
  return project;
173
173
  });
174
174
  const cached = Effect.fnUntraced(function* (dir) {
175
- return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID16.make(value) : undefined), Effect.orElseSucceed(() => {
175
+ return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID11.make(value) : undefined), Effect.orElseSucceed(() => {
176
176
  return;
177
177
  }));
178
178
  });
@@ -183,7 +183,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
183
183
  const normalized = url(origin);
184
184
  if (!normalized)
185
185
  return;
186
- return ID16.make(Hash.fast(`git-remote:${normalized}`));
186
+ return ID11.make(Hash.fast(`git-remote:${normalized}`));
187
187
  });
188
188
  function url(input) {
189
189
  const value = input.trim();
@@ -208,7 +208,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
208
208
  }
209
209
  const rootCommit = Effect.fnUntraced(function* (repo) {
210
210
  const root = (yield* git.history.rootCommits(repo))[0];
211
- return root ? ID16.make(root) : undefined;
211
+ return root ? ID11.make(root) : undefined;
212
212
  });
213
213
  const hgRoot = Effect.fnUntraced(function* (worktree) {
214
214
  const result = yield* proc.run(ChildProcess.make("hg", ["log", "-r", "roots(all())", "-T", `{node}
@@ -224,7 +224,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
224
224
  return;
225
225
  const node = result.stdout.toString("utf8").split(`
226
226
  `).map((item) => item.trim()).filter(Boolean).toSorted()[0];
227
- return node ? ID16.make(node) : undefined;
227
+ return node ? ID11.make(node) : undefined;
228
228
  });
229
229
  const hgDiscover = Effect.fnUntraced(function* (dotHg) {
230
230
  const worktree = AbsolutePath2.make(path.dirname(dotHg));
@@ -233,7 +233,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
233
233
  const id = previous ?? (yield* hgRoot(worktree));
234
234
  return {
235
235
  previous,
236
- id: id ?? ID16.global,
236
+ id: id ?? ID11.global,
237
237
  directory: worktree,
238
238
  vcs: { type: "hg", store }
239
239
  };
@@ -250,7 +250,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
250
250
  const canonical = repo.gitDirectory === repo.commonDirectory ? repo.worktree : yield* git.worktree.list(repo).pipe(Effect.map((items) => items.find((item) => item.kind === "main")?.directory ?? repo.worktree), Effect.orElseSucceed(() => repo.worktree));
251
251
  return yield* persist({
252
252
  previous,
253
- id: id ?? ID16.global,
253
+ id: id ?? ID11.global,
254
254
  directory: repo.worktree,
255
255
  canonical,
256
256
  vcs: { type: "git", store: repo.commonDirectory }
@@ -264,18 +264,18 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
264
264
  });
265
265
  }
266
266
  return yield* persist({
267
- id: ID16.make(Hash.fast(`directory:${directory}`)),
267
+ id: ID11.make(Hash.fast(`directory:${directory}`)),
268
268
  directory,
269
269
  canonical: directory,
270
270
  vcs: undefined
271
271
  });
272
272
  });
273
- return Service75.of({ list, update, resolve });
273
+ return Service66.of({ list, update, resolve });
274
274
  }));
275
- var node80 = makeGlobalNode({
276
- service: Service75,
275
+ var node71 = makeGlobalNode({
276
+ service: Service66,
277
277
  layer,
278
- deps: [node84, node85, FSUtil.node, node81, AppProcess.node]
278
+ deps: [node81, node82, FSUtil.node, node72, AppProcess.node]
279
279
  });
280
280
 
281
- export { ID16, Vcs2, Current2, Info31, UpdateInput3, NotFoundError10, root2, Service75, node80, exports_project };
281
+ export { ID11, Vcs2, Current2, Info25, UpdateInput3, NotFoundError9, root2, Service66, node71, exports_project };
@@ -1,30 +1,30 @@
1
1
  import {
2
2
  makeUnsafe2
3
- } from "./pty-dpkg50ah.js";
3
+ } from "./kv-y71avatq.js";
4
4
  import {
5
5
  __export
6
- } from "./pty-9rqn6x4v.js";
6
+ } from "./kv-9rqn6x4v.js";
7
7
 
8
8
  // src/plugin/update.ts
9
9
  var exports_update = {};
10
10
  __export(exports_update, {
11
11
  PluginUpdate: () => exports_update,
12
- Service: () => Service4,
13
- node: () => node6
12
+ Service: () => Service10,
13
+ node: () => node13
14
14
  });
15
15
  import { Clock, Context, Effect, Exit, Layer, Option, PubSub, Stream } from "effect";
16
16
  import { Npm } from "@opencode-ai/util/npm";
17
17
  import { makeGlobalNode } from "@opencode-ai/util/effect/app-node";
18
18
  var interval = 24 * 60 * 60 * 1000;
19
19
 
20
- class Service4 extends Context.Service()("@opencode/PluginUpdate") {
20
+ class Service10 extends Context.Service()("@opencode/PluginUpdate") {
21
21
  }
22
- var layer = Layer.effect(Service4, Effect.gen(function* () {
22
+ var layer = Layer.effect(Service10, Effect.gen(function* () {
23
23
  const npm = yield* Npm.Service;
24
24
  const locks = makeUnsafe2();
25
25
  const status = new Map;
26
26
  const changes = yield* PubSub.unbounded();
27
- return Service4.of({
27
+ return Service10.of({
28
28
  check: (target, options) => locks.withLock(target)(Effect.gen(function* () {
29
29
  const checkedAt = yield* Clock.currentTimeMillis;
30
30
  const current = status.get(target);
@@ -49,6 +49,6 @@ var layer = Layer.effect(Service4, Effect.gen(function* () {
49
49
  changes: () => Stream.fromPubSub(changes)
50
50
  });
51
51
  }));
52
- var node6 = makeGlobalNode({ service: Service4, layer, deps: [Npm.node] });
52
+ var node13 = makeGlobalNode({ service: Service10, layer, deps: [Npm.node] });
53
53
 
54
- export { Service4, node6, exports_update };
54
+ export { Service10, node13, exports_update };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./pty-p8qxwesx.js";
3
+ } from "./kv-p8qxwesx.js";
4
4
  import {
5
5
  __export
6
- } from "./pty-9rqn6x4v.js";
6
+ } from "./kv-9rqn6x4v.js";
7
7
 
8
8
  // src/skill/discovery.ts
9
9
  var exports_discovery = {};