@opencode/core 0.0.0-beta-19289 → 0.0.0-beta-19365

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 (789) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +75 -75
  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 +67 -67
  7. package/dist/catalog.js +83 -83
  8. package/dist/chunks/{rpc-qn236mkj.js → location-services-01dqx1kz.js} +30 -30
  9. package/dist/chunks/{rpc-d1gmhgze.js → location-services-03v3txqr.js} +6 -6
  10. package/dist/chunks/{rpc-7dqw4kz8.js → location-services-0jwsre1p.js} +5 -5
  11. package/dist/chunks/{rpc-0paq2nw3.js → location-services-0paq2nw3.js} +1 -1
  12. package/dist/chunks/{rpc-0q0f95c6.js → location-services-0q0f95c6.js} +1 -1
  13. package/dist/chunks/{rpc-7g61tyhv.js → location-services-0q0kb4ad.js} +13 -13
  14. package/dist/chunks/{rpc-0h54jqbs.js → location-services-0r684n0p.js} +8 -8
  15. package/dist/chunks/{rpc-v3a8d439.js → location-services-13v8yyep.js} +20 -20
  16. package/dist/chunks/{rpc-32ybvsf8.js → location-services-14qjdv8x.js} +20 -20
  17. package/dist/chunks/{rpc-zymgq775.js → location-services-17vcgm03.js} +25 -25
  18. package/dist/chunks/{rpc-rhraev7y.js → location-services-1acjjqhc.js} +4 -4
  19. package/dist/chunks/{rpc-mvfsc1pv.js → location-services-1bbkgx8g.js} +3 -3
  20. package/dist/chunks/{rpc-1dazxqgg.js → location-services-1dazxqgg.js} +2 -2
  21. package/dist/chunks/{rpc-0hpxrkyb.js → location-services-1dfhrqqs.js} +5 -5
  22. package/dist/chunks/{rpc-ajzgx9s2.js → location-services-1emffesh.js} +8 -8
  23. package/dist/chunks/{rpc-4dw97hmp.js → location-services-1j4f8vqa.js} +20 -20
  24. package/dist/chunks/{rpc-j3xb24h1.js → location-services-1jht073e.js} +12 -12
  25. package/dist/chunks/{rpc-81k39a0h.js → location-services-1kxjkr9e.js} +10 -10
  26. package/dist/chunks/{rpc-hn6ar8tx.js → location-services-1w78zr67.js} +32 -32
  27. package/dist/chunks/{rpc-2n7n6h49.js → location-services-1x1zf2vh.js} +11 -11
  28. package/dist/chunks/{rpc-21r38tys.js → location-services-21r38tys.js} +1 -1
  29. package/dist/chunks/location-services-21w3pn94.js +462 -0
  30. package/dist/chunks/{rpc-drf46963.js → location-services-25mgdrrq.js} +22 -22
  31. package/dist/chunks/{rpc-dmky53ph.js → location-services-26h9dnh4.js} +15 -15
  32. package/dist/chunks/{rpc-q98kh21b.js → location-services-27zz9e36.js} +6 -6
  33. package/dist/chunks/{rpc-8kndfjmn.js → location-services-28ansd8c.js} +17 -17
  34. package/dist/chunks/{rpc-aeget6rx.js → location-services-28mykjjc.js} +15 -15
  35. package/dist/chunks/{rpc-2a5m3afh.js → location-services-2a5m3afh.js} +1 -1
  36. package/dist/chunks/location-services-2mhm0ygy.js +247 -0
  37. package/dist/chunks/{rpc-hfdr1yjj.js → location-services-2tfmgkzg.js} +4 -4
  38. package/dist/chunks/{rpc-zvrat7w3.js → location-services-2w3rb6m7.js} +26 -26
  39. package/dist/chunks/{rpc-4hxqvqxk.js → location-services-2wgr2zhm.js} +8 -8
  40. package/dist/chunks/{rpc-mfqp6xfm.js → location-services-33w4ejhs.js} +9 -9
  41. package/dist/chunks/{rpc-ga3kzjxn.js → location-services-35cqnyv0.js} +5 -5
  42. package/dist/chunks/{rpc-tz3f8yzd.js → location-services-38h8a3yf.js} +35 -35
  43. package/dist/chunks/{rpc-8qexswn4.js → location-services-3aa8y6y8.js} +42 -42
  44. package/dist/chunks/{rpc-2gzv1x1z.js → location-services-3cdbrfwe.js} +18 -18
  45. package/dist/chunks/{rpc-zej54b25.js → location-services-3dh3hjhe.js} +9 -9
  46. package/dist/chunks/{rpc-3hepkmqq.js → location-services-3hepkmqq.js} +1 -1
  47. package/dist/chunks/{rpc-9ej4f3gs.js → location-services-3n9z35hx.js} +39 -39
  48. package/dist/chunks/{rpc-st700yg7.js → location-services-3rdnfe1a.js} +11 -11
  49. package/dist/chunks/{rpc-3smtnn6g.js → location-services-3smtnn6g.js} +1 -1
  50. package/dist/chunks/{rpc-3tvqynh2.js → location-services-3tvqynh2.js} +1 -1
  51. package/dist/chunks/{rpc-twxs2vfq.js → location-services-48btbcp5.js} +18 -18
  52. package/dist/chunks/{rpc-x8jcsx7d.js → location-services-4k80sd60.js} +29 -29
  53. package/dist/chunks/{rpc-h1n238ac.js → location-services-4p58venj.js} +4 -4
  54. package/dist/chunks/{rpc-gpjchng5.js → location-services-4te6grs0.js} +4 -4
  55. package/dist/chunks/{rpc-aykm855c.js → location-services-4twgxvm9.js} +16 -16
  56. package/dist/chunks/{rpc-wbkyxrgf.js → location-services-510m7gjw.js} +5 -5
  57. package/dist/chunks/{rpc-bnvsd47h.js → location-services-5bgb8413.js} +30 -30
  58. package/dist/chunks/{rpc-a1bz86dw.js → location-services-5c4hm403.js} +3 -3
  59. package/dist/chunks/{rpc-5daktx2q.js → location-services-5daktx2q.js} +1 -1
  60. package/dist/chunks/{rpc-z152v5gf.js → location-services-5p05h9hk.js} +9 -9
  61. package/dist/chunks/{rpc-5t3nmthw.js → location-services-5t3nmthw.js} +2 -2
  62. package/dist/chunks/{rpc-ermacy2g.js → location-services-65py24zx.js} +11 -11
  63. package/dist/chunks/{rpc-669tq793.js → location-services-669tq793.js} +1 -1
  64. package/dist/chunks/{rpc-vjcp5cnv.js → location-services-6fwabw78.js} +9 -9
  65. package/dist/chunks/{rpc-2402vzrj.js → location-services-6h73sxmp.js} +5 -5
  66. package/dist/chunks/{rpc-6msgmcgs.js → location-services-6msgmcgs.js} +1 -1
  67. package/dist/chunks/{rpc-pk8pw837.js → location-services-6zb9h53h.js} +20 -20
  68. package/dist/chunks/{rpc-8rmy5ya5.js → location-services-7194xbzc.js} +2 -2
  69. package/dist/chunks/{rpc-71q4at8m.js → location-services-71q4at8m.js} +1 -1
  70. package/dist/chunks/{rpc-ay95kvxt.js → location-services-76h67nm5.js} +12 -12
  71. package/dist/chunks/location-services-77h4sy2b.js +123 -0
  72. package/dist/chunks/location-services-77tk9we0.js +228 -0
  73. package/dist/chunks/{rpc-7bmhse3q.js → location-services-7bmhse3q.js} +1 -1
  74. package/dist/chunks/{rpc-w8gexp6v.js → location-services-7btp50nq.js} +30 -30
  75. package/dist/chunks/{rpc-zr9h837b.js → location-services-7h61b3js.js} +20 -20
  76. package/dist/chunks/{rpc-vj8a64wy.js → location-services-7scnp8fh.js} +11 -11
  77. package/dist/chunks/{rpc-15v2jbpx.js → location-services-7tw5v7xe.js} +14 -14
  78. package/dist/chunks/{rpc-w7jvtf3d.js → location-services-7vrm16hs.js} +20 -20
  79. package/dist/chunks/{rpc-rd1v4kcy.js → location-services-7vvv1tr8.js} +23 -23
  80. package/dist/chunks/{rpc-a8zr1srk.js → location-services-818pfwc9.js} +8 -8
  81. package/dist/chunks/{rpc-8d7r5vzw.js → location-services-8d7r5vzw.js} +1 -1
  82. package/dist/chunks/{rpc-z03wer5m.js → location-services-8hy619a9.js} +22 -22
  83. package/dist/chunks/{rpc-f1qr80xv.js → location-services-8vzn018h.js} +10 -10
  84. package/dist/chunks/{rpc-04b36cpa.js → location-services-90016ntc.js} +36 -36
  85. package/dist/chunks/{rpc-vczw2nmh.js → location-services-926w9v4r.js} +17 -17
  86. package/dist/chunks/{rpc-y4ze8nqa.js → location-services-938tgqqs.js} +15 -15
  87. package/dist/chunks/{rpc-kcwf74x3.js → location-services-96yt6zt0.js} +1 -1
  88. package/dist/chunks/{rpc-b4jtvy14.js → location-services-9fg9wkmf.js} +24 -24
  89. package/dist/chunks/{rpc-keat3kjn.js → location-services-9h41vc4j.js} +4 -4
  90. package/dist/chunks/{rpc-bvx334ga.js → location-services-9q7w8qe9.js} +5 -5
  91. package/dist/chunks/{rpc-xzda1vkx.js → location-services-9qx34ve8.js} +16 -16
  92. package/dist/chunks/{rpc-aaet6srn.js → location-services-aaet6srn.js} +2 -2
  93. package/dist/chunks/{rpc-9ezh3pre.js → location-services-aewz22a9.js} +16 -16
  94. package/dist/chunks/{rpc-kyf09390.js → location-services-afn8c1vq.js} +25 -25
  95. package/dist/chunks/{rpc-jwx4y25k.js → location-services-akybccbs.js} +9 -9
  96. package/dist/chunks/{rpc-sf7x1fj7.js → location-services-az0y13ra.js} +8 -8
  97. package/dist/chunks/{rpc-fd4fwae4.js → location-services-b3frasm9.js} +8 -8
  98. package/dist/chunks/{rpc-b6gygkdw.js → location-services-b6gygkdw.js} +2 -2
  99. package/dist/chunks/{rpc-cqyppt87.js → location-services-b6khz9cq.js} +5 -5
  100. package/dist/chunks/{rpc-fypygjtf.js → location-services-b84tpdk1.js} +9 -9
  101. package/dist/chunks/{rpc-63bt3mag.js → location-services-bcnz578n.js} +3 -3
  102. package/dist/chunks/{rpc-0h7m7rve.js → location-services-bjtft5hn.js} +11 -11
  103. package/dist/chunks/{rpc-pqd1mzxt.js → location-services-bna2jm49.js} +8 -8
  104. package/dist/chunks/{rpc-51e3a5p7.js → location-services-bv56xrks.js} +6 -10
  105. package/dist/chunks/{rpc-gd1x23dm.js → location-services-bvfebvap.js} +14 -14
  106. package/dist/chunks/{rpc-evbgk2k8.js → location-services-c78bbtc9.js} +5 -5
  107. package/dist/chunks/{rpc-5dqwwgx5.js → location-services-cag037j2.js} +40 -40
  108. package/dist/chunks/{rpc-k4ggf7wz.js → location-services-cf55n9f0.js} +6 -6
  109. package/dist/chunks/{rpc-jh9q333t.js → location-services-cqm39syx.js} +6 -6
  110. package/dist/chunks/{rpc-dyy3hg9v.js → location-services-cxp4ejjw.js} +21 -21
  111. package/dist/chunks/{rpc-p44d8wdy.js → location-services-d2aac7k2.js} +5 -5
  112. package/dist/chunks/{rpc-6dgk4twc.js → location-services-d3fc49e9.js} +32 -32
  113. package/dist/chunks/{rpc-86azpgyb.js → location-services-d3vw0k0a.js} +33 -33
  114. package/dist/chunks/{rpc-392203pj.js → location-services-d5kwtv32.js} +39 -39
  115. package/dist/chunks/{rpc-d9sn21bc.js → location-services-d9sn21bc.js} +2 -2
  116. package/dist/chunks/{rpc-h196em3s.js → location-services-dbvb3fc3.js} +37 -37
  117. package/dist/chunks/{rpc-q6d53jre.js → location-services-dgmwn8ez.js} +8 -8
  118. package/dist/chunks/{rpc-mwaq9hpm.js → location-services-dgskfwz0.js} +18 -18
  119. package/dist/chunks/{rpc-8p4f9s12.js → location-services-dj2t23y0.js} +2 -2
  120. package/dist/chunks/{rpc-1acwhj11.js → location-services-dpjp4nqx.js} +17 -17
  121. package/dist/chunks/{rpc-y71avatq.js → location-services-dpkg50ah.js} +4 -4
  122. package/dist/chunks/{rpc-ave7p2tf.js → location-services-dpqseq3m.js} +44 -44
  123. package/dist/chunks/{rpc-hav6ns8c.js → location-services-dsgqmc9d.js} +76 -25
  124. package/dist/chunks/{rpc-7b15y959.js → location-services-dv1qgsyq.js} +8 -8
  125. package/dist/chunks/{rpc-vwhnhdwa.js → location-services-dw47z06m.js} +15 -15
  126. package/dist/chunks/{rpc-r33ff4dw.js → location-services-e6hd9jay.js} +6 -6
  127. package/dist/chunks/{rpc-s2v4v98g.js → location-services-ead5n236.js} +12 -12
  128. package/dist/chunks/{rpc-s8d7rejh.js → location-services-eaj1djv9.js} +6 -6
  129. package/dist/chunks/{rpc-n8w2n8mt.js → location-services-eay15qda.js} +15 -15
  130. package/dist/chunks/{rpc-xp7stfgp.js → location-services-endx0wqw.js} +2 -2
  131. package/dist/chunks/{rpc-etq0c3wd.js → location-services-etq0c3wd.js} +1 -1
  132. package/dist/chunks/{rpc-wgktjw56.js → location-services-ew99gprq.js} +3 -3
  133. package/dist/chunks/{rpc-7ryxtne2.js → location-services-f2mbwh22.js} +23 -23
  134. package/dist/chunks/{rpc-380vjcmd.js → location-services-f8q7mv7a.js} +1 -1
  135. package/dist/chunks/{rpc-4b6bntqd.js → location-services-fgh0kbhd.js} +1 -1
  136. package/dist/chunks/{rpc-fxbjtjnd.js → location-services-fxbjtjnd.js} +1 -1
  137. package/dist/chunks/{rpc-7ybwwvvx.js → location-services-fygdb7h7.js} +3 -3
  138. package/dist/chunks/{rpc-a8bn8zg0.js → location-services-g190xswt.js} +4 -4
  139. package/dist/chunks/{rpc-zfytcyng.js → location-services-g4k0nsm5.js} +4 -4
  140. package/dist/chunks/{rpc-gd4qta3r.js → location-services-gd4qta3r.js} +1 -1
  141. package/dist/chunks/{rpc-3fc6dm20.js → location-services-gdvy8fx6.js} +4 -4
  142. package/dist/chunks/{rpc-gv6a8nnw.js → location-services-gv6a8nnw.js} +2 -2
  143. package/dist/chunks/{rpc-knpgx9zf.js → location-services-gyr4z3nc.js} +13 -13
  144. package/dist/chunks/{rpc-h03wrkyp.js → location-services-h03wrkyp.js} +2 -2
  145. package/dist/chunks/{rpc-h6vf3j39.js → location-services-h6vf3j39.js} +1 -1
  146. package/dist/chunks/{rpc-ntefk5q2.js → location-services-hapx9efs.js} +11 -11
  147. package/dist/chunks/{rpc-f828m53h.js → location-services-hdnk95c8.js} +2 -2
  148. package/dist/chunks/{rpc-5a0ch1qz.js → location-services-hg3kf1wh.js} +24 -24
  149. package/dist/chunks/{rpc-nhy5jxhy.js → location-services-hjt4xg1x.js} +4 -4
  150. package/dist/chunks/{rpc-1p9hnvwm.js → location-services-hzzdchkt.js} +9 -9
  151. package/dist/chunks/{rpc-nbddwgy7.js → location-services-j26kwb45.js} +10 -10
  152. package/dist/chunks/{rpc-9kgmhgf7.js → location-services-j2er9mpe.js} +18 -18
  153. package/dist/chunks/{rpc-j0ewz58p.js → location-services-j3e7j141.js} +82 -82
  154. package/dist/chunks/{rpc-j56e64zr.js → location-services-j56e64zr.js} +1 -1
  155. package/dist/chunks/{rpc-71hg3n7c.js → location-services-j5pcr10t.js} +12 -12
  156. package/dist/chunks/{rpc-w07mqhec.js → location-services-jg1v5s7w.js} +39 -35
  157. package/dist/chunks/{rpc-8sghyhzw.js → location-services-jj63jgrn.js} +8 -8
  158. package/dist/chunks/{rpc-160bp6er.js → location-services-jx9yc53e.js} +23 -23
  159. package/dist/chunks/{rpc-b2jx7zxs.js → location-services-k16ay38w.js} +1 -1
  160. package/dist/chunks/{rpc-jvhgncaf.js → location-services-k41knq1q.js} +14 -14
  161. package/dist/chunks/{rpc-yk9e0cpf.js → location-services-k57m1jzp.js} +4 -4
  162. package/dist/chunks/{rpc-4v4y0ay6.js → location-services-kdqxszpx.js} +10 -10
  163. package/dist/chunks/{rpc-7mqmxrx0.js → location-services-kefkpy3s.js} +11 -11
  164. package/dist/chunks/{rpc-kg06axw8.js → location-services-kg06axw8.js} +1 -1
  165. package/dist/chunks/{rpc-e6jkap1f.js → location-services-kqd2wwpf.js} +4 -4
  166. package/dist/chunks/{rpc-q1c4k7jk.js → location-services-ksz0h0wp.js} +1 -1
  167. package/dist/chunks/{rpc-cfpkc3c9.js → location-services-m0jqrx5p.js} +2 -2
  168. package/dist/chunks/{rpc-jtp7wgq3.js → location-services-m27pyyd3.js} +8 -8
  169. package/dist/chunks/{rpc-xekzrwwc.js → location-services-m2d0j7c0.js} +5 -5
  170. package/dist/chunks/{rpc-gkk129yf.js → location-services-m91gvp7t.js} +6 -6
  171. package/dist/chunks/{rpc-m9w0rfyh.js → location-services-m9w0rfyh.js} +1 -1
  172. package/dist/chunks/{rpc-vpzh5kyk.js → location-services-ma4jf699.js} +10 -10
  173. package/dist/chunks/{rpc-mkcjrzeh.js → location-services-mkcjrzeh.js} +1 -1
  174. package/dist/chunks/location-services-mvrygv8d.js +22 -0
  175. package/dist/chunks/{rpc-sa0a5p27.js → location-services-n0yhhsrm.js} +24 -24
  176. package/dist/chunks/{rpc-xhfcg5z5.js → location-services-n5deg3hq.js} +29 -29
  177. package/dist/chunks/{rpc-3p5z01cg.js → location-services-n71swj86.js} +15 -15
  178. package/dist/chunks/{rpc-xsdh20fb.js → location-services-n76fdqym.js} +5 -5
  179. package/dist/chunks/{rpc-812pdnj9.js → location-services-na9jc3zz.js} +17 -17
  180. package/dist/chunks/{rpc-3g2tz5tg.js → location-services-nt7gfj6r.js} +35 -35
  181. package/dist/chunks/{rpc-6sth7kcr.js → location-services-p0a23dx6.js} +6 -6
  182. package/dist/chunks/{rpc-8kfkccvf.js → location-services-p7jc52kh.js} +22 -22
  183. package/dist/chunks/{rpc-h2t2tw2n.js → location-services-p8pncxt6.js} +8 -8
  184. package/dist/chunks/{rpc-4zxzqmp0.js → location-services-p9npvqvf.js} +25 -25
  185. package/dist/chunks/{rpc-1hc11dc4.js → location-services-paegk39x.js} +4 -4
  186. package/dist/chunks/{rpc-s0b2yntt.js → location-services-pbmqy3fk.js} +9 -9
  187. package/dist/chunks/{rpc-pjvnvgmy.js → location-services-pjvnvgmy.js} +1 -1
  188. package/dist/chunks/{rpc-v5wzvjc3.js → location-services-pkgn47pe.js} +7 -7
  189. package/dist/chunks/{rpc-pknna89w.js → location-services-pknna89w.js} +1 -1
  190. package/dist/chunks/{rpc-3gf7mgb6.js → location-services-pm3pscn2.js} +28 -28
  191. package/dist/chunks/{rpc-r98e92ep.js → location-services-pmr4s4kc.js} +4 -4
  192. package/dist/chunks/{rpc-b452245p.js → location-services-pn1pd4vv.js} +23 -23
  193. package/dist/chunks/{rpc-t3de4bw4.js → location-services-prn1pyrq.js} +16 -16
  194. package/dist/chunks/{rpc-cy023x00.js → location-services-pvg1h8v8.js} +13 -13
  195. package/dist/chunks/{rpc-sn0jzx2p.js → location-services-py6h8ymf.js} +46 -46
  196. package/dist/chunks/{rpc-0q73gbaw.js → location-services-pzr03x85.js} +26 -26
  197. package/dist/chunks/{rpc-pe8twcp1.js → location-services-q6fregp6.js} +8 -8
  198. package/dist/chunks/{rpc-46ea3zw7.js → location-services-q7rews6h.js} +20 -20
  199. package/dist/chunks/{rpc-h0ddxr27.js → location-services-qdprg751.js} +10 -10
  200. package/dist/chunks/{rpc-at0srrj9.js → location-services-qh692y7z.js} +11 -11
  201. package/dist/chunks/{rpc-m2shnn4e.js → location-services-qq2qyb22.js} +40 -33
  202. package/dist/chunks/{rpc-hemec0th.js → location-services-qq79xw43.js} +36 -36
  203. package/dist/chunks/{rpc-j5208yae.js → location-services-qq8x5mwt.js} +6 -6
  204. package/dist/chunks/{rpc-qsdy395h.js → location-services-qsdy395h.js} +1 -1
  205. package/dist/chunks/{rpc-t5n4sn49.js → location-services-qtcbh1xh.js} +7 -7
  206. package/dist/chunks/{rpc-tf05515k.js → location-services-qvk4e0h1.js} +39 -39
  207. package/dist/chunks/{rpc-ehz7tvfk.js → location-services-qwnhvfyv.js} +43 -43
  208. package/dist/chunks/{rpc-y53bff5k.js → location-services-qx0n0hnh.js} +21 -21
  209. package/dist/chunks/{rpc-78hqr335.js → location-services-r3qsfapx.js} +4 -4
  210. package/dist/chunks/{rpc-7rvtqatg.js → location-services-r4yvx32h.js} +9 -9
  211. package/dist/chunks/{rpc-rstnkd3y.js → location-services-r9babyk8.js} +1 -1
  212. package/dist/chunks/{rpc-efmeagt0.js → location-services-rcqzqd81.js} +13 -13
  213. package/dist/chunks/{rpc-5r1r91je.js → location-services-rkkpgdp7.js} +22 -22
  214. package/dist/chunks/{rpc-enjqvhhk.js → location-services-rmmsmjb4.js} +4 -4
  215. package/dist/chunks/{rpc-9pv0dm11.js → location-services-rsym84ch.js} +5 -5
  216. package/dist/chunks/{rpc-bets30rh.js → location-services-rwvbz859.js} +26 -26
  217. package/dist/chunks/{rpc-8tjfcq3e.js → location-services-rxc2end9.js} +10 -10
  218. package/dist/chunks/{rpc-a5hqaec8.js → location-services-rzvnvf72.js} +5 -5
  219. package/dist/chunks/{rpc-nh2r5jdq.js → location-services-sas8pg5s.js} +1 -1
  220. package/dist/chunks/{rpc-wcc6gayv.js → location-services-sbpg0tan.js} +14 -14
  221. package/dist/chunks/{rpc-6680k98e.js → location-services-sdb4t7xa.js} +34 -34
  222. package/dist/chunks/{rpc-escwhzbq.js → location-services-sk12407m.js} +20 -20
  223. package/dist/chunks/{rpc-gaqsv9vz.js → location-services-sm54wpq2.js} +78 -85
  224. package/dist/chunks/{rpc-ad8rjs1d.js → location-services-sqtkc2m2.js} +50 -50
  225. package/dist/chunks/{rpc-hpwz0gyy.js → location-services-sy3r942d.js} +9 -9
  226. package/dist/chunks/{rpc-5kptn8c0.js → location-services-t0x5rdq8.js} +9 -9
  227. package/dist/chunks/{rpc-848g7kq8.js → location-services-t6wppts7.js} +6 -6
  228. package/dist/chunks/{rpc-kvvjzsre.js → location-services-t7t4ctms.js} +13 -13
  229. package/dist/chunks/{rpc-0c1xkqdk.js → location-services-t8zm0rfy.js} +27 -27
  230. package/dist/chunks/{rpc-28ysey72.js → location-services-t9wdc6hm.js} +7 -7
  231. package/dist/chunks/{rpc-tazgh4e4.js → location-services-tazgh4e4.js} +1 -1
  232. package/dist/chunks/{rpc-25yddx8d.js → location-services-tbvegfey.js} +11 -11
  233. package/dist/chunks/{rpc-tcezcvh9.js → location-services-tcezcvh9.js} +1 -1
  234. package/dist/chunks/{rpc-tdstcens.js → location-services-tdstcens.js} +1 -1
  235. package/dist/chunks/{rpc-tvtrv512.js → location-services-tvtrv512.js} +1 -1
  236. package/dist/chunks/{rpc-3qdjr5ym.js → location-services-twbrtgyh.js} +6 -6
  237. package/dist/chunks/{rpc-vj8jh5p3.js → location-services-tyedwpwk.js} +32 -32
  238. package/dist/chunks/{rpc-cknngr8n.js → location-services-typb56dn.js} +11 -11
  239. package/dist/chunks/location-services-v1faaxn9.js +18 -0
  240. package/dist/chunks/{rpc-a2ew8a62.js → location-services-v5dkyp31.js} +4 -4
  241. package/dist/chunks/{rpc-t4g30a11.js → location-services-v6x176th.js} +56 -56
  242. package/dist/chunks/{rpc-s8rzfbyd.js → location-services-v8nbvaxc.js} +3 -3
  243. package/dist/chunks/{rpc-veqvce7d.js → location-services-veqvce7d.js} +1 -1
  244. package/dist/chunks/{rpc-5qta70ca.js → location-services-vqfxkn1p.js} +18 -18
  245. package/dist/chunks/{rpc-vzcthcp8.js → location-services-vzcthcp8.js} +1 -1
  246. package/dist/chunks/{rpc-cv3pfd1g.js → location-services-vzdxznzr.js} +26 -26
  247. package/dist/chunks/{rpc-j36g4ek5.js → location-services-w0vkrcvg.js} +33 -35
  248. package/dist/chunks/{rpc-w3wsvvr9.js → location-services-w3wsvvr9.js} +1 -1
  249. package/dist/chunks/{rpc-3q1jyqhd.js → location-services-w79zsp0s.js} +1 -1
  250. package/dist/chunks/{rpc-wd87259q.js → location-services-wd87259q.js} +1 -1
  251. package/dist/chunks/{rpc-sw4fypgs.js → location-services-weghmnna.js} +22 -22
  252. package/dist/chunks/{rpc-hjhqf936.js → location-services-wh6nx8gk.js} +4 -4
  253. package/dist/chunks/{rpc-e10pngcb.js → location-services-wzgdh32c.js} +7 -7
  254. package/dist/chunks/{rpc-zg0hmsgg.js → location-services-x0ws3ag5.js} +6 -6
  255. package/dist/chunks/{rpc-2agmps7v.js → location-services-x1091fq2.js} +16 -16
  256. package/dist/chunks/{rpc-x1ezjp6w.js → location-services-x1ezjp6w.js} +1 -1
  257. package/dist/chunks/{rpc-r4qn2xe9.js → location-services-x2hsxp9g.js} +133 -133
  258. package/dist/chunks/{rpc-x43y2vfs.js → location-services-x43y2vfs.js} +2 -2
  259. package/dist/chunks/{rpc-mzvapydn.js → location-services-xwxrb2wb.js} +14 -14
  260. package/dist/chunks/{rpc-3vfpksxc.js → location-services-xy39xcbf.js} +8 -8
  261. package/dist/chunks/{rpc-g0xjywn0.js → location-services-xzx8bjh9.js} +21 -21
  262. package/dist/chunks/{rpc-y1fvbwt7.js → location-services-y1fvbwt7.js} +1 -1
  263. package/dist/chunks/{rpc-5vs4yzkb.js → location-services-y3c1traj.js} +4 -4
  264. package/dist/chunks/{rpc-vazxcjns.js → location-services-y3fm6296.js} +20 -20
  265. package/dist/chunks/{rpc-aydj3jpn.js → location-services-y5r1chhz.js} +8 -8
  266. package/dist/chunks/{rpc-w12rp218.js → location-services-y8n92kwn.js} +6 -27
  267. package/dist/chunks/{rpc-gcbhdhgt.js → location-services-yh913qbr.js} +32 -65
  268. package/dist/chunks/{rpc-4nfkbmq5.js → location-services-ypf42t62.js} +13 -13
  269. package/dist/chunks/{rpc-yrhqyw5v.js → location-services-yrhqyw5v.js} +1 -1
  270. package/dist/chunks/{rpc-yrznvahk.js → location-services-yrznvahk.js} +2 -2
  271. package/dist/chunks/{rpc-z0bkrqjs.js → location-services-z0bkrqjs.js} +1 -1
  272. package/dist/chunks/{rpc-8eafbdk1.js → location-services-z4cnv83b.js} +9 -9
  273. package/dist/chunks/{rpc-z63w68vq.js → location-services-z63w68vq.js} +2 -2
  274. package/dist/chunks/{rpc-t8r3ep1g.js → location-services-z69s9t6b.js} +5 -5
  275. package/dist/chunks/{rpc-nngsh4zc.js → location-services-za8kymys.js} +11 -11
  276. package/dist/chunks/{rpc-7etk2hzb.js → location-services-zc4z9477.js} +14 -14
  277. package/dist/chunks/{rpc-zeh9ct20.js → location-services-zeh9ct20.js} +2 -2
  278. package/dist/chunks/{rpc-4drgpw32.js → location-services-zk8c4w5t.js} +5 -5
  279. package/dist/chunks/{rpc-05hyq7v6.js → location-services-zmcbp07n.js} +32 -32
  280. package/dist/chunks/{rpc-jt8wkmq3.js → location-services-zpdf8d1q.js} +15 -15
  281. package/dist/chunks/{rpc-82mbhkby.js → location-services-zqgbsb8r.js} +22 -22
  282. package/dist/chunks/{rpc-zr2ceqn5.js → location-services-zr2ceqn5.js} +1 -1
  283. package/dist/chunks/{rpc-e2hjzebn.js → location-services-zvt5dnpc.js} +4 -4
  284. package/dist/chunks/{rpc-bhm0wwej.js → location-services-zxpvnfs4.js} +9 -9
  285. package/dist/chunks/{rpc-zxq2ej10.js → location-services-zxq2ej10.js} +1 -1
  286. package/dist/chunks/{rpc-t4yvbv2m.js → location-services-zz7n74gb.js} +8 -8
  287. package/dist/codemode/catalog.js +3 -3
  288. package/dist/codemode/instructions.js +7 -7
  289. package/dist/codemode/tool.js +2 -2
  290. package/dist/command.js +75 -75
  291. package/dist/config/discovery.js +77 -77
  292. package/dist/config/markdown.js +1 -1
  293. package/dist/config/normalize.js +19 -19
  294. package/dist/config/plugin/agent.js +117 -117
  295. package/dist/config/plugin/command.js +209 -209
  296. package/dist/config/plugin/compaction.js +155 -155
  297. package/dist/config/plugin/entry-observer.js +1 -1
  298. package/dist/config/plugin/formatter.js +117 -117
  299. package/dist/config/plugin/image.js +115 -115
  300. package/dist/config/plugin/instruction.js +85 -85
  301. package/dist/config/plugin/location-watcher.js +115 -115
  302. package/dist/config/plugin/mcp.js +126 -126
  303. package/dist/config/plugin/policy.js +114 -114
  304. package/dist/config/plugin/provider.js +113 -113
  305. package/dist/config/plugin/reference.js +117 -117
  306. package/dist/config/plugin/shell.js +118 -118
  307. package/dist/config/plugin/skill-file.js +97 -97
  308. package/dist/config/plugin/skill.js +136 -136
  309. package/dist/config/plugin/snapshot.js +115 -115
  310. package/dist/config/plugin/source.js +115 -115
  311. package/dist/config/plugin/tool-output.js +117 -117
  312. package/dist/config/plugin/websearch.js +115 -115
  313. package/dist/config/plugin/worktree.js +118 -118
  314. package/dist/config/variable.js +3 -3
  315. package/dist/config/watch.js +1 -1
  316. package/dist/config.js +119 -119
  317. package/dist/credential/sql.js +2 -2
  318. package/dist/credential.js +83 -83
  319. package/dist/database/database.js +64 -64
  320. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  321. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  322. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  323. package/dist/database/drizzle/index.js +15 -15
  324. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  325. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  326. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  327. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  328. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  329. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  330. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  331. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  332. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  333. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  334. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  335. package/dist/database/drizzle.js +16 -16
  336. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  337. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  338. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  339. package/dist/database/migration/20260225215848_workspace.js +1 -1
  340. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  341. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  342. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  343. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  344. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  345. package/dist/database/migration/20260323234822_events.js +1 -1
  346. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  347. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  348. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  349. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  350. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  351. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  352. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  353. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  354. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  355. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  356. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  357. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  358. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  359. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  360. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  361. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  362. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  363. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  364. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  365. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  366. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  367. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  368. package/dist/database/migration/20260611035744_credential.js +1 -1
  369. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  370. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  371. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  372. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  373. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  374. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  375. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  376. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  377. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  378. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  379. package/dist/database/migration/20260812213948_worktree.js +1 -1
  380. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  381. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  382. package/dist/database/migration.gen.js +47 -47
  383. package/dist/database/migration.js +49 -49
  384. package/dist/database/path.js +2 -2
  385. package/dist/database/schema.gen.js +1 -1
  386. package/dist/database/schema.sql.js +1 -1
  387. package/dist/database/sqlite.bun.js +1 -1
  388. package/dist/database/sqlite.js +1 -1
  389. package/dist/database/sqlite.node.js +1 -1
  390. package/dist/database/sqlite.workerd.js +1 -1
  391. package/dist/database/v1-migration.bun.js +74 -74
  392. package/dist/database/v1-migration.js +1 -1
  393. package/dist/effect/app-node-builder.js +362 -361
  394. package/dist/effect/app-node-platform.js +2 -2
  395. package/dist/effect/keyed-mutex.js +3 -3
  396. package/dist/effect/websocket-constructor.js +1 -1
  397. package/dist/environment/driver.js +1 -1
  398. package/dist/environment/environment.js +88 -88
  399. package/dist/environment/exec-defaults.js +2 -2
  400. package/dist/environment/files.js +1 -1
  401. package/dist/environment/index.js +88 -88
  402. package/dist/environment/local.js +2 -2
  403. package/dist/environment/memory.js +2 -2
  404. package/dist/environment/unavailable.js +1 -1
  405. package/dist/event/sql.js +1 -1
  406. package/dist/event-logger.js +68 -68
  407. package/dist/file-access.js +99 -99
  408. package/dist/file-mutation.js +89 -89
  409. package/dist/file-retention.js +1 -1
  410. package/dist/file.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/ignore.js +1 -1
  416. package/dist/filesystem/location-watcher-policy.js +6 -6
  417. package/dist/filesystem/location-watcher.js +220 -220
  418. package/dist/filesystem/protected.js +1 -1
  419. package/dist/filesystem/search.js +99 -99
  420. package/dist/filesystem/watcher-binding.js +1 -1
  421. package/dist/filesystem/watcher.js +15 -15
  422. package/dist/filesystem.js +100 -100
  423. package/dist/form.js +80 -80
  424. package/dist/formatter/builtins.js +4 -4
  425. package/dist/formatter.js +82 -82
  426. package/dist/generate.js +91 -91
  427. package/dist/git.js +7 -7
  428. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  429. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  430. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  431. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  432. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  433. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  434. package/dist/github-copilot/copilot-provider.js +17 -17
  435. package/dist/github-copilot/models.js +3 -3
  436. package/dist/github-copilot/openai-compatible-error.js +1 -1
  437. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  438. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  439. package/dist/github-copilot/responses/openai-error.js +1 -1
  440. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  441. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  442. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  443. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  444. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  445. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  446. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  447. package/dist/id/id.js +1 -1
  448. package/dist/image/photon.js +2 -2
  449. package/dist/image.js +4 -4
  450. package/dist/instance/service.js +5 -5
  451. package/dist/instance.js +353 -352
  452. package/dist/instruction-discovery.js +83 -83
  453. package/dist/instructions/builtins.js +82 -82
  454. package/dist/instructions/index.js +3 -3
  455. package/dist/integration/connection.js +1 -1
  456. package/dist/integration.js +80 -80
  457. package/dist/job.js +77 -77
  458. package/dist/kv/sql.js +2 -2
  459. package/dist/kv.js +71 -71
  460. package/dist/location-activity.js +125 -125
  461. package/dist/location-mutation.js +99 -99
  462. package/dist/location-service-map.js +81 -81
  463. package/dist/location-services.js +350 -349
  464. package/dist/location.js +80 -80
  465. package/dist/mcp/client.js +86 -86
  466. package/dist/mcp/index.js +103 -103
  467. package/dist/mcp/instructions.js +122 -122
  468. package/dist/mcp/oauth.js +3 -3
  469. package/dist/mcp/stdio.js +85 -85
  470. package/dist/mime.js +1 -1
  471. package/dist/modal/models.js +3 -3
  472. package/dist/model-resolver.js +86 -86
  473. package/dist/model.js +10 -10
  474. package/dist/models-dev.js +86 -86
  475. package/dist/oauth/page.js +1 -1
  476. package/dist/permission/saved.js +78 -78
  477. package/dist/permission/sql.js +5 -5
  478. package/dist/permission.js +104 -104
  479. package/dist/persistent-pty/binary.bun.js +1 -1
  480. package/dist/persistent-pty/daemon.js +1 -1
  481. package/dist/persistent-pty/index.js +84 -84
  482. package/dist/persistent-pty/pty-binding.js +1 -1
  483. package/dist/persistent-pty.js +73 -73
  484. package/dist/plugin/agent.js +99 -99
  485. package/dist/plugin/command.js +96 -96
  486. package/dist/plugin/hooks.js +5 -5
  487. package/dist/plugin/host.js +213 -213
  488. package/dist/plugin/instance.js +5 -5
  489. package/dist/plugin/internal.js +324 -323
  490. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  491. package/dist/plugin/models-dev.js +75 -75
  492. package/dist/plugin/module.js +7 -7
  493. package/dist/plugin/optimize.js +4 -4
  494. package/dist/plugin/plan.js +97 -97
  495. package/dist/plugin/promise.js +1 -1
  496. package/dist/plugin/provider/alibaba.js +2 -2
  497. package/dist/plugin/provider/amazon-bedrock.js +2 -2
  498. package/dist/plugin/provider/anthropic.js +2 -2
  499. package/dist/plugin/provider/azure.js +118 -118
  500. package/dist/plugin/provider/cerebras.js +2 -2
  501. package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -117
  502. package/dist/plugin/provider/cloudflare-workers-ai.js +117 -117
  503. package/dist/plugin/provider/cohere.js +2 -2
  504. package/dist/plugin/provider/configured.js +114 -114
  505. package/dist/plugin/provider/digitalocean.js +79 -79
  506. package/dist/plugin/provider/dynamic.js +2 -2
  507. package/dist/plugin/provider/factory.js +1 -1
  508. package/dist/plugin/provider/gateway.js +2 -2
  509. package/dist/plugin/provider/github-copilot.js +80 -80
  510. package/dist/plugin/provider/gitlab.js +3 -3
  511. package/dist/plugin/provider/google-vertex.js +2 -2
  512. package/dist/plugin/provider/kilo.js +2 -2
  513. package/dist/plugin/provider/llmgateway.js +76 -76
  514. package/dist/plugin/provider/lmstudio.js +117 -117
  515. package/dist/plugin/provider/mistral.js +2 -2
  516. package/dist/plugin/provider/modal.js +79 -79
  517. package/dist/plugin/provider/nvidia.js +2 -2
  518. package/dist/plugin/provider/ollama.js +115 -115
  519. package/dist/plugin/provider/openai-compatible.js +1 -1
  520. package/dist/plugin/provider/openai.js +80 -80
  521. package/dist/plugin/provider/opencode.js +79 -76
  522. package/dist/plugin/provider/openrouter.js +3 -3
  523. package/dist/plugin/provider/perplexity.js +2 -2
  524. package/dist/plugin/provider/poe.js +81 -0
  525. package/dist/plugin/provider/sap-ai-core.js +3 -3
  526. package/dist/plugin/provider/sdk-factory.js +1 -1
  527. package/dist/plugin/provider/snowflake-cortex.js +118 -5
  528. package/dist/plugin/provider/venice.js +2 -2
  529. package/dist/plugin/provider/vercel.js +2 -2
  530. package/dist/plugin/provider/vllm.js +117 -117
  531. package/dist/plugin/provider/xai.js +77 -77
  532. package/dist/plugin/provider/zenmux.js +2 -2
  533. package/dist/plugin/provider.js +158 -156
  534. package/dist/plugin/sdk.js +74 -74
  535. package/dist/plugin/service.js +3 -3
  536. package/dist/plugin/skill.js +131 -131
  537. package/dist/plugin/source-directory.js +1 -1
  538. package/dist/plugin/supervisor.js +343 -342
  539. package/dist/plugin/update.js +6 -6
  540. package/dist/plugin/variant.js +4 -4
  541. package/dist/plugin/vcs/git.js +82 -82
  542. package/dist/plugin/vcs/hg.js +82 -82
  543. package/dist/plugin/warming.js +112 -112
  544. package/dist/plugin/websearch/exa.js +7 -7
  545. package/dist/plugin/websearch/firecrawl.js +8 -8
  546. package/dist/plugin/websearch/index.js +8 -8
  547. package/dist/plugin/websearch/mcp.js +6 -6
  548. package/dist/plugin/websearch/parallel.js +8 -8
  549. package/dist/plugin/websearch/tavily.js +6 -6
  550. package/dist/plugin.js +220 -220
  551. package/dist/project/schema.js +4 -4
  552. package/dist/project/sql.js +4 -4
  553. package/dist/project.js +81 -81
  554. package/dist/provider.js +7 -7
  555. package/dist/pty/protocol.js +1 -1
  556. package/dist/pty/schema.js +1 -1
  557. package/dist/pty/ticket.js +1 -1
  558. package/dist/pty.js +88 -88
  559. package/dist/reference/instructions.js +82 -82
  560. package/dist/reference.js +84 -84
  561. package/dist/repository-cache.js +76 -76
  562. package/dist/repository.js +3 -3
  563. package/dist/ripgrep/binary.js +2 -2
  564. package/dist/ripgrep.js +93 -93
  565. package/dist/rpc.js +81 -81
  566. package/dist/schema.js +1 -1
  567. package/dist/session/command.js +72 -72
  568. package/dist/session/compaction.js +125 -125
  569. package/dist/session/context.js +147 -147
  570. package/dist/session/environment.js +5 -5
  571. package/dist/session/error.js +5 -11
  572. package/dist/session/event.js +1 -1
  573. package/dist/session/execution/restart.js +213 -213
  574. package/dist/session/execution.js +122 -122
  575. package/dist/session/generate.js +148 -148
  576. package/dist/session/history.js +13 -13
  577. package/dist/session/inbox.js +86 -86
  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 +92 -92
  582. package/dist/session/message-updater.js +4 -4
  583. package/dist/session/message.js +1 -1
  584. package/dist/session/model-request.js +113 -113
  585. package/dist/session/model-transport.js +9 -9
  586. package/dist/session/move.js +126 -126
  587. package/dist/session/projector.js +84 -84
  588. package/dist/session/prompt.js +100 -100
  589. package/dist/session/provider-context.js +3 -3
  590. package/dist/session/revert.js +85 -85
  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 +225 -225
  594. package/dist/session/runner/max-steps.js +1 -1
  595. package/dist/session/runner/model.js +86 -86
  596. package/dist/session/runner/publish-llm-event.js +3 -3
  597. package/dist/session/runner/retry.js +110 -110
  598. package/dist/session/runner/step.js +121 -121
  599. package/dist/session/runner/to-llm-message.js +2 -2
  600. package/dist/session/schema.js +1 -1
  601. package/dist/session/session.js +169 -169
  602. package/dist/session/shell.js +131 -131
  603. package/dist/session/skill.js +98 -98
  604. package/dist/session/sql.js +5 -5
  605. package/dist/session/stats.js +71 -71
  606. package/dist/session/store.js +81 -81
  607. package/dist/session/subagent-completion.js +1 -1
  608. package/dist/session/subagent-job.js +205 -205
  609. package/dist/session/system-prompt.js +3 -3
  610. package/dist/session/title.js +151 -151
  611. package/dist/session/to-session-error.js +107 -107
  612. package/dist/session/transfer.js +210 -210
  613. package/dist/session/usage.js +1 -1
  614. package/dist/session.js +209 -215
  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 +131 -131
  620. package/dist/skill/discovery.js +4 -4
  621. package/dist/skill/instructions.js +102 -102
  622. package/dist/skill.js +105 -105
  623. package/dist/snapshot.js +86 -86
  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 +121 -121
  628. package/dist/tool/plugin/edit.js +115 -115
  629. package/dist/tool/plugin/file-diff.js +1 -1
  630. package/dist/tool/plugin/glob.js +120 -120
  631. package/dist/tool/plugin/grep.js +120 -120
  632. package/dist/tool/plugin/opencode.js +3 -3
  633. package/dist/tool/plugin/patch.js +117 -117
  634. package/dist/tool/plugin/question.js +100 -100
  635. package/dist/tool/plugin/read.js +121 -121
  636. package/dist/tool/plugin/shell.js +208 -208
  637. package/dist/tool/plugin/skill.js +108 -108
  638. package/dist/tool/plugin/subagent.js +214 -214
  639. package/dist/tool/plugin/webfetch.js +101 -101
  640. package/dist/tool/plugin/websearch.js +109 -109
  641. package/dist/tool/plugin/write.js +117 -117
  642. package/dist/tool/read-filesystem.js +96 -96
  643. package/dist/tool/runtime.js +1 -1
  644. package/dist/tool-output.js +8 -8
  645. package/dist/tool.js +15 -15
  646. package/dist/types/plugin/provider/poe.d.ts +2 -0
  647. package/dist/types/plugin/provider/snowflake-cortex.d.ts +5 -4
  648. package/dist/types/session/compaction.d.ts +1 -1
  649. package/dist/types/session/error.d.ts +0 -36
  650. package/dist/types/session/session.d.ts +1 -5
  651. package/dist/types/session.d.ts +2 -5
  652. package/dist/util/error-summary.js +1 -1
  653. package/dist/util/error.js +1 -1
  654. package/dist/util/iife.js +1 -1
  655. package/dist/util/lazy.js +1 -1
  656. package/dist/util/slug.js +1 -1
  657. package/dist/util/token.js +1 -1
  658. package/dist/util/which.js +1 -1
  659. package/dist/util/wildcard.js +1 -1
  660. package/dist/v1/config/agent.js +5 -5
  661. package/dist/v1/config/attachment.js +4 -4
  662. package/dist/v1/config/command.js +3 -3
  663. package/dist/v1/config/config.js +14 -14
  664. package/dist/v1/config/error.js +2 -2
  665. package/dist/v1/config/formatter.js +5 -5
  666. package/dist/v1/config/layout.js +1 -1
  667. package/dist/v1/config/lsp.js +5 -5
  668. package/dist/v1/config/mcp.js +4 -4
  669. package/dist/v1/config/migrate.js +4 -4
  670. package/dist/v1/config/permission.js +3 -3
  671. package/dist/v1/config/plugin.js +3 -3
  672. package/dist/v1/config/provider-options.js +1 -1
  673. package/dist/v1/config/provider.js +4 -4
  674. package/dist/v1/config/server.js +2 -2
  675. package/dist/v1/config/skills.js +3 -3
  676. package/dist/v1/permission.js +1 -1
  677. package/dist/vcs/patch.js +1 -1
  678. package/dist/vcs.js +85 -85
  679. package/dist/websearch.js +82 -82
  680. package/dist/wellknown/plugin.js +74 -74
  681. package/dist/wellknown.js +79 -79
  682. package/dist/workspace/driver.js +5 -5
  683. package/dist/workspace/sql.js +1 -1
  684. package/dist/workspace.js +74 -74
  685. package/dist/worktree/directory.js +2 -2
  686. package/dist/worktree/git.js +7 -7
  687. package/dist/worktree/refresh.js +342 -341
  688. package/dist/worktree/sql.js +5 -5
  689. package/dist/worktree.js +89 -89
  690. package/package.json +8 -8
  691. package/dist/chunks/rpc-1x11rq2a.js +0 -18
  692. package/dist/chunks/rpc-4ya6vrc4.js +0 -22
  693. package/dist/chunks/rpc-d3edv76n.js +0 -247
  694. package/dist/chunks/rpc-h8f3xwjj.js +0 -462
  695. package/dist/chunks/rpc-nzwv9chv.js +0 -71
  696. /package/dist/chunks/{rpc-0mesazry.js → location-services-0mesazry.js} +0 -0
  697. /package/dist/chunks/{rpc-0qkdqm5v.js → location-services-0qkdqm5v.js} +0 -0
  698. /package/dist/chunks/{rpc-0zkw76rk.js → location-services-0zkw76rk.js} +0 -0
  699. /package/dist/chunks/{rpc-17cy0kzp.js → location-services-17cy0kzp.js} +0 -0
  700. /package/dist/chunks/{rpc-1cnp2v09.js → location-services-1cnp2v09.js} +0 -0
  701. /package/dist/chunks/{rpc-1kg9ymc8.js → location-services-1kg9ymc8.js} +0 -0
  702. /package/dist/chunks/{rpc-2710q6r3.js → location-services-2710q6r3.js} +0 -0
  703. /package/dist/chunks/{rpc-2axfhc9x.js → location-services-2axfhc9x.js} +0 -0
  704. /package/dist/chunks/{rpc-2c3vjs8z.js → location-services-2c3vjs8z.js} +0 -0
  705. /package/dist/chunks/{rpc-359p4xyc.js → location-services-359p4xyc.js} +0 -0
  706. /package/dist/chunks/{rpc-3asan66x.js → location-services-3asan66x.js} +0 -0
  707. /package/dist/chunks/{rpc-3v8g72cx.js → location-services-3v8g72cx.js} +0 -0
  708. /package/dist/chunks/{rpc-3w5fmr99.js → location-services-3w5fmr99.js} +0 -0
  709. /package/dist/chunks/{rpc-3wcehsnq.js → location-services-3wcehsnq.js} +0 -0
  710. /package/dist/chunks/{rpc-43n2bw4t.js → location-services-43n2bw4t.js} +0 -0
  711. /package/dist/chunks/{rpc-4knz6hnm.js → location-services-4knz6hnm.js} +0 -0
  712. /package/dist/chunks/{rpc-4y7fprxs.js → location-services-4y7fprxs.js} +0 -0
  713. /package/dist/chunks/{rpc-53557ph1.js → location-services-53557ph1.js} +0 -0
  714. /package/dist/chunks/{rpc-550bvhaj.js → location-services-550bvhaj.js} +0 -0
  715. /package/dist/chunks/{rpc-6prwharc.js → location-services-6prwharc.js} +0 -0
  716. /package/dist/chunks/{rpc-7akdwqpd.js → location-services-7akdwqpd.js} +0 -0
  717. /package/dist/chunks/{rpc-7m9af43g.js → location-services-7m9af43g.js} +0 -0
  718. /package/dist/chunks/{rpc-822emrt2.js → location-services-822emrt2.js} +0 -0
  719. /package/dist/chunks/{rpc-88xbtdfr.js → location-services-88xbtdfr.js} +0 -0
  720. /package/dist/chunks/{rpc-8n3pysct.js → location-services-8n3pysct.js} +0 -0
  721. /package/dist/chunks/{rpc-922hggd3.js → location-services-922hggd3.js} +0 -0
  722. /package/dist/chunks/{rpc-9a4afbnw.js → location-services-9a4afbnw.js} +0 -0
  723. /package/dist/chunks/{rpc-9rqn6x4v.js → location-services-9rqn6x4v.js} +0 -0
  724. /package/dist/chunks/{rpc-a1tpkmh4.js → location-services-a1tpkmh4.js} +0 -0
  725. /package/dist/chunks/{rpc-a6k6eb26.js → location-services-a6k6eb26.js} +0 -0
  726. /package/dist/chunks/{rpc-af5trqkr.js → location-services-af5trqkr.js} +0 -0
  727. /package/dist/chunks/{rpc-afrmfg78.js → location-services-afrmfg78.js} +0 -0
  728. /package/dist/chunks/{rpc-aqzs7mqg.js → location-services-aqzs7mqg.js} +0 -0
  729. /package/dist/chunks/{rpc-atq7p7m5.js → location-services-atq7p7m5.js} +0 -0
  730. /package/dist/chunks/{rpc-bkyjaxrp.js → location-services-bkyjaxrp.js} +0 -0
  731. /package/dist/chunks/{rpc-bmr6ed5q.js → location-services-bmr6ed5q.js} +0 -0
  732. /package/dist/chunks/{rpc-cf4snx6d.js → location-services-cf4snx6d.js} +0 -0
  733. /package/dist/chunks/{rpc-cvy3z8tj.js → location-services-cvy3z8tj.js} +0 -0
  734. /package/dist/chunks/{rpc-d9fn303g.js → location-services-d9fn303g.js} +0 -0
  735. /package/dist/chunks/{rpc-d9jj8t3e.js → location-services-d9jj8t3e.js} +0 -0
  736. /package/dist/chunks/{rpc-dajrwvna.js → location-services-dajrwvna.js} +0 -0
  737. /package/dist/chunks/{rpc-dap0rakb.js → location-services-dap0rakb.js} +0 -0
  738. /package/dist/chunks/{rpc-df08tz66.js → location-services-df08tz66.js} +0 -0
  739. /package/dist/chunks/{rpc-dy18nga0.js → location-services-dy18nga0.js} +0 -0
  740. /package/dist/chunks/{rpc-e5kj55wp.js → location-services-e5kj55wp.js} +0 -0
  741. /package/dist/chunks/{rpc-e73j6tqm.js → location-services-e73j6tqm.js} +0 -0
  742. /package/dist/chunks/{rpc-ec1grn59.js → location-services-ec1grn59.js} +0 -0
  743. /package/dist/chunks/{rpc-eh3zwz77.js → location-services-eh3zwz77.js} +0 -0
  744. /package/dist/chunks/{rpc-emrn6kk6.js → location-services-emrn6kk6.js} +0 -0
  745. /package/dist/chunks/{rpc-f0mxakyp.js → location-services-f0mxakyp.js} +0 -0
  746. /package/dist/chunks/{rpc-f6n9ztr4.js → location-services-f6n9ztr4.js} +0 -0
  747. /package/dist/chunks/{rpc-faypxj3z.js → location-services-faypxj3z.js} +0 -0
  748. /package/dist/chunks/{rpc-fd410y7t.js → location-services-fd410y7t.js} +0 -0
  749. /package/dist/chunks/{rpc-fxgpk5d8.js → location-services-fxgpk5d8.js} +0 -0
  750. /package/dist/chunks/{rpc-g4wezp1m.js → location-services-g4wezp1m.js} +0 -0
  751. /package/dist/chunks/{rpc-g86h250q.js → location-services-g86h250q.js} +0 -0
  752. /package/dist/chunks/{rpc-gebd4c9n.js → location-services-gebd4c9n.js} +0 -0
  753. /package/dist/chunks/{rpc-gftt206x.js → location-services-gftt206x.js} +0 -0
  754. /package/dist/chunks/{rpc-hjbc5kem.js → location-services-hjbc5kem.js} +0 -0
  755. /package/dist/chunks/{rpc-hk9envan.js → location-services-hk9envan.js} +0 -0
  756. /package/dist/chunks/{rpc-hrnqkpcd.js → location-services-hrnqkpcd.js} +0 -0
  757. /package/dist/chunks/{rpc-j2ntwpah.js → location-services-j2ntwpah.js} +0 -0
  758. /package/dist/chunks/{rpc-j5zkgpj8.js → location-services-j5zkgpj8.js} +0 -0
  759. /package/dist/chunks/{rpc-j7wq2tw5.js → location-services-j7wq2tw5.js} +0 -0
  760. /package/dist/chunks/{rpc-jr7sbwjy.js → location-services-jr7sbwjy.js} +0 -0
  761. /package/dist/chunks/{rpc-jwfs4k6c.js → location-services-jwfs4k6c.js} +0 -0
  762. /package/dist/chunks/{rpc-jzg6c2d5.js → location-services-jzg6c2d5.js} +0 -0
  763. /package/dist/chunks/{rpc-mp448xyj.js → location-services-mp448xyj.js} +0 -0
  764. /package/dist/chunks/{rpc-msx8hqn2.js → location-services-msx8hqn2.js} +0 -0
  765. /package/dist/chunks/{rpc-n05xt0ee.js → location-services-n05xt0ee.js} +0 -0
  766. /package/dist/chunks/{rpc-n3j8tn72.js → location-services-n3j8tn72.js} +0 -0
  767. /package/dist/chunks/{rpc-njntx4h6.js → location-services-njntx4h6.js} +0 -0
  768. /package/dist/chunks/{rpc-paphc93g.js → location-services-paphc93g.js} +0 -0
  769. /package/dist/chunks/{rpc-q3sfg36h.js → location-services-q3sfg36h.js} +0 -0
  770. /package/dist/chunks/{rpc-q74kybfr.js → location-services-q74kybfr.js} +0 -0
  771. /package/dist/chunks/{rpc-qaymkmh1.js → location-services-qaymkmh1.js} +0 -0
  772. /package/dist/chunks/{rpc-qb87gjwd.js → location-services-qb87gjwd.js} +0 -0
  773. /package/dist/chunks/{rpc-qfa1cgps.js → location-services-qfa1cgps.js} +0 -0
  774. /package/dist/chunks/{rpc-qrg20bc0.js → location-services-qrg20bc0.js} +0 -0
  775. /package/dist/chunks/{rpc-rcb2kzg1.js → location-services-rcb2kzg1.js} +0 -0
  776. /package/dist/chunks/{rpc-sdp7kfr6.js → location-services-sdp7kfr6.js} +0 -0
  777. /package/dist/chunks/{rpc-sk3qaz4a.js → location-services-sk3qaz4a.js} +0 -0
  778. /package/dist/chunks/{rpc-ssg3fenm.js → location-services-ssg3fenm.js} +0 -0
  779. /package/dist/chunks/{rpc-twg0f83k.js → location-services-twg0f83k.js} +0 -0
  780. /package/dist/chunks/{rpc-w803qqfp.js → location-services-w803qqfp.js} +0 -0
  781. /package/dist/chunks/{rpc-wer8tq1h.js → location-services-wer8tq1h.js} +0 -0
  782. /package/dist/chunks/{rpc-wtztk69x.js → location-services-wtztk69x.js} +0 -0
  783. /package/dist/chunks/{rpc-x0ckcb58.js → location-services-x0ckcb58.js} +0 -0
  784. /package/dist/chunks/{rpc-x61499pn.js → location-services-x61499pn.js} +0 -0
  785. /package/dist/chunks/{rpc-y44na4kk.js → location-services-y44na4kk.js} +0 -0
  786. /package/dist/chunks/{rpc-y8cydn3q.js → location-services-y8cydn3q.js} +0 -0
  787. /package/dist/chunks/{rpc-ygaqb7jw.js → location-services-ygaqb7jw.js} +0 -0
  788. /package/dist/chunks/{rpc-ym463w8f.js → location-services-ym463w8f.js} +0 -0
  789. /package/dist/chunks/{rpc-z9919s4g.js → location-services-z9919s4g.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./rpc-9rqn6x4v.js";
3
+ } from "./location-services-9rqn6x4v.js";
4
4
 
