@opencode/core 0.0.0-dev-20690 → 0.0.0-dev-20691

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 (780) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +81 -81
  3. package/dist/aisdk-native.js +89 -89
  4. package/dist/aisdk.js +94 -94
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +69 -69
  7. package/dist/chunks/{tool-output-4nhcjvb4.js → worktree-025q3317.js} +5 -5
  8. package/dist/chunks/{tool-output-rfqabggz.js → worktree-0714bcr6.js} +19 -19
  9. package/dist/chunks/{tool-output-ydcw2wd2.js → worktree-08hes7sn.js} +45 -45
  10. package/dist/chunks/{tool-output-krfam912.js → worktree-0evkj109.js} +42 -42
  11. package/dist/chunks/{tool-output-0cjj111f.js → worktree-0nxwrb8y.js} +3 -3
  12. package/dist/chunks/{tool-output-0paq2nw3.js → worktree-0paq2nw3.js} +1 -1
  13. package/dist/chunks/{tool-output-0vbcp93d.js → worktree-0vbcp93d.js} +2 -2
  14. package/dist/chunks/{tool-output-rqa1jxse.js → worktree-127b9nq3.js} +2 -2
  15. package/dist/chunks/{tool-output-tx9w5tca.js → worktree-166kng33.js} +8 -8
  16. package/dist/chunks/{tool-output-y35w8rgz.js → worktree-17v89dj5.js} +19 -19
  17. package/dist/chunks/{tool-output-k3dze7tg.js → worktree-1b9z0byy.js} +38 -38
  18. package/dist/chunks/{tool-output-1dazxqgg.js → worktree-1dazxqgg.js} +2 -2
  19. package/dist/chunks/{tool-output-1dvck2a7.js → worktree-1dvck2a7.js} +2 -2
  20. package/dist/chunks/{tool-output-e6r2s1v4.js → worktree-1gx1ny1s.js} +32 -32
  21. package/dist/chunks/{tool-output-4c18rwgv.js → worktree-1jm7ermb.js} +8 -8
  22. package/dist/chunks/{tool-output-sp6frf88.js → worktree-1n1fjttx.js} +8 -8
  23. package/dist/chunks/{tool-output-f0phkt7r.js → worktree-1nxag8bv.js} +34 -34
  24. package/dist/chunks/{tool-output-5ww5wa86.js → worktree-1s5ahhvw.js} +4 -4
  25. package/dist/chunks/{tool-output-6ysrkrkr.js → worktree-1vyzjnq9.js} +8 -8
  26. package/dist/chunks/worktree-1y7dtxbr.js +26 -0
  27. package/dist/chunks/{tool-output-et3gdkf0.js → worktree-1y9xp183.js} +11 -11
  28. package/dist/chunks/{tool-output-f0mv3stj.js → worktree-21k4s4cv.js} +16 -16
  29. package/dist/chunks/{tool-output-2a5m3afh.js → worktree-2a5m3afh.js} +1 -1
  30. package/dist/chunks/{tool-output-6mnjyrw6.js → worktree-2ancraj4.js} +35 -35
  31. package/dist/chunks/{tool-output-rthh6mvw.js → worktree-2bemhwbv.js} +13 -13
  32. package/dist/chunks/{tool-output-0jwsre1p.js → worktree-2k8khapm.js} +5 -5
  33. package/dist/chunks/{tool-output-yk94bdza.js → worktree-2s30cbk6.js} +8 -8
  34. package/dist/chunks/{tool-output-pqqp59vn.js → worktree-300wq35z.js} +10 -10
  35. package/dist/chunks/{tool-output-hy8bge2v.js → worktree-33ehzdyn.js} +11 -11
  36. package/dist/chunks/{tool-output-35mq92ha.js → worktree-34wrr8a2.js} +11 -11
  37. package/dist/chunks/{tool-output-sdtpzacm.js → worktree-3bs9stat.js} +16 -16
  38. package/dist/chunks/{tool-output-9gbst59k.js → worktree-3e27gnxx.js} +31 -31
  39. package/dist/chunks/{tool-output-3fc6dm20.js → worktree-3fc6dm20.js} +1 -1
  40. package/dist/chunks/{tool-output-3hepkmqq.js → worktree-3hepkmqq.js} +1 -1
  41. package/dist/chunks/{tool-output-00qqsd88.js → worktree-3mv2fgvd.js} +14 -14
  42. package/dist/chunks/{tool-output-65k64ybp.js → worktree-3r7j5dej.js} +18 -18
  43. package/dist/chunks/{tool-output-3smtnn6g.js → worktree-3smtnn6g.js} +1 -1
  44. package/dist/chunks/{tool-output-3tvqynh2.js → worktree-3tvqynh2.js} +1 -1
  45. package/dist/chunks/{tool-output-3zsf4n22.js → worktree-3zsf4n22.js} +1 -1
  46. package/dist/chunks/{tool-output-46vfxqy2.js → worktree-425vmdct.js} +30 -30
  47. package/dist/chunks/{tool-output-nxegv9h8.js → worktree-45anwj91.js} +20 -20
  48. package/dist/chunks/{tool-output-rwdx3sxf.js → worktree-47mgmhez.js} +13 -13
  49. package/dist/chunks/{tool-output-5axryy5w.js → worktree-4b8kjhzx.js} +25 -25
  50. package/dist/chunks/{tool-output-a0yaxx0j.js → worktree-4crz6242.js} +9 -9
  51. package/dist/chunks/{tool-output-h3k0sdzw.js → worktree-4gsvspn9.js} +6 -6
  52. package/dist/chunks/{tool-output-f29mbr7f.js → worktree-4j4tgtq5.js} +4 -4
  53. package/dist/chunks/{tool-output-87pyc8s0.js → worktree-4jewrapx.js} +37 -37
  54. package/dist/chunks/{tool-output-prq7hedt.js → worktree-4nj4bn9q.js} +9 -9
  55. package/dist/chunks/{tool-output-sxxwk2h0.js → worktree-4phpyenv.js} +35 -35
  56. package/dist/chunks/{tool-output-4ts7tf6z.js → worktree-4ts7tf6z.js} +2 -2
  57. package/dist/chunks/{tool-output-vn1tddxd.js → worktree-50193v0c.js} +320 -320
  58. package/dist/chunks/{tool-output-ahd542yp.js → worktree-52fpbh6z.js} +8 -8
  59. package/dist/chunks/{tool-output-54ma36ye.js → worktree-54ma36ye.js} +1 -1
  60. package/dist/chunks/{tool-output-5daktx2q.js → worktree-5daktx2q.js} +1 -1
  61. package/dist/chunks/{tool-output-zj1y38qw.js → worktree-5fcee03b.js} +87 -87
  62. package/dist/chunks/{tool-output-5m9w47nd.js → worktree-5m9w47nd.js} +1 -1
  63. package/dist/chunks/{tool-output-5t3nmthw.js → worktree-5t3nmthw.js} +2 -2
  64. package/dist/chunks/{tool-output-cy4b4mz7.js → worktree-5tj1dt3g.js} +49 -49
  65. package/dist/chunks/{tool-output-2wsa3f5j.js → worktree-5xsrm7ed.js} +5 -5
  66. package/dist/chunks/{tool-output-qbkf9amh.js → worktree-608347mw.js} +4 -4
  67. package/dist/chunks/{tool-output-5zkpyy5y.js → worktree-613ryw1r.js} +56 -26
  68. package/dist/chunks/{tool-output-8nfsty1p.js → worktree-64t225j8.js} +21 -21
  69. package/dist/chunks/{tool-output-fv8nmtg0.js → worktree-684mbd79.js} +7 -7
  70. package/dist/chunks/{tool-output-59cpc9hg.js → worktree-6b5vsm5a.js} +15 -15
  71. package/dist/chunks/{tool-output-m81jeghn.js → worktree-6b8ar4mw.js} +21 -21
  72. package/dist/chunks/{tool-output-5313v1x9.js → worktree-6bbmjt0j.js} +7 -7
  73. package/dist/chunks/{tool-output-z8qd6749.js → worktree-6f8mqd4v.js} +9 -9
  74. package/dist/chunks/{tool-output-yqcgzvte.js → worktree-6hyt6762.js} +20 -20
  75. package/dist/chunks/{tool-output-16dzdxyy.js → worktree-6mxykcrb.js} +36 -36
  76. package/dist/chunks/{tool-output-a60qwpfx.js → worktree-6pcv96p9.js} +15 -15
  77. package/dist/chunks/{tool-output-jywas9t1.js → worktree-6qdrsza1.js} +1 -1
  78. package/dist/chunks/{tool-output-c6vmj6s8.js → worktree-6qme3bhr.js} +12 -12
  79. package/dist/chunks/{tool-output-1c23429g.js → worktree-6v04bbq7.js} +3 -3
  80. package/dist/chunks/{tool-output-addt2tdy.js → worktree-6wz2az47.js} +3 -3
  81. package/dist/chunks/{tool-output-6xb47vfp.js → worktree-6xb47vfp.js} +1 -1
  82. package/dist/chunks/{tool-output-71az546q.js → worktree-71az546q.js} +2 -2
  83. package/dist/chunks/{tool-output-nh7aefay.js → worktree-73d8r7vx.js} +11 -11
  84. package/dist/chunks/{tool-output-2nhapass.js → worktree-7b4btya5.js} +26 -26
  85. package/dist/chunks/{tool-output-7bmhse3q.js → worktree-7bmhse3q.js} +1 -1
  86. package/dist/chunks/{tool-output-t5pvq3y5.js → worktree-7dxq86fe.js} +43 -43
  87. package/dist/chunks/{tool-output-k85tdqsj.js → worktree-7dzs6qm4.js} +18 -18
  88. package/dist/chunks/{tool-output-g2y161wv.js → worktree-7f85ph34.js} +8 -8
  89. package/dist/chunks/{tool-output-rdj5x1aq.js → worktree-7h7yjc0r.js} +26 -26
  90. package/dist/chunks/{tool-output-ywrt7q9n.js → worktree-7j3mnrf2.js} +12 -12
  91. package/dist/chunks/{tool-output-k7myrtme.js → worktree-7qdpe4cb.js} +9 -9
  92. package/dist/chunks/{tool-output-84txncab.js → worktree-84txncab.js} +1 -1
  93. package/dist/chunks/{tool-output-hwf67kmb.js → worktree-88ag5g7k.js} +22 -22
  94. package/dist/chunks/{tool-output-3yvh6ynk.js → worktree-89rvcjqs.js} +8 -8
  95. package/dist/chunks/{tool-output-caaj709w.js → worktree-8a2fyyry.js} +24 -24
  96. package/dist/chunks/{tool-output-0se8d28b.js → worktree-8bk6meym.js} +10 -10
  97. package/dist/chunks/{tool-output-8d7r5vzw.js → worktree-8d7r5vzw.js} +1 -1
  98. package/dist/chunks/{tool-output-v68dkaev.js → worktree-8pkcp2zq.js} +11 -11
  99. package/dist/chunks/{tool-output-rszaqsqw.js → worktree-8q28jacc.js} +28 -28
  100. package/dist/chunks/{tool-output-py3kkmfq.js → worktree-8sze2n9a.js} +6 -6
  101. package/dist/chunks/{tool-output-6keqzetd.js → worktree-8vd1vngy.js} +11 -11
  102. package/dist/chunks/{tool-output-sss67ayf.js → worktree-8ymy0b6r.js} +16 -16
  103. package/dist/chunks/{tool-output-c2qzk1d4.js → worktree-8z6xmetw.js} +45 -45
  104. package/dist/chunks/{tool-output-sa5ep0ge.js → worktree-908jb8kv.js} +9 -9
  105. package/dist/chunks/{tool-output-yr89pw6g.js → worktree-99byzsym.js} +13 -13
  106. package/dist/chunks/{tool-output-3xpngeap.js → worktree-9a0ztg4c.js} +5 -5
  107. package/dist/chunks/{tool-output-y975n134.js → worktree-9e3yf4c8.js} +7 -7
  108. package/dist/chunks/{tool-output-9e5bzkjp.js → worktree-9e5bzkjp.js} +3 -3
  109. package/dist/chunks/{tool-output-03n1avwh.js → worktree-9ep9xazg.js} +11 -11
  110. package/dist/chunks/{tool-output-zv98kd1s.js → worktree-9k1g4qad.js} +10 -10
  111. package/dist/chunks/{tool-output-r7akh4p6.js → worktree-9p5r9yxb.js} +20 -20
  112. package/dist/chunks/{tool-output-p4s1435r.js → worktree-a8cmxes1.js} +13 -13
  113. package/dist/chunks/{tool-output-aaet6srn.js → worktree-aaet6srn.js} +2 -2
  114. package/dist/chunks/{tool-output-2qphfp0m.js → worktree-ac5gp1c4.js} +1 -1
  115. package/dist/chunks/{tool-output-2k71kv7p.js → worktree-afrtgck4.js} +4 -4
  116. package/dist/chunks/{tool-output-vj0y6dfg.js → worktree-ajx2ddbz.js} +17 -17
  117. package/dist/chunks/{tool-output-zcvapfdz.js → worktree-ak3qjxe1.js} +18 -18
  118. package/dist/chunks/{tool-output-xv7vf67p.js → worktree-amg27w9m.js} +31 -31
  119. package/dist/chunks/{tool-output-e55pdewd.js → worktree-ann71jjk.js} +12 -12
  120. package/dist/chunks/{tool-output-c2y75rr4.js → worktree-avkk6g6e.js} +3 -3
  121. package/dist/chunks/{tool-output-et61fm3t.js → worktree-ay209g6s.js} +19 -19
  122. package/dist/chunks/{tool-output-xw92hw7n.js → worktree-b09cmrw9.js} +30 -30
  123. package/dist/chunks/{tool-output-6e8srf29.js → worktree-b2wsdf6s.js} +14 -14
  124. package/dist/chunks/{tool-output-b6gygkdw.js → worktree-b6gygkdw.js} +2 -2
  125. package/dist/chunks/{tool-output-mjxb3x5h.js → worktree-baf8w7xt.js} +27 -27
  126. package/dist/chunks/{tool-output-k1h2dvms.js → worktree-bkhg25dg.js} +11 -11
  127. package/dist/chunks/{tool-output-7jz9yabh.js → worktree-c30gp8ks.js} +20 -20
  128. package/dist/chunks/{tool-output-vw5h6757.js → worktree-c5s6mxwd.js} +5 -5
  129. package/dist/chunks/{tool-output-25y3a85a.js → worktree-c8f2qsws.js} +15 -15
  130. package/dist/chunks/{tool-output-95yzr9fr.js → worktree-c8ggeymj.js} +8 -8
  131. package/dist/chunks/{tool-output-xrck4m4y.js → worktree-cc6nfxed.js} +3 -3
  132. package/dist/chunks/{tool-output-ycjb11n5.js → worktree-cdm0dq9n.js} +6 -6
  133. package/dist/chunks/{tool-output-ac18wex5.js → worktree-ce0jma25.js} +32 -32
  134. package/dist/chunks/{tool-output-14q8tb4m.js → worktree-ckd9qz9g.js} +11 -11
  135. package/dist/chunks/{tool-output-e5z2a0wj.js → worktree-cx3y6qv2.js} +8 -8
  136. package/dist/chunks/{tool-output-8t49rs88.js → worktree-d2fmem70.js} +24 -24
  137. package/dist/chunks/{tool-output-01wczdzm.js → worktree-d7ptk5r3.js} +24 -24
  138. package/dist/chunks/{tool-output-2xcja63t.js → worktree-dajxpawc.js} +10 -10
  139. package/dist/chunks/{tool-output-2dfnpwbj.js → worktree-davfzw71.js} +15 -15
  140. package/dist/chunks/{tool-output-wn1dwvrm.js → worktree-dfgw045w.js} +11 -11
  141. package/dist/chunks/{tool-output-gj61qart.js → worktree-dmt33n7c.js} +32 -32
  142. package/dist/chunks/{tool-output-dpkg50ah.js → worktree-dpkg50ah.js} +1 -1
  143. package/dist/chunks/{tool-output-vdr6fryh.js → worktree-dtds8e8g.js} +31 -31
  144. package/dist/chunks/{tool-output-awp25jd4.js → worktree-dw4t78fe.js} +15 -15
  145. package/dist/chunks/{tool-output-c483qb4a.js → worktree-e93tkrd1.js} +53 -53
  146. package/dist/chunks/{tool-output-ef5x83kb.js → worktree-ef5x83kb.js} +1 -1
  147. package/dist/chunks/{tool-output-etq0c3wd.js → worktree-etq0c3wd.js} +1 -1
  148. package/dist/chunks/{tool-output-yj3sgdan.js → worktree-ev5n4vm6.js} +65 -65
  149. package/dist/chunks/{tool-output-f00eh3k7.js → worktree-f00eh3k7.js} +3 -3
  150. package/dist/chunks/{tool-output-2w1y8eba.js → worktree-f0320z3m.js} +25 -25
  151. package/dist/chunks/{tool-output-fh8s6qap.js → worktree-f8ky69ws.js} +3 -3
  152. package/dist/chunks/{tool-output-fjjf4n4y.js → worktree-ffa614pp.js} +14 -14
  153. package/dist/chunks/{tool-output-w8eh3skm.js → worktree-fpt84bn8.js} +48 -48
  154. package/dist/chunks/{tool-output-ptaj5psm.js → worktree-fqak84ma.js} +30 -30
  155. package/dist/chunks/{tool-output-f41zmgay.js → worktree-ft9mezaf.js} +4 -4
  156. package/dist/chunks/{tool-output-k70p9jzb.js → worktree-g31erja1.js} +9 -9
  157. package/dist/chunks/{tool-output-pdq19wc5.js → worktree-g3tgxdbt.js} +6 -6
  158. package/dist/chunks/{tool-output-dssbfrwz.js → worktree-g6yfr6ja.js} +5 -5
  159. package/dist/chunks/{tool-output-pcx1yvm2.js → worktree-gce79w0q.js} +22 -22
  160. package/dist/chunks/{tool-output-gd4qta3r.js → worktree-gd4qta3r.js} +1 -1
  161. package/dist/chunks/{tool-output-ygdna4kr.js → worktree-gj71zhbs.js} +5 -5
  162. package/dist/chunks/{tool-output-db2wf4at.js → worktree-gqtdsdt7.js} +4 -4
  163. package/dist/chunks/{tool-output-xtmjw94y.js → worktree-gr3abvac.js} +36 -36
  164. package/dist/chunks/{tool-output-m9056vrs.js → worktree-grzg5zw7.js} +4 -4
  165. package/dist/chunks/{tool-output-h2b79v29.js → worktree-h2b79v29.js} +2 -2
  166. package/dist/chunks/{tool-output-h6vf3j39.js → worktree-h6vf3j39.js} +1 -1
  167. package/dist/chunks/{tool-output-dcz2h22h.js → worktree-hfvb93vm.js} +7 -7
  168. package/dist/chunks/{tool-output-z27ctmjc.js → worktree-hn8fn0mn.js} +13 -13
  169. package/dist/chunks/{tool-output-x3zjy24f.js → worktree-hv9w8vmv.js} +3 -3
  170. package/dist/chunks/{tool-output-5hbj76mq.js → worktree-hyznghnw.js} +11 -11
  171. package/dist/chunks/{tool-output-eq1pz5kg.js → worktree-j028xdjb.js} +3 -3
  172. package/dist/chunks/{tool-output-j56e64zr.js → worktree-j56e64zr.js} +1 -1
  173. package/dist/chunks/worktree-jpcc12e3.js +253 -0
  174. package/dist/chunks/{tool-output-f193y4j0.js → worktree-jvc3syn6.js} +22 -22
  175. package/dist/chunks/{tool-output-xt90xqzw.js → worktree-jw0rj8v1.js} +6 -6
  176. package/dist/chunks/{tool-output-hp36904v.js → worktree-jy4270e8.js} +24 -24
  177. package/dist/chunks/{tool-output-km5eadxj.js → worktree-k0r60paf.js} +5 -5
  178. package/dist/chunks/{tool-output-wmg6afj1.js → worktree-k7ckpr86.js} +16 -16
  179. package/dist/chunks/{tool-output-fz0vtw33.js → worktree-k9zfssg4.js} +11 -11
  180. package/dist/chunks/{tool-output-eq454e6t.js → worktree-khbcznyn.js} +19 -19
  181. package/dist/chunks/{tool-output-czadqghd.js → worktree-kk7220rf.js} +13 -13
  182. package/dist/chunks/{tool-output-s3sthbff.js → worktree-ks1aqfbs.js} +4 -4
  183. package/dist/chunks/{tool-output-skhcedy2.js → worktree-kvvk39gs.js} +4 -4
  184. package/dist/chunks/{tool-output-m3fdjcah.js → worktree-m3fdjcah.js} +1 -1
  185. package/dist/chunks/{tool-output-m9w0rfyh.js → worktree-m9w0rfyh.js} +1 -1
  186. package/dist/chunks/{tool-output-nhd4byj4.js → worktree-ma3qqxg3.js} +30 -30
  187. package/dist/chunks/{tool-output-mnr2ek00.js → worktree-ma6bkkdz.js} +8 -8
  188. package/dist/chunks/{tool-output-1ygqh575.js → worktree-mfqp6xfm.js} +6 -6
  189. package/dist/chunks/{tool-output-a181q9t6.js → worktree-mmrve7k0.js} +193 -181
  190. package/dist/chunks/{tool-output-48kw51zw.js → worktree-mtpeagzc.js} +3 -3
  191. package/dist/chunks/{tool-output-hy9gebj0.js → worktree-mz6ba83r.js} +9 -9
  192. package/dist/chunks/{tool-output-g7e2501v.js → worktree-n5gg64f5.js} +22 -22
  193. package/dist/chunks/{tool-output-2gr7ffpw.js → worktree-n6m8kz2w.js} +22 -22
  194. package/dist/chunks/{tool-output-yq8freb2.js → worktree-n7wppfdf.js} +20 -20
  195. package/dist/chunks/{tool-output-exgee5t8.js → worktree-npngbpw7.js} +17 -17
  196. package/dist/chunks/{tool-output-p37cw4rj.js → worktree-p37cw4rj.js} +1 -1
  197. package/dist/chunks/{tool-output-2qqbwyhk.js → worktree-p5yq2cxn.js} +47 -47
  198. package/dist/chunks/{tool-output-prh9w8gf.js → worktree-p674wzdw.js} +41 -41
  199. package/dist/chunks/{tool-output-xky21pn0.js → worktree-p7x6chka.js} +51 -51
  200. package/dist/chunks/{tool-output-fbqxm1rk.js → worktree-pd6vkw23.js} +24 -24
  201. package/dist/chunks/{tool-output-pjvnvgmy.js → worktree-pjvnvgmy.js} +1 -1
  202. package/dist/chunks/{tool-output-pknna89w.js → worktree-pknna89w.js} +1 -1
  203. package/dist/chunks/{tool-output-pkqb68ka.js → worktree-pkqb68ka.js} +4 -4
  204. package/dist/chunks/{tool-output-n6hgm2fe.js → worktree-pqwvhrw8.js} +11 -11
  205. package/dist/chunks/{tool-output-6pkskwe3.js → worktree-ps9sear4.js} +21 -21
  206. package/dist/chunks/{tool-output-3br7c0zx.js → worktree-pzkv34g4.js} +11 -11
  207. package/dist/chunks/{tool-output-q0xm7vwc.js → worktree-q0xm7vwc.js} +2 -2
  208. package/dist/chunks/{tool-output-r3e4wjdy.js → worktree-q1sec5vb.js} +33 -33
  209. package/dist/chunks/{tool-output-dzz1kj22.js → worktree-q5teym6j.js} +8 -8
  210. package/dist/chunks/{tool-output-hqcrfynj.js → worktree-q5vww750.js} +15 -15
  211. package/dist/chunks/{tool-output-dpzyz640.js → worktree-q9js4ehz.js} +13 -13
  212. package/dist/chunks/worktree-qdyb70sk.js +18 -0
  213. package/dist/chunks/{tool-output-qnc92qwc.js → worktree-qnc92qwc.js} +1 -1
  214. package/dist/chunks/{tool-output-qsdy395h.js → worktree-qsdy395h.js} +1 -1
  215. package/dist/chunks/{tool-output-z64xb9qk.js → worktree-qvc3x00v.js} +4 -4
  216. package/dist/chunks/{tool-output-qxjc9qry.js → worktree-qxjc9qry.js} +3 -3
  217. package/dist/chunks/{tool-output-qygbw77c.js → worktree-qygbw77c.js} +2 -2
  218. package/dist/chunks/{tool-output-r2m716tb.js → worktree-r2m716tb.js} +2 -2
  219. package/dist/chunks/{tool-output-y7vankhn.js → worktree-r2my65g6.js} +19 -19
  220. package/dist/chunks/{tool-output-kzgt6f80.js → worktree-r5nq0yst.js} +20 -20
  221. package/dist/chunks/{tool-output-rdw6cm16.js → worktree-rdw6cm16.js} +1 -1
  222. package/dist/chunks/{tool-output-x2rw7g36.js → worktree-reg6q42h.js} +5 -5
  223. package/dist/chunks/{tool-output-yzwd6hg8.js → worktree-rextwevb.js} +8 -8
  224. package/dist/chunks/{tool-output-q8fjykq6.js → worktree-rmamde0z.js} +23 -23
  225. package/dist/chunks/{tool-output-17kbye3y.js → worktree-rypyj38x.js} +15 -15
  226. package/dist/chunks/{tool-output-w2bqs4gs.js → worktree-rz62k6m4.js} +13 -13
  227. package/dist/chunks/{tool-output-a0h4hvtc.js → worktree-s082q9z4.js} +9 -9
  228. package/dist/chunks/{tool-output-hg1d6wk1.js → worktree-s2qwkk3g.js} +42 -42
  229. package/dist/chunks/{tool-output-wq3fhqxe.js → worktree-ssb0vkec.js} +16 -16
  230. package/dist/chunks/{tool-output-94p2bmng.js → worktree-styqs1rs.js} +35 -35
  231. package/dist/chunks/{tool-output-n4r3xatb.js → worktree-t2az9yje.js} +4 -4
  232. package/dist/chunks/{tool-output-tazgh4e4.js → worktree-tazgh4e4.js} +1 -1
  233. package/dist/chunks/{tool-output-ethg0faf.js → worktree-tc4w3sx9.js} +20 -20
  234. package/dist/chunks/{tool-output-tcezcvh9.js → worktree-tcezcvh9.js} +1 -1
  235. package/dist/chunks/{tool-output-w8xr7nv8.js → worktree-tdpndm1c.js} +5 -5
  236. package/dist/chunks/{tool-output-tdstcens.js → worktree-tdstcens.js} +1 -1
  237. package/dist/chunks/{tool-output-6fxpe754.js → worktree-tqshq6d1.js} +23 -23
  238. package/dist/chunks/{tool-output-kpha1e6n.js → worktree-tr3hxez6.js} +2 -2
  239. package/dist/chunks/{tool-output-rq4h19re.js → worktree-txpnd0dw.js} +32 -32
  240. package/dist/chunks/{tool-output-6gzpj820.js → worktree-tyn3cta0.js} +15 -15
  241. package/dist/chunks/{tool-output-fpecnkgp.js → worktree-v0es1rhs.js} +9 -9
  242. package/dist/chunks/{tool-output-mf00bat8.js → worktree-v2z8kye6.js} +4 -4
  243. package/dist/chunks/{tool-output-8rqycdgd.js → worktree-v5dkyp31.js} +7 -7
  244. package/dist/chunks/{tool-output-vt0186jp.js → worktree-v7rfr20d.js} +3 -3
  245. package/dist/chunks/{tool-output-6mkz5pnh.js → worktree-vba3dmap.js} +3 -3
  246. package/dist/chunks/{tool-output-mv26fab9.js → worktree-vem2yhr6.js} +6 -6
  247. package/dist/chunks/{tool-output-veqvce7d.js → worktree-veqvce7d.js} +1 -1
  248. package/dist/chunks/{tool-output-d9sgy5v4.js → worktree-vxzh5eqq.js} +4 -4
  249. package/dist/chunks/{tool-output-bd3vtvgg.js → worktree-vz1r2hay.js} +20 -20
  250. package/dist/chunks/{tool-output-vzs5sf6e.js → worktree-vzs5sf6e.js} +1 -1
  251. package/dist/chunks/{tool-output-pwmnbw1t.js → worktree-w18senfe.js} +18 -18
  252. package/dist/chunks/{tool-output-w3wsvvr9.js → worktree-w3wsvvr9.js} +1 -1
  253. package/dist/chunks/{tool-output-tjyakkek.js → worktree-w96yvccc.js} +5 -5
  254. package/dist/chunks/{tool-output-v7z2bvyd.js → worktree-wa9g86nq.js} +4 -4
  255. package/dist/chunks/{tool-output-wd87259q.js → worktree-wd87259q.js} +1 -1
  256. package/dist/chunks/{tool-output-7sm2b8gw.js → worktree-wg5t79bw.js} +25 -25
  257. package/dist/chunks/{tool-output-jn2qmfgk.js → worktree-wjw1e84n.js} +9 -9
  258. package/dist/chunks/{tool-output-wv396vej.js → worktree-wv396vej.js} +1 -1
  259. package/dist/chunks/{tool-output-fgnywkrh.js → worktree-wv9gbb3z.js} +9 -9
  260. package/dist/chunks/{tool-output-xfkkasph.js → worktree-xfkkasph.js} +1 -1
  261. package/dist/chunks/{tool-output-33j9wzam.js → worktree-xkg907ep.js} +22 -22
  262. package/dist/chunks/{tool-output-xkntkrq7.js → worktree-xkntkrq7.js} +2 -2
  263. package/dist/chunks/{tool-output-hk8r7czx.js → worktree-xszt5aw3.js} +7 -7
  264. package/dist/chunks/{tool-output-q5e7cmwt.js → worktree-xt4njr3s.js} +1 -1
  265. package/dist/chunks/{tool-output-77wyjq9b.js → worktree-xvgts2xj.js} +5 -5
  266. package/dist/chunks/{tool-output-mqd74103.js → worktree-xwan0tg7.js} +9 -9
  267. package/dist/chunks/{tool-output-y1fvbwt7.js → worktree-y1fvbwt7.js} +1 -1
  268. package/dist/chunks/{tool-output-zb35rv5w.js → worktree-y2d3d88a.js} +5 -5
  269. package/dist/chunks/{tool-output-z1seheqb.js → worktree-y3zjn872.js} +4 -4
  270. package/dist/chunks/{tool-output-tx02815r.js → worktree-y7g5cx4h.js} +84 -84
  271. package/dist/chunks/{tool-output-2kbyt3gb.js → worktree-y9a65w4b.js} +12 -12
  272. package/dist/chunks/{tool-output-rmaq76vj.js → worktree-yh6m2jsr.js} +28 -28
  273. package/dist/chunks/{tool-output-nkf980df.js → worktree-yp2x3t23.js} +4 -4
  274. package/dist/chunks/{tool-output-6fhzeyxk.js → worktree-ysz087h5.js} +9 -9
  275. package/dist/chunks/{tool-output-gf2az15k.js → worktree-yzyc98yn.js} +6 -6
  276. package/dist/chunks/{tool-output-z0bkrqjs.js → worktree-z0bkrqjs.js} +1 -1
  277. package/dist/chunks/{tool-output-etv31qza.js → worktree-z9b8ghxh.js} +16 -16
  278. package/dist/chunks/{tool-output-atadgrhy.js → worktree-zc5g640q.js} +12 -12
  279. package/dist/chunks/{tool-output-4j8rs4zn.js → worktree-zksxt2hw.js} +17 -17
  280. package/dist/chunks/{tool-output-zr2ceqn5.js → worktree-zr2ceqn5.js} +1 -1
  281. package/dist/chunks/{tool-output-6k79e2zw.js → worktree-ztb5xmgg.js} +8 -8
  282. package/dist/chunks/{tool-output-a3nb7vj0.js → worktree-zwew19y4.js} +4 -4
  283. package/dist/chunks/{tool-output-zxq2ej10.js → worktree-zxq2ej10.js} +1 -1
  284. package/dist/codemode/catalog.js +1 -1
  285. package/dist/codemode/instructions.js +3 -3
  286. package/dist/codemode/tool.js +3 -3
  287. package/dist/codemode/web.js +1 -1
  288. package/dist/command.js +85 -85
  289. package/dist/config/discovery.js +82 -82
  290. package/dist/config/markdown.js +1 -1
  291. package/dist/config/normalize.js +99 -99
  292. package/dist/config/plugin/agent.js +118 -118
  293. package/dist/config/plugin/command.js +207 -207
  294. package/dist/config/plugin/compaction.js +154 -154
  295. package/dist/config/plugin/compatibility.js +134 -134
  296. package/dist/config/plugin/entry-observer.js +1 -1
  297. package/dist/config/plugin/formatter.js +117 -117
  298. package/dist/config/plugin/image.js +116 -116
  299. package/dist/config/plugin/instruction.js +90 -90
  300. package/dist/config/plugin/location-watcher.js +116 -116
  301. package/dist/config/plugin/mcp.js +125 -125
  302. package/dist/config/plugin/policy.js +117 -117
  303. package/dist/config/plugin/provider.js +116 -116
  304. package/dist/config/plugin/reference.js +118 -118
  305. package/dist/config/plugin/shell.js +116 -116
  306. package/dist/config/plugin/skill-file.js +102 -102
  307. package/dist/config/plugin/skill.js +137 -137
  308. package/dist/config/plugin/snapshot.js +116 -116
  309. package/dist/config/plugin/source.js +119 -119
  310. package/dist/config/plugin/tool-output.js +117 -117
  311. package/dist/config/plugin/websearch.js +115 -115
  312. package/dist/config/plugin/worktree.js +118 -118
  313. package/dist/config/variable.js +3 -3
  314. package/dist/config/watch.js +1 -1
  315. package/dist/config.js +121 -121
  316. package/dist/credential/sql.js +2 -2
  317. package/dist/credential.js +83 -83
  318. package/dist/database/database.js +66 -66
  319. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  320. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  321. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  322. package/dist/database/drizzle/index.js +13 -13
  323. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  324. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  325. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  326. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  327. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  328. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  329. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  330. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  331. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  332. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  333. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  334. package/dist/database/drizzle.js +14 -14
  335. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  336. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  337. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  338. package/dist/database/migration/20260225215848_workspace.js +1 -1
  339. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  340. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  341. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  342. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  343. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  344. package/dist/database/migration/20260323234822_events.js +1 -1
  345. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  346. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  347. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  348. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  349. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  350. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  351. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  352. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  353. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  354. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  355. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  356. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  357. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  358. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  359. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  360. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  361. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  362. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  363. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  364. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  365. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  366. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  367. package/dist/database/migration/20260611035744_credential.js +1 -1
  368. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  369. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  370. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  371. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  372. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  373. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  374. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  375. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  376. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  377. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  378. package/dist/database/migration/20260812213948_worktree.js +1 -1
  379. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  380. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  381. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  382. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  383. package/dist/database/migration.gen.js +49 -49
  384. package/dist/database/migration.js +51 -51
  385. package/dist/database/path.js +2 -2
  386. package/dist/database/schema.gen.js +1 -1
  387. package/dist/database/schema.sql.js +1 -1
  388. package/dist/database/sqlite.bun.js +1 -1
  389. package/dist/database/sqlite.js +1 -1
  390. package/dist/database/sqlite.node.js +1 -1
  391. package/dist/database/sqlite.workerd.js +1 -1
  392. package/dist/database/v1-migration.bun.js +76 -76
  393. package/dist/database/v1-migration.js +1 -1
  394. package/dist/effect/app-node-builder.js +363 -363
  395. package/dist/effect/app-node-platform.js +2 -2
  396. package/dist/effect/keyed-mutex.js +1 -1
  397. package/dist/effect/websocket-constructor.js +1 -1
  398. package/dist/environment/driver.js +1 -1
  399. package/dist/environment/environment.js +93 -93
  400. package/dist/environment/exec-defaults.js +2 -2
  401. package/dist/environment/files.js +1 -1
  402. package/dist/environment/index.js +95 -95
  403. package/dist/environment/local.js +2 -2
  404. package/dist/environment/memory.js +2 -2
  405. package/dist/environment/unavailable.js +1 -1
  406. package/dist/event/sql.js +1 -1
  407. package/dist/event-logger.js +70 -70
  408. package/dist/file-access.js +104 -104
  409. package/dist/file-mutation.js +94 -94
  410. package/dist/file-retention.js +1 -1
  411. package/dist/filesystem/fff.bun.js +2 -2
  412. package/dist/filesystem/fff.js +1 -1
  413. package/dist/filesystem/fff.node.js +2 -2
  414. package/dist/filesystem/fff.workerd.js +2 -2
  415. package/dist/filesystem/location-watcher-policy.js +2 -2
  416. package/dist/filesystem/location-watcher.js +214 -214
  417. package/dist/filesystem/protected.js +1 -1
  418. package/dist/filesystem/search.js +103 -103
  419. package/dist/filesystem/watcher-binding.js +1 -1
  420. package/dist/filesystem/watcher.js +15 -15
  421. package/dist/filesystem.js +104 -104
  422. package/dist/form.js +82 -82
  423. package/dist/formatter/builtins.js +4 -4
  424. package/dist/formatter.js +87 -87
  425. package/dist/generate.js +101 -101
  426. package/dist/git.js +10 -10
  427. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  428. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  429. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  430. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  431. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  432. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  433. package/dist/github-copilot/copilot-provider.js +17 -17
  434. package/dist/github-copilot/models.js +91 -91
  435. package/dist/github-copilot/openai-compatible-error.js +1 -1
  436. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  437. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  438. package/dist/github-copilot/responses/openai-error.js +1 -1
  439. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  440. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  441. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  442. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  443. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  444. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  445. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  446. package/dist/image/photon.js +2 -2
  447. package/dist/image.js +6 -6
  448. package/dist/instance/service.js +5 -5
  449. package/dist/instance.js +354 -354
  450. package/dist/instruction-discovery.js +83 -83
  451. package/dist/instructions/builtins.js +87 -87
  452. package/dist/instructions/index.js +1 -1
  453. package/dist/integration/connection.js +3 -3
  454. package/dist/integration.js +89 -87
  455. package/dist/job.js +78 -78
  456. package/dist/kv/sql.js +2 -2
  457. package/dist/kv.js +73 -73
  458. package/dist/location-activity.js +131 -131
  459. package/dist/location-lifecycle.js +107 -107
  460. package/dist/location-service-map.js +86 -86
  461. package/dist/location-services.js +351 -351
  462. package/dist/location.js +87 -87
  463. package/dist/managed-policy.js +5 -5
  464. package/dist/mcp/client.js +91 -91
  465. package/dist/mcp/index.js +109 -109
  466. package/dist/mcp/instructions.js +127 -127
  467. package/dist/mcp/oauth.js +78 -78
  468. package/dist/mcp/stdio.js +90 -90
  469. package/dist/mime.js +1 -1
  470. package/dist/modal/models.js +91 -91
  471. package/dist/model-resolver.js +96 -96
  472. package/dist/model.js +100 -100
  473. package/dist/models-dev.js +107 -107
  474. package/dist/oauth/page.js +1 -1
  475. package/dist/permission/saved.js +80 -80
  476. package/dist/permission/sql.js +5 -5
  477. package/dist/permission.js +109 -109
  478. package/dist/persistent-pty/binary.bun.js +1 -1
  479. package/dist/persistent-pty/daemon.js +1 -1
  480. package/dist/persistent-pty/index.js +86 -86
  481. package/dist/persistent-pty/pty-binding.js +1 -1
  482. package/dist/persistent-pty.js +75 -75
  483. package/dist/plugin/agent.js +76 -76
  484. package/dist/plugin/command.js +102 -102
  485. package/dist/plugin/hooks.js +5 -5
  486. package/dist/plugin/host.js +211 -211
  487. package/dist/plugin/identity.js +3 -3
  488. package/dist/plugin/instance.js +1 -1
  489. package/dist/plugin/internal.js +326 -326
  490. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  491. package/dist/plugin/models-dev.js +96 -96
  492. package/dist/plugin/module.js +7 -7
  493. package/dist/plugin/optimize.js +4 -4
  494. package/dist/plugin/plan.js +102 -102
  495. package/dist/plugin/promise.js +1 -1
  496. package/dist/plugin/provider/amazon-bedrock.js +90 -90
  497. package/dist/plugin/provider/azure.js +117 -117
  498. package/dist/plugin/provider/cerebras.js +1 -1
  499. package/dist/plugin/provider/chatgpt.js +93 -93
  500. package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
  501. package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
  502. package/dist/plugin/provider/cohere.js +2 -2
  503. package/dist/plugin/provider/configured.js +112 -112
  504. package/dist/plugin/provider/digitalocean.js +93 -93
  505. package/dist/plugin/provider/dynamic.js +2 -2
  506. package/dist/plugin/provider/factory.js +1 -1
  507. package/dist/plugin/provider/github-copilot.js +95 -95
  508. package/dist/plugin/provider/gitlab.js +93 -93
  509. package/dist/plugin/provider/google-vertex.js +90 -90
  510. package/dist/plugin/provider/kilo.js +1 -1
  511. package/dist/plugin/provider/llmgateway.js +78 -78
  512. package/dist/plugin/provider/lmstudio.js +116 -116
  513. package/dist/plugin/provider/local.js +113 -113
  514. package/dist/plugin/provider/modal.js +92 -92
  515. package/dist/plugin/provider/nvidia.js +1 -1
  516. package/dist/plugin/provider/ollama.js +116 -116
  517. package/dist/plugin/provider/openai.js +95 -95
  518. package/dist/plugin/provider/opencode.js +96 -96
  519. package/dist/plugin/provider/openrouter.js +91 -91
  520. package/dist/plugin/provider/perplexity.js +2 -2
  521. package/dist/plugin/provider/poe.js +79 -79
  522. package/dist/plugin/provider/prompt-cache-key.js +90 -90
  523. package/dist/plugin/provider/sap-ai-core.js +91 -91
  524. package/dist/plugin/provider/sdk-factory.js +1 -1
  525. package/dist/plugin/provider/snowflake-cortex.js +115 -115
  526. package/dist/plugin/provider/vercel.js +90 -90
  527. package/dist/plugin/provider/vllm.js +116 -116
  528. package/dist/plugin/provider/xai.js +91 -91
  529. package/dist/plugin/provider/zenmux.js +1 -1
  530. package/dist/plugin/provider.js +155 -155
  531. package/dist/plugin/sdk.js +76 -76
  532. package/dist/plugin/service.js +3 -3
  533. package/dist/plugin/skill.js +134 -134
  534. package/dist/plugin/source-directory.js +1 -1
  535. package/dist/plugin/supervisor.js +341 -341
  536. package/dist/plugin/tool-input-repair.js +4 -4
  537. package/dist/plugin/update.js +6 -6
  538. package/dist/plugin/vcs/git.js +86 -86
  539. package/dist/plugin/vcs/hg.js +86 -86
  540. package/dist/plugin/verbosity.js +93 -93
  541. package/dist/plugin/warming.js +114 -114
  542. package/dist/plugin/websearch/exa.js +7 -7
  543. package/dist/plugin/websearch/firecrawl.js +6 -6
  544. package/dist/plugin/websearch/index.js +9 -9
  545. package/dist/plugin/websearch/mcp.js +4 -4
  546. package/dist/plugin/websearch/parallel.js +8 -8
  547. package/dist/plugin/websearch/tavily.js +6 -6
  548. package/dist/plugin/websearch/tinyfish.js +8 -8
  549. package/dist/plugin.js +222 -222
  550. package/dist/project/schema.js +8 -8
  551. package/dist/project/sql.js +4 -4
  552. package/dist/project.js +90 -90
  553. package/dist/provider.js +99 -99
  554. package/dist/pty/protocol.js +1 -1
  555. package/dist/pty/ticket.js +1 -1
  556. package/dist/pty.js +99 -99
  557. package/dist/reference/instructions.js +87 -87
  558. package/dist/reference.js +89 -89
  559. package/dist/repository-cache.js +81 -81
  560. package/dist/repository.js +1 -1
  561. package/dist/ripgrep/binary.js +2 -2
  562. package/dist/ripgrep.js +95 -95
  563. package/dist/rpc.js +86 -86
  564. package/dist/schema.js +1 -1
  565. package/dist/session/affinity.js +1 -1
  566. package/dist/session/command.js +74 -74
  567. package/dist/session/compaction.js +131 -131
  568. package/dist/session/context.js +153 -153
  569. package/dist/session/diff.js +88 -88
  570. package/dist/session/environment.js +5 -5
  571. package/dist/session/error.js +5 -5
  572. package/dist/session/event.js +1 -1
  573. package/dist/session/execution/restart.js +214 -214
  574. package/dist/session/execution.js +127 -127
  575. package/dist/session/generate.js +152 -152
  576. package/dist/session/history.js +13 -13
  577. package/dist/session/inbox.js +90 -90
  578. package/dist/session/info.js +3 -3
  579. package/dist/session/instruction-entry.js +77 -77
  580. package/dist/session/instruction-state.js +8 -8
  581. package/dist/session/instructions.js +97 -97
  582. package/dist/session/message-updater.js +2 -2
  583. package/dist/session/message.js +1 -1
  584. package/dist/session/model-request.js +120 -120
  585. package/dist/session/model-transport.js +9 -9
  586. package/dist/session/move.js +129 -129
  587. package/dist/session/projector.js +86 -86
  588. package/dist/session/prompt.js +105 -105
  589. package/dist/session/provider-context.js +3 -3
  590. package/dist/session/revert.js +90 -90
  591. package/dist/session/run-coordinator.js +3 -3
  592. package/dist/session/runner/index.js +3 -3
  593. package/dist/session/runner/llm.js +224 -224
  594. package/dist/session/runner/max-steps.js +1 -1
  595. package/dist/session/runner/model.js +98 -98
  596. package/dist/session/runner/publish-llm-event.js +113 -113
  597. package/dist/session/runner/retry.js +2 -2
  598. package/dist/session/runner/step.js +125 -125
  599. package/dist/session/runner/to-llm-message.js +2 -2
  600. package/dist/session/schema.js +5 -5
  601. package/dist/session/session.js +162 -162
  602. package/dist/session/shell.js +130 -130
  603. package/dist/session/skill.js +103 -103
  604. package/dist/session/sql.js +5 -5
  605. package/dist/session/stats.js +73 -73
  606. package/dist/session/store.js +85 -85
  607. package/dist/session/subagent-completion.js +1 -1
  608. package/dist/session/subagent-job.js +203 -203
  609. package/dist/session/system-prompt.js +1 -1
  610. package/dist/session/title.js +157 -157
  611. package/dist/session/to-session-error.js +111 -111
  612. package/dist/session/transfer.js +210 -210
  613. package/dist/session/usage.js +1 -1
  614. package/dist/session.js +211 -211
  615. package/dist/shell/parse.js +6 -6
  616. package/dist/shell/result.js +1 -1
  617. package/dist/shell/scan.js +1 -1
  618. package/dist/shell/select.js +15 -15
  619. package/dist/shell.js +132 -132
  620. package/dist/skill/discovery.js +6 -6
  621. package/dist/skill/instructions.js +105 -105
  622. package/dist/skill.js +110 -110
  623. package/dist/snapshot.js +91 -91
  624. package/dist/state.js +1 -1
  625. package/dist/tool/html-markdown.js +1 -1
  626. package/dist/tool/http-body.js +1 -1
  627. package/dist/tool/mcp.js +126 -126
  628. package/dist/tool/plugin/edit.js +120 -120
  629. package/dist/tool/plugin/file-diff.js +1 -1
  630. package/dist/tool/plugin/glob.js +124 -124
  631. package/dist/tool/plugin/grep.js +124 -124
  632. package/dist/tool/plugin/mcp-resource.js +117 -117
  633. package/dist/tool/plugin/opencode.js +3 -3
  634. package/dist/tool/plugin/patch.js +122 -122
  635. package/dist/tool/plugin/question.js +101 -101
  636. package/dist/tool/plugin/read.js +119 -119
  637. package/dist/tool/plugin/shell.js +208 -208
  638. package/dist/tool/plugin/skill.js +111 -111
  639. package/dist/tool/plugin/subagent.js +212 -212
  640. package/dist/tool/plugin/webfetch.js +110 -110
  641. package/dist/tool/plugin/websearch.js +112 -112
  642. package/dist/tool/plugin/write.js +122 -122
  643. package/dist/tool/read-filesystem.js +100 -100
  644. package/dist/tool/runtime.js +1 -1
  645. package/dist/tool-output.js +7 -7
  646. package/dist/tool.js +14 -14
  647. package/dist/types/integration.d.ts +746 -6
  648. package/dist/util/error-summary.js +1 -1
  649. package/dist/util/error.js +1 -1
  650. package/dist/util/git-executable.js +2 -2
  651. package/dist/util/iife.js +1 -1
  652. package/dist/util/lazy.js +1 -1
  653. package/dist/util/slug.js +1 -1
  654. package/dist/util/token.js +1 -1
  655. package/dist/util/which.js +1 -1
  656. package/dist/util/wildcard.js +1 -1
  657. package/dist/v1/config/agent.js +5 -5
  658. package/dist/v1/config/command.js +5 -5
  659. package/dist/v1/config/error.js +2 -2
  660. package/dist/v1/config/mcp.js +4 -4
  661. package/dist/v1/config/migrate.js +92 -92
  662. package/dist/v1/config/permission.js +3 -3
  663. package/dist/v1/config/plugin.js +3 -3
  664. package/dist/v1/config/provider-options.js +1 -1
  665. package/dist/v1/config/provider.js +4 -4
  666. package/dist/variant.js +91 -91
  667. package/dist/vcs/patch.js +1 -1
  668. package/dist/vcs.js +89 -89
  669. package/dist/websearch.js +82 -82
  670. package/dist/wellknown/plugin.js +76 -76
  671. package/dist/wellknown.js +79 -79
  672. package/dist/workspace/driver.js +7 -7
  673. package/dist/workspace/sql.js +1 -1
  674. package/dist/workspace.js +78 -78
  675. package/dist/worktree/directory.js +2 -2
  676. package/dist/worktree/git.js +10 -10
  677. package/dist/worktree/sql.js +5 -5
  678. package/dist/worktree/strategies.js +89 -89
  679. package/dist/worktree.js +98 -98
  680. package/package.json +8 -8
  681. package/dist/chunks/tool-output-0d4j78kf.js +0 -26
  682. package/dist/chunks/tool-output-pf31ssb9.js +0 -18
  683. package/dist/chunks/tool-output-zwqytfkg.js +0 -253
  684. /package/dist/chunks/{tool-output-0qkdqm5v.js → worktree-0qkdqm5v.js} +0 -0
  685. /package/dist/chunks/{tool-output-0zkw76rk.js → worktree-0zkw76rk.js} +0 -0
  686. /package/dist/chunks/{tool-output-17cy0kzp.js → worktree-17cy0kzp.js} +0 -0
  687. /package/dist/chunks/{tool-output-1cnp2v09.js → worktree-1cnp2v09.js} +0 -0
  688. /package/dist/chunks/{tool-output-1kg9ymc8.js → worktree-1kg9ymc8.js} +0 -0
  689. /package/dist/chunks/{tool-output-24dcb14g.js → worktree-24dcb14g.js} +0 -0
  690. /package/dist/chunks/{tool-output-2710q6r3.js → worktree-2710q6r3.js} +0 -0
  691. /package/dist/chunks/{tool-output-2axfhc9x.js → worktree-2axfhc9x.js} +0 -0
  692. /package/dist/chunks/{tool-output-2c3vjs8z.js → worktree-2c3vjs8z.js} +0 -0
  693. /package/dist/chunks/{tool-output-34c7v6d4.js → worktree-34c7v6d4.js} +0 -0
  694. /package/dist/chunks/{tool-output-359p4xyc.js → worktree-359p4xyc.js} +0 -0
  695. /package/dist/chunks/{tool-output-3asan66x.js → worktree-3asan66x.js} +0 -0
  696. /package/dist/chunks/{tool-output-3t0ybcrp.js → worktree-3t0ybcrp.js} +0 -0
  697. /package/dist/chunks/{tool-output-3v8g72cx.js → worktree-3v8g72cx.js} +0 -0
  698. /package/dist/chunks/{tool-output-3w5fmr99.js → worktree-3w5fmr99.js} +0 -0
  699. /package/dist/chunks/{tool-output-3wcehsnq.js → worktree-3wcehsnq.js} +0 -0
  700. /package/dist/chunks/{tool-output-43n2bw4t.js → worktree-43n2bw4t.js} +0 -0
  701. /package/dist/chunks/{tool-output-4knz6hnm.js → worktree-4knz6hnm.js} +0 -0
  702. /package/dist/chunks/{tool-output-4vcrnpx2.js → worktree-4vcrnpx2.js} +0 -0
  703. /package/dist/chunks/{tool-output-4y7fprxs.js → worktree-4y7fprxs.js} +0 -0
  704. /package/dist/chunks/{tool-output-53557ph1.js → worktree-53557ph1.js} +0 -0
  705. /package/dist/chunks/{tool-output-550bvhaj.js → worktree-550bvhaj.js} +0 -0
  706. /package/dist/chunks/{tool-output-5qd3pb7m.js → worktree-5qd3pb7m.js} +0 -0
  707. /package/dist/chunks/{tool-output-6prwharc.js → worktree-6prwharc.js} +0 -0
  708. /package/dist/chunks/{tool-output-6q2bdcd1.js → worktree-6q2bdcd1.js} +0 -0
  709. /package/dist/chunks/{tool-output-7akdwqpd.js → worktree-7akdwqpd.js} +0 -0
  710. /package/dist/chunks/{tool-output-7m9af43g.js → worktree-7m9af43g.js} +0 -0
  711. /package/dist/chunks/{tool-output-822emrt2.js → worktree-822emrt2.js} +0 -0
  712. /package/dist/chunks/{tool-output-88xbtdfr.js → worktree-88xbtdfr.js} +0 -0
  713. /package/dist/chunks/{tool-output-8n3pysct.js → worktree-8n3pysct.js} +0 -0
  714. /package/dist/chunks/{tool-output-8wj87zfr.js → worktree-8wj87zfr.js} +0 -0
  715. /package/dist/chunks/{tool-output-9a4afbnw.js → worktree-9a4afbnw.js} +0 -0
  716. /package/dist/chunks/{tool-output-9rqn6x4v.js → worktree-9rqn6x4v.js} +0 -0
  717. /package/dist/chunks/{tool-output-a6k6eb26.js → worktree-a6k6eb26.js} +0 -0
  718. /package/dist/chunks/{tool-output-af5trqkr.js → worktree-af5trqkr.js} +0 -0
  719. /package/dist/chunks/{tool-output-afrmfg78.js → worktree-afrmfg78.js} +0 -0
  720. /package/dist/chunks/{tool-output-aqzs7mqg.js → worktree-aqzs7mqg.js} +0 -0
  721. /package/dist/chunks/{tool-output-atq7p7m5.js → worktree-atq7p7m5.js} +0 -0
  722. /package/dist/chunks/{tool-output-bkyjaxrp.js → worktree-bkyjaxrp.js} +0 -0
  723. /package/dist/chunks/{tool-output-bmr6ed5q.js → worktree-bmr6ed5q.js} +0 -0
  724. /package/dist/chunks/{tool-output-cf4snx6d.js → worktree-cf4snx6d.js} +0 -0
  725. /package/dist/chunks/{tool-output-cvy3z8tj.js → worktree-cvy3z8tj.js} +0 -0
  726. /package/dist/chunks/{tool-output-d9fn303g.js → worktree-d9fn303g.js} +0 -0
  727. /package/dist/chunks/{tool-output-d9jj8t3e.js → worktree-d9jj8t3e.js} +0 -0
  728. /package/dist/chunks/{tool-output-dajrwvna.js → worktree-dajrwvna.js} +0 -0
  729. /package/dist/chunks/{tool-output-dap0rakb.js → worktree-dap0rakb.js} +0 -0
  730. /package/dist/chunks/{tool-output-df08tz66.js → worktree-df08tz66.js} +0 -0
  731. /package/dist/chunks/{tool-output-dy18nga0.js → worktree-dy18nga0.js} +0 -0
  732. /package/dist/chunks/{tool-output-e5kj55wp.js → worktree-e5kj55wp.js} +0 -0
  733. /package/dist/chunks/{tool-output-e73j6tqm.js → worktree-e73j6tqm.js} +0 -0
  734. /package/dist/chunks/{tool-output-ec1grn59.js → worktree-ec1grn59.js} +0 -0
  735. /package/dist/chunks/{tool-output-eh3zwz77.js → worktree-eh3zwz77.js} +0 -0
  736. /package/dist/chunks/{tool-output-emrn6kk6.js → worktree-emrn6kk6.js} +0 -0
  737. /package/dist/chunks/{tool-output-f0mxakyp.js → worktree-f0mxakyp.js} +0 -0
  738. /package/dist/chunks/{tool-output-f6n9ztr4.js → worktree-f6n9ztr4.js} +0 -0
  739. /package/dist/chunks/{tool-output-faypxj3z.js → worktree-faypxj3z.js} +0 -0
  740. /package/dist/chunks/{tool-output-fd410y7t.js → worktree-fd410y7t.js} +0 -0
  741. /package/dist/chunks/{tool-output-fxgpk5d8.js → worktree-fxgpk5d8.js} +0 -0
  742. /package/dist/chunks/{tool-output-g4wezp1m.js → worktree-g4wezp1m.js} +0 -0
  743. /package/dist/chunks/{tool-output-g86h250q.js → worktree-g86h250q.js} +0 -0
  744. /package/dist/chunks/{tool-output-gebd4c9n.js → worktree-gebd4c9n.js} +0 -0
  745. /package/dist/chunks/{tool-output-gftt206x.js → worktree-gftt206x.js} +0 -0
  746. /package/dist/chunks/{tool-output-hk9envan.js → worktree-hk9envan.js} +0 -0
  747. /package/dist/chunks/{tool-output-j2ntwpah.js → worktree-j2ntwpah.js} +0 -0
  748. /package/dist/chunks/{tool-output-j5zkgpj8.js → worktree-j5zkgpj8.js} +0 -0
  749. /package/dist/chunks/{tool-output-jjkms2e6.js → worktree-jjkms2e6.js} +0 -0
  750. /package/dist/chunks/{tool-output-jr7sbwjy.js → worktree-jr7sbwjy.js} +0 -0
  751. /package/dist/chunks/{tool-output-jwfs4k6c.js → worktree-jwfs4k6c.js} +0 -0
  752. /package/dist/chunks/{tool-output-jzg6c2d5.js → worktree-jzg6c2d5.js} +0 -0
  753. /package/dist/chunks/{tool-output-mp448xyj.js → worktree-mp448xyj.js} +0 -0
  754. /package/dist/chunks/{tool-output-msx8hqn2.js → worktree-msx8hqn2.js} +0 -0
  755. /package/dist/chunks/{tool-output-n05xt0ee.js → worktree-n05xt0ee.js} +0 -0
  756. /package/dist/chunks/{tool-output-n3j8tn72.js → worktree-n3j8tn72.js} +0 -0
  757. /package/dist/chunks/{tool-output-njntx4h6.js → worktree-njntx4h6.js} +0 -0
  758. /package/dist/chunks/{tool-output-q3sfg36h.js → worktree-q3sfg36h.js} +0 -0
  759. /package/dist/chunks/{tool-output-q74kybfr.js → worktree-q74kybfr.js} +0 -0
  760. /package/dist/chunks/{tool-output-qaymkmh1.js → worktree-qaymkmh1.js} +0 -0
  761. /package/dist/chunks/{tool-output-qb87gjwd.js → worktree-qb87gjwd.js} +0 -0
  762. /package/dist/chunks/{tool-output-qfa1cgps.js → worktree-qfa1cgps.js} +0 -0
  763. /package/dist/chunks/{tool-output-qg3g05ea.js → worktree-qg3g05ea.js} +0 -0
  764. /package/dist/chunks/{tool-output-qrg20bc0.js → worktree-qrg20bc0.js} +0 -0
  765. /package/dist/chunks/{tool-output-rcb2kzg1.js → worktree-rcb2kzg1.js} +0 -0
  766. /package/dist/chunks/{tool-output-sdp7kfr6.js → worktree-sdp7kfr6.js} +0 -0
  767. /package/dist/chunks/{tool-output-ssg3fenm.js → worktree-ssg3fenm.js} +0 -0
  768. /package/dist/chunks/{tool-output-w803qqfp.js → worktree-w803qqfp.js} +0 -0
  769. /package/dist/chunks/{tool-output-wc3fc9cn.js → worktree-wc3fc9cn.js} +0 -0
  770. /package/dist/chunks/{tool-output-wer8tq1h.js → worktree-wer8tq1h.js} +0 -0
  771. /package/dist/chunks/{tool-output-wtztk69x.js → worktree-wtztk69x.js} +0 -0
  772. /package/dist/chunks/{tool-output-x0ckcb58.js → worktree-x0ckcb58.js} +0 -0
  773. /package/dist/chunks/{tool-output-x61499pn.js → worktree-x61499pn.js} +0 -0
  774. /package/dist/chunks/{tool-output-y44na4kk.js → worktree-y44na4kk.js} +0 -0
  775. /package/dist/chunks/{tool-output-y8cydn3q.js → worktree-y8cydn3q.js} +0 -0
  776. /package/dist/chunks/{tool-output-y8f7s663.js → worktree-y8f7s663.js} +0 -0
  777. /package/dist/chunks/{tool-output-ygaqb7jw.js → worktree-ygaqb7jw.js} +0 -0
  778. /package/dist/chunks/{tool-output-ym463w8f.js → worktree-ym463w8f.js} +0 -0
  779. /package/dist/chunks/{tool-output-z5v4ffb3.js → worktree-z5v4ffb3.js} +0 -0
  780. /package/dist/chunks/{tool-output-z9919s4g.js → worktree-z9919s4g.js} +0 -0
