@opencode/core 0.0.0-dev-20040 → 0.0.0-dev-20042

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 (799) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +83 -83
  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/{location-activity-8wx2ggwz.js → persistent-pty-02e6q2g2.js} +57 -57
  8. package/dist/chunks/{location-activity-zs63jsch.js → persistent-pty-0735k9hj.js} +16 -16
  9. package/dist/chunks/{location-activity-rjnk40k0.js → persistent-pty-07yja43e.js} +15 -15
  10. package/dist/chunks/{location-activity-4cnppghp.js → persistent-pty-0bx2se0g.js} +11 -11
  11. package/dist/chunks/{location-activity-fcrkznn8.js → persistent-pty-0jwsre1p.js} +5 -5
  12. package/dist/chunks/{location-activity-y67btz6y.js → persistent-pty-0p8fja5q.js} +44 -44
  13. package/dist/chunks/{location-activity-0paq2nw3.js → persistent-pty-0paq2nw3.js} +1 -1
  14. package/dist/chunks/{location-activity-k8htk317.js → persistent-pty-0qd1hc9n.js} +5 -5
  15. package/dist/chunks/{location-activity-f7vbsmz3.js → persistent-pty-0w62qmxp.js} +8 -8
  16. package/dist/chunks/{location-activity-w9b3ew9f.js → persistent-pty-0xp9wjxv.js} +26 -26
  17. package/dist/chunks/{location-activity-35agz59w.js → persistent-pty-15zevn5w.js} +6 -6
  18. package/dist/chunks/{location-activity-nx97ad9f.js → persistent-pty-1636sbse.js} +24 -24
  19. package/dist/chunks/{location-activity-ycc3exec.js → persistent-pty-17ggxybq.js} +35 -35
  20. package/dist/chunks/{location-activity-4230str2.js → persistent-pty-1a1mrdgb.js} +25 -25
  21. package/dist/chunks/{location-activity-1dazxqgg.js → persistent-pty-1dazxqgg.js} +2 -2
  22. package/dist/chunks/{location-activity-k0ghhshk.js → persistent-pty-1q803bdb.js} +6 -6
  23. package/dist/chunks/{location-activity-98mpfdcc.js → persistent-pty-1qvkgnpd.js} +24 -24
  24. package/dist/chunks/{location-activity-zz3jq8bj.js → persistent-pty-1stbn8g0.js} +7 -7
  25. package/dist/chunks/{location-activity-33w4ejhs.js → persistent-pty-1ygqh575.js} +6 -6
  26. package/dist/chunks/{location-activity-1pfr489z.js → persistent-pty-1z9ngvxm.js} +12 -12
  27. package/dist/chunks/{location-activity-21r38tys.js → persistent-pty-21r38tys.js} +1 -1
  28. package/dist/chunks/{location-activity-2402vzrj.js → persistent-pty-2402vzrj.js} +1 -1
  29. package/dist/chunks/{location-activity-2a5m3afh.js → persistent-pty-2a5m3afh.js} +1 -1
  30. package/dist/chunks/{location-activity-qby9dwvd.js → persistent-pty-2eegacq4.js} +8 -8
  31. package/dist/chunks/{location-activity-j97cmbc7.js → persistent-pty-2g96k7vx.js} +1 -1
  32. package/dist/chunks/{location-activity-9eh6sf6d.js → persistent-pty-2vgzs72b.js} +5 -5
  33. package/dist/chunks/{location-activity-2t0rn8nh.js → persistent-pty-2wyfts5g.js} +24 -24
  34. package/dist/chunks/{location-activity-g16x7bb3.js → persistent-pty-2x1xwv6h.js} +17 -17
  35. package/dist/chunks/{location-activity-4rqhqvft.js → persistent-pty-31k44zkb.js} +11 -11
  36. package/dist/chunks/{location-activity-xc4478q7.js → persistent-pty-39q291vc.js} +32 -32
  37. package/dist/chunks/{location-activity-4gfv9z2y.js → persistent-pty-3dav9012.js} +6 -6
  38. package/dist/chunks/{location-activity-m5r6ggzy.js → persistent-pty-3f3jqxta.js} +13 -13
  39. package/dist/chunks/{location-activity-3fc6dm20.js → persistent-pty-3fc6dm20.js} +1 -1
  40. package/dist/chunks/{location-activity-3hepkmqq.js → persistent-pty-3hepkmqq.js} +1 -1
  41. package/dist/chunks/{location-activity-834a0b17.js → persistent-pty-3ktbe3hf.js} +9 -9
  42. package/dist/chunks/{location-activity-3smtnn6g.js → persistent-pty-3smtnn6g.js} +1 -1
  43. package/dist/chunks/{location-activity-3tvqynh2.js → persistent-pty-3tvqynh2.js} +1 -1
  44. package/dist/chunks/{location-activity-3zsf4n22.js → persistent-pty-3zsf4n22.js} +1 -1
  45. package/dist/chunks/{location-activity-knb7evpn.js → persistent-pty-44ke2mar.js} +2 -2
  46. package/dist/chunks/{location-activity-543ww53a.js → persistent-pty-4685a8f7.js} +18 -18
  47. package/dist/chunks/{location-activity-rysvp39z.js → persistent-pty-4d3yg0sd.js} +3 -3
  48. package/dist/chunks/{location-activity-6qvk4nmc.js → persistent-pty-4d5pscc0.js} +6 -6
  49. package/dist/chunks/{location-activity-615m6gz1.js → persistent-pty-4k8me329.js} +14 -14
  50. package/dist/chunks/{location-activity-eea4kyvf.js → persistent-pty-4pfpv52f.js} +5 -5
  51. package/dist/chunks/{location-activity-atw64qz3.js → persistent-pty-4t9wz2vk.js} +10 -10
  52. package/dist/chunks/persistent-pty-4v7qdvcn.js +18 -0
  53. package/dist/chunks/{location-activity-ev34xyh9.js → persistent-pty-4ws8fjcn.js} +45 -45
  54. package/dist/chunks/{location-activity-18s9r5gn.js → persistent-pty-53fyba40.js} +4 -4
  55. package/dist/chunks/{location-activity-zwsg1sj6.js → persistent-pty-544cyea4.js} +26 -26
  56. package/dist/chunks/{location-activity-sj2a84n4.js → persistent-pty-55cx5064.js} +9 -9
  57. package/dist/chunks/{location-activity-21t5c11y.js → persistent-pty-56scbdfa.js} +26 -22
  58. package/dist/chunks/{location-activity-0ke265bw.js → persistent-pty-57ez7d0k.js} +5 -5
  59. package/dist/chunks/{location-activity-f1w9krrt.js → persistent-pty-58fpexbr.js} +7 -7
  60. package/dist/chunks/{location-activity-yjxstg5v.js → persistent-pty-5brb0pbm.js} +177 -177
  61. package/dist/chunks/{location-activity-5daktx2q.js → persistent-pty-5daktx2q.js} +1 -1
  62. package/dist/chunks/{location-activity-5ekn9679.js → persistent-pty-5ekn9679.js} +1 -1
  63. package/dist/chunks/{location-activity-hzd2kh5p.js → persistent-pty-5pt64gxx.js} +24 -24
  64. package/dist/chunks/{location-activity-e3qxr5gk.js → persistent-pty-5qd3pb7m.js} +2 -2
  65. package/dist/chunks/{location-activity-p57dvf2n.js → persistent-pty-5qkxfyep.js} +6 -6
  66. package/dist/chunks/{location-activity-db9xwh8k.js → persistent-pty-5qxx2m82.js} +3 -3
  67. package/dist/chunks/{location-activity-5t3nmthw.js → persistent-pty-5t3nmthw.js} +2 -2
  68. package/dist/chunks/{location-activity-m7mqfst7.js → persistent-pty-5zr303av.js} +12 -12
  69. package/dist/chunks/{location-activity-669tq793.js → persistent-pty-669tq793.js} +1 -1
  70. package/dist/chunks/{location-activity-c0m6b5gc.js → persistent-pty-66t0h02t.js} +16 -16
  71. package/dist/chunks/{location-activity-4qyk6q1w.js → persistent-pty-679wzm8a.js} +31 -31
  72. package/dist/chunks/{location-activity-493zbn00.js → persistent-pty-6am04jn1.js} +44 -44
  73. package/dist/chunks/{location-activity-q3y0zzya.js → persistent-pty-6d0k74d0.js} +10 -10
  74. package/dist/chunks/{location-activity-z1ejvfb6.js → persistent-pty-6hc4pxhc.js} +3 -3
  75. package/dist/chunks/{location-activity-6msgmcgs.js → persistent-pty-6msgmcgs.js} +1 -1
  76. package/dist/chunks/{location-activity-q3rms5qe.js → persistent-pty-6qv05xq0.js} +32 -32
  77. package/dist/chunks/{location-activity-b506axvz.js → persistent-pty-6xypr7jz.js} +10 -10
  78. package/dist/chunks/{location-activity-m8cr24be.js → persistent-pty-6y4kmedr.js} +84 -84
  79. package/dist/chunks/{location-activity-znzhbqc9.js → persistent-pty-6ydfbg1r.js} +20 -20
  80. package/dist/chunks/{location-activity-bz3rqwbw.js → persistent-pty-73hrd7m9.js} +6 -6
  81. package/dist/chunks/{location-activity-yhbwansw.js → persistent-pty-768gsh1v.js} +8 -8
  82. package/dist/chunks/{location-activity-7bmhse3q.js → persistent-pty-7bmhse3q.js} +1 -1
  83. package/dist/chunks/{location-activity-2dmagjrf.js → persistent-pty-7gryrk58.js} +23 -23
  84. package/dist/chunks/{location-activity-z3gabhqc.js → persistent-pty-7k1gvst3.js} +4 -4
  85. package/dist/chunks/{location-activity-ngqyks8r.js → persistent-pty-7k434ymz.js} +12 -12
  86. package/dist/chunks/{location-activity-8spfb2yq.js → persistent-pty-7vbsp9bb.js} +11 -11
  87. package/dist/chunks/{location-activity-fmrhw7fr.js → persistent-pty-7vtw3tkk.js} +2 -2
  88. package/dist/chunks/{location-activity-hqkys46v.js → persistent-pty-7xzxry9y.js} +3 -3
  89. package/dist/chunks/{location-activity-179189h4.js → persistent-pty-7z7az0f5.js} +4 -4
  90. package/dist/chunks/{location-activity-mvp8b34f.js → persistent-pty-86dkkjnf.js} +15 -15
  91. package/dist/chunks/{location-activity-tcezcvh9.js → persistent-pty-89znhe33.js} +4 -4
  92. package/dist/chunks/{location-activity-8d7r5vzw.js → persistent-pty-8d7r5vzw.js} +1 -1
  93. package/dist/chunks/{location-activity-0j679ben.js → persistent-pty-8dzzav18.js} +4 -4
  94. package/dist/chunks/{location-activity-ewfmd3bq.js → persistent-pty-8eh4zvff.js} +20 -20
  95. package/dist/chunks/{location-activity-8mq0chcy.js → persistent-pty-8pw1b0j6.js} +11 -11
  96. package/dist/chunks/{location-activity-b3whdk3k.js → persistent-pty-8qc9bzp8.js} +22 -22
  97. package/dist/chunks/{location-activity-0t9wd588.js → persistent-pty-8wsye86r.js} +8 -8
  98. package/dist/chunks/{location-activity-6v8y8vbs.js → persistent-pty-8xvk34tp.js} +10 -10
  99. package/dist/chunks/{location-activity-b7xsxr4n.js → persistent-pty-90rjpb8w.js} +15 -15
  100. package/dist/chunks/{location-activity-jrz4qx78.js → persistent-pty-90w267cj.js} +20 -20
  101. package/dist/chunks/{location-activity-94ek1h2f.js → persistent-pty-94ek1h2f.js} +2 -2
  102. package/dist/chunks/{location-activity-b3px220g.js → persistent-pty-9cn3db03.js} +32 -32
  103. package/dist/chunks/{location-activity-9dgd24xm.js → persistent-pty-9v19sw1s.js} +43 -43
  104. package/dist/chunks/{location-activity-aaet6srn.js → persistent-pty-aaet6srn.js} +2 -2
  105. package/dist/chunks/{location-activity-3hdyanjz.js → persistent-pty-ajvrh1yc.js} +4 -4
  106. package/dist/chunks/{location-activity-a6hfmrft.js → persistent-pty-apek9f9a.js} +26 -26
  107. package/dist/chunks/{location-activity-kptkb6ms.js → persistent-pty-ayw4b9ht.js} +11 -11
  108. package/dist/chunks/{location-activity-gjr1xpp3.js → persistent-pty-b0mhge8s.js} +1 -1
  109. package/dist/chunks/{location-activity-vejw0ste.js → persistent-pty-b5s03rd7.js} +3 -3
  110. package/dist/chunks/{location-activity-b6gygkdw.js → persistent-pty-b6gygkdw.js} +2 -2
  111. package/dist/chunks/{location-activity-hr4prybc.js → persistent-pty-b8kh8k48.js} +30 -30
  112. package/dist/chunks/{location-activity-emkcdvnd.js → persistent-pty-bhd4rr5x.js} +11 -11
  113. package/dist/chunks/{location-activity-e51gfbmq.js → persistent-pty-bm48e2a0.js} +6 -6
  114. package/dist/chunks/{location-activity-4kzk2qdr.js → persistent-pty-bpjsyh0e.js} +20 -20
  115. package/dist/chunks/{location-activity-yhj4pxny.js → persistent-pty-bqvjxhzq.js} +6 -6
  116. package/dist/chunks/{location-activity-f5rzxhen.js → persistent-pty-bsd2nd03.js} +18 -18
  117. package/dist/chunks/{location-activity-vjgkn69w.js → persistent-pty-bwvhsys1.js} +11 -11
  118. package/dist/chunks/{location-activity-v62btqwb.js → persistent-pty-bx1t6bcv.js} +11 -11
  119. package/dist/chunks/{location-activity-z3pw5915.js → persistent-pty-c78bbtc9.js} +5 -5
  120. package/dist/chunks/{location-activity-kk00bynn.js → persistent-pty-cavr175a.js} +21 -21
  121. package/dist/chunks/{location-activity-pbt2wvc2.js → persistent-pty-cgkdtpn3.js} +91 -91
  122. package/dist/chunks/{location-activity-svbv6gmn.js → persistent-pty-chwd528f.js} +5 -5
  123. package/dist/chunks/{location-activity-1cdj6zap.js → persistent-pty-cj484d79.js} +10 -10
  124. package/dist/chunks/{location-activity-ckecvw8r.js → persistent-pty-ckecvw8r.js} +2 -2
  125. package/dist/chunks/{location-activity-5xtgfte3.js → persistent-pty-cmwkp3r5.js} +8 -8
  126. package/dist/chunks/{location-activity-h6r3nrb9.js → persistent-pty-cpj0znwe.js} +4 -4
  127. package/dist/chunks/{location-activity-mtft99cd.js → persistent-pty-cr07tj7n.js} +5 -5
  128. package/dist/chunks/{location-activity-fs03v6a5.js → persistent-pty-crhd7pgs.js} +32 -32
  129. package/dist/chunks/{location-activity-cwa6csj7.js → persistent-pty-cwa6csj7.js} +2 -2
  130. package/dist/chunks/{location-activity-5xym3mwn.js → persistent-pty-cwykn6m4.js} +8 -8
  131. package/dist/chunks/{location-activity-8q9aqt0m.js → persistent-pty-d1fh6jb3.js} +30 -30
  132. package/dist/chunks/{location-activity-y97tby9y.js → persistent-pty-d5fc3ham.js} +24 -24
  133. package/dist/chunks/{location-activity-3zk2k76a.js → persistent-pty-d6d69879.js} +14 -14
  134. package/dist/chunks/{location-activity-wk5z6jzv.js → persistent-pty-depwzj9d.js} +9 -9
  135. package/dist/chunks/{location-activity-p88bkwqe.js → persistent-pty-dfnn5kbd.js} +6 -6
  136. package/dist/chunks/{location-activity-64m0avh9.js → persistent-pty-dwj2yfa0.js} +33 -33
  137. package/dist/chunks/{location-activity-88d8aeh9.js → persistent-pty-e8nxqz0t.js} +12 -12
  138. package/dist/chunks/{location-activity-rhjbct0v.js → persistent-pty-eaj1djv9.js} +8 -8
  139. package/dist/chunks/{location-activity-ef5x83kb.js → persistent-pty-ef5x83kb.js} +1 -1
  140. package/dist/chunks/{location-activity-1a7h7hg6.js → persistent-pty-enrp2nyv.js} +29 -29
  141. package/dist/chunks/{location-activity-mhkvc446.js → persistent-pty-eq1pz5kg.js} +3 -3
  142. package/dist/chunks/{location-activity-hdqhacf5.js → persistent-pty-eqtj21ma.js} +13 -13
  143. package/dist/chunks/{location-activity-erw5rpbs.js → persistent-pty-erw5rpbs.js} +2 -2
  144. package/dist/chunks/{location-activity-10v2dx42.js → persistent-pty-et5dj639.js} +28 -28
  145. package/dist/chunks/{location-activity-etq0c3wd.js → persistent-pty-etq0c3wd.js} +1 -1
  146. package/dist/chunks/{location-activity-gmqzj66m.js → persistent-pty-ey7c8yx5.js} +5 -5
  147. package/dist/chunks/{location-activity-fjbdgyv0.js → persistent-pty-f43wcbcr.js} +15 -15
  148. package/dist/chunks/{location-activity-0es2tfcw.js → persistent-pty-f8h9tg4t.js} +4 -4
  149. package/dist/chunks/{location-activity-jjq37edr.js → persistent-pty-fcj2ezqc.js} +21 -21
  150. package/dist/chunks/{location-activity-4y53dyn7.js → persistent-pty-fm4gasdc.js} +32 -32
  151. package/dist/chunks/{location-activity-h7v2zywf.js → persistent-pty-fqeda9mf.js} +24 -24
  152. package/dist/chunks/{location-activity-mrmfm4jn.js → persistent-pty-g58xhhsy.js} +59 -59
  153. package/dist/chunks/{location-activity-ecnjayst.js → persistent-pty-g5r6kmbd.js} +32 -32
  154. package/dist/chunks/{location-activity-fm2qvscf.js → persistent-pty-g8d3gcyj.js} +7 -7
  155. package/dist/chunks/{location-activity-vyrd71eq.js → persistent-pty-g8jasmdt.js} +11 -11
  156. package/dist/chunks/{location-activity-2chqx9tr.js → persistent-pty-g95rc6bm.js} +5 -5
  157. package/dist/chunks/{location-activity-bz5cs7hb.js → persistent-pty-gapsx7my.js} +22 -22
  158. package/dist/chunks/{location-activity-ccvbdpnn.js → persistent-pty-gcftrmma.js} +48 -48
  159. package/dist/chunks/{location-activity-gd4qta3r.js → persistent-pty-gd4qta3r.js} +1 -1
  160. package/dist/chunks/{location-activity-qeknf5da.js → persistent-pty-gd9e8kac.js} +13 -13
  161. package/dist/chunks/{location-activity-qte5z7bc.js → persistent-pty-gg7pg1rj.js} +5 -5
  162. package/dist/chunks/{location-activity-ckr90mrx.js → persistent-pty-ggfg2vv6.js} +7 -7
  163. package/dist/chunks/{location-activity-fatpadhw.js → persistent-pty-gj0qw44p.js} +17 -17
  164. package/dist/chunks/{location-activity-4y72ap3v.js → persistent-pty-gmjq4p6e.js} +12 -12
  165. package/dist/chunks/{location-activity-gv6a8nnw.js → persistent-pty-gv6a8nnw.js} +2 -2
  166. package/dist/chunks/{location-activity-wb3pxeca.js → persistent-pty-gw2tvx6f.js} +11 -11
  167. package/dist/chunks/{location-activity-behw3bfa.js → persistent-pty-gw4e1bwq.js} +36 -36
  168. package/dist/chunks/{location-activity-p4482zcq.js → persistent-pty-gx8rf7xa.js} +11 -11
  169. package/dist/chunks/{location-activity-7gzctjdj.js → persistent-pty-h5crna56.js} +26 -26
  170. package/dist/chunks/{location-activity-8g42ar4x.js → persistent-pty-h663anem.js} +14 -14
  171. package/dist/chunks/{location-activity-h6vf3j39.js → persistent-pty-h6vf3j39.js} +1 -1
  172. package/dist/chunks/persistent-pty-ha2kee0e.js +503 -0
  173. package/dist/chunks/{location-activity-4a6jpjer.js → persistent-pty-hbyhqfhs.js} +5 -5
  174. package/dist/chunks/{location-activity-4pm2eye7.js → persistent-pty-hg9qxph4.js} +11 -11
  175. package/dist/chunks/{location-activity-zybvm9at.js → persistent-pty-hj5k1nvz.js} +53 -53
  176. package/dist/chunks/{location-activity-fqgb9929.js → persistent-pty-hkx3gg44.js} +23 -23
  177. package/dist/chunks/{location-activity-fax74jbg.js → persistent-pty-hm529q5d.js} +26 -26
  178. package/dist/chunks/{location-activity-n12hd8kc.js → persistent-pty-hmn5tmn4.js} +12 -12
  179. package/dist/chunks/{location-activity-9r15s34d.js → persistent-pty-hq8zt1th.js} +6 -6
  180. package/dist/chunks/{location-activity-whxkn9za.js → persistent-pty-hrd0j5f2.js} +9 -9
  181. package/dist/chunks/{location-activity-3z846x89.js → persistent-pty-hxj44d9p.js} +19 -19
  182. package/dist/chunks/{location-activity-j56e64zr.js → persistent-pty-j56e64zr.js} +1 -1
  183. package/dist/chunks/{location-activity-6daacke9.js → persistent-pty-j64w6b8p.js} +37 -37
  184. package/dist/chunks/{location-activity-dwf44vgg.js → persistent-pty-j7kjea59.js} +11 -11
  185. package/dist/chunks/{location-activity-7w3erdpc.js → persistent-pty-j8s0raxh.js} +16 -16
  186. package/dist/chunks/{location-activity-g2yz86wh.js → persistent-pty-jca4demv.js} +2 -2
  187. package/dist/chunks/{location-activity-836zhf6d.js → persistent-pty-jegrsze7.js} +46 -46
  188. package/dist/chunks/{location-activity-tp7kn0et.js → persistent-pty-jgnkgs1r.js} +23 -23
  189. package/dist/chunks/{location-activity-g3nmkaqw.js → persistent-pty-k1sg37e2.js} +4 -4
  190. package/dist/chunks/{location-activity-nzks3jc8.js → persistent-pty-k3c624dm.js} +3 -3
  191. package/dist/chunks/{location-activity-fcq6s37t.js → persistent-pty-k589v2yc.js} +18 -18
  192. package/dist/chunks/{location-activity-2q4nfkpe.js → persistent-pty-kh3ehkc0.js} +4 -4
  193. package/dist/chunks/{location-activity-8cw10g1v.js → persistent-pty-kk3qww5s.js} +25 -25
  194. package/dist/chunks/{location-activity-9kgxvbx6.js → persistent-pty-kqjd1yhv.js} +24 -24
  195. package/dist/chunks/persistent-pty-kx0ks824.js +26 -0
  196. package/dist/chunks/{location-activity-m3fdjcah.js → persistent-pty-m3fdjcah.js} +1 -1
  197. package/dist/chunks/{location-activity-c053cp3c.js → persistent-pty-m6bhc56w.js} +9 -9
  198. package/dist/chunks/{location-activity-m9w0rfyh.js → persistent-pty-m9w0rfyh.js} +1 -1
  199. package/dist/chunks/{location-activity-zknqefwg.js → persistent-pty-mkhen09b.js} +4 -4
  200. package/dist/chunks/{location-activity-7nyb19rs.js → persistent-pty-mncdga5g.js} +3 -3
  201. package/dist/chunks/{location-activity-fbn87bkw.js → persistent-pty-mw5r620c.js} +24 -24
  202. package/dist/chunks/{location-activity-53n6qt1p.js → persistent-pty-mwpvdsq8.js} +20 -20
  203. package/dist/chunks/{location-activity-24p15wdw.js → persistent-pty-n0knvxp1.js} +15 -15
  204. package/dist/chunks/{location-activity-5e61802n.js → persistent-pty-n6881739.js} +37 -37
  205. package/dist/chunks/{location-activity-gr18qpj6.js → persistent-pty-n9z7mj6d.js} +27 -27
  206. package/dist/chunks/{location-activity-ka24zez0.js → persistent-pty-ndmt31ja.js} +10 -10
  207. package/dist/chunks/{location-activity-zftsjsr0.js → persistent-pty-neppcg31.js} +25 -25
  208. package/dist/chunks/{location-activity-2f36c7m0.js → persistent-pty-nmjdsd9n.js} +17 -17
  209. package/dist/chunks/{location-activity-b8nppxcr.js → persistent-pty-p5ntwjzn.js} +11 -11
  210. package/dist/chunks/{location-activity-236f1e7r.js → persistent-pty-pgnaq8k5.js} +38 -38
  211. package/dist/chunks/{location-activity-c70bb0pa.js → persistent-pty-pgxezfdk.js} +5 -5
  212. package/dist/chunks/{location-activity-76ymgwed.js → persistent-pty-ph20cxtq.js} +9 -9
  213. package/dist/chunks/{location-activity-pjvnvgmy.js → persistent-pty-pjvnvgmy.js} +1 -1
  214. package/dist/chunks/{location-activity-pknna89w.js → persistent-pty-pknna89w.js} +1 -1
  215. package/dist/chunks/{location-activity-jkwzgkr9.js → persistent-pty-prpvt0tr.js} +13 -13
  216. package/dist/chunks/{location-activity-smw2y8vg.js → persistent-pty-pz5z3jcr.js} +31 -31
  217. package/dist/chunks/{location-activity-wzyd5y3m.js → persistent-pty-pzgzmqw9.js} +15 -15
  218. package/dist/chunks/{location-activity-x2089t7a.js → persistent-pty-pzwa7kng.js} +12 -12
  219. package/dist/chunks/{location-activity-xkhfjrgz.js → persistent-pty-q3t37ft6.js} +3 -3
  220. package/dist/chunks/{location-activity-5s7bfqn7.js → persistent-pty-q7r8ektg.js} +9 -9
  221. package/dist/chunks/persistent-pty-qapv375x.js +4 -0
  222. package/dist/chunks/{location-activity-qg0jgkcp.js → persistent-pty-qg0jgkcp.js} +2 -2
  223. package/dist/chunks/{location-activity-1956heqa.js → persistent-pty-qp3v07n2.js} +5 -5
  224. package/dist/chunks/{location-activity-qsdy395h.js → persistent-pty-qsdy395h.js} +1 -1
  225. package/dist/chunks/{location-activity-dagkn99r.js → persistent-pty-r3c4069c.js} +1 -1
  226. package/dist/chunks/{location-activity-2731mek4.js → persistent-pty-r4v8qatr.js} +8 -8
  227. package/dist/chunks/{location-activity-hqn4xgxr.js → persistent-pty-r677t44f.js} +33 -33
  228. package/dist/chunks/{location-activity-r8xr0va3.js → persistent-pty-r8xr0va3.js} +1 -1
  229. package/dist/chunks/{location-activity-w5rfyqxq.js → persistent-pty-rbd4k96t.js} +12 -12
  230. package/dist/chunks/{location-activity-d24dxd8m.js → persistent-pty-rcbfacwh.js} +3 -3
  231. package/dist/chunks/{location-activity-rdw6cm16.js → persistent-pty-rdw6cm16.js} +1 -1
  232. package/dist/chunks/{location-activity-e0gazxnh.js → persistent-pty-re89hen7.js} +3 -3
  233. package/dist/chunks/persistent-pty-rh3p3f6n.js +252 -0
  234. package/dist/chunks/{location-activity-e3sczd6z.js → persistent-pty-rqqq06ty.js} +34 -34
  235. package/dist/chunks/{location-activity-c28zwy7s.js → persistent-pty-rvrv9k52.js} +30 -30
  236. package/dist/chunks/{location-activity-m38x0mzz.js → persistent-pty-s1x2d4kw.js} +17 -17
  237. package/dist/chunks/{location-activity-wsbrqcns.js → persistent-pty-s43hhkdm.js} +29 -29
  238. package/dist/chunks/{location-activity-cqpk6xxc.js → persistent-pty-s4ahaey6.js} +7 -7
  239. package/dist/chunks/{location-activity-z4ygwn82.js → persistent-pty-sds13m34.js} +13 -13
  240. package/dist/chunks/{location-activity-4qc8dj0j.js → persistent-pty-sg4wm2jf.js} +43 -43
  241. package/dist/chunks/{location-activity-70drtr9c.js → persistent-pty-sg81b8ak.js} +9 -9
  242. package/dist/chunks/{location-activity-71js08rb.js → persistent-pty-ss4mfvwp.js} +5 -5
  243. package/dist/chunks/{location-activity-3emrmdpg.js → persistent-pty-t4cdje0c.js} +4 -4
  244. package/dist/chunks/{location-activity-2aah0fvx.js → persistent-pty-t7gzm03g.js} +18 -18
  245. package/dist/chunks/{location-activity-wcr2hm3t.js → persistent-pty-t898jj0x.js} +19 -19
  246. package/dist/chunks/{location-activity-7atngb88.js → persistent-pty-t9zs3egg.js} +4 -4
  247. package/dist/chunks/{location-activity-tazgh4e4.js → persistent-pty-tazgh4e4.js} +1 -1
  248. package/dist/chunks/{location-activity-tdstcens.js → persistent-pty-tdstcens.js} +1 -1
  249. package/dist/chunks/{location-activity-kzc3h1h3.js → persistent-pty-tjedn1bk.js} +4 -4
  250. package/dist/chunks/{location-activity-mk16tyfn.js → persistent-pty-tn3aw0th.js} +16 -16
  251. package/dist/chunks/{location-activity-tvtrv512.js → persistent-pty-tvtrv512.js} +1 -1
  252. package/dist/chunks/{location-activity-jp0nqjf8.js → persistent-pty-tw6qbae6.js} +22 -22
  253. package/dist/chunks/{location-activity-veqvce7d.js → persistent-pty-veqvce7d.js} +1 -1
  254. package/dist/chunks/{location-activity-vtxr0yy2.js → persistent-pty-vtxr0yy2.js} +2 -2
  255. package/dist/chunks/{location-activity-vzcthcp8.js → persistent-pty-vzcthcp8.js} +1 -1
  256. package/dist/chunks/{location-activity-w3wsvvr9.js → persistent-pty-w3wsvvr9.js} +1 -1
  257. package/dist/chunks/{location-activity-yf10kn3d.js → persistent-pty-w4scjadp.js} +8 -8
  258. package/dist/chunks/{location-activity-wd3x2cqz.js → persistent-pty-wd3x2cqz.js} +2 -2
  259. package/dist/chunks/{location-activity-wd87259q.js → persistent-pty-wd87259q.js} +1 -1
  260. package/dist/chunks/{location-activity-afvc2aky.js → persistent-pty-wmdbx2q5.js} +22 -22
  261. package/dist/chunks/{location-activity-mvksx64m.js → persistent-pty-wq4mmp7m.js} +4 -4
  262. package/dist/chunks/{location-activity-brv2v0r4.js → persistent-pty-wqb2bwtv.js} +5 -5
  263. package/dist/chunks/{location-activity-x1ezjp6w.js → persistent-pty-x1ezjp6w.js} +1 -1
  264. package/dist/chunks/{location-activity-drpjnptc.js → persistent-pty-x3yd748b.js} +26 -26
  265. package/dist/chunks/{location-activity-yxk4vk0s.js → persistent-pty-xcwzx241.js} +8 -8
  266. package/dist/chunks/{location-activity-gn52kpv9.js → persistent-pty-xe08wmx0.js} +22 -22
  267. package/dist/chunks/{location-activity-drwq78ky.js → persistent-pty-xfkkasph.js} +4 -4
  268. package/dist/chunks/{location-activity-x823bvzs.js → persistent-pty-xj2bvnk1.js} +22 -22
  269. package/dist/chunks/{location-activity-582sg9fj.js → persistent-pty-xq7gw347.js} +46 -46
  270. package/dist/chunks/{location-activity-wstqg5we.js → persistent-pty-xr54qchj.js} +8 -8
  271. package/dist/chunks/{location-activity-akrp5h4r.js → persistent-pty-xw1ps8cb.js} +15 -15
  272. package/dist/chunks/{location-activity-c7aysx03.js → persistent-pty-y170be0p.js} +9 -9
  273. package/dist/chunks/{location-activity-y1fvbwt7.js → persistent-pty-y1fvbwt7.js} +1 -1
  274. package/dist/chunks/{location-activity-13av61qt.js → persistent-pty-y56hh3ws.js} +11 -11
  275. package/dist/chunks/{location-activity-y71avatq.js → persistent-pty-y71avatq.js} +1 -1
  276. package/dist/chunks/{location-activity-bkea2amk.js → persistent-pty-yfj0yy3f.js} +5 -5
  277. package/dist/chunks/{location-activity-z3n139g0.js → persistent-pty-yhnkyc0a.js} +26 -26
  278. package/dist/chunks/{location-activity-1y2fmgax.js → persistent-pty-yjpe6epv.js} +6 -6
  279. package/dist/chunks/{location-activity-yrhqyw5v.js → persistent-pty-yrhqyw5v.js} +1 -1
  280. package/dist/chunks/{location-activity-dk7v1p9q.js → persistent-pty-yrvhhsj7.js} +12 -12
  281. package/dist/chunks/{location-activity-s4enseaf.js → persistent-pty-yrznvahk.js} +2 -2
  282. package/dist/chunks/{location-activity-bq1sg432.js → persistent-pty-yxpsvedr.js} +15 -15
  283. package/dist/chunks/{location-activity-z07pqspn.js → persistent-pty-z07pqspn.js} +3 -3
  284. package/dist/chunks/{location-activity-z0bkrqjs.js → persistent-pty-z0bkrqjs.js} +1 -1
  285. package/dist/chunks/{location-activity-29x78va6.js → persistent-pty-z63w68vq.js} +6 -6
  286. package/dist/chunks/{location-activity-q5asdkn4.js → persistent-pty-zav06jzw.js} +4 -4
  287. package/dist/chunks/{location-activity-zeh9ct20.js → persistent-pty-zeh9ct20.js} +2 -2
  288. package/dist/chunks/{location-activity-s7vga7rn.js → persistent-pty-zhth6nwz.js} +10 -10
  289. package/dist/chunks/{location-activity-zr2ceqn5.js → persistent-pty-zr2ceqn5.js} +1 -1
  290. package/dist/chunks/{location-activity-zxq2ej10.js → persistent-pty-zxq2ej10.js} +1 -1
  291. package/dist/chunks/{location-activity-n5yedvcc.js → persistent-pty-zz56sx2x.js} +13 -13
  292. package/dist/codemode/catalog.js +1 -1
  293. package/dist/codemode/instructions.js +7 -7
  294. package/dist/codemode/tool.js +3 -3
  295. package/dist/codemode/web.js +1 -1
  296. package/dist/command.js +85 -85
  297. package/dist/config/discovery.js +84 -84
  298. package/dist/config/markdown.js +1 -1
  299. package/dist/config/normalize.js +106 -106
  300. package/dist/config/plugin/agent.js +123 -123
  301. package/dist/config/plugin/command.js +212 -212
  302. package/dist/config/plugin/compaction.js +160 -160
  303. package/dist/config/plugin/compatibility.js +141 -141
  304. package/dist/config/plugin/entry-observer.js +1 -1
  305. package/dist/config/plugin/formatter.js +122 -122
  306. package/dist/config/plugin/image.js +123 -123
  307. package/dist/config/plugin/instruction.js +90 -90
  308. package/dist/config/plugin/location-watcher.js +125 -125
  309. package/dist/config/plugin/mcp.js +130 -130
  310. package/dist/config/plugin/policy.js +124 -124
  311. package/dist/config/plugin/provider.js +123 -123
  312. package/dist/config/plugin/reference.js +125 -125
  313. package/dist/config/plugin/shell.js +121 -121
  314. package/dist/config/plugin/skill-file.js +102 -102
  315. package/dist/config/plugin/skill.js +142 -142
  316. package/dist/config/plugin/snapshot.js +123 -123
  317. package/dist/config/plugin/source.js +122 -122
  318. package/dist/config/plugin/tool-output.js +125 -125
  319. package/dist/config/plugin/websearch.js +120 -120
  320. package/dist/config/plugin/worktree.js +125 -125
  321. package/dist/config/variable.js +3 -3
  322. package/dist/config/watch.js +1 -1
  323. package/dist/config.js +128 -128
  324. package/dist/credential/sql.js +2 -2
  325. package/dist/credential.js +85 -85
  326. package/dist/database/database.js +66 -66
  327. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  328. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  329. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  330. package/dist/database/drizzle/index.js +13 -13
  331. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  332. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  333. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  334. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  335. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  336. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  337. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  338. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  339. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  340. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  341. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  342. package/dist/database/drizzle.js +14 -14
  343. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  344. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  345. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  346. package/dist/database/migration/20260225215848_workspace.js +1 -1
  347. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  348. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  349. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  350. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  351. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  352. package/dist/database/migration/20260323234822_events.js +1 -1
  353. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  354. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  355. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  356. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  357. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  358. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  359. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  360. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  361. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  362. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  363. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  364. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  365. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  366. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  367. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  368. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  369. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  370. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  371. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  372. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  373. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  374. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  375. package/dist/database/migration/20260611035744_credential.js +1 -1
  376. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  377. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  378. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  379. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  380. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  381. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  382. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  383. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  384. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  385. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  386. package/dist/database/migration/20260812213948_worktree.js +1 -1
  387. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  388. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  389. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  390. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  391. package/dist/database/migration.gen.js +49 -49
  392. package/dist/database/migration.js +51 -51
  393. package/dist/database/path.js +2 -2
  394. package/dist/database/schema.gen.js +1 -1
  395. package/dist/database/schema.sql.js +1 -1
  396. package/dist/database/sqlite.bun.js +1 -1
  397. package/dist/database/sqlite.js +1 -1
  398. package/dist/database/sqlite.node.js +1 -1
  399. package/dist/database/sqlite.workerd.js +1 -1
  400. package/dist/database/v1-migration.bun.js +76 -76
  401. package/dist/database/v1-migration.js +1 -1
  402. package/dist/effect/app-node-builder.js +370 -370
  403. package/dist/effect/app-node-platform.js +2 -2
  404. package/dist/effect/keyed-mutex.js +1 -1
  405. package/dist/effect/websocket-constructor.js +1 -1
  406. package/dist/environment/driver.js +1 -1
  407. package/dist/environment/environment.js +93 -93
  408. package/dist/environment/exec-defaults.js +2 -2
  409. package/dist/environment/files.js +1 -1
  410. package/dist/environment/index.js +93 -93
  411. package/dist/environment/local.js +2 -2
  412. package/dist/environment/memory.js +2 -2
  413. package/dist/environment/unavailable.js +1 -1
  414. package/dist/event/sql.js +1 -1
  415. package/dist/event-logger.js +70 -70
  416. package/dist/file-access.js +104 -104
  417. package/dist/file-mutation.js +94 -94
  418. package/dist/file-retention.js +1 -1
  419. package/dist/file.js +1 -1
  420. package/dist/filesystem/fff.bun.js +2 -2
  421. package/dist/filesystem/fff.js +1 -1
  422. package/dist/filesystem/fff.node.js +2 -2
  423. package/dist/filesystem/fff.workerd.js +2 -2
  424. package/dist/filesystem/ignore.js +1 -1
  425. package/dist/filesystem/location-watcher-policy.js +2 -2
  426. package/dist/filesystem/location-watcher.js +227 -227
  427. package/dist/filesystem/protected.js +3 -3
  428. package/dist/filesystem/search.js +103 -103
  429. package/dist/filesystem/watcher-binding.js +3 -3
  430. package/dist/filesystem/watcher.js +15 -15
  431. package/dist/filesystem.js +108 -108
  432. package/dist/form.js +86 -86
  433. package/dist/formatter/builtins.js +4 -4
  434. package/dist/formatter.js +87 -87
  435. package/dist/generate.js +103 -103
  436. package/dist/git.js +10 -10
  437. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  438. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  439. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  440. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  441. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  442. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  443. package/dist/github-copilot/copilot-provider.js +17 -17
  444. package/dist/github-copilot/models.js +91 -91
  445. package/dist/github-copilot/openai-compatible-error.js +1 -1
  446. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  447. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  448. package/dist/github-copilot/responses/openai-error.js +1 -1
  449. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  450. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  451. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  452. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  453. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  454. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  455. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  456. package/dist/id/id.js +1 -1
  457. package/dist/image/photon.js +2 -2
  458. package/dist/image.js +6 -6
  459. package/dist/instance/service.js +5 -5
  460. package/dist/instance.js +361 -361
  461. package/dist/instruction-discovery.js +85 -85
  462. package/dist/instructions/builtins.js +87 -87
  463. package/dist/instructions/index.js +5 -5
  464. package/dist/integration/connection.js +3 -3
  465. package/dist/integration.js +86 -86
  466. package/dist/job.js +77 -77
  467. package/dist/kv/sql.js +2 -2
  468. package/dist/kv.js +73 -73
  469. package/dist/location-activity.js +132 -132
  470. package/dist/location-lifecycle.js +107 -107
  471. package/dist/location-mutation.js +104 -104
  472. package/dist/location-service-map.js +86 -86
  473. package/dist/location-services.js +358 -358
  474. package/dist/location.js +85 -85
  475. package/dist/managed-policy.js +5 -5
  476. package/dist/mcp/client.js +91 -91
  477. package/dist/mcp/index.js +102 -102
  478. package/dist/mcp/instructions.js +126 -126
  479. package/dist/mcp/oauth.js +78 -78
  480. package/dist/mcp/stdio.js +90 -90
  481. package/dist/mime.js +1 -1
  482. package/dist/modal/models.js +91 -91
  483. package/dist/model-resolver.js +98 -98
  484. package/dist/model.js +100 -100
  485. package/dist/models-dev.js +107 -107
  486. package/dist/oauth/page.js +1 -1
  487. package/dist/permission/saved.js +80 -80
  488. package/dist/permission/sql.js +5 -5
  489. package/dist/permission.js +117 -117
  490. package/dist/persistent-pty/binary.bun.js +1 -1
  491. package/dist/persistent-pty/daemon.js +1 -1
  492. package/dist/persistent-pty/index.js +88 -88
  493. package/dist/persistent-pty/pty-binding.js +1 -1
  494. package/dist/persistent-pty.js +75 -75
  495. package/dist/plugin/agent.js +102 -102
  496. package/dist/plugin/command.js +99 -99
  497. package/dist/plugin/compaction.js +131 -131
  498. package/dist/plugin/hooks.js +5 -5
  499. package/dist/plugin/host.js +218 -218
  500. package/dist/plugin/identity.js +3 -3
  501. package/dist/plugin/instance.js +5 -5
  502. package/dist/plugin/internal.js +332 -332
  503. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  504. package/dist/plugin/models-dev.js +96 -96
  505. package/dist/plugin/module.js +7 -7
  506. package/dist/plugin/optimize.js +2 -2
  507. package/dist/plugin/plan.js +102 -102
  508. package/dist/plugin/promise.js +1 -1
  509. package/dist/plugin/provider/amazon-bedrock.js +90 -90
  510. package/dist/plugin/provider/azure.js +122 -122
  511. package/dist/plugin/provider/cerebras.js +1 -1
  512. package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
  513. package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
  514. package/dist/plugin/provider/cohere.js +2 -2
  515. package/dist/plugin/provider/configured.js +119 -119
  516. package/dist/plugin/provider/digitalocean.js +93 -93
  517. package/dist/plugin/provider/dynamic.js +2 -2
  518. package/dist/plugin/provider/factory.js +1 -1
  519. package/dist/plugin/provider/gateway.js +2 -2
  520. package/dist/plugin/provider/github-copilot.js +93 -93
  521. package/dist/plugin/provider/gitlab.js +91 -91
  522. package/dist/plugin/provider/google-vertex.js +90 -90
  523. package/dist/plugin/provider/kilo.js +1 -1
  524. package/dist/plugin/provider/llmgateway.js +77 -77
  525. package/dist/plugin/provider/lmstudio.js +120 -120
  526. package/dist/plugin/provider/modal.js +92 -92
  527. package/dist/plugin/provider/nvidia.js +1 -1
  528. package/dist/plugin/provider/ollama.js +122 -122
  529. package/dist/plugin/provider/openai.js +92 -92
  530. package/dist/plugin/provider/opencode.js +95 -94
  531. package/dist/plugin/provider/openrouter.js +91 -91
  532. package/dist/plugin/provider/perplexity.js +2 -2
  533. package/dist/plugin/provider/poe.js +78 -78
  534. package/dist/plugin/provider/prompt-cache-key.js +90 -90
  535. package/dist/plugin/provider/sap-ai-core.js +91 -91
  536. package/dist/plugin/provider/sdk-factory.js +1 -1
  537. package/dist/plugin/provider/snowflake-cortex.js +122 -122
  538. package/dist/plugin/provider/venice.js +2 -2
  539. package/dist/plugin/provider/vercel.js +90 -90
  540. package/dist/plugin/provider/vllm.js +122 -122
  541. package/dist/plugin/provider/xai.js +91 -91
  542. package/dist/plugin/provider/zenmux.js +1 -1
  543. package/dist/plugin/provider.js +160 -160
  544. package/dist/plugin/sdk.js +74 -74
  545. package/dist/plugin/service.js +3 -3
  546. package/dist/plugin/skill.js +141 -141
  547. package/dist/plugin/source-directory.js +1 -1
  548. package/dist/plugin/supervisor.js +347 -347
  549. package/dist/plugin/tool-input-repair.js +4 -4
  550. package/dist/plugin/update.js +6 -6
  551. package/dist/plugin/vcs/git.js +86 -86
  552. package/dist/plugin/vcs/hg.js +86 -86
  553. package/dist/plugin/warming.js +121 -121
  554. package/dist/plugin/websearch/exa.js +5 -5
  555. package/dist/plugin/websearch/firecrawl.js +6 -6
  556. package/dist/plugin/websearch/index.js +9 -9
  557. package/dist/plugin/websearch/mcp.js +4 -4
  558. package/dist/plugin/websearch/parallel.js +6 -6
  559. package/dist/plugin/websearch/tavily.js +4 -4
  560. package/dist/plugin/websearch/tinyfish.js +6 -6
  561. package/dist/plugin.js +229 -229
  562. package/dist/project/schema.js +4 -4
  563. package/dist/project/sql.js +4 -4
  564. package/dist/project.js +84 -84
  565. package/dist/provider.js +101 -101
  566. package/dist/pty/protocol.js +1 -1
  567. package/dist/pty/schema.js +3 -3
  568. package/dist/pty/ticket.js +1 -1
  569. package/dist/pty.js +98 -98
  570. package/dist/reference/instructions.js +89 -89
  571. package/dist/reference.js +89 -89
  572. package/dist/repository-cache.js +81 -81
  573. package/dist/repository.js +1 -1
  574. package/dist/ripgrep/binary.js +2 -2
  575. package/dist/ripgrep.js +97 -97
  576. package/dist/rpc.js +86 -86
  577. package/dist/schema.js +1 -1
  578. package/dist/session/command.js +74 -74
  579. package/dist/session/compaction.js +134 -134
  580. package/dist/session/context.js +152 -152
  581. package/dist/session/diff.js +88 -88
  582. package/dist/session/environment.js +5 -5
  583. package/dist/session/error.js +7 -7
  584. package/dist/session/event.js +1 -1
  585. package/dist/session/execution/restart.js +221 -221
  586. package/dist/session/execution.js +126 -126
  587. package/dist/session/generate.js +151 -151
  588. package/dist/session/history.js +15 -15
  589. package/dist/session/inbox.js +88 -88
  590. package/dist/session/info.js +3 -3
  591. package/dist/session/instruction-entry.js +79 -79
  592. package/dist/session/instruction-state.js +8 -8
  593. package/dist/session/instructions.js +93 -93
  594. package/dist/session/message-updater.js +2 -2
  595. package/dist/session/message.js +1 -1
  596. package/dist/session/model-request.js +117 -117
  597. package/dist/session/model-transport.js +7 -7
  598. package/dist/session/move.js +130 -130
  599. package/dist/session/projector.js +86 -86
  600. package/dist/session/prompt.js +105 -105
  601. package/dist/session/provider-context.js +3 -3
  602. package/dist/session/revert.js +90 -90
  603. package/dist/session/run-coordinator.js +1 -1
  604. package/dist/session/runner/index.js +3 -3
  605. package/dist/session/runner/llm.js +229 -229
  606. package/dist/session/runner/max-steps.js +1 -1
  607. package/dist/session/runner/model.js +98 -98
  608. package/dist/session/runner/publish-llm-event.js +3 -3
  609. package/dist/session/runner/retry.js +112 -112
  610. package/dist/session/runner/step.js +124 -124
  611. package/dist/session/runner/to-llm-message.js +2 -2
  612. package/dist/session/schema.js +5 -5
  613. package/dist/session/session.js +172 -172
  614. package/dist/session/shell.js +138 -138
  615. package/dist/session/skill.js +103 -103
  616. package/dist/session/sql.js +5 -5
  617. package/dist/session/stats.js +73 -73
  618. package/dist/session/store.js +85 -85
  619. package/dist/session/subagent-completion.js +1 -1
  620. package/dist/session/subagent-job.js +210 -210
  621. package/dist/session/system-prompt.js +3 -3
  622. package/dist/session/title.js +150 -150
  623. package/dist/session/to-session-error.js +111 -111
  624. package/dist/session/transfer.js +217 -217
  625. package/dist/session/usage.js +1 -1
  626. package/dist/session.js +220 -220
  627. package/dist/shell/parse.js +6 -6
  628. package/dist/shell/result.js +1 -1
  629. package/dist/shell/scan.js +1 -1
  630. package/dist/shell/select.js +15 -15
  631. package/dist/shell.js +140 -140
  632. package/dist/skill/discovery.js +2 -2
  633. package/dist/skill/instructions.js +107 -107
  634. package/dist/skill.js +112 -112
  635. package/dist/snapshot.js +87 -87
  636. package/dist/state.js +1 -1
  637. package/dist/tool/html-markdown.js +1 -1
  638. package/dist/tool/http-body.js +1 -1
  639. package/dist/tool/mcp.js +123 -123
  640. package/dist/tool/plugin/edit.js +120 -120
  641. package/dist/tool/plugin/file-diff.js +1 -1
  642. package/dist/tool/plugin/glob.js +120 -120
  643. package/dist/tool/plugin/grep.js +124 -124
  644. package/dist/tool/plugin/opencode.js +3 -3
  645. package/dist/tool/plugin/patch.js +122 -122
  646. package/dist/tool/plugin/question.js +103 -103
  647. package/dist/tool/plugin/read.js +125 -125
  648. package/dist/tool/plugin/shell.js +215 -215
  649. package/dist/tool/plugin/skill.js +113 -113
  650. package/dist/tool/plugin/subagent.js +219 -219
  651. package/dist/tool/plugin/webfetch.js +110 -110
  652. package/dist/tool/plugin/websearch.js +112 -112
  653. package/dist/tool/plugin/write.js +122 -122
  654. package/dist/tool/read-filesystem.js +96 -96
  655. package/dist/tool/runtime.js +1 -1
  656. package/dist/tool-output.js +8 -8
  657. package/dist/tool.js +16 -16
  658. package/dist/util/error-summary.js +1 -1
  659. package/dist/util/error.js +1 -1
  660. package/dist/util/git-executable.js +2 -2
  661. package/dist/util/iife.js +1 -1
  662. package/dist/util/lazy.js +1 -1
  663. package/dist/util/slug.js +1 -1
  664. package/dist/util/token.js +1 -1
  665. package/dist/util/which.js +1 -1
  666. package/dist/util/wildcard.js +1 -1
  667. package/dist/v1/config/agent.js +7 -7
  668. package/dist/v1/config/attachment.js +4 -4
  669. package/dist/v1/config/command.js +5 -5
  670. package/dist/v1/config/config.js +16 -16
  671. package/dist/v1/config/error.js +4 -4
  672. package/dist/v1/config/formatter.js +5 -5
  673. package/dist/v1/config/layout.js +1 -1
  674. package/dist/v1/config/lsp.js +5 -5
  675. package/dist/v1/config/mcp.js +4 -4
  676. package/dist/v1/config/migrate.js +92 -92
  677. package/dist/v1/config/permission.js +7 -7
  678. package/dist/v1/config/plugin.js +3 -3
  679. package/dist/v1/config/provider-options.js +1 -1
  680. package/dist/v1/config/provider.js +4 -4
  681. package/dist/v1/config/server.js +2 -2
  682. package/dist/v1/config/skills.js +3 -3
  683. package/dist/v1/permission.js +1 -1
  684. package/dist/variant.js +93 -93
  685. package/dist/vcs/patch.js +1 -1
  686. package/dist/vcs.js +89 -89
  687. package/dist/websearch.js +84 -84
  688. package/dist/wellknown/plugin.js +76 -76
  689. package/dist/wellknown.js +79 -79
  690. package/dist/workspace/driver.js +7 -7
  691. package/dist/workspace/sql.js +1 -1
  692. package/dist/workspace.js +80 -80
  693. package/dist/worktree/directory.js +2 -2
  694. package/dist/worktree/git.js +10 -10
  695. package/dist/worktree/sql.js +5 -5
  696. package/dist/worktree/strategies.js +89 -89
  697. package/dist/worktree.js +98 -98
  698. package/package.json +8 -8
  699. package/dist/chunks/location-activity-0mesazry.js +0 -4
  700. package/dist/chunks/location-activity-pf31ssb9.js +0 -18
  701. package/dist/chunks/location-activity-qshf7d4c.js +0 -26
  702. package/dist/chunks/location-activity-t6wa9c33.js +0 -252
  703. package/dist/chunks/location-activity-xayf782d.js +0 -503
  704. /package/dist/chunks/{location-activity-0qkdqm5v.js → persistent-pty-0qkdqm5v.js} +0 -0
  705. /package/dist/chunks/{location-activity-0zkw76rk.js → persistent-pty-0zkw76rk.js} +0 -0
  706. /package/dist/chunks/{location-activity-17cy0kzp.js → persistent-pty-17cy0kzp.js} +0 -0
  707. /package/dist/chunks/{location-activity-1cnp2v09.js → persistent-pty-1cnp2v09.js} +0 -0
  708. /package/dist/chunks/{location-activity-1kg9ymc8.js → persistent-pty-1kg9ymc8.js} +0 -0
  709. /package/dist/chunks/{location-activity-24dcb14g.js → persistent-pty-24dcb14g.js} +0 -0
  710. /package/dist/chunks/{location-activity-2710q6r3.js → persistent-pty-2710q6r3.js} +0 -0
  711. /package/dist/chunks/{location-activity-2axfhc9x.js → persistent-pty-2axfhc9x.js} +0 -0
  712. /package/dist/chunks/{location-activity-2c3vjs8z.js → persistent-pty-2c3vjs8z.js} +0 -0
  713. /package/dist/chunks/{location-activity-34c7v6d4.js → persistent-pty-34c7v6d4.js} +0 -0
  714. /package/dist/chunks/{location-activity-359p4xyc.js → persistent-pty-359p4xyc.js} +0 -0
  715. /package/dist/chunks/{location-activity-3asan66x.js → persistent-pty-3asan66x.js} +0 -0
  716. /package/dist/chunks/{location-activity-3v8g72cx.js → persistent-pty-3v8g72cx.js} +0 -0
  717. /package/dist/chunks/{location-activity-3w5fmr99.js → persistent-pty-3w5fmr99.js} +0 -0
  718. /package/dist/chunks/{location-activity-3wcehsnq.js → persistent-pty-3wcehsnq.js} +0 -0
  719. /package/dist/chunks/{location-activity-43n2bw4t.js → persistent-pty-43n2bw4t.js} +0 -0
  720. /package/dist/chunks/{location-activity-4knz6hnm.js → persistent-pty-4knz6hnm.js} +0 -0
  721. /package/dist/chunks/{location-activity-4vcrnpx2.js → persistent-pty-4vcrnpx2.js} +0 -0
  722. /package/dist/chunks/{location-activity-4y7fprxs.js → persistent-pty-4y7fprxs.js} +0 -0
  723. /package/dist/chunks/{location-activity-53557ph1.js → persistent-pty-53557ph1.js} +0 -0
  724. /package/dist/chunks/{location-activity-550bvhaj.js → persistent-pty-550bvhaj.js} +0 -0
  725. /package/dist/chunks/{location-activity-6prwharc.js → persistent-pty-6prwharc.js} +0 -0
  726. /package/dist/chunks/{location-activity-7akdwqpd.js → persistent-pty-7akdwqpd.js} +0 -0
  727. /package/dist/chunks/{location-activity-7m9af43g.js → persistent-pty-7m9af43g.js} +0 -0
  728. /package/dist/chunks/{location-activity-822emrt2.js → persistent-pty-822emrt2.js} +0 -0
  729. /package/dist/chunks/{location-activity-88xbtdfr.js → persistent-pty-88xbtdfr.js} +0 -0
  730. /package/dist/chunks/{location-activity-8n3pysct.js → persistent-pty-8n3pysct.js} +0 -0
  731. /package/dist/chunks/{location-activity-8wj87zfr.js → persistent-pty-8wj87zfr.js} +0 -0
  732. /package/dist/chunks/{location-activity-922hggd3.js → persistent-pty-922hggd3.js} +0 -0
  733. /package/dist/chunks/{location-activity-9a4afbnw.js → persistent-pty-9a4afbnw.js} +0 -0
  734. /package/dist/chunks/{location-activity-9rqn6x4v.js → persistent-pty-9rqn6x4v.js} +0 -0
  735. /package/dist/chunks/{location-activity-a6k6eb26.js → persistent-pty-a6k6eb26.js} +0 -0
  736. /package/dist/chunks/{location-activity-af5trqkr.js → persistent-pty-af5trqkr.js} +0 -0
  737. /package/dist/chunks/{location-activity-afrmfg78.js → persistent-pty-afrmfg78.js} +0 -0
  738. /package/dist/chunks/{location-activity-aqzs7mqg.js → persistent-pty-aqzs7mqg.js} +0 -0
  739. /package/dist/chunks/{location-activity-atq7p7m5.js → persistent-pty-atq7p7m5.js} +0 -0
  740. /package/dist/chunks/{location-activity-bkyjaxrp.js → persistent-pty-bkyjaxrp.js} +0 -0
  741. /package/dist/chunks/{location-activity-bmr6ed5q.js → persistent-pty-bmr6ed5q.js} +0 -0
  742. /package/dist/chunks/{location-activity-cf4snx6d.js → persistent-pty-cf4snx6d.js} +0 -0
  743. /package/dist/chunks/{location-activity-cvy3z8tj.js → persistent-pty-cvy3z8tj.js} +0 -0
  744. /package/dist/chunks/{location-activity-d9fn303g.js → persistent-pty-d9fn303g.js} +0 -0
  745. /package/dist/chunks/{location-activity-d9jj8t3e.js → persistent-pty-d9jj8t3e.js} +0 -0
  746. /package/dist/chunks/{location-activity-dajrwvna.js → persistent-pty-dajrwvna.js} +0 -0
  747. /package/dist/chunks/{location-activity-dap0rakb.js → persistent-pty-dap0rakb.js} +0 -0
  748. /package/dist/chunks/{location-activity-df08tz66.js → persistent-pty-df08tz66.js} +0 -0
  749. /package/dist/chunks/{location-activity-dy18nga0.js → persistent-pty-dy18nga0.js} +0 -0
  750. /package/dist/chunks/{location-activity-e5kj55wp.js → persistent-pty-e5kj55wp.js} +0 -0
  751. /package/dist/chunks/{location-activity-e73j6tqm.js → persistent-pty-e73j6tqm.js} +0 -0
  752. /package/dist/chunks/{location-activity-ec1grn59.js → persistent-pty-ec1grn59.js} +0 -0
  753. /package/dist/chunks/{location-activity-eh3zwz77.js → persistent-pty-eh3zwz77.js} +0 -0
  754. /package/dist/chunks/{location-activity-emrn6kk6.js → persistent-pty-emrn6kk6.js} +0 -0
  755. /package/dist/chunks/{location-activity-f0mxakyp.js → persistent-pty-f0mxakyp.js} +0 -0
  756. /package/dist/chunks/{location-activity-f6n9ztr4.js → persistent-pty-f6n9ztr4.js} +0 -0
  757. /package/dist/chunks/{location-activity-faypxj3z.js → persistent-pty-faypxj3z.js} +0 -0
  758. /package/dist/chunks/{location-activity-fd410y7t.js → persistent-pty-fd410y7t.js} +0 -0
  759. /package/dist/chunks/{location-activity-fxgpk5d8.js → persistent-pty-fxgpk5d8.js} +0 -0
  760. /package/dist/chunks/{location-activity-g4wezp1m.js → persistent-pty-g4wezp1m.js} +0 -0
  761. /package/dist/chunks/{location-activity-g86h250q.js → persistent-pty-g86h250q.js} +0 -0
  762. /package/dist/chunks/{location-activity-gebd4c9n.js → persistent-pty-gebd4c9n.js} +0 -0
  763. /package/dist/chunks/{location-activity-gftt206x.js → persistent-pty-gftt206x.js} +0 -0
  764. /package/dist/chunks/{location-activity-hjbc5kem.js → persistent-pty-hjbc5kem.js} +0 -0
  765. /package/dist/chunks/{location-activity-hk9envan.js → persistent-pty-hk9envan.js} +0 -0
  766. /package/dist/chunks/{location-activity-j2ntwpah.js → persistent-pty-j2ntwpah.js} +0 -0
  767. /package/dist/chunks/{location-activity-j5zkgpj8.js → persistent-pty-j5zkgpj8.js} +0 -0
  768. /package/dist/chunks/{location-activity-jjkms2e6.js → persistent-pty-jjkms2e6.js} +0 -0
  769. /package/dist/chunks/{location-activity-jr7sbwjy.js → persistent-pty-jr7sbwjy.js} +0 -0
  770. /package/dist/chunks/{location-activity-jwfs4k6c.js → persistent-pty-jwfs4k6c.js} +0 -0
  771. /package/dist/chunks/{location-activity-jzg6c2d5.js → persistent-pty-jzg6c2d5.js} +0 -0
  772. /package/dist/chunks/{location-activity-mp448xyj.js → persistent-pty-mp448xyj.js} +0 -0
  773. /package/dist/chunks/{location-activity-msx8hqn2.js → persistent-pty-msx8hqn2.js} +0 -0
  774. /package/dist/chunks/{location-activity-n05xt0ee.js → persistent-pty-n05xt0ee.js} +0 -0
  775. /package/dist/chunks/{location-activity-n3j8tn72.js → persistent-pty-n3j8tn72.js} +0 -0
  776. /package/dist/chunks/{location-activity-njntx4h6.js → persistent-pty-njntx4h6.js} +0 -0
  777. /package/dist/chunks/{location-activity-q3sfg36h.js → persistent-pty-q3sfg36h.js} +0 -0
  778. /package/dist/chunks/{location-activity-q74kybfr.js → persistent-pty-q74kybfr.js} +0 -0
  779. /package/dist/chunks/{location-activity-qaymkmh1.js → persistent-pty-qaymkmh1.js} +0 -0
  780. /package/dist/chunks/{location-activity-qb87gjwd.js → persistent-pty-qb87gjwd.js} +0 -0
  781. /package/dist/chunks/{location-activity-qfa1cgps.js → persistent-pty-qfa1cgps.js} +0 -0
  782. /package/dist/chunks/{location-activity-qg3g05ea.js → persistent-pty-qg3g05ea.js} +0 -0
  783. /package/dist/chunks/{location-activity-qrg20bc0.js → persistent-pty-qrg20bc0.js} +0 -0
  784. /package/dist/chunks/{location-activity-rcb2kzg1.js → persistent-pty-rcb2kzg1.js} +0 -0
  785. /package/dist/chunks/{location-activity-sdp7kfr6.js → persistent-pty-sdp7kfr6.js} +0 -0
  786. /package/dist/chunks/{location-activity-sk3qaz4a.js → persistent-pty-sk3qaz4a.js} +0 -0
  787. /package/dist/chunks/{location-activity-ssg3fenm.js → persistent-pty-ssg3fenm.js} +0 -0
  788. /package/dist/chunks/{location-activity-w803qqfp.js → persistent-pty-w803qqfp.js} +0 -0
  789. /package/dist/chunks/{location-activity-wc3fc9cn.js → persistent-pty-wc3fc9cn.js} +0 -0
  790. /package/dist/chunks/{location-activity-wer8tq1h.js → persistent-pty-wer8tq1h.js} +0 -0
  791. /package/dist/chunks/{location-activity-wtztk69x.js → persistent-pty-wtztk69x.js} +0 -0
  792. /package/dist/chunks/{location-activity-x0ckcb58.js → persistent-pty-x0ckcb58.js} +0 -0
  793. /package/dist/chunks/{location-activity-x61499pn.js → persistent-pty-x61499pn.js} +0 -0
  794. /package/dist/chunks/{location-activity-y44na4kk.js → persistent-pty-y44na4kk.js} +0 -0
  795. /package/dist/chunks/{location-activity-y8cydn3q.js → persistent-pty-y8cydn3q.js} +0 -0
  796. /package/dist/chunks/{location-activity-y8f7s663.js → persistent-pty-y8f7s663.js} +0 -0
  797. /package/dist/chunks/{location-activity-ygaqb7jw.js → persistent-pty-ygaqb7jw.js} +0 -0
  798. /package/dist/chunks/{location-activity-ym463w8f.js → persistent-pty-ym463w8f.js} +0 -0
  799. /package/dist/chunks/{location-activity-z9919s4g.js → persistent-pty-z9919s4g.js} +0 -0
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./location-activity-922hggd3.js";
3
+ } from "./persistent-pty-922hggd3.js";
4
4
  import {
5
5
  root2
6
- } from "./location-activity-9kgxvbx6.js";
6
+ } from "./persistent-pty-kqjd1yhv.js";
7
7
  import {
8
- Service78,
9
- node82
10
- } from "./location-activity-615m6gz1.js";
8
+ Service80,
9
+ node84
10
+ } from "./persistent-pty-4k8me329.js";
11
11
  import {
12
- Service60,
13
- node63
14
- } from "./location-activity-mrmfm4jn.js";
12
+ Service74,
13
+ node78
14
+ } from "./persistent-pty-g58xhhsy.js";
15
15
  import {
16
16
  __export
17
- } from "./location-activity-9rqn6x4v.js";
17
+ } from "./persistent-pty-9rqn6x4v.js";
18
18
 