5
5
  // src/repository.ts
6
6
  var exports_repository = {};
@@ -13,7 +13,7 @@ __export(exports_repository, {
13
13
  cachePath: () => cachePath2,
14
14
  isFile: () => isFile2,
15
15
  isRemote: () => isRemote2,
16
- parse: () => parse4,
16
+ parse: () => parse5,
17
17
  parseRemote: () => parseRemote2,
18
18
  same: () => same2,
19
19
  validateBranch: () => validateBranch3
@@ -39,7 +39,7 @@ class InvalidBranchError3 extends Schema.TaggedError()("RepositoryInvalidBranchE
39
39
  message: Schema.String
40
40
  }) {
41
41
  }
42
- function parse4(input) {
42
+ function parse5(input) {
43
43
  const cleaned = normalizeInput(input);
44
44
  if (!cleaned)
45
45
  return;
@@ -72,7 +72,7 @@ function parse4(input) {
72
72
  }
73
73
  }
74
74
  function parseRemote2(input) {
75
- const reference = parse4(input);
75
+ const reference = parse5(input);
76
76
  if (!reference) {
77
77
  throw new InvalidReferenceError2({
78
78
  repository: input,
@@ -172,4 +172,4 @@ function buildFile(input) {
172
172
  };
173
173
  }
174
174
 
175
- export { InvalidReferenceError2, UnsupportedLocalRepositoryError2, InvalidBranchError3, parse4, parseRemote2, validateBranch3, isFile2, isRemote2, cachePath2, cacheIdentity2, same2, exports_repository };
175
+ export { InvalidReferenceError2, UnsupportedLocalRepositoryError2, InvalidBranchError3, parse5, parseRemote2, validateBranch3, isFile2, isRemote2, cachePath2, cacheIdentity2, same2, exports_repository };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./rpc-922hggd3.js";
3
+ } from "./location-services-922hggd3.js";
4
4
 
5
5
  // src/database/path.ts
6
6
  import nodePath from "path";
@@ -1,44 +1,44 @@
1
1
  import {
2
- Service75,
3
- node80
4
- } from "./rpc-7etk2hzb.js";
2
+ Service74,
3
+ node79
4
+ } from "./location-services-zc4z9477.js";
5
5
  import {
6
- Service27
7
- } from "./rpc-1x11rq2a.js";
6
+ Service24
7
+ } from "./location-services-v1faaxn9.js";
8
8
  import {
9
- Service38,
10
- node42
11
- } from "./rpc-j36g4ek5.js";
9
+ Service22,
10
+ node26
11
+ } from "./location-services-w0vkrcvg.js";
12
12
  import {
13
- node18
14
- } from "./rpc-mwaq9hpm.js";
13
+ node24
14
+ } from "./location-services-dgskfwz0.js";
15
15
  import {
16
- node5
17
- } from "./rpc-9ej4f3gs.js";
16
+ node3
17
+ } from "./location-services-3n9z35hx.js";
18
18
  import {
19
19
  __export
20
- } from "./rpc-9rqn6x4v.js";
20
+ } from "./location-services-9rqn6x4v.js";
21
21
 