@@ -1,25 +1,26 @@
1
1
  import {
2
2
  Service83,
3
3
  node87
4
- } from "./tool-output-f41zmgay.js";
4
+ } from "./worktree-ft9mezaf.js";
5
5
  import {
6
6
  Key3,
7
- Service69,
8
- node73
9
- } from "./tool-output-rmaq76vj.js";
7
+ External2,
8
+ Service66,
9
+ node70
10
+ } from "./worktree-yh6m2jsr.js";
10
11
  import {
11
12
  create3
12
- } from "./tool-output-rdw6cm16.js";
13
+ } from "./worktree-rdw6cm16.js";
13
14
  import {
14
15
  key2
15
- } from "./tool-output-db2wf4at.js";
16
+ } from "./worktree-gqtdsdt7.js";
16
17
  import {
17
18
  validateAnswer2,
18
19
  validateFields2
19
- } from "./tool-output-q8fjykq6.js";
20
+ } from "./worktree-rmamde0z.js";
20
21
  import {
21
22
  __export
22
- } from "./tool-output-9rqn6x4v.js";
23
+ } from "./worktree-9rqn6x4v.js";
23
24
 
24
25
  // src/integration.ts
25
26
  var exports_integration = {};
@@ -34,17 +35,18 @@ __export(exports_integration, {
34
35
  CommandAttemptStatus: () => CommandAttemptStatus2,
35
36
  CommandMethod: () => CommandMethod2,
36
37
  EnvMethod: () => EnvMethod2,
37
- Event: () => Event16,
38
- ID: () => ID10,
39
- Info: () => Info19,
38
+ Event: () => Event15,
39
+ ExternalMethod: () => ExternalMethod2,
40
+ ID: () => ID8,
41
+ Info: () => Info18,
40
42
  Integration: () => exports_integration,
41
43
  KeyMethod: () => KeyMethod2,
42
44
  Method: () => Method2,
43
45
  MethodID: () => MethodID2,
44
46
  OAuthMethod: () => OAuthMethod2,
45
47
  Ref: () => Ref3,
46
- Service: () => Service68,
47
- node: () => node72
48
+ Service: () => Service65,
49
+ node: () => node69
48
50
  });