19
19
  // src/file-access.ts
20
20
  var exports_file_access = {};
@@ -22,9 +22,9 @@ __export(exports_file_access, {
22
22
  FileAccess: () => exports_file_access,
23
23
  Kind: () => Kind2,
24
24
  ResolveInput: () => ResolveInput2,
25
- Service: () => Service48,
25
+ Service: () => Service73,
26
26
  externalDirectoryPermission: () => externalDirectoryPermission2,
27
- node: () => node52,
27
+ node: () => node77,
28
28
  resolvePath: () => resolvePath2
29
29
  });
30
30
  import { makeLocationNode } from "@opencode/util/effect/app-node";
@@ -43,7 +43,7 @@ var externalDirectoryPermission2 = (input) => ({
43
43
  save: [input.save]
44
44
  });
45
45
 
46
- class Service48 extends Context.Service()("@opencode/FileAccess") {
46
+ class Service73 extends Context.Service()("@opencode/FileAccess") {
47
47
  }
48
48
  var resolvePath2 = (directory, input, home = Global.Path.home) => {
49
49
  const normalized = FSUtil.windowsPath(input);
@@ -55,10 +55,10 @@ var invocation = (context) => ({
55
55
  agent: context.agent,
56
56
  source: { type: "tool", messageID: context.messageID, id: context.id }
57
57
  });
58
- var layer = Layer.effect(Service48, Effect.gen(function* () {
58
+ var layer = Layer.effect(Service73, Effect.gen(function* () {
59
59
  const fs = yield* FSUtil.Service;
60
- const location = yield* Service78;
61
- const permission = yield* Service60;
60
+ const location = yield* Service80;
61
+ const permission = yield* Service74;
62
62
  const resolve = Effect.fn("FileAccess.resolve")(function* (input) {
63
63
  const absolute = AbsolutePath2.make(resolvePath2(location.directory, input.path));
64
64
  const worktree = path.resolve(location.project.directory);
@@ -107,8 +107,8 @@ var layer = Layer.effect(Service48, Effect.gen(function* () {
107
107
  });
108
108
  return target;
109
109
  });
110
- return Service48.of({ resolve, authorizeExternal, authorizeRead });
110
+ return Service73.of({ resolve, authorizeExternal, authorizeRead });
111
111
  }));
112
- var node52 = makeLocationNode({ service: Service48, layer, deps: [FSUtil.node, node82, node63] });
112
+ var node77 = makeLocationNode({ service: Service73, layer, deps: [FSUtil.node, node84, node78] });
113
113
 
114
- export { Kind2, ResolveInput2, externalDirectoryPermission2, Service48, resolvePath2, node52, exports_file_access };
114
+ export { Kind2, ResolveInput2, externalDirectoryPermission2, Service73, resolvePath2, node77, exports_file_access };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  jitCompatCheck2
3
- } from "./location-activity-emrn6kk6.js";
3
+ } from "./persistent-pty-emrn6kk6.js";
4
4
  import {
5
5
  SQLiteEffectDatabase2
6
- } from "./location-activity-cqpk6xxc.js";
6
+ } from "./persistent-pty-s4ahaey6.js";
7
7
  import {
8
8
  EffectSQLiteSession2
9
- } from "./location-activity-j97cmbc7.js";
9
+ } from "./persistent-pty-2g96k7vx.js";
10
10
 
11
11
  // src/database/drizzle/effect-sqlite/driver.ts
12
12
  import * as Effect from "effect/Effect";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  useragent2
3
- } from "./location-activity-v62btqwb.js";
3
+ } from "./persistent-pty-bx1t6bcv.js";
4
4
  import {
5
5
  call2
6
- } from "./location-activity-33w4ejhs.js";
6
+ } from "./persistent-pty-1ygqh575.js";
7
7
  import {
8
8
  __export
9
- } from "./location-activity-9rqn6x4v.js";
9
+ } from "./persistent-pty-9rqn6x4v.js";
10
10
 