22
22
  // src/worktree/refresh.ts
23
23
  var exports_refresh = {};
24
24
  __export(exports_refresh, {
25
25
  WorktreeRefresh: () => exports_refresh,
26
- node: () => node4
26
+ node: () => node2
27
27
  });
28
28
  import { Effect, Layer } from "effect";
29
29
  import { makeLocationNode } from "@opencode/util/effect/app-node";
30
30
  var layer = Layer.effectDiscard(Effect.gen(function* () {
31
- const location = yield* Service75;
32
- const plugins = yield* Service27;
33
- const worktrees = yield* Service38;
31
+ const location = yield* Service74;
32
+ const plugins = yield* Service24;
33
+ const worktrees = yield* Service22;
34
34
  if (location.workspaceID)
35
35
  return;
36
36
  yield* plugins.awaitActivation.pipe(Effect.andThen(worktrees.refresh()), Effect.catchCause((cause) => Effect.logWarning("worktree refresh failed", { cause })), Effect.forkScoped);
37
37
  }));
38
- var node4 = makeLocationNode({
38
+ var node2 = makeLocationNode({
39
39
  name: "worktree-refresh",
40
40
  layer,
41
- deps: [node42, node80, node18, node5]
41
+ deps: [node26, node79, node24, node3]
42
42
  });
43
43
 
44
- export { node4, exports_refresh };
44
+ export { node2, exports_refresh };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  ID8,
3
3
  Service65
4
- } from "./rpc-dyy3hg9v.js";
4
+ } from "./location-services-cxp4ejjw.js";
5
5
  import {
6
6
  isAISDK2,
7
7
  packageName2
8
- } from "./rpc-jtp7wgq3.js";
8
+ } from "./location-services-m27pyyd3.js";
9
9
 