49
51
  import { makeLocationNode } from "@opencode/util/effect/app-node";
50
52
  import {
@@ -66,16 +68,17 @@ import {
66
68
  import { Integration } from "@opencode/schema/integration";
67
69
  import { AppProcess } from "@opencode/util/process";
68
70
  import { ChildProcess } from "effect/unstable/process";
69
- import { Event as Event16 } from "@opencode/schema/integration";
70
- var ID10 = Integration.ID;
71
+ import { Event as Event15 } from "@opencode/schema/integration";
72
+ var ID8 = Integration.ID;
71
73
  var MethodID2 = Integration.MethodID;
72
74
  var AttemptID2 = Integration.AttemptID;
73
75
  var OAuthMethod2 = Integration.OAuthMethod;
74
76
  var CommandMethod2 = Integration.CommandMethod;
75
77
  var KeyMethod2 = Integration.KeyMethod;
78
+ var ExternalMethod2 = Integration.ExternalMethod;
76
79
  var EnvMethod2 = Integration.EnvMethod;
77
80
  var Method2 = Integration.Method;
78
- var Info19 = Integration.Info;
81
+ var Info18 = Integration.Info;
79
82
  var Attempt2 = Integration.Attempt;
80
83
  var AttemptStatus2 = Integration.AttemptStatus;
81
84
  var CommandAttempt2 = Integration.CommandAttempt;
@@ -98,19 +101,19 @@ class AuthorizationError2 extends Schema.TaggedError()("Integration.Authorizatio
98
101
  }
99
102
 
100
103
  class AttemptNotFoundError2 extends Schema.TaggedError()("Integration.AttemptNotFound", {
101
- integrationID: ID10,
104
+ integrationID: ID8,
102
105
  attemptID: AttemptID2
103
106
  }) {
104
107
  }
105
108
  var Ref3 = Integration.Ref;
106
109
 
107
- class Service68 extends Context.Service()("@opencode/Integration") {
110
+ class Service65 extends Context.Service()("@opencode/Integration") {
108
111
  }
109
112
  var attemptLifetime = Duration.toMillis(Duration.minutes(10));
110
113
  var terminalRetention = Duration.toMillis(Duration.minutes(1));
111
114
  var scrubInterval = Duration.seconds(30);
112
- var layer = Layer.effect(Service68, Effect.gen(function* () {
113
- const credentials = yield* Service69;
115
+ var layer = Layer.effect(Service65, Effect.gen(function* () {
116
+ const credentials = yield* Service66;
114
117
  const bus = yield* Service83;
115
118
  const processes = yield* AppProcess.Service;
116
119
  const scope = yield* Scope.Scope;
@@ -157,6 +160,8 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
157
160
  return method.id === implementation.method.id;
158
161
  if (method.type === "command" && implementation.method.type === "command")
159
162
  return method.id === implementation.method.id;
163
+ if (method.type === "external" && implementation.method.type === "external")
164
+ return method.id === implementation.method.id;
160
165
  return true;
161
166
  });
162
167
  if (index === -1)
@@ -178,6 +183,8 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
178
183
  return candidate.id === method.id;
179
184
  if (candidate.type === "command" && method.type === "command")
180
185
  return candidate.id === method.id;
186
+ if (candidate.type === "external" && method.type === "external")
187
+ return candidate.id === method.id;
181
188
  return true;
182
189
  });
183
190
  if (index !== -1)
@@ -207,7 +214,7 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
207
214
  const env = (entry?.methods ?? []).filter((method) => method.type === "env").flatMap((method) => method.names.filter((name) => process.env[name])).map((name) => ({ type: "env", name }));
208
215
  return [...credentials, ...env];
209
216
  };
210
- const project = (entry, connections) => Info19.make({
217
+ const project = (entry, connections) => Info18.make({
211
218
  id: entry.ref.id,
212
219
  name: entry.ref.name,
213
220
  ...entry.ref.metadata === undefined ? {} : { metadata: entry.ref.metadata },
@@ -440,7 +447,7 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
440
447
  }).pipe(Scope.provide(attemptScope), Effect.exit, Effect.flatMap((exit) => settleCommand(attemptID, exit)), Effect.forkIn(attemptScope, { startImmediately: true }));
441
448
  return CommandAttempt2.make({ attemptID, time });
442
449
  });
443
- return Service68.of({
450
+ return Service65.of({
444
451
  transform: state.transform,
445
452
  reload: state.reload,
446
453
  revision: state.revision,
@@ -502,6 +509,29 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
502
509
  })
503
510
  });
504
511
  }),
512
+ external: Effect.fn("Integration.connection.external")(function* (input) {
513
+ const method = state.get().integrations.get(input.integrationID)?.methods.find((method) => method.type === "external" && method.id === input.methodID);
514
+ if (method?.type !== "external")
515
+ return yield* new AuthorizationError2({ cause: new Error(`External method not found: ${input.methodID}`) });
516
+ const answer = input.answer ?? {};
517
+ if (method.form) {
518
+ const invalid = validateFields2(method.form) ?? validateAnswer2(method.form, answer);
519
+ if (invalid)
520
+ return yield* new AuthorizationError2({ cause: new Error(invalid) });
521
+ }
522
+ if (!method.form && Object.keys(answer).length > 0) {
523
+ return yield* new AuthorizationError2({ cause: new Error("External method does not accept a form answer") });
524
+ }
525
+ yield* createCredential({
526
+ integrationID: input.integrationID,
527
+ label: input.label,
528
+ value: External2.make({
529
+ type: "external",
530
+ methodID: method.id,
531
+ ...Object.keys(answer).length > 0 ? { metadata: answer } : {}
532
+ })
533
+ });
534
+ }),
505
535
  activate: Effect.fn("Integration.connection.activate")((credentialID) => credentials.activate(credentialID)),
506
536
  update: Effect.fn("Integration.connection.update")((credentialID, updates) => credentials.update(credentialID, updates)),
507
537
  remove: Effect.fn("Integration.connection.remove")((credentialID) => credentials.remove(credentialID)),
@@ -599,10 +629,10 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
599
629
  }
600
630
  });