11
11
  // src/plugin/websearch/firecrawl.ts
12
12
  var exports_firecrawl = {};
13
13
  __export(exports_firecrawl, {
14
- Plugin: () => Plugin17,
14
+ Plugin: () => Plugin5,
15
15
  WebSearchFirecrawl: () => exports_firecrawl,
16
16
  endpoint: () => endpoint4
17
17
  });
@@ -37,7 +37,7 @@ var SearchResponse = Schema.fromJsonString(Schema.Struct({
37
37
  })
38
38
  }));
39
39
  var decodeSearchResponse = Schema.decodeUnknownOption(SearchResponse);
40
- var Plugin17 = define({
40
+ var Plugin5 = define({
41
41
  id: "opencode.websearch.firecrawl",
42
42
  effect: Effect.fn("WebSearchFirecrawl.Plugin")(function* (ctx) {
43
43
  const http = yield* HttpClient.HttpClient;
@@ -77,4 +77,4 @@ var Plugin17 = define({
77
77
  })
78
78
  });
79
79
 
80
- export { endpoint4, Plugin17, exports_firecrawl };
80
+ export { endpoint4, Plugin5, exports_firecrawl };
@@ -1,10 +1,10 @@
1
1
  import {
2
- Service79,
3
- node83
4
- } from "./location-activity-9kgxvbx6.js";
2
+ Service81,
3
+ node85
4
+ } from "./persistent-pty-kqjd1yhv.js";
5
5
  import {
6
6
  __export
7
- } from "./location-activity-9rqn6x4v.js";
7
+ } from "./persistent-pty-9rqn6x4v.js";
8
8
 
9
9
  // src/location.ts
10
10
  var exports_location = {};
@@ -12,22 +12,22 @@ __export(exports_location, {
12
12
  Info: () => Info32,
13
13
  Location: () => exports_location,
14
14
  Ref: () => Ref4,
15
- Service: () => Service78,
15
+ Service: () => Service80,
16
16
  boundNode: () => boundNode2,
17
- node: () => node82,
17
+ node: () => node84,
18
18
  response: () => response2
19
19
  });
20
20
  import { Context, Effect, Layer } from "effect";
21
21
  import { Info as Info32, Ref as Ref4, response as response2 } from "@opencode/schema/location";
22
22
  import { LayerNode } from "@opencode/util/effect/layer-node";
23
23
  import { makeLocationNode, tags } from "@opencode/util/effect/app-node";
24
- class Service78 extends Context.Service()("@opencode/Location") {
24
+ class Service80 extends Context.Service()("@opencode/Location") {
25
25
  }
26
- var node82 = LayerNode.unbound(Service78, tags.values.location);
27
- var layer = (ref, options) => Layer.effect(Service78, Effect.gen(function* () {
28
- const project = yield* Service79;
26
+ var node84 = LayerNode.unbound(Service80, tags.values.location);
27
+ var layer = (ref, options) => Layer.effect(Service80, Effect.gen(function* () {
28
+ const project = yield* Service81;
29
29
  const resolved = yield* project.resolve(ref.directory, options);
30
- return Service78.of({
30
+ return Service80.of({
31
31
  directory: ref.directory,
32
32
  workspaceID: ref.workspaceID,
33
33
  project: { id: resolved.id, directory: resolved.directory, canonical: resolved.canonical },
@@ -35,9 +35,9 @@ var layer = (ref, options) => Layer.effect(Service78, Effect.gen(function* () {
35
35
  });
36
36
  }));
37
37
  var boundNode2 = (ref, options) => makeLocationNode({
38
- service: Service78,
38
+ service: Service80,
39
39
  layer: layer(ref, options),
40
- deps: [node83]
40
+ deps: [node85]
41
41
  });
42
42
 
43
- export { Info32, Ref4, response2, Service78, node82, boundNode2, exports_location };
43
+ export { Info32, Ref4, response2, Service80, node84, boundNode2, exports_location };
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  useragent2
3
- } from "./location-activity-v62btqwb.js";
3
+ } from "./persistent-pty-bx1t6bcv.js";
4
4
  import {
5
5
  __export
6
- } from "./location-activity-9rqn6x4v.js";
6
+ } from "./persistent-pty-9rqn6x4v.js";
7
7
 
8
8
  // src/plugin/websearch/tavily.ts
9
9
  var exports_tavily = {};
10
10
  __export(exports_tavily, {
11
- Plugin: () => Plugin19,
11
+ Plugin: () => Plugin9,
12
12
  WebSearchTavily: () => exports_tavily,
13
13
  endpoint: () => endpoint6
14
14
  });
@@ -29,7 +29,7 @@ var SearchResponse = Schema.Struct({
29
29
  content: Schema.String
30
30
  }))
31
31
  });
32
- var Plugin19 = define({
32
+ var Plugin9 = define({
33
33
  id: "opencode.websearch.tavily",
34
34
  effect: Effect.fn("WebSearchTavily.Plugin")(function* (ctx) {
35
35
  const http = yield* HttpClient.HttpClient;
@@ -77,4 +77,4 @@ var Plugin19 = define({
77
77
  })
78
78
  });
79
79
 
80
- export { endpoint6, Plugin19, exports_tavily };
80
+ export { endpoint6, Plugin9, exports_tavily };
@@ -1,29 +1,29 @@
1
1
  import {
2
2
  Service84,
3
3
  node88
4
- } from "./location-activity-db9xwh8k.js";
4
+ } from "./persistent-pty-5qxx2m82.js";
5
5
  import {
6
6
  KVTable2
7
- } from "./location-activity-3hepkmqq.js";
7
+ } from "./persistent-pty-3hepkmqq.js";
8
8
  import {
9
9
  __export
10
- } from "./location-activity-9rqn6x4v.js";
10
+ } from "./persistent-pty-9rqn6x4v.js";
11
11
 
12
12
  // src/kv.ts
13
13
  var exports_kv = {};
14
14
  __export(exports_kv, {
15
15
  KV: () => exports_kv,
16
- Service: () => Service82,
17
- node: () => node86
16
+ Service: () => Service72,
17
+ node: () => node76
18
18
  });
19
19
  import { and, asc, eq, gt, gte, lt } from "drizzle-orm";
20
20
  import { Context, Effect, Layer } from "effect";
21
21
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
22
- class Service82 extends Context.Service()("@opencode/KV") {
22
+ class Service72 extends Context.Service()("@opencode/KV") {
23
23
  }
24
- var layer = Layer.effect(Service82, Effect.gen(function* () {
24
+ var layer = Layer.effect(Service72, Effect.gen(function* () {
25
25
  const db = (yield* Service84).db;
26
- return Service82.of({
26
+ return Service72.of({
27
27
  get: Effect.fn("KV.get")(function* (key) {
28
28
  return (yield* db.select({ value: KVTable2.value }).from(KVTable2).where(eq(KVTable2.key, key)).get().pipe(Effect.orDie))?.value;
29
29
  }),
@@ -51,6 +51,6 @@ function prefixEnd(prefix) {
51
51
  return;
52
52
  return `${points.slice(0, index).join("")}${String.fromCodePoint(points[index].codePointAt(0) + 1)}`;
53
53
  }
54
- var node86 = makeGlobalNode({ service: Service82, layer, deps: [node88] });
54
+ var node76 = makeGlobalNode({ service: Service72, layer, deps: [node88] });
55
55
 
56
- export { Service82, node86, exports_kv };
56
+ export { Service72, node76, exports_kv };
@@ -0,0 +1,18 @@
1
+ import {
2
+ __export
3
+ } from "./persistent-pty-9rqn6x4v.js";
4
+
5
+ // src/plugin/service.ts
6
+ var exports_service = {};
7
+ __export(exports_service, {
8
+ Plugin: () => exports_service,
9
+ Service: () => Service29,
10
+ awaitActivation: () => awaitActivation2
11
+ });
12
+ import { Context } from "effect";
13
+
14
+ class Service29 extends Context.Service()("@opencode/Plugin") {
15
+ }
16
+ var awaitActivation2 = Service29.use((plugins) => plugins.awaitActivation);
17
+
18
+ export { Service29, awaitActivation2, exports_service };
@@ -1,47 +1,47 @@
1
1
  import {
2
2
  makeUnsafe2
3
- } from "./location-activity-y71avatq.js";
3
+ } from "./persistent-pty-y71avatq.js";
4
4
  import {
5
5
  Service83,
6
6
  node87
7
- } from "./location-activity-z3gabhqc.js";
7
+ } from "./persistent-pty-7k1gvst3.js";
8
8
  import {
9
- Event18,
10
- Service76,
11
- node80
12
- } from "./location-activity-8q9aqt0m.js";
9
+ Event15,
10
+ Service62,
11
+ node65
12
+ } from "./persistent-pty-d1fh6jb3.js";
13
13
  import {
14
- Service78,
15
- node82
16
- } from "./location-activity-615m6gz1.js";
14
+ Service80,
15
+ node84
16
+ } from "./persistent-pty-4k8me329.js";
17
17
  import {
18
- Service46,
19
- node49
20
- } from "./location-activity-y97tby9y.js";
18
+ Service68,
19
+ node71
20
+ } from "./persistent-pty-d5fc3ham.js";
21
21
  import {
22
- ID16,
23
- Service77,
24
- node81
25
- } from "./location-activity-z3n139g0.js";
22
+ ID10,
23
+ Service63,
24
+ node66
25
+ } from "./persistent-pty-yhnkyc0a.js";
26
26
  import {
27
27
  reconcile2,
28
28
  create3
29
- } from "./location-activity-rdw6cm16.js";
29
+ } from "./persistent-pty-rdw6cm16.js";
30
30
  import {
31
- ID14,
31
+ ID8,
32
32
  MethodID2,
33
- Service75,
34
- node79
35
- } from "./location-activity-wsbrqcns.js";
33
+ Service61,
34
+ node64
35
+ } from "./persistent-pty-s43hhkdm.js";
36
36
  import {
37
37
  __export
38
- } from "./location-activity-9rqn6x4v.js";
38
+ } from "./persistent-pty-9rqn6x4v.js";
39
39
 
40
40
  // src/mcp/index.ts
41
41
  var exports_mcp4 = {};
42
42
  __export(exports_mcp4, {
43
43
  Mcp: () => exports_mcp4,
44
- NotFoundError: () => NotFoundError4,
44
+ NotFoundError: () => NotFoundError3,
45
45
  Options: () => Options3,
46
46
  PromptsChanged: () => PromptsChanged2,
47
47
  Resource: () => Resource2,
@@ -50,12 +50,12 @@ __export(exports_mcp4, {
50
50
  ResourceContentPart: () => ResourceContentPart2,
51
51
  ResourceTemplate: () => ResourceTemplate2,
52
52
  ServerName: () => ServerName2,
53
- Service: () => Service29,
53
+ Service: () => Service31,
54
54
  Status: () => Status2,
55
55
  ToolCallError: () => ToolCallError2,
56
56
  configured: () => configured3,
57
57
  layer: () => layer11,
58
- node: () => node32
58
+ node: () => node34
59
59
  });
60
60
  import { Mcp } from "@opencode/schema/mcp";
61
61
  import { McpEvent } from "@opencode/schema/mcp-event";
@@ -74,7 +74,7 @@ var ResourceCatalog2 = Mcp.ResourceCatalog;
74
74
  var ResourceContentPart2 = Mcp.ResourceContentPart;
75
75
  var ResourceContent2 = Mcp.ResourceContent;
76
76
 
77
- class NotFoundError4 extends Schema.TaggedError()("MCP.NotFoundError", {
77
+ class NotFoundError3 extends Schema.TaggedError()("MCP.NotFoundError", {
78
78
  server: ServerName2
79
79
  }) {
80
80
  get message() {
@@ -93,7 +93,7 @@ var URL_ELICITATION_FIELD_KEY = "elicitation";
93
93
  var endpointLoads = makeUnsafe2();
94
94
  var cloneConfig = (config) => structuredClone(config);
95
95
 
96
- class Service29 extends Context.Service()("@opencode/MCP") {
96
+ class Service31 extends Context.Service()("@opencode/MCP") {
97
97
  }
98
98
  var Options3 = Schema.Struct({
99
99
  clientInfo: Schema.optional(Schema.Struct({
@@ -101,13 +101,13 @@ var Options3 = Schema.Struct({
101
101
  version: Schema.String
102
102
  }))
103
103
  });
104
- var layer11 = (options) => Layer.effect(Service29, Effect.gen(function* () {
105
- const location = yield* Service78;
106
- const environment = yield* Service46;
104
+ var layer11 = (options) => Layer.effect(Service31, Effect.gen(function* () {
105
+ const location = yield* Service80;
106
+ const environment = yield* Service68;
107
107
  const bus = yield* Service83;
108
- const forms = yield* Service77;
109
- const integration = yield* Service75;
110
- const credentials = yield* Service76;
108
+ const forms = yield* Service63;
109
+ const integration = yield* Service61;
110
+ const credentials = yield* Service62;
111
111
  const root = yield* Effect.scope;
112
112
  const fork = yield* FiberSet.makeRuntime();
113
113
  const entries = new Map;
@@ -119,7 +119,7 @@ var layer11 = (options) => Layer.effect(Service29, Effect.gen(function* () {
119
119
  return;
120
120
  const remote = entry.config;
121
121
  const suffix = "mcp_" + createHash("sha1").update(name + "\x00" + remote.url).digest("hex").slice(0, 16);
122
- const integrationID = ID14.make(suffix);
122
+ const integrationID = ID8.make(suffix);
123
123
  entry.integrationID = integrationID;
124
124
  owned.add(integrationID);
125
125
  const methodID = MethodID2.make(suffix);
@@ -135,7 +135,7 @@ var layer11 = (options) => Layer.effect(Service29, Effect.gen(function* () {
135
135
  method: { id: methodID, type: "oauth", label: name },
136
136
  authorize: () => Effect.gen(function* () {
137
137
  const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
138
- return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service76, credentials));
138
+ return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service62, credentials));
139
139
  })
140
140
  });
141
141
  }).pipe(Scope.provide(scope));
@@ -144,19 +144,19 @@ var layer11 = (options) => Layer.effect(Service29, Effect.gen(function* () {
144
144
  const name = ServerName2.make(server);
145
145
  const entry = entries.get(name);
146
146
  if (!entry)
147
- return yield* new NotFoundError4({ server: name });
147
+ return yield* new NotFoundError3({ server: name });
148
148
  return { name, entry };
149
149
  });
150
150
  const connectProvider = Effect.fnUntraced(function* (entry) {
151
151
  if (entry.config.type !== "remote" || !entry.integrationID)
152
152
  return;
153
153
  const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
154
- return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service76, credentials));
154
+ return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service62, credentials));
155
155
  });
156
156
  const elicitation = {
157
157
  create: (input) => Effect.gen(function* () {
158
158
  if (input.params.mode === "url") {
159
- const formID = ID16.create();
159
+ const formID = ID10.create();
160
160
  const elicitationID = input.params.elicitationId;
161
161
  const key = elicitationID === undefined ? undefined : input.server + "\x00" + elicitationID;
162
162
  if (key)
@@ -240,7 +240,7 @@ var layer11 = (options) => Layer.effect(Service29, Effect.gen(function* () {
240
240
  entry.scope = scope;
241
241
  const authProvider = yield* connectProvider(entry);
242
242
  const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
243
- const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service46, environment), Scope.provide(scope));
243
+ const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service68, environment), Scope.provide(scope));
244
244
  const result = yield* (entry.config.type === "remote" ? endpointLoads.withLock(entry.config.url)(load) : load).pipe(Effect.exit);
245
245
  if (Exit.isSuccess(result)) {
246
246
  entry.client = result.value.connection;
@@ -365,7 +365,7 @@ var layer11 = (options) => Layer.effect(Service29, Effect.gen(function* () {
365
365
  yield* startServer(name, entry);
366
366
  }).pipe(locks.withLock(name));
367
367
  });
368
- fork(bus.subscribe(Event18.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
368
+ fork(bus.subscribe(Event15.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
369
369
  const state = create3({
370
370
  name: "mcp",
371
371
  initial: () => ({
@@ -391,7 +391,7 @@ var layer11 = (options) => Layer.effect(Service29, Effect.gen(function* () {
391
391
  }),
392
392
  notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
393
393
  });
394
- return Service29.of({
394
+ return Service31.of({
395
395
  transform: state.transform,
396
396
  reload: state.reload,
397
397
  servers: Effect.fn("MCP.servers")(function* () {
@@ -512,12 +512,12 @@ var layer11 = (options) => Layer.effect(Service29, Effect.gen(function* () {
512
512
  }));
513
513
  function configured3(options) {
514
514
  return makeLocationNode({
515
- service: Service29,
515
+ service: Service31,
516
516
  layer: layer11(options),
517
- deps: [node82, node49, node87, node81, node79, node80]
517
+ deps: [node84, node71, node87, node66, node64, node65]
518
518
  });
519
519
  }
520
- var node32 = configured3();
520
+ var node34 = configured3();
521
521
  function toElicitationField(key, property, required) {
522
522
  const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
523
523
  const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
@@ -568,4 +568,4 @@ function toElicitationField(key, property, required) {
568
568
  }
569
569
  }
570
570
 
571
- export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContentPart2, ResourceContent2, NotFoundError4, ToolCallError2, Service29, Options3, layer11, configured3, node32, exports_mcp4 };
571
+ export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContentPart2, ResourceContent2, NotFoundError3, ToolCallError2, Service31, Options3, layer11, configured3, node34, exports_mcp4 };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  __export
3
- } from "./location-activity-9rqn6x4v.js";
3
+ } from "./persistent-pty-9rqn6x4v.js";
4
4
 
5
5
  // src/session/provider-context.ts
6
6
  var exports_provider_context = {};
7
7
  __export(exports_provider_context, {
8
- Info: () => Info13,
8
+ Info: () => Info29,
9
9
  SessionProviderContext: () => exports_provider_context,
10
10
  compatible: () => compatible2,
11
11
  decode: () => decode2,
@@ -19,7 +19,7 @@ import { SessionProviderContext } from "@opencode/schema/session-provider-contex
19
19
  import { Schema } from "effect";
20
20
  import { isDeepStrictEqual } from "node:util";
21
21
  import { Hash } from "@opencode/util/hash";
22
- var Info13 = SessionProviderContext.Info;
22
+ var Info29 = SessionProviderContext.Info;
23
23
  var messages = Schema.toCodecJson(Schema.Array(Message));
24
24
  function provenance2(resolved) {
25
25
  const model = resolved.model;
@@ -49,4 +49,4 @@ var encode2 = (provenance, replacement) => ({
49
49
  var decode2 = (context) => Schema.decodeUnknownSync(messages)(context.messages);
50
50
  var validate2 = (context) => Schema.decodeUnknownEffect(messages)(context.messages);
51
51
 
52
- export { Info13, provenance2, compatible2, isCheckpoint2, encode2, decode2, validate2, exports_provider_context };
52
+ export { Info29, provenance2, compatible2, isCheckpoint2, encode2, decode2, validate2, exports_provider_context };
@@ -1,30 +1,30 @@
1
1
  import {
2
2
  AbsolutePath2,
3
3
  RelativePath2
4
- } from "./location-activity-922hggd3.js";
4
+ } from "./persistent-pty-922hggd3.js";
5
5
  import {
6
6
  Repository2,
7
7
  TreeID2,
8
+ Service82,
9
+ node86
10
+ } from "./persistent-pty-gmjq4p6e.js";
11
+ import {
8
12
  Service80,
9
13
  node84
10
- } from "./location-activity-4y72ap3v.js";
11
- import {
12
- Service78,
13
- node82
14
- } from "./location-activity-615m6gz1.js";
14
+ } from "./persistent-pty-4k8me329.js";
15
15
  import {
16
16
  create3
17
- } from "./location-activity-rdw6cm16.js";
17
+ } from "./persistent-pty-rdw6cm16.js";
18
18
  import {
19
19
  __export
20
- } from "./location-activity-9rqn6x4v.js";
20
+ } from "./persistent-pty-9rqn6x4v.js";
21
21
 
22
22
  // src/snapshot.ts
23
23
  var exports_snapshot2 = {};
24
24
  __export(exports_snapshot2, {
25
- Error: () => Error3,
25
+ Error: () => Error2,
26
26
  ID: () => ID5,
27
- Service: () => Service36,
27
+ Service: () => Service35,
28
28
  Snapshot: () => exports_snapshot2,
29
29
  node: () => node39,
30
30
  noopLayer: () => noopLayer2
@@ -36,20 +36,20 @@ import { FSUtil } from "@opencode/util/fs-util";
36
36
  import { Global } from "@opencode/util/global";
37
37
  import { ID as ID5 } from "@opencode/schema/snapshot";
38
38
  import { Hash } from "@opencode/util/hash";
39
- class Error3 extends Schema.TaggedError()("Snapshot.Error", {
39
+ class Error2 extends Schema.TaggedError()("Snapshot.Error", {
40
40
  operation: Schema.Literals(["capture", "files", "diff", "restore"]),
41
41
  message: Schema.String,
42
42
  cause: Schema.optional(Schema.Defect())
43
43
  }) {
44
44
  }
45
45
 
46
- class Service36 extends Context.Service()("@opencode/Snapshot") {
46
+ class Service35 extends Context.Service()("@opencode/Snapshot") {
47
47
  }
48
- var layer = Layer.effect(Service36, Effect.gen(function* () {
48
+ var layer = Layer.effect(Service35, Effect.gen(function* () {
49
49
  const fs = yield* FSUtil.Service;
50
- const git = yield* Service80;
50
+ const git = yield* Service82;
51
51
  const global = yield* Global.Service;
52
- const location = yield* Service78;
52
+ const location = yield* Service80;
53
53
  const lifetime = yield* Scope.Scope;
54
54
  const state = create3({
55
55
  name: "snapshot",
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service36, Effect.gen(function* () {
63
63
  const repositoryFiber = yield* Effect.cached(Effect.gen(function* () {
64
64
  const source = yield* git.repo.discover(location.project.directory);
65
65
  if (!source)
66
- return yield* new Error3({ operation: "capture", message: "Project is not a Git repository" });
66
+ return yield* new Error2({ operation: "capture", message: "Project is not a Git repository" });
67
67
  const worktree = AbsolutePath2.make(yield* fs.realPath(source.worktree).pipe(Effect.orDie));
68
68
  const gitDirectory = AbsolutePath2.make(path.join(global.data, "snapshot", location.project.id, Hash.fast(worktree)));
69
69
  const snapshotRepository = (yield* fs.existsSafe(path.join(gitDirectory, "HEAD"))) ? new Repository2({ worktree, gitDirectory, commonDirectory: gitDirectory }) : yield* git.repo.create({ worktree, gitDirectory, seed: source }).pipe(Effect.mapError((cause) => failure("capture", cause)));
@@ -73,7 +73,7 @@ var layer = Layer.effect(Service36, Effect.gen(function* () {
73
73
  const scope = Effect.fnUntraced(function* (worktree) {
74
74
  const relative = path.relative(worktree, location.directory);
75
75
  if (relative.startsWith("..") || path.isAbsolute(relative))
76
- return yield* new Error3({ operation: "capture", message: "Location is outside the project" });
76
+ return yield* new Error2({ operation: "capture", message: "Location is outside the project" });
77
77
  return RelativePath2.make(relative.replaceAll("\\", "/") || ".");
78
78
  });
79
79
  const enabled = () => location.vcs?.type === "git" && state.get().enabled;
@@ -127,25 +127,25 @@ var layer = Layer.effect(Service36, Effect.gen(function* () {
127
127
  for (const [file, snapshot] of input.files) {
128
128
  const absolute = path.resolve(worktree, file);
129
129
  if (!FSUtil.contains(worktree, absolute))
130
- return yield* new Error3({ operation: "restore", message: `Path escapes the project: ${file}` });
130
+ return yield* new Error2({ operation: "restore", message: `Path escapes the project: ${file}` });
131
131
  files.set(file, TreeID2.make(snapshot));
132
132
  }
133
133
  return files;
134
134
  });
135
135
  const restore = Effect.fn("Snapshot.restore")(function* (input) {
136
136
  if (!enabled())
137
- return yield* new Error3({ operation: "restore", message: "Snapshots are disabled" });
137
+ return yield* new Error2({ operation: "restore", message: "Snapshots are disabled" });
138
138
  const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
139
139
  yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
140
140
  });
141
- return Service36.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
141
+ return Service35.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
142
142
  }).pipe(Effect.withSpan("Snapshot.boot")));
143
143
  var node39 = makeLocationNode({
144
- service: Service36,
144
+ service: Service35,
145
145
  layer,
146
- deps: [FSUtil.node, node84, Global.node, node82]
146
+ deps: [FSUtil.node, node86, Global.node, node84]
147
147
  });
148
- var noopLayer2 = Layer.succeed(Service36, Service36.of({
148
+ var noopLayer2 = Layer.succeed(Service35, Service35.of({
149
149
  transform: () => Effect.succeed({ dispose: Effect.void }),
150
150
  reload: () => Effect.void,
151
151
  capture: () => Effect.undefined,
@@ -154,13 +154,13 @@ var noopLayer2 = Layer.succeed(Service36, Service36.of({
154
154
  restore: () => Effect.void
155
155
  }));
156
156
  function failure(operation, cause) {
157
- if (cause instanceof Error3 && cause.operation === operation)
157
+ if (cause instanceof Error2 && cause.operation === operation)
158
158
  return cause;
159
- return new Error3({
159
+ return new Error2({
160
160
  operation,
161
161
  message: cause instanceof globalThis.Error ? cause.message : String(cause),
162
162
  cause
163
163
  });
164
164
  }
165
165
 
166
- export { ID5, Error3, Service36, node39, noopLayer2, exports_snapshot2 };
166
+ export { ID5, Error2, Service35, node39, noopLayer2, exports_snapshot2 };