10
10
  // src/plugin/provider/llmgateway.ts
11
11
  import { Effect } from "effect";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createProviderPlugin2
3
- } from "./rpc-ym463w8f.js";
3
+ } from "./location-services-ym463w8f.js";
4
4
 
5
5
  // src/plugin/provider/alibaba.ts
6
6
  var AlibabaPlugin2 = createProviderPlugin2({
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  cleanup3
3
- } from "./rpc-gd4qta3r.js";
3
+ } from "./location-services-gd4qta3r.js";
4
4
  import {
5
5
  ascending2
6
- } from "./rpc-tvtrv512.js";
6
+ } from "./location-services-tvtrv512.js";
7
7
  import {
8
8
  create3
9
- } from "./rpc-kg06axw8.js";
9
+ } from "./location-services-kg06axw8.js";
10
10
  import {
11
11
  __export
12
- } from "./rpc-9rqn6x4v.js";
12
+ } from "./location-services-9rqn6x4v.js";
13
13
 
14
14
  // src/tool-output.ts
15
15
  var exports_tool_output2 = {};
@@ -18,9 +18,9 @@ __export(exports_tool_output2, {
18
18
  MAX_BYTES: () => MAX_BYTES2,
19
19
  MAX_LINES: () => MAX_LINES2,
20
20
  RETENTION: () => RETENTION3,
21
- Service: () => Service49,
21
+ Service: () => Service57,
22
22
  ToolOutput: () => exports_tool_output2,
23
- node: () => node54
23
+ node: () => node61
24
24
  });