601
631
  }));
602
- var node72 = makeLocationNode({
603
- service: Service68,
632
+ var node69 = makeLocationNode({
633
+ service: Service65,
604
634
  layer,
605
- deps: [node73, node87, AppProcess.node]
635
+ deps: [node70, node87, AppProcess.node]
606
636
  });
607
637
 
608
- export { ID10, MethodID2, AttemptID2, OAuthMethod2, CommandMethod2, KeyMethod2, EnvMethod2, Method2, Info19, Attempt2, AttemptStatus2, CommandAttempt2, CommandAttemptStatus2, CodeRequiredError2, AuthorizationError2, AttemptNotFoundError2, Ref3, Service68, node72, exports_integration, Event16 };
638
+ export { ID8, MethodID2, AttemptID2, OAuthMethod2, CommandMethod2, KeyMethod2, ExternalMethod2, EnvMethod2, Method2, Info18, Attempt2, AttemptStatus2, CommandAttempt2, CommandAttemptStatus2, CodeRequiredError2, AuthorizationError2, AttemptNotFoundError2, Ref3, Service65, node69, exports_integration, Event15 };
@@ -1,40 +1,40 @@
1
1
  import {
2
2
  Service83,
3
3
  node87
4
- } from "./tool-output-f41zmgay.js";
4
+ } from "./worktree-ft9mezaf.js";
5
5
  import {
6
6
  create3
7
- } from "./tool-output-rdw6cm16.js";
7
+ } from "./worktree-rdw6cm16.js";
8
8
  import {
9
9
  __export
10
- } from "./tool-output-9rqn6x4v.js";
10
+ } from "./worktree-9rqn6x4v.js";
11
11
 