25
25
  import path from "path";
26
26
  import { Context, Duration, Effect, Layer, Schedule } from "effect";
@@ -32,13 +32,13 @@ var MAX_BYTES2 = 50 * 1024;
32
32
  var RETENTION3 = Duration.days(7);
33
33
  var DIRECTORY3 = "tool-output";
34
34
 
35
- class Service49 extends Context.Service()("@opencode/ToolOutput") {
35
+ class Service57 extends Context.Service()("@opencode/ToolOutput") {
36
36
  }
37
37
  var cleanup = Effect.fn("ToolOutput.cleanup")(function* (fs, directory) {
38
38
  const entries = yield* fs.readDirectory(directory).pipe(Effect.map((entries) => entries.filter((entry) => /^tool_[0-9a-f]{12}/.test(entry))), Effect.orElseSucceed(() => []));
39
39
  yield* cleanup3(fs, entries.map((entry) => path.join(directory, entry)), RETENTION3);
40
40
  });
41
- var layer = Layer.effect(Service49, Effect.gen(function* () {
41
+ var layer = Layer.effect(Service57, Effect.gen(function* () {
42
42
  const fs = yield* FSUtil.Service;
43
43
  const global = yield* Global.Service;
44
44
  const directory = path.join(global.data, DIRECTORY3);
@@ -122,7 +122,7 @@ var layer = Layer.effect(Service49, Effect.gen(function* () {
122
122
  metadata: { ...result.metadata, truncated: true, outputPath: file }
123
123
  };
124
124
  });
125
- return Service49.of({
125
+ return Service57.of({
126
126
  transform: state.transform,
127
127
  reload: state.reload,
128
128
  truncate,
@@ -139,10 +139,10 @@ var cleanupNode = makeGlobalNode({
139
139
  layer: cleanupLayer,
140
140
  deps: [FSUtil.node, Global.node]
141
141
  });
142
- var node54 = makeLocationNode({
143
- service: Service49,
142
+ var node61 = makeLocationNode({
143
+ service: Service57,
144
144
  layer,
145
145
  deps: [FSUtil.node, Global.node, cleanupNode]
146
146
  });
147
147
 
148
- export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, Service49, node54, exports_tool_output2 };
148
+ export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, Service57, node61, exports_tool_output2 };
@@ -0,0 +1,123 @@
1
+ import {
2
+ OAuth3
3
+ } from "./location-services-7btp50nq.js";
4
+ import {
5
+ ID8,
6
+ MethodID2
7
+ } from "./location-services-cxp4ejjw.js";
8
+ import {
9
+ success2,
10
+ error2
11
+ } from "./location-services-pjvnvgmy.js";
12
+
13
+ // src/plugin/provider/poe.ts
14
+ import { define } from "@opencode/plugin/effect/plugin";
15
+ import { Clock, Deferred, Effect, Option, Schema } from "effect";
16
+ import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
17
+ var integrationID = ID8.make("poe");
18
+ var methodID = MethodID2.make("browser");
19
+ var clientID = "client_728290227fc048cc9262091a1ea197ea";
20
+ var issuer = "https://poe.com";
21
+ var maxExpiry = 8640000000000000;
22
+ var Token = Schema.Struct({
23
+ api_key: Schema.Trim.check(Schema.isNonEmpty(), Schema.isPattern(/^\S+$/)),
24
+ api_key_expires_in: Schema.optional(Schema.NullOr(Schema.Int.check(Schema.isGreaterThanOrEqualTo(0))))
25
+ });
26
+ var decodeError = Schema.decodeUnknownOption(Schema.fromJsonString(Schema.Struct({ error: Schema.optional(Schema.String), error_description: Schema.optional(Schema.String) })));
27
+ var PoePlugin2 = define({
28
+ id: "opencode.provider.poe",
29
+ effect: Effect.fn(function* (ctx) {
30
+ const http = yield* HttpClient.HttpClient;
31
+ yield* ctx.integration.transform((editor) => {
32
+ editor.method.update({
33
+ integrationID,
34
+ method: { id: methodID, type: "oauth", label: "Login with Poe (browser)" },
35
+ refresh: (value) => Clock.currentTimeMillis.pipe(Effect.flatMap((now) => value.expires > now ? Effect.succeed(value) : Effect.fail(new Error("Poe API key expired. Log in with Poe again.")))),
36
+ authorize: () => Effect.gen(function* () {
37
+ const verifier = Buffer.from(crypto.getRandomValues(new Uint8Array(32))).toString("base64url");
38
+ const challenge = Buffer.from(yield* Effect.promise(() => crypto.subtle.digest("SHA-256", new TextEncoder().encode(verifier)))).toString("base64url");
39
+ const state = Buffer.from(crypto.getRandomValues(new Uint8Array(32))).toString("base64url");
40
+ const callback = yield* Deferred.make();
41
+ const { createServer } = yield* Effect.promise(() => import("node:http"));
42
+ const { EventEmitter } = yield* Effect.promise(() => import("node:events"));
43
+ const server = createServer((request, response) => {
44
+ const url = new URL(request.url ?? "/", "http://127.0.0.1");
45
+ if (request.method !== "GET" || url.pathname !== "/callback") {
46
+ response.writeHead(404).end();
47
+ return;
48
+ }
49
+ const error = callbackError(url.searchParams, state);
50
+ if (error) {
51
+ response.writeHead(400, { "Content-Type": "text/html" }).end(error2(error, { provider: "Poe" }));
52
+ Effect.runSync(Deferred.fail(callback, new Error(error)));
53
+ return;
54
+ }
55
+ if (!Effect.runSync(Deferred.succeed(callback, { code: url.searchParams.get("code") ?? "", response })))
56
+ response.writeHead(409).end("OAuth callback already received");
57
+ });
58
+ yield* Effect.addFinalizer(() => Effect.sync(() => {
59
+ server.close();
60
+ server.closeAllConnections();
61
+ }));
62
+ yield* Effect.tryPromise(() => EventEmitter.once(server.listen(0, "127.0.0.1"), "listening"));
63
+ const address = server.address();
64
+ if (!address || typeof address === "string")
65
+ return yield* Effect.fail(new Error("Missing OAuth callback port"));
66
+ const redirect = `http://127.0.0.1:${address.port}/callback`;
67
+ return {
68
+ mode: "auto",
69
+ url: `${issuer}/oauth/authorize?${new URLSearchParams({
70
+ response_type: "code",
71
+ client_id: clientID,
72
+ redirect_uri: redirect,
73
+ scope: "apikey:create",
74
+ code_challenge: challenge,
75
+ code_challenge_method: "S256",
76
+ state
77
+ }).toString()}`,
78
+ instructions: "Complete authorization in your browser. This window will close automatically.",
79
+ callback: Effect.gen(function* () {
80
+ const request = yield* Deferred.await(callback);
81
+ const respond = (error) => Effect.sync(() => request.response.writeHead(error ? 400 : 200, { "Content-Type": "text/html" }).end(error ? error2(error, { provider: "Poe" }) : success2({ provider: "Poe" })));
82
+ return yield* exchangeCode(http, { code: request.code, redirect, verifier }).pipe(Effect.tap(() => respond()), Effect.tapError((error) => respond(error.message)), Effect.onInterrupt(() => Effect.sync(() => request.response.destroy())));
83
+ })
84
+ };
85
+ })
86
+ });
87
+ });
88
+ })
89
+ });
90
+ function callbackError(params, state) {
91
+ if (params.get("state") !== state)
92
+ return "Invalid OAuth state";
93
+ if (params.has("iss") && params.get("iss") !== issuer)
94
+ return "Invalid OAuth issuer";
95
+ if (params.has("error")) {
96
+ const detail = params.get("error_description") || params.get("error") || "Authorization denied";
97
+ return detail.includes(state) ? "Poe authorization failed" : detail;
98
+ }
99
+ return params.get("code")?.trim() ? undefined : "Missing authorization code";
100
+ }
101
+ function exchangeCode(http, input) {
102
+ return Effect.gen(function* () {
103
+ const response = yield* http.execute(HttpClientRequest.post("https://api.poe.com/token").pipe(HttpClientRequest.bodyUrlParams({
104
+ grant_type: "authorization_code",
105
+ client_id: clientID,
106
+ code: input.code,
107
+ redirect_uri: input.redirect,
108
+ code_verifier: input.verifier
109
+ }))).pipe(Effect.mapError(() => new Error("Poe token exchange request failed")));
110
+ if (response.status < 200 || response.status >= 300) {
111
+ const error = Option.getOrUndefined(decodeError(yield* response.text.pipe(Effect.orElseSucceed(() => ""))));
112
+ const detail = error?.error_description || error?.error;
113
+ return yield* Effect.fail(new Error(detail && ![input.code, input.verifier].some((secret) => detail.includes(secret)) ? `Poe token exchange failed: ${detail}` : `Poe token exchange failed (${response.status})`));
114
+ }
115
+ const token = yield* HttpClientResponse.schemaBodyJson(Token)(response).pipe(Effect.mapError(() => new Error("Invalid Poe token response")));
116
+ const expires = token.api_key_expires_in == null ? maxExpiry : (yield* Clock.currentTimeMillis) + token.api_key_expires_in * 1000;
117
+ if (!Number.isSafeInteger(expires) || expires > maxExpiry)
118
+ return yield* Effect.fail(new Error("Invalid Poe API key expiry"));
119
+ return OAuth3.make({ type: "oauth", methodID, access: token.api_key, refresh: "", expires });
120
+ });
121
+ }
122
+
123
+ export { PoePlugin2 };
@@ -0,0 +1,228 @@
1
+ import {
2
+ useragent2
3
+ } from "./location-services-b3frasm9.js";
4
+ import {
5
+ Service79
6
+ } from "./location-services-g4k0nsm5.js";
7
+ import {
8
+ OAuth3,
9
+ Event15,
10
+ Service66
11
+ } from "./location-services-7btp50nq.js";
12
+ import {
13
+ ID8,
14
+ MethodID2,
15
+ Service65
16
+ } from "./location-services-cxp4ejjw.js";
17
+ import {
18
+ success2,
19
+ error2
20
+ } from "./location-services-pjvnvgmy.js";
21
+ import {
22
+ ID18
23
+ } from "./location-services-m27pyyd3.js";
24
+ import {
25
+ configuredSettings2
26
+ } from "./location-services-wzgdh32c.js";
27
+
28
+ // src/plugin/provider/snowflake-cortex.ts
29
+ import { define } from "@opencode/plugin/effect/plugin";
30
+ import { Form } from "@opencode/schema/form";
31
+ import { Clock, Deferred, Effect, Option, Schema, Stream } from "effect";
32
+ import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
33
+ var providerID = ID18.make("snowflake-cortex");
34
+ var integrationID = ID8.make(providerID);
35
+ var methodID = MethodID2.make("browser");
36
+ var clientID = "LOCAL_APPLICATION";
37
+ var accountForm = Form.Fields.make([
38
+ {
39
+ type: "string",
40
+ key: "account",
41
+ title: "Snowflake account",
42
+ placeholder: "myorg-myaccount",
43
+ required: true
44
+ }
45
+ ]);
46
+ var Token = Schema.Struct({
47
+ access_token: Schema.NonEmptyString,
48
+ refresh_token: Schema.optional(Schema.String),
49
+ expires_in: Schema.optional(Schema.Number)
50
+ });
51
+ var decodeError = Schema.decodeUnknownOption(Schema.fromJsonString(Schema.Struct({ message: Schema.optional(Schema.Unknown), error: Schema.optional(Schema.Unknown) })));
52
+ var SnowflakeCortexPlugin2 = define({
53
+ id: "opencode.provider.snowflake.cortex",
54
+ effect: Effect.fn(function* (ctx) {
55
+ const http = yield* HttpClient.HttpClient;
56
+ const credentials = yield* Service66;
57
+ const integrations = yield* Service65;
58
+ const bus = yield* Service79;
59
+ const configured = yield* configuredSettings2(providerID);
60
+ const account = { value: "" };
61
+ const saved = Effect.gen(function* () {
62
+ const connection = yield* integrations.connection.active(integrationID);
63
+ return connection?.type === "credential" ? yield* credentials.get(connection.id) : undefined;
64
+ });
65
+ const token = Effect.fn(function* (account, form) {
66
+ if (!account)
67
+ return yield* Effect.fail(new Error("Snowflake account is required"));
68
+ const response = yield* http.execute(HttpClientRequest.post(`${issuer(account)}/oauth/token-request`).pipe(HttpClientRequest.setHeaders({
69
+ Accept: "application/json",
70
+ "User-Agent": useragent2(ctx.app),
71
+ Authorization: `Basic ${Buffer.from(`${clientID}:${clientID}`).toString("base64")}`
72
+ }), HttpClientRequest.bodyUrlParams({ ...form, client_id: clientID })));
73
+ if (response.status < 200 || response.status >= 300)
74
+ return yield* Effect.fail(new Error(`Snowflake token request failed (${response.status}): ${yield* response.text}`));
75
+ const tokens = yield* HttpClientResponse.schemaBodyJson(Token)(response);
76
+ const refresh = tokens.refresh_token || form.refresh_token;
77
+ if (!refresh)
78
+ return yield* Effect.fail(new Error("Snowflake token response did not include refresh_token"));
79
+ return OAuth3.make({
80
+ type: "oauth",
81
+ methodID,
82
+ access: tokens.access_token,
83
+ refresh,
84
+ expires: (yield* Clock.currentTimeMillis) + (tokens.expires_in ?? 600) * 1000,
85
+ metadata: { account }
86
+ });
87
+ });
88
+ const refresh = (value) => token(normalizeAccount(value.metadata?.account), { grant_type: "refresh_token", refresh_token: value.refresh });
89
+ yield* ctx.integration.transform((editor) => {
90
+ editor.method.update({
91
+ integrationID,
92
+ method: { type: "key", label: "Paste PAT or bearer token", form: accountForm }
93
+ });
94
+ editor.method.update({
95
+ integrationID,
96
+ method: { type: "env", names: ["SNOWFLAKE_CORTEX_TOKEN", "SNOWFLAKE_CORTEX_PAT"] }
97
+ });
98
+ editor.method.update({
99
+ integrationID,
100
+ method: {
101
+ id: methodID,
102
+ type: "oauth",
103
+ label: "Login with Snowflake (External Browser)",
104
+ form: [...accountForm, { type: "string", key: "role", title: "Snowflake role (optional)" }]
105
+ },
106
+ refresh: (value) => envToken() ? Effect.succeed(value) : refresh(value),
107
+ label: (value) => normalizeAccount(value.metadata?.account),
108
+ authorize: (answer) => Effect.gen(function* () {
109
+ const account = normalizeAccount(answer.account);
110
+ if (!account)
111
+ return yield* Effect.fail(new Error("Snowflake account is required"));
112
+ const role = typeof answer.role === "string" ? answer.role.trim() : "";
113
+ const verifier = Buffer.from(crypto.getRandomValues(new Uint8Array(48))).toString("base64url");
114
+ const challenge = Buffer.from(yield* Effect.promise(() => crypto.subtle.digest("SHA-256", new TextEncoder().encode(verifier)))).toString("base64url");
115
+ const state = Buffer.from(crypto.getRandomValues(new Uint8Array(32))).toString("base64url");
116
+ const code = yield* Deferred.make();
117
+ const { createServer } = yield* Effect.promise(() => import("node:http"));
118
+ const { EventEmitter } = yield* Effect.promise(() => import("node:events"));
119
+ const server = createServer((request, response) => {
120
+ const url = new URL(request.url ?? "/", "http://127.0.0.1");
121
+ if (url.pathname !== "/") {
122
+ response.writeHead(404).end();
123
+ return;
124
+ }
125
+ const value = url.searchParams.get("code");
126
+ const error = url.searchParams.get("state") !== state ? "Invalid OAuth state" : url.searchParams.get("error_description") || url.searchParams.get("error") || (!value ? "Missing authorization code" : undefined);
127
+ Effect.runFork(error ? Deferred.fail(code, new Error(error)) : Deferred.succeed(code, value ?? ""));
128
+ response.writeHead(error ? 400 : 200, { "Content-Type": "text/html" }).end(error ? error2(error, { provider: "Snowflake" }) : success2({ provider: "Snowflake" }));
129
+ });
130
+ yield* Effect.addFinalizer(() => Effect.sync(() => server.close()));
131
+ yield* Effect.tryPromise(() => EventEmitter.once(server.listen(0, "127.0.0.1"), "listening"));
132
+ const address = server.address();
133
+ if (!address || typeof address === "string")
134
+ return yield* Effect.fail(new Error("Missing OAuth callback port"));
135
+ const redirect = `http://127.0.0.1:${address.port}/`;
136
+ return {
137
+ mode: "auto",
138
+ url: `${issuer(account)}/oauth/authorize?${new URLSearchParams({
139
+ client_id: clientID,
140
+ response_type: "code",
141
+ redirect_uri: redirect,
142
+ state,
143
+ scope: !role ? "refresh_token" : /^[-_A-Za-z0-9]+$/.test(role) ? `refresh_token session:role:${role}` : `refresh_token session:role-encoded:${encodeURIComponent(role)}`,
144
+ code_challenge: challenge,
145
+ code_challenge_method: "S256"
146
+ }).toString()}`,
147
+ instructions: "Complete Snowflake sign-in in your browser.",
148
+ callback: Effect.gen(function* () {
149
+ return yield* token(account, {
150
+ grant_type: "authorization_code",
151
+ code: yield* Deferred.await(code),
152
+ redirect_uri: redirect,
153
+ code_verifier: verifier
154
+ });
155
+ })
156
+ };
157
+ })
158
+ });
159
+ });
160
+ const load = Effect.gen(function* () {
161
+ const value = (yield* saved)?.value;
162
+ account.value = normalizeAccount(process.env.SNOWFLAKE_ACCOUNT ?? (value?.type === "key" ? value.configuration?.account ?? value.metadata?.account : value?.metadata?.account) ?? configured?.account);
163
+ });
164
+ yield* load;
165
+ yield* ctx.catalog.transform((catalog) => {
166
+ const item = catalog.provider.get(providerID);
167
+ if (!item)
168
+ return;
169
+ const settings = { ...item.provider.settings, ...configured };
170
+ item.provider.settings = {
171
+ ...settings,
172
+ baseURL: endpoint(settings.baseURL, account.value),
173
+ ...typeof settings.token === "string" ? { apiKey: settings.token } : {}
174
+ };
175
+ for (const model of item.models.values()) {
176
+ model.compatibility = { maxTokensField: "max_completion_tokens", ...model.compatibility };
177
+ if (model.settings?.baseURL !== undefined)
178
+ model.settings.baseURL = endpoint(model.settings.baseURL, account.value);
179
+ }
180
+ });
181
+ yield* bus.subscribe(Event15.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(() => load.pipe(Effect.andThen(ctx.catalog.reload()))), Effect.forkScoped({ startImmediately: true }));
182
+ yield* ctx.session.hook("http.request", (event) => Effect.sync(() => {
183
+ const token = envToken();
184
+ if (token)
185
+ event.request.headers.set("authorization", `Bearer ${token}`);
186
+ event.request.headers.set("user-agent", useragent2(ctx.app));
187
+ }), { providerID });
188
+ yield* ctx.session.hook("http.response", Effect.fn(function* (event) {
189
+ if (event.response.status !== 400)
190
+ return;
191
+ const error = Option.getOrUndefined(decodeError(yield* Effect.promise(() => event.response.clone().text())));
192
+ const message = String(error?.message || error?.error || "");
193
+ if (!message.toLowerCase().includes("conversation complete"))
194
+ return;
195
+ event.response = new Response(`data: {"choices":[{"index":0,"delta":{},"finish_reason":"stop"}]}
196
+
197
+ data: [DONE]
198
+
199
+ `, { headers: { "content-type": "text/event-stream" } });
200
+ }), { providerID });
201
+ yield* ctx.session.hook("retry", Effect.fn(function* (event) {
202
+ if (event.error.status !== 401 || event.attempt !== 2 || envToken())
203
+ return;
204
+ const current = yield* saved;
205
+ if (current?.value.type !== "oauth" || current.value.methodID !== methodID)
206
+ return;
207
+ yield* credentials.update(current.id, { value: yield* refresh(current.value).pipe(Effect.orDie) });
208
+ event.decision = { retry: true, delay: 0 };
209
+ }), { providerID });
210
+ })
211
+ });
212
+ function normalizeAccount(value) {
213
+ if (typeof value !== "string")
214
+ return "";
215
+ return value.trim().replace(/^https?:\/\//i, "").replace(/\/+$/, "").replace(/\.snowflakecomputing\.com$/i, "");
216
+ }
217
+ function issuer(account) {
218
+ return `https://${account}.snowflakecomputing.com`;
219
+ }
220
+ function endpoint(value, account) {
221
+ const baseURL = typeof value === "string" ? value : `${issuer("${SNOWFLAKE_ACCOUNT}")}/api/v2/cortex/v1`;
222
+ return account ? baseURL.replaceAll("${SNOWFLAKE_ACCOUNT}", account) : baseURL;
223
+ }
224
+ function envToken() {
225
+ return process.env.SNOWFLAKE_CORTEX_TOKEN ?? process.env.SNOWFLAKE_CORTEX_PAT;
226
+ }
227
+
228
+ export { SnowflakeCortexPlugin2 };
@@ -2,7 +2,7 @@ import {
2
2
  getTableColumnsRuntime2,
3
3
  orderSelectedFields2,
4
4
  mapUpdateSet2
5
- } from "./rpc-emrn6kk6.js";
5
+ } from "./location-services-emrn6kk6.js";
6
6
 
7
7
  // src/database/drizzle/sqlite-core/effect/insert.ts
8
8
  import { applyEffectWrapper } from "drizzle-orm/effect-core/query-effect";