12
12
  // src/agent.ts
13
13
  var exports_agent4 = {};
14
14
  __export(exports_agent4, {
15
15
  Agent: () => exports_agent4,
16
16
  Color: () => Color2,
17
- Event: () => Event19,
18
- ID: () => ID14,
19
- Info: () => Info24,
17
+ Event: () => Event18,
18
+ ID: () => ID13,
19
+ Info: () => Info23,
20
20
  Name: () => Name3,
21
- Service: () => Service77,
21
+ Service: () => Service74,
22
22
  defaultID: () => defaultID2,
23
- node: () => node81
23
+ node: () => node78
24
24
  });
25
25
  import { makeLocationNode } from "@opencode/util/effect/app-node";
26
26
  import { Array, Context, Effect, Layer } from "effect";
27
27
  import { Agent } from "@opencode/schema/agent";
28
- import { Event as Event19 } from "@opencode/schema/agent";
29
- var ID14 = Agent.ID;
28
+ import { Event as Event18 } from "@opencode/schema/agent";
29
+ var ID13 = Agent.ID;
30
30
  var Name3 = Agent.Name;
31
- var defaultID2 = ID14.make("build");
31
+ var defaultID2 = ID13.make("build");
32
32
  var Color2 = Agent.Color;
33
- var Info24 = Agent.Info;
33
+ var Info23 = Agent.Info;
34
34
 
35
- class Service77 extends Context.Service()("@opencode/Agent") {
35
+ class Service74 extends Context.Service()("@opencode/Agent") {
36
36
  }
37
- var layer = Layer.effect(Service77, Effect.gen(function* () {
37
+ var layer = Layer.effect(Service74, Effect.gen(function* () {
38
38
  const bus = yield* Service83;
39
39
  const state = create3({
40
40
  name: "agent",
@@ -46,7 +46,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
46
46
  editor.default = id;
47
47
  },
48
48
  update: (id, fn) => {
49
- const current = editor.agents.get(id) ?? Info24.default(id);
49
+ const current = editor.agents.get(id) ?? Info23.default(id);
50
50
  if (!editor.agents.has(id))
51
51
  editor.agents.set(id, current);
52
52
  fn(current);
@@ -64,7 +64,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
64
64
  const configured = data.default ? selectable(data.agents.get(data.default)) : undefined;
65
65
  if (configured)
66
66
  return configured;
67
- const build = selectable(data.agents.get(ID14.make("build")));
67
+ const build = selectable(data.agents.get(ID13.make("build")));
68
68
  if (build)
69
69
  return build;
70
70
  for (const agent of data.agents.values()) {
@@ -73,7 +73,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
73
73
  return fallback;
74
74
  }
75
75
  };
76
- return Service77.of({
76
+ return Service74.of({
77
77
  transform: state.transform,
78
78
  reload: state.reload,
79
79
  get: Effect.fn("Agent.get")(function* (id) {
@@ -81,12 +81,12 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
81
81
  }),
82
82
  resolve: Effect.fnUntraced(function* (id) {
83
83
  if (id !== undefined)
84
- return state.get().agents.get(ID14.make(id));
84
+ return state.get().agents.get(ID13.make(id));
85
85
  return selectedDefault();
86
86
  }),
87
87
  select: Effect.fn("Agent.select")(function* (id) {
88
88
  if (id !== undefined) {
89
- const selected = ID14.make(id);
89
+ const selected = ID13.make(id);
90
90
  return { id: selected, info: state.get().agents.get(selected) };
91
91
  }
92
92
  const info = selectedDefault();
@@ -101,6 +101,6 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
101
101
  })
102
102
  });
103
103
  }));
104
- var node81 = makeLocationNode({ service: Service77, layer, deps: [node87] });
104
+ var node78 = makeLocationNode({ service: Service74, layer, deps: [node87] });
105
105
 
106
- export { ID14, Name3, defaultID2, Color2, Info24, Service77, node81, exports_agent4, Event19 };
106
+ export { ID13, Name3, defaultID2, Color2, Info23, Service74, node78, exports_agent4, Event18 };
@@ -1,12 +1,12 @@
1
1
  import {
2
- Service82
3
- } from "./tool-output-q8fjykq6.js";
2
+ Service76
3
+ } from "./worktree-rmamde0z.js";
4
4
  import {
5
- Service74
6
- } from "./tool-output-cy4b4mz7.js";
5
+ Service71
6
+ } from "./worktree-5tj1dt3g.js";
7
7
  import {
8
8
  __export
9
- } from "./tool-output-9rqn6x4v.js";
9
+ } from "./worktree-9rqn6x4v.js";
10
10
 
11
11
  // src/tool/plugin/question.ts
12
12
  var exports_question = {};
@@ -53,8 +53,8 @@ var toModelContent7 = (questions, answers) => {
53
53
  var Plugin50 = {
54
54
  id: "opencode.tool.question",
55
55
  effect: Effect.fn("QuestionTool.Plugin")(function* (ctx) {
56
- const forms = yield* Service82;
57
- const permission = yield* Service74;
56
+ const forms = yield* Service76;
57
+ const permission = yield* Service71;
58
58
  yield* ctx.tool.transform((editor) => editor.add({
59
59
  name: name13,
60
60
  options: { codemode: false },
@@ -1,33 +1,33 @@
1
1
  import {
2
2
  Service83,
3
3
  node87
4
- } from "./tool-output-f41zmgay.js";
4
+ } from "./worktree-ft9mezaf.js";
5
5
  import {
6
6
  optional2,
7
7
  statics2
8
- } from "./tool-output-z5v4ffb3.js";
8
+ } from "./worktree-z5v4ffb3.js";
9
9
  import {
10
10
  Ref4,
11
- Service79,
12
- node83
13
- } from "./tool-output-f0mv3stj.js";
11
+ Service80,
12
+ node84
13
+ } from "./worktree-21k4s4cv.js";
14
14
  import {
15
15
  __export
16
- } from "./tool-output-9rqn6x4v.js";
16
+ } from "./worktree-9rqn6x4v.js";
17
17
 
18
18
  // src/rpc.ts
19
19
  var exports_rpc = {};
20
20
  __export(exports_rpc, {
21
21
  Rpc: () => exports_rpc,
22
- Service: () => Service72,
22
+ Service: () => Service69,
23
23
  define: () => define2,
24
- node: () => node76
24
+ node: () => node73
25
25
  });
26
26
  import { define as define2 } from "@opencode/schema/rpc";
27
27
  import { Event } from "@opencode/schema/event";
28
28
  import { makeLocationNode } from "@opencode/util/effect/app-node";
29
29
  import { Context, Deferred, Effect, JsonSchema, Layer, Schema, SchemaRepresentation, Stream } from "effect";
30
- class Service72 extends Context.Service()("@opencode/Rpc") {
30
+ class Service69 extends Context.Service()("@opencode/Rpc") {
31
31
  }
32
32
 
33
33
  class DeclaredError extends Error {
@@ -39,9 +39,9 @@ class DeclaredError extends Error {
39
39
  this.data = data;
40
40
  }
41
41
  }
42
- var layer = Layer.effect(Service72, Effect.gen(function* () {
42
+ var layer = Layer.effect(Service69, Effect.gen(function* () {
43
43
  const bus = yield* Service83;
44
- const location = yield* Service79;
44
+ const location = yield* Service80;
45
45
  const ref = Ref4.make({ directory: location.directory, workspaceID: location.workspaceID });
46
46
  const closed = yield* Deferred.make();
47
47
  const callContext = {
@@ -118,14 +118,14 @@ var layer = Layer.effect(Service72, Effect.gen(function* () {
118
118
  const registered = events.get(name);
119
119
  if (!registered)
120
120
  return Stream.fail(new Error(`Unknown RPC event: ${definition.id}.${name}`));
121
- return bus.subscribe(registered.definition).pipe(Stream.provideService(Service79, location), Stream.mapEffect((payload) => logicalEvent(definition, name, payload, ref)));
121
+ return bus.subscribe(registered.definition).pipe(Stream.provideService(Service80, location), Stream.mapEffect((payload) => logicalEvent(definition, name, payload, ref)));
122
122
  }
123
123
  }
124
124
  };
125
125
  };
126
- return Service72.of({ register, call, client, close: Deferred.succeed(closed, undefined).pipe(Effect.asVoid) });
126
+ return Service69.of({ register, call, client, close: Deferred.succeed(closed, undefined).pipe(Effect.asVoid) });
127
127
  }));
128
- var node76 = makeLocationNode({ service: Service72, layer, deps: [node87, node83] });
128
+ var node73 = makeLocationNode({ service: Service69, layer, deps: [node87, node84] });
129
129
  var fields = {
130
130
  id: Event.ID,
131
131
  created: Schema.Finite,
@@ -210,4 +210,4 @@ var logicalEvent = Effect.fn("Rpc.logicalEvent")(function* (definition, name, pa
210
210
  };
211
211
  });
212
212
 
213
- export { Service72, node76, exports_rpc, define2 };
213
+ export { Service69, node73, exports_rpc, define2 };
@@ -1,26 +1,26 @@
1
1
  import {
2
2
  Service83,
3
3
  node87
4
- } from "./tool-output-f41zmgay.js";
4
+ } from "./worktree-ft9mezaf.js";
5
5
  import {
6
6
  PATCH_CONTEXT_LINES2,
7
7
  MAX_TOTAL_PATCH_BYTES2,
8
8
  emptyPatch2
9
- } from "./tool-output-tazgh4e4.js";
9
+ } from "./worktree-tazgh4e4.js";
10
10
  import {
11
11
  root2
12
- } from "./tool-output-krfam912.js";
12
+ } from "./worktree-0evkj109.js";
13
13
  import {
14
- Service79,
15
- node83
16
- } from "./tool-output-f0mv3stj.js";
14
+ Service80,
15
+ node84
16
+ } from "./worktree-21k4s4cv.js";
17
17
  import {
18
18
  reconcile2,
19
19
  create3
20
- } from "./tool-output-rdw6cm16.js";
20
+ } from "./worktree-rdw6cm16.js";
21
21
  import {
22
22
  __export
23
- } from "./tool-output-9rqn6x4v.js";
23
+ } from "./worktree-9rqn6x4v.js";
24
24
 
25
25
  // src/vcs.ts
26
26
  var exports_vcs = {};
@@ -29,18 +29,18 @@ __export(exports_vcs, {
29
29
  BranchList: () => BranchList2,
30
30
  DiffError: () => DiffError2,
31
31
  FileStatus: () => FileStatus2,
32
- Info: () => Info15,
32
+ Info: () => Info14,
33
33
  InitializeError: () => InitializeError2,
34
34
  Mode: () => Mode2,
35
- Service: () => Service51,
35
+ Service: () => Service60,
36
36
  Vcs: () => exports_vcs,
37
- node: () => node55
37
+ node: () => node64
38
38
  });
39
39
  import path from "path";
40
40
  import { Cause, Context, Effect, FiberSet, Layer, Schema, Semaphore, Stream } from "effect";
41
41
  import { FileDiff } from "@opencode/schema/file-diff";
42
42
  import { FileSystem } from "@opencode/schema/filesystem";
43
- import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as Info15, Mode as Mode2 } from "@opencode/schema/vcs";
43
+ import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as Info14, Mode as Mode2 } from "@opencode/schema/vcs";
44
44
  import { VcsEvent } from "@opencode/schema/vcs-event";
45
45
  import { makeLocationNode } from "@opencode/util/effect/app-node";
46
46
  import { FSUtil } from "@opencode/util/fs-util";
@@ -54,11 +54,11 @@ class InitializeError2 extends Schema.TaggedError()("Vcs.InitializeError", {
54
54
  }) {
55
55
  }
56
56
 
57
- class Service51 extends Context.Service()("@opencode/Vcs") {
57
+ class Service60 extends Context.Service()("@opencode/Vcs") {
58
58
  }
59
- var layer = Layer.effect(Service51, Effect.gen(function* () {
59
+ var layer = Layer.effect(Service60, Effect.gen(function* () {
60
60
  const fs = yield* FSUtil.Service;
61
- const location = yield* Service79;
61
+ const location = yield* Service80;
62
62
  const bus = yield* Service83;
63
63
  const root = yield* Effect.scope;
64
64
  const fork = yield* FiberSet.makeRuntime();
@@ -71,7 +71,7 @@ var layer = Layer.effect(Service51, Effect.gen(function* () {
71
71
  canonical: location.project.canonical,
72
72
  ...vcs ? { store: vcs.store } : {}
73
73
  };
74
- const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(Info15));
74
+ const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(Info14));
75
75
  const decodeBase = Schema.decodeUnknownEffect(Schema.NullOr(Base2));
76
76
  const decodeBranches = Schema.decodeUnknownEffect(BranchList2);
77
77
  const decodeStatus = Schema.decodeUnknownEffect(Schema.Array(FileStatus2));
@@ -129,7 +129,7 @@ var layer = Layer.effect(Service51, Effect.gen(function* () {
129
129
  const isBranchMetadata = vcs.type === "git" ? (file) => path.basename(file) === "HEAD" && FSUtil.contains(store, file) : (file) => path.resolve(file) === path.join(store, "branch");
130
130
  yield* bus.subscribe(FileSystem.Event.Changed).pipe(Stream.filter((event) => isBranchMetadata(event.data.file)), Stream.runForEach((event) => refresh().pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logWarning("vcs refresh failed", { file: event.data.file, cause })), Effect.withSpan("Vcs.refreshBranch", { attributes: { file: event.data.file } }))), Effect.forkScoped({ startImmediately: true }));
131
131
  }
132
- return Service51.of({
132
+ return Service60.of({
133
133
  transform: state.transform,
134
134
  reload: state.reload,
135
135
  initialize: Effect.fn("Vcs.initialize")(function* (providerID) {
@@ -187,10 +187,10 @@ var layer = Layer.effect(Service51, Effect.gen(function* () {
187
187
  })
188
188
  });
189
189
  }));
190
- var node55 = makeLocationNode({
191
- service: Service51,
190
+ var node64 = makeLocationNode({
191
+ service: Service60,
192
192
  layer,
193
- deps: [FSUtil.node, node83, node87]
193
+ deps: [FSUtil.node, node84, node87]
194
194
  });
195
195
 
196
- export { Base2, BranchList2, FileStatus2, Info15, Mode2, DiffError2, InitializeError2, Service51, node55, exports_vcs };
196
+ export { Base2, BranchList2, FileStatus2, Info14, Mode2, DiffError2, InitializeError2, Service60, node64, exports_vcs };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  latest2,
3
- Service36
4
- } from "./tool-output-prh9w8gf.js";
3
+ Service48
4
+ } from "./worktree-p674wzdw.js";
5
5
  import {
6
6
  __export
7
- } from "./tool-output-9rqn6x4v.js";
7
+ } from "./worktree-9rqn6x4v.js";
8
8
 
9
9
  // src/plugin/warming.ts
10
10
  var exports_warming = {};
11
11
  __export(exports_warming, {
12
- Plugin: () => Plugin14,
12
+ Plugin: () => Plugin34,
13
13
  WarmingPlugin: () => exports_warming
14
14
  });
15
15
  import { define } from "@opencode/plugin/effect/plugin";
@@ -19,10 +19,10 @@ var defaults = {
19
19
  interval: Duration.minutes(4),
20
20
  duration: Duration.minutes(30)
21
21
  };
22
- var Plugin14 = define({
22
+ var Plugin34 = define({
23
23
  id: "opencode.warming",
24
24
  effect: Effect.fn(function* (ctx) {
25
- const config = yield* Service36;
25
+ const config = yield* Service48;
26
26
  const loadSettings = Effect.fn("WarmingPlugin.loadSettings")(function* () {
27
27
  const warming = latest2(yield* config.entries(), "warming");
28
28
  if (!warming)
@@ -96,4 +96,4 @@ var Plugin14 = define({
96
96
  })
97
97
  });
98
98
 
99
- export { Plugin14, exports_warming };
99
+ export { Plugin34, exports_warming };
@@ -1,28 +1,28 @@
1
1
  import {
2
- Service36
3
- } from "./tool-output-prh9w8gf.js";
2
+ Service48
3
+ } from "./worktree-p674wzdw.js";
4
4
  import {
5
5
  Service11
6
- } from "./tool-output-16dzdxyy.js";
6
+ } from "./worktree-6mxykcrb.js";
7
7
  import {
8
8
  observe2
9
- } from "./tool-output-qsdy395h.js";
9
+ } from "./worktree-qsdy395h.js";
10
10
  import {
11
11
  __export
12
- } from "./tool-output-9rqn6x4v.js";
12
+ } from "./worktree-9rqn6x4v.js";
13
13
 
14
14
  // src/config/plugin/compaction.ts
15
15
  var exports_compaction = {};
16
16
  __export(exports_compaction, {
17
17
  ConfigCompactionPlugin: () => exports_compaction,
18
- Plugin: () => Plugin27
18
+ Plugin: () => Plugin12
19
19
  });
20
20
  import { define } from "@opencode/plugin/effect/plugin";
21
21
  import { Effect } from "effect";
22
- var Plugin27 = define({
22
+ var Plugin12 = define({
23
23
  id: "opencode.config.compaction",
24
24
  effect: Effect.fn(function* (ctx) {
25
- const config = yield* Service36;
25
+ const config = yield* Service48;
26
26
  const compaction = yield* Service11;
27
27
  const loaded = yield* observe2(config, ctx.event, compaction.reload());
28
28
  yield* compaction.transform((editor) => {
@@ -39,4 +39,4 @@ var Plugin27 = define({
39
39
  })
40
40
  });
41
41
 
42
- export { Plugin27, exports_compaction };
42
+ export { Plugin12, exports_compaction };