@opencode/core 0.0.0-dev-21246 → 0.0.0-dev-21252

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 (795) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +83 -83
  3. package/dist/aisdk-native.js +91 -91
  4. package/dist/aisdk.js +96 -96
  5. package/dist/app.js +7 -7
  6. package/dist/bus.js +75 -75
  7. package/dist/chunks/{model-qhqzagh6.js → pty-04zfcyt8.js} +8 -8
  8. package/dist/chunks/{model-ws4vyhwj.js → pty-09mdhsg2.js} +11 -11
  9. package/dist/chunks/{model-1xfgz0sp.js → pty-0jxg87fr.js} +6 -6
  10. package/dist/chunks/{model-xatn3567.js → pty-0prfbnza.js} +15 -15
  11. package/dist/chunks/{model-0vbcp93d.js → pty-0vbcp93d.js} +2 -2
  12. package/dist/chunks/{model-xyskky0w.js → pty-16nt522w.js} +32 -32
  13. package/dist/chunks/{model-t0kn5a8z.js → pty-17h4d3k8.js} +25 -25
  14. package/dist/chunks/{model-f2n192rq.js → pty-1acjjqhc.js} +4 -4
  15. package/dist/chunks/{model-6pc27hjz.js → pty-1p07q0wb.js} +8 -8
  16. package/dist/chunks/{model-b8q5jebn.js → pty-1s33mprc.js} +19 -19
  17. package/dist/chunks/{model-v5t5db04.js → pty-1v2js5qj.js} +13 -13
  18. package/dist/chunks/{model-sgtrt5z9.js → pty-25875qsz.js} +21 -21
  19. package/dist/chunks/{model-4tr9sj3s.js → pty-273j735v.js} +6 -6
  20. package/dist/chunks/{model-t1jfcm4z.js → pty-2edtnx9x.js} +9 -9
  21. package/dist/chunks/{model-21apjdyf.js → pty-2ggmd3qz.js} +9 -9
  22. package/dist/chunks/{model-rcz188q3.js → pty-2vfvkkyx.js} +4 -4
  23. package/dist/chunks/{model-athpecc5.js → pty-2vx1pgcs.js} +22 -22
  24. package/dist/chunks/{model-r5atchfd.js → pty-2x278s08.js} +24 -24
  25. package/dist/chunks/{model-qn5g76bm.js → pty-38m8qhc5.js} +11 -11
  26. package/dist/chunks/{model-3hepkmqq.js → pty-3hepkmqq.js} +1 -1
  27. package/dist/chunks/{model-aeda8hqw.js → pty-3hsqsy3q.js} +17 -17
  28. package/dist/chunks/{model-3hwn7j4h.js → pty-3hwn7j4h.js} +2 -2
  29. package/dist/chunks/{model-3smtnn6g.js → pty-3smtnn6g.js} +1 -1
  30. package/dist/chunks/{model-3tvqynh2.js → pty-3tvqynh2.js} +1 -1
  31. package/dist/chunks/{model-3zsf4n22.js → pty-3zsf4n22.js} +1 -1
  32. package/dist/chunks/{model-bn1qxpvg.js → pty-4ar0dv3a.js} +20 -20
  33. package/dist/chunks/{model-8tsdq50x.js → pty-4bm5ja14.js} +4 -4
  34. package/dist/chunks/{model-awbtd0yc.js → pty-4k4fvchf.js} +11 -11
  35. package/dist/chunks/{model-y7nndgyc.js → pty-4xdpab2z.js} +9 -9
  36. package/dist/chunks/{model-vsd1gfwp.js → pty-4yqhvzx8.js} +27 -27
  37. package/dist/chunks/{model-3ppptnan.js → pty-51f5btjf.js} +6 -6
  38. package/dist/chunks/{model-d0r6ezqk.js → pty-56swpcfg.js} +11 -11
  39. package/dist/chunks/{model-drwq78ky.js → pty-57b9ws8p.js} +5 -5
  40. package/dist/chunks/{model-p7pxayv7.js → pty-59j4ht07.js} +12 -12
  41. package/dist/chunks/{model-ancsbgw1.js → pty-5g9mj0x8.js} +36 -36
  42. package/dist/chunks/{model-s5met55r.js → pty-5gzjtbzb.js} +8 -8
  43. package/dist/chunks/{model-stapj22y.js → pty-5k0aebbb.js} +22 -22
  44. package/dist/chunks/{model-1v2yvtm3.js → pty-5kgk83bb.js} +27 -27
  45. package/dist/chunks/{model-5m9w47nd.js → pty-5m9w47nd.js} +1 -1
  46. package/dist/chunks/{model-7bs235hv.js → pty-5mq5fr1q.js} +11 -11
  47. package/dist/chunks/{model-qcr1ft2j.js → pty-5p4ea1z6.js} +16 -16
  48. package/dist/chunks/{model-hz4f5mwj.js → pty-5pa1jwxy.js} +12 -12
  49. package/dist/chunks/{model-zx174a2x.js → pty-5pckqsa0.js} +20 -20
  50. package/dist/chunks/{model-5z23qfcc.js → pty-5py0qphe.js} +21 -21
  51. package/dist/chunks/{model-4pkmv55a.js → pty-5q287mz9.js} +17 -17
  52. package/dist/chunks/{model-e3qxr5gk.js → pty-5qd3pb7m.js} +2 -2
  53. package/dist/chunks/{model-87y04qby.js → pty-5rqr18hk.js} +15 -15
  54. package/dist/chunks/{model-4npcy765.js → pty-5vvprwm6.js} +4 -4
  55. package/dist/chunks/{model-awpj2eee.js → pty-613s401q.js} +22 -22
  56. package/dist/chunks/pty-619r8v3y.js +18 -0
  57. package/dist/chunks/{model-6827pfxn.js → pty-6827pfxn.js} +1 -1
  58. package/dist/chunks/{model-69dwh4me.js → pty-6kgydgrk.js} +12 -12
  59. package/dist/chunks/{model-n9rxncxh.js → pty-6sk5sj01.js} +20 -20
  60. package/dist/chunks/{model-097tdram.js → pty-6ts7sypm.js} +14 -14
  61. package/dist/chunks/{model-7xbjxe45.js → pty-6w7ed4zb.js} +14 -14
  62. package/dist/chunks/{model-6xb47vfp.js → pty-6xb47vfp.js} +1 -1
  63. package/dist/chunks/{model-zps3pk6h.js → pty-75ar5t22.js} +8 -8
  64. package/dist/chunks/{model-ej3ps13p.js → pty-75v6ymbe.js} +14 -14
  65. package/dist/chunks/{model-775gj3j1.js → pty-775gj3j1.js} +2 -2
  66. package/dist/chunks/{model-sxjbcd6h.js → pty-79efq26t.js} +21 -21
  67. package/dist/chunks/{model-2sejkfem.js → pty-79qaa2kf.js} +9 -9
  68. package/dist/chunks/{model-7bmhse3q.js → pty-7bmhse3q.js} +1 -1
  69. package/dist/chunks/{model-e4n90qqz.js → pty-7d4ryxry.js} +21 -21
  70. package/dist/chunks/{model-ckyjf00w.js → pty-7jvyjmqp.js} +45 -45
  71. package/dist/chunks/{model-czn9w0x8.js → pty-7qcm40ym.js} +11 -11
  72. package/dist/chunks/{model-w1eejvng.js → pty-84txncab.js} +5 -5
  73. package/dist/chunks/{model-757464b7.js → pty-89bb6baa.js} +8 -8
  74. package/dist/chunks/{model-49npcfp6.js → pty-8btm942h.js} +2 -2
  75. package/dist/chunks/{model-71vf3ngy.js → pty-8c229cqm.js} +46 -46
  76. package/dist/chunks/{model-fwfdmgk0.js → pty-8dff8bqa.js} +5 -5
  77. package/dist/chunks/{model-0z1664j4.js → pty-8djhns2y.js} +3 -3
  78. package/dist/chunks/{model-fe6t81kk.js → pty-8fmtb3sq.js} +38 -38
  79. package/dist/chunks/{model-8m6m0r52.js → pty-8m6m0r52.js} +1 -1
  80. package/dist/chunks/{model-yg1rf1wp.js → pty-8n5y01rv.js} +1 -1
  81. package/dist/chunks/{model-aykdkgmz.js → pty-8t56p07m.js} +31 -31
  82. package/dist/chunks/{model-my4zabxr.js → pty-8whp40kv.js} +3 -3
  83. package/dist/chunks/{model-be0c020n.js → pty-8xqdgpeg.js} +4 -4
  84. package/dist/chunks/{model-9knpn9fj.js → pty-9587ae3r.js} +7 -7
  85. package/dist/chunks/{model-9n6penxb.js → pty-9kr8jvk4.js} +9 -9
  86. package/dist/chunks/{model-dxbxxdsx.js → pty-9m0hg6kw.js} +3 -3
  87. package/dist/chunks/{model-jhdf29st.js → pty-9vrga451.js} +1 -1
  88. package/dist/chunks/{model-ca0q5yrm.js → pty-9z80hxc4.js} +25 -25
  89. package/dist/chunks/{model-hgtsck7j.js → pty-a5jmndgx.js} +23 -23
  90. package/dist/chunks/{model-p9ejm27k.js → pty-aepr7q13.js} +186 -186
  91. package/dist/chunks/{model-zv6mcmn5.js → pty-ah7q5eh6.js} +10 -10
  92. package/dist/chunks/{model-z5cwttbn.js → pty-ajfgb3zy.js} +7 -7
  93. package/dist/chunks/{model-h5b4kcx3.js → pty-ax36eyar.js} +8 -8
  94. package/dist/chunks/pty-b31pqyrf.js +26 -0
  95. package/dist/chunks/{model-k14cytbx.js → pty-b3qw4ny2.js} +18 -18
  96. package/dist/chunks/{model-mnwdfy6v.js → pty-b532nts2.js} +47 -47
  97. package/dist/chunks/{model-pdpqmpbc.js → pty-b5s7rv85.js} +13 -13
  98. package/dist/chunks/{model-ad0pmgce.js → pty-b8fv3x8g.js} +7 -7
  99. package/dist/chunks/{model-80c2k4k7.js → pty-be2m8mkb.js} +24 -24
  100. package/dist/chunks/{model-b8q0dhmk.js → pty-bmv70x53.js} +32 -32
  101. package/dist/chunks/{model-625mrsyp.js → pty-bqqqx74r.js} +45 -45
  102. package/dist/chunks/{model-c7e58gyn.js → pty-bsg7vvxy.js} +17 -17
  103. package/dist/chunks/{model-7wjtm8pe.js → pty-bx3wj5v5.js} +22 -22
  104. package/dist/chunks/{model-1ep4rre3.js → pty-bzeyqsqd.js} +4 -4
  105. package/dist/chunks/{model-gvq4k2rx.js → pty-bzqqb8ta.js} +3 -3
  106. package/dist/chunks/{model-rj3eygr5.js → pty-c41wscbt.js} +2 -2
  107. package/dist/chunks/{model-07pzcvjy.js → pty-c4mkfy92.js} +4 -4
  108. package/dist/chunks/{model-5rzwp8tz.js → pty-c7zza6wf.js} +3 -3
  109. package/dist/chunks/{model-sa8ekw3f.js → pty-c8ax2afj.js} +2 -2
  110. package/dist/chunks/{model-70hdk6w9.js → pty-carp9cx2.js} +9 -9
  111. package/dist/chunks/{model-d1a28jh7.js → pty-d1a28jh7.js} +2 -2
  112. package/dist/chunks/{model-5nszh0bg.js → pty-d54gtgr2.js} +24 -24
  113. package/dist/chunks/{model-q0nrsbdj.js → pty-d6ex36fs.js} +10 -10
  114. package/dist/chunks/{model-1hq49wfp.js → pty-dbe6ax9h.js} +36 -36
  115. package/dist/chunks/{model-9ersraf9.js → pty-dbvaw56v.js} +36 -36
  116. package/dist/chunks/{model-tqfze7qe.js → pty-dng94c05.js} +34 -34
  117. package/dist/chunks/{model-y71avatq.js → pty-dpkg50ah.js} +4 -4
  118. package/dist/chunks/{model-44zr7wmx.js → pty-dwy6gwr4.js} +4 -4
  119. package/dist/chunks/{model-cdzn34jf.js → pty-dys7k0s0.js} +8 -8
  120. package/dist/chunks/{model-yex8rs33.js → pty-dyx7hmrq.js} +7 -7
  121. package/dist/chunks/{model-0gdmqesm.js → pty-eaj1djv9.js} +8 -8
  122. package/dist/chunks/{model-eej6y6fw.js → pty-eej6y6fw.js} +2 -2
  123. package/dist/chunks/{model-ef5x83kb.js → pty-ef5x83kb.js} +1 -1
  124. package/dist/chunks/{model-c41dsvxf.js → pty-eh6ej367.js} +5 -5
  125. package/dist/chunks/{model-pmrbxne1.js → pty-emdb9ywx.js} +16 -16
  126. package/dist/chunks/{model-1jyb01pe.js → pty-emtnyy8a.js} +18 -18
  127. package/dist/chunks/{model-2dfjzq3d.js → pty-ep1c6evs.js} +19 -19
  128. package/dist/chunks/{model-c1fqxshp.js → pty-es1vcfrp.js} +3 -3
  129. package/dist/chunks/{model-j8m1p4p1.js → pty-espax8zg.js} +4 -4
  130. package/dist/chunks/{model-gprk1h4z.js → pty-ev6dmhwt.js} +13 -13
  131. package/dist/chunks/{model-4fj1av0q.js → pty-ewzhehhx.js} +51 -51
  132. package/dist/chunks/{model-hyq6bs5b.js → pty-exxz27fe.js} +25 -25
  133. package/dist/chunks/{model-sf5qjhtj.js → pty-eyqpj6mq.js} +11 -11
  134. package/dist/chunks/{model-p4mj4rdp.js → pty-eys57y9b.js} +8 -8
  135. package/dist/chunks/{model-2g6dfhex.js → pty-eywv91wk.js} +31 -31
  136. package/dist/chunks/{model-32y4ehgv.js → pty-f59ep6tb.js} +11 -11
  137. package/dist/chunks/{model-ssjyj57x.js → pty-f83dkk6g.js} +6 -6
  138. package/dist/chunks/{model-r8h9xppv.js → pty-f8bebqmw.js} +9 -9
  139. package/dist/chunks/{model-fcy631f0.js → pty-fcy631f0.js} +1 -1
  140. package/dist/chunks/{model-mzv3dx1f.js → pty-fna3snnf.js} +19 -19
  141. package/dist/chunks/{model-khmqacep.js → pty-fxaymqdw.js} +4 -4
  142. package/dist/chunks/{model-4xpgt2w9.js → pty-g6yfr6ja.js} +5 -5
  143. package/dist/chunks/{model-3ev0eyv6.js → pty-gb91ecjr.js} +14 -14
  144. package/dist/chunks/{model-gd4qta3r.js → pty-gd4qta3r.js} +1 -1
  145. package/dist/chunks/{model-z4gkakm8.js → pty-gecaqdc7.js} +13 -13
  146. package/dist/chunks/{model-3pwzytv4.js → pty-ghttpbhe.js} +24 -24
  147. package/dist/chunks/{model-pcvvctms.js → pty-ghzt5075.js} +25 -25
  148. package/dist/chunks/{model-qne3fa44.js → pty-gj71zhbs.js} +5 -5
  149. package/dist/chunks/{model-n7y0njwp.js → pty-gp4w86nb.js} +24 -24
  150. package/dist/chunks/{model-4w4b1d7d.js → pty-gq21vk3h.js} +23 -23
  151. package/dist/chunks/{model-addxnjmp.js → pty-gqtdsdt7.js} +4 -4
  152. package/dist/chunks/{model-2shkhq8w.js → pty-h0bbvnbm.js} +95 -95
  153. package/dist/chunks/{model-rym9dfdm.js → pty-h0c8h6v4.js} +17 -17
  154. package/dist/chunks/{model-1aqxs61q.js → pty-h62q6qsm.js} +13 -13
  155. package/dist/chunks/{model-h6vf3j39.js → pty-h6vf3j39.js} +1 -1
  156. package/dist/chunks/{model-k5asgy6z.js → pty-h9sr2fx8.js} +43 -43
  157. package/dist/chunks/{model-ny8kxbfq.js → pty-h9t9rr5j.js} +8 -8
  158. package/dist/chunks/{model-8qrvq6xp.js → pty-hccfxqt2.js} +24 -24
  159. package/dist/chunks/{model-hgz4x7wa.js → pty-hgz4x7wa.js} +1 -1
  160. package/dist/chunks/{model-8wvywagr.js → pty-hskj05ts.js} +36 -36
  161. package/dist/chunks/{model-91qna3x0.js → pty-j09zfasm.js} +3 -3
  162. package/dist/chunks/{model-ddf16z40.js → pty-j1e1vdpa.js} +27 -27
  163. package/dist/chunks/{model-t0h2n3rs.js → pty-j4x75x50.js} +15 -15
  164. package/dist/chunks/{model-6rz1y2wy.js → pty-j5y9yxpr.js} +33 -33
  165. package/dist/chunks/{model-qg72ng58.js → pty-j7jn4qex.js} +26 -26
  166. package/dist/chunks/{model-0p8327n1.js → pty-j8hg5m6j.js} +14 -14
  167. package/dist/chunks/{model-zkzbh4fe.js → pty-jqzezgch.js} +13 -13
  168. package/dist/chunks/{model-vcvrskz7.js → pty-jym867d0.js} +11 -11
  169. package/dist/chunks/{model-8fqv1czf.js → pty-k0dv98ax.js} +20 -20
  170. package/dist/chunks/{model-a3jygwg9.js → pty-k283101k.js} +10 -10
  171. package/dist/chunks/{model-k6zys8zm.js → pty-k4j5e150.js} +19 -19
  172. package/dist/chunks/{model-qzyrmewc.js → pty-k7vqg6gp.js} +10 -10
  173. package/dist/chunks/{model-251hxpd6.js → pty-k8h85fj7.js} +2 -2
  174. package/dist/chunks/{model-graqqgqk.js → pty-kawxgbzv.js} +20 -20
  175. package/dist/chunks/{model-t9p9ds3w.js → pty-kgrkq9ry.js} +48 -48
  176. package/dist/chunks/{model-yhd4kr0d.js → pty-khtxvdmw.js} +21 -21
  177. package/dist/chunks/{model-aft55nha.js → pty-kmnwckzv.js} +11 -11
  178. package/dist/chunks/{model-kwrthnf5.js → pty-knfhyvcc.js} +11 -11
  179. package/dist/chunks/{model-tyj5kcgj.js → pty-kr25s46q.js} +5 -5
  180. package/dist/chunks/{model-887mgra2.js → pty-kt7fyp0h.js} +61 -61
  181. package/dist/chunks/{model-kwb1v3vj.js → pty-kwb1v3vj.js} +1 -1
  182. package/dist/chunks/{model-1t0smfc2.js → pty-m1z5ek08.js} +5 -5
  183. package/dist/chunks/{model-1n2tbqxy.js → pty-m35e3w0r.js} +13 -13
  184. package/dist/chunks/{model-m9w0rfyh.js → pty-m9w0rfyh.js} +1 -1
  185. package/dist/chunks/{model-maspj1v3.js → pty-maspj1v3.js} +1 -1
  186. package/dist/chunks/{model-ysf596fe.js → pty-mf5sjjt4.js} +1 -1
  187. package/dist/chunks/{model-p2a5t6n1.js → pty-mftp4jgp.js} +15 -15
  188. package/dist/chunks/{model-te6jzdmb.js → pty-mgq3c1d5.js} +5 -5
  189. package/dist/chunks/{model-pkd7a947.js → pty-mgxskf66.js} +37 -37
  190. package/dist/chunks/{model-52dsmx63.js → pty-mhwem8sv.js} +28 -28
  191. package/dist/chunks/{model-nqan7h4w.js → pty-mqrd7sth.js} +5 -5
  192. package/dist/chunks/{model-281szs7x.js → pty-ms4hbghf.js} +50 -50
  193. package/dist/chunks/{model-yg5d8nnt.js → pty-mthh58nh.js} +30 -30
  194. package/dist/chunks/{model-hmn8skn7.js → pty-mx4xths8.js} +29 -29
  195. package/dist/chunks/{model-fz60qaa0.js → pty-n1900k66.js} +1 -1
  196. package/dist/chunks/{model-n9wyj86f.js → pty-nb8d4sea.js} +8 -8
  197. package/dist/chunks/{model-1khnc541.js → pty-nqvxt6f2.js} +10 -10
  198. package/dist/chunks/{model-qge264qz.js → pty-nzsdqqv9.js} +36 -36
  199. package/dist/chunks/{model-pe8kdg2p.js → pty-p62ktq1b.js} +22 -22
  200. package/dist/chunks/{model-aq8vh238.js → pty-pgf8gcr8.js} +44 -44
  201. package/dist/chunks/{model-pjvnvgmy.js → pty-pjvnvgmy.js} +1 -1
  202. package/dist/chunks/{model-pknna89w.js → pty-pknna89w.js} +1 -1
  203. package/dist/chunks/{model-t32m0x77.js → pty-pyp098nx.js} +16 -16
  204. package/dist/chunks/{model-q38gq3gg.js → pty-q0tnd1dz.js} +15 -15
  205. package/dist/chunks/{model-73e3zp3f.js → pty-qe7qwmvw.js} +45 -45
  206. package/dist/chunks/{model-7dqw4kz8.js → pty-qgn6gcr1.js} +5 -5
  207. package/dist/chunks/{model-2kmfbs7e.js → pty-qj9dcjzw.js} +5 -5
  208. package/dist/chunks/{model-6qr4j83s.js → pty-qk7mv1xs.js} +7 -7
  209. package/dist/chunks/{model-qnc92qwc.js → pty-qnc92qwc.js} +1 -1
  210. package/dist/chunks/{model-9880wbbs.js → pty-qrsxyz47.js} +11 -11
  211. package/dist/chunks/{model-qsdy395h.js → pty-qsdy395h.js} +1 -1
  212. package/dist/chunks/{model-tnj6rg6w.js → pty-qsswj7nd.js} +17 -17
  213. package/dist/chunks/{model-3d73cf36.js → pty-r86349qm.js} +6 -6
  214. package/dist/chunks/{model-54ma36ye.js → pty-r94pvvab.js} +4 -4
  215. package/dist/chunks/{model-rdw6cm16.js → pty-rdw6cm16.js} +1 -1
  216. package/dist/chunks/{model-gsf378dw.js → pty-rgg94day.js} +35 -35
  217. package/dist/chunks/{model-atgtgdsa.js → pty-rqhgjz8j.js} +19 -19
  218. package/dist/chunks/{model-scv7p57g.js → pty-ry6831an.js} +9 -9
  219. package/dist/chunks/{model-5dkn69vz.js → pty-rywzfdxh.js} +4 -4
  220. package/dist/chunks/{model-gkp0ddc4.js → pty-sbb270gk.js} +8 -8
  221. package/dist/chunks/{model-aam1wbba.js → pty-sj1k89gn.js} +22 -22
  222. package/dist/chunks/{model-syv4x271.js → pty-syv4x271.js} +1 -1
  223. package/dist/chunks/{model-0m7ycz82.js → pty-sz1e9eqn.js} +15 -15
  224. package/dist/chunks/{model-a9g1m0ex.js → pty-t5bkfr6y.js} +18 -18
  225. package/dist/chunks/{model-rtaw32ca.js → pty-t8c3xmsp.js} +6 -6
  226. package/dist/chunks/{model-tazgh4e4.js → pty-tazgh4e4.js} +1 -1
  227. package/dist/chunks/{model-tcezcvh9.js → pty-tcezcvh9.js} +1 -1
  228. package/dist/chunks/{model-tdstcens.js → pty-tdstcens.js} +1 -1
  229. package/dist/chunks/{model-ankjvyyp.js → pty-tenjkvjc.js} +15 -15
  230. package/dist/chunks/{model-rert0e01.js → pty-tkb22qbm.js} +2 -2
  231. package/dist/chunks/{model-tm0kqsz3.js → pty-tm0kqsz3.js} +1 -1
  232. package/dist/chunks/{model-kmj26603.js → pty-tt8gc4fv.js} +6 -6
  233. package/dist/chunks/{model-4maedhka.js → pty-txbw3nms.js} +6 -6
  234. package/dist/chunks/{model-y43trhdb.js → pty-tye2g5vs.js} +5 -5
  235. package/dist/chunks/{model-tyytaxap.js → pty-tyytaxap.js} +1 -1
  236. package/dist/chunks/{model-n4c5dz5t.js → pty-v2r51t0g.js} +6 -6
  237. package/dist/chunks/{model-qa3qhgw8.js → pty-v5dkyp31.js} +4 -4
  238. package/dist/chunks/{model-v7p4zvkq.js → pty-v7p4zvkq.js} +2 -2
  239. package/dist/chunks/{model-64wcp3ah.js → pty-v8wcx65a.js} +21 -21
  240. package/dist/chunks/{model-wv1zjxz8.js → pty-vak501x5.js} +76 -76
  241. package/dist/chunks/{model-veqvce7d.js → pty-veqvce7d.js} +1 -1
  242. package/dist/chunks/{model-w0wzfpd6.js → pty-vfjbdpbc.js} +11 -11
  243. package/dist/chunks/{model-4zknrba3.js → pty-vfmy936b.js} +12 -12
  244. package/dist/chunks/{model-5r6fx5kf.js → pty-vj4msk15.js} +21 -21
  245. package/dist/chunks/{model-rr7kcg9w.js → pty-vjkhbcr1.js} +22 -22
  246. package/dist/chunks/{model-jpnzyfkp.js → pty-vq0fwg4j.js} +15 -15
  247. package/dist/chunks/{model-vzs5sf6e.js → pty-vzs5sf6e.js} +1 -1
  248. package/dist/chunks/{model-15wyy7w2.js → pty-w0pcsx04.js} +5 -5
  249. package/dist/chunks/{model-v3ff97sk.js → pty-w2veat89.js} +49 -49
  250. package/dist/chunks/{model-syqwr3zh.js → pty-w3t90m8a.js} +13 -13
  251. package/dist/chunks/{model-w3wsvvr9.js → pty-w3wsvvr9.js} +1 -1
  252. package/dist/chunks/{model-j1aawj34.js → pty-w579sh2t.js} +28 -28
  253. package/dist/chunks/{model-5fec3t3w.js → pty-waskdk5r.js} +9 -9
  254. package/dist/chunks/{model-dqkkx36v.js → pty-wcnw1vw1.js} +4 -4
  255. package/dist/chunks/{model-wd87259q.js → pty-wd87259q.js} +1 -1
  256. package/dist/chunks/{model-1gdg00yg.js → pty-wez1ajrw.js} +7 -7
  257. package/dist/chunks/{model-vd0d0qbj.js → pty-wq2f1mye.js} +16 -16
  258. package/dist/chunks/{model-ne4b8g45.js → pty-wrh894z7.js} +52 -52
  259. package/dist/chunks/{model-r3berafb.js → pty-ws3rr3fx.js} +35 -35
  260. package/dist/chunks/{model-es2a07ty.js → pty-wy73jbek.js} +13 -13
  261. package/dist/chunks/{model-7s91hvyw.js → pty-x0tkdd4v.js} +18 -18
  262. package/dist/chunks/{model-q9s78hn2.js → pty-x5jhdhzv.js} +9 -9
  263. package/dist/chunks/{model-dxe8y5pz.js → pty-xg5ymnxc.js} +4 -4
  264. package/dist/chunks/{model-41wwwxfc.js → pty-xnpn367r.js} +5 -5
  265. package/dist/chunks/{model-vaj0eftp.js → pty-xrdmrr14.js} +5 -5
  266. package/dist/chunks/{model-s1kvmffy.js → pty-xrpg47n6.js} +9 -9
  267. package/dist/chunks/{model-g9senpad.js → pty-xw6wytjz.js} +30 -30
  268. package/dist/chunks/{model-y1fvbwt7.js → pty-y1fvbwt7.js} +1 -1
  269. package/dist/chunks/{model-z8ajx630.js → pty-y6yhjvhw.js} +13 -13
  270. package/dist/chunks/{model-95vh4d4w.js → pty-y7j6ns4a.js} +65 -65
  271. package/dist/chunks/{model-hrd0r9w9.js → pty-y7vwj9hc.js} +38 -38
  272. package/dist/chunks/{model-51gxmejf.js → pty-y94agb53.js} +35 -35
  273. package/dist/chunks/{model-g70banep.js → pty-ydh080vk.js} +29 -29
  274. package/dist/chunks/pty-yjxftd19.js +257 -0
  275. package/dist/chunks/{model-dw7nrsaq.js → pty-ypw97atq.js} +346 -346
  276. package/dist/chunks/{model-22x4nvy2.js → pty-yq97mf54.js} +24 -24
  277. package/dist/chunks/{model-ywt8jp22.js → pty-ywt8jp22.js} +2 -2
  278. package/dist/chunks/{model-z0bkrqjs.js → pty-z0bkrqjs.js} +1 -1
  279. package/dist/chunks/{model-z18fegx4.js → pty-z18fegx4.js} +1 -1
  280. package/dist/chunks/{model-hyhre3w8.js → pty-z2b2xe7d.js} +6 -6
  281. package/dist/chunks/{model-hn57h045.js → pty-zcrspsvn.js} +4 -4
  282. package/dist/chunks/{model-agbqvzyh.js → pty-zdj3kqwc.js} +47 -47
  283. package/dist/chunks/{model-4347sc3p.js → pty-znp2av2g.js} +86 -86
  284. package/dist/chunks/{model-zr2ceqn5.js → pty-zr2ceqn5.js} +1 -1
  285. package/dist/chunks/{model-91rcp8sj.js → pty-ztsrdpdj.js} +5 -5
  286. package/dist/chunks/{model-zxq2ej10.js → pty-zxq2ej10.js} +1 -1
  287. package/dist/chunks/{model-e5shmecn.js → pty-zz1sb3nm.js} +25 -25
  288. package/dist/codemode/catalog.js +1 -1
  289. package/dist/codemode/instructions.js +9 -9
  290. package/dist/codemode/tool.js +3 -3
  291. package/dist/codemode/web.js +1 -1
  292. package/dist/command.js +81 -81
  293. package/dist/config/discovery.js +84 -84
  294. package/dist/config/markdown.js +1 -1
  295. package/dist/config/normalize.js +101 -101
  296. package/dist/config/plugin/agent.js +116 -116
  297. package/dist/config/plugin/command.js +206 -206
  298. package/dist/config/plugin/compaction.js +155 -155
  299. package/dist/config/plugin/compatibility.js +135 -135
  300. package/dist/config/plugin/entry-observer.js +1 -1
  301. package/dist/config/plugin/formatter.js +117 -117
  302. package/dist/config/plugin/image.js +116 -116
  303. package/dist/config/plugin/instruction.js +116 -116
  304. package/dist/config/plugin/location-watcher.js +116 -116
  305. package/dist/config/plugin/mcp.js +123 -123
  306. package/dist/config/plugin/policy.js +117 -117
  307. package/dist/config/plugin/provider.js +116 -116
  308. package/dist/config/plugin/reference.js +118 -118
  309. package/dist/config/plugin/shell.js +118 -118
  310. package/dist/config/plugin/skill-file.js +104 -104
  311. package/dist/config/plugin/skill-scan.js +3 -3
  312. package/dist/config/plugin/skill.js +138 -138
  313. package/dist/config/plugin/snapshot.js +116 -116
  314. package/dist/config/plugin/source.js +119 -119
  315. package/dist/config/plugin/tool-output.js +117 -117
  316. package/dist/config/plugin/websearch.js +117 -117
  317. package/dist/config/plugin/worktree.js +118 -118
  318. package/dist/config/variable.js +1 -1
  319. package/dist/config/watch.js +1 -1
  320. package/dist/config.js +121 -121
  321. package/dist/credential/sql.js +2 -2
  322. package/dist/credential.js +87 -87
  323. package/dist/database/database.js +74 -74
  324. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  325. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  326. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  327. package/dist/database/drizzle/index.js +15 -15
  328. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  329. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  330. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  331. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  332. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  333. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  334. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  335. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  336. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  337. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  338. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  339. package/dist/database/drizzle.js +16 -16
  340. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  341. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  342. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  343. package/dist/database/migration/20260225215848_workspace.js +1 -1
  344. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  345. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  346. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  347. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  348. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  349. package/dist/database/migration/20260323234822_events.js +1 -1
  350. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  351. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  352. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  353. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  354. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  355. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  356. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  357. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  358. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  359. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  360. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  361. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  362. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  363. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  364. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  365. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  366. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  367. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  368. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  369. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  370. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  371. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  372. package/dist/database/migration/20260611035744_credential.js +1 -1
  373. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  374. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  375. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  376. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  377. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  378. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  379. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  380. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  381. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  382. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  383. package/dist/database/migration/20260812213948_worktree.js +1 -1
  384. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  385. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  386. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  387. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  388. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  389. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  390. package/dist/database/migration.gen.js +51 -51
  391. package/dist/database/migration.js +53 -53
  392. package/dist/database/path.js +2 -2
  393. package/dist/database/schema.gen.js +1 -1
  394. package/dist/database/schema.sql.js +1 -1
  395. package/dist/database/sqlite.bun.js +1 -1
  396. package/dist/database/sqlite.js +1 -1
  397. package/dist/database/sqlite.node.js +1 -1
  398. package/dist/database/sqlite.workerd.js +1 -1
  399. package/dist/database/v1-migration.bun.js +81 -81
  400. package/dist/database/v1-migration.js +1 -1
  401. package/dist/effect/app-node-builder.js +370 -370
  402. package/dist/effect/app-node-platform.js +2 -2
  403. package/dist/effect/keyed-mutex.js +3 -3
  404. package/dist/effect/websocket-constructor.js +1 -1
  405. package/dist/environment/driver.js +1 -1
  406. package/dist/environment/environment.js +95 -95
  407. package/dist/environment/exec-defaults.js +2 -2
  408. package/dist/environment/files.js +1 -1
  409. package/dist/environment/index.js +97 -97
  410. package/dist/environment/local.js +2 -2
  411. package/dist/environment/memory.js +2 -2
  412. package/dist/environment/unavailable.js +3 -3
  413. package/dist/event/sql.js +1 -1
  414. package/dist/event-logger.js +76 -76
  415. package/dist/file-access.js +106 -106
  416. package/dist/file-mutation.js +96 -96
  417. package/dist/file-retention.js +1 -1
  418. package/dist/filesystem/fff.bun.js +2 -2
  419. package/dist/filesystem/fff.js +1 -1
  420. package/dist/filesystem/fff.node.js +2 -2
  421. package/dist/filesystem/fff.workerd.js +2 -2
  422. package/dist/filesystem/location-watcher-policy.js +6 -6
  423. package/dist/filesystem/location-watcher.js +215 -215
  424. package/dist/filesystem/protected.js +1 -1
  425. package/dist/filesystem/search.js +101 -101
  426. package/dist/filesystem/watcher-binding.js +3 -3
  427. package/dist/filesystem/watcher.js +13 -13
  428. package/dist/filesystem.js +102 -102
  429. package/dist/form.js +88 -88
  430. package/dist/formatter/builtins.js +4 -4
  431. package/dist/formatter.js +89 -89
  432. package/dist/generate.js +104 -104
  433. package/dist/git.js +10 -10
  434. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  435. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  436. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  437. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  438. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  439. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  440. package/dist/github-copilot/copilot-provider.js +17 -17
  441. package/dist/github-copilot/models.js +93 -93
  442. package/dist/github-copilot/openai-compatible-error.js +1 -1
  443. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  444. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  445. package/dist/github-copilot/responses/openai-error.js +1 -1
  446. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  447. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  448. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  449. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  450. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  451. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  452. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  453. package/dist/image/photon.js +2 -2
  454. package/dist/image.js +6 -6
  455. package/dist/instance/service.js +5 -5
  456. package/dist/instance.js +361 -361
  457. package/dist/instruction-discovery.js +82 -82
  458. package/dist/instructions/builtins.js +89 -89
  459. package/dist/instructions/index.js +5 -5
  460. package/dist/integration/connection.js +3 -3
  461. package/dist/integration.js +89 -89
  462. package/dist/job.js +80 -80
  463. package/dist/kv/sql.js +2 -2
  464. package/dist/kv.js +75 -75
  465. package/dist/location-activity.js +136 -136
  466. package/dist/location-lifecycle.js +109 -109
  467. package/dist/location-service-map.js +88 -88
  468. package/dist/location-services.js +358 -358
  469. package/dist/location.js +89 -89
  470. package/dist/managed-policy.js +8 -8
  471. package/dist/mcp/client.js +93 -93
  472. package/dist/mcp/index.js +105 -105
  473. package/dist/mcp/instructions.js +129 -129
  474. package/dist/mcp/oauth.js +80 -80
  475. package/dist/mcp/stdio.js +92 -92
  476. package/dist/mime.js +1 -1
  477. package/dist/modal/models.js +93 -93
  478. package/dist/model-resolver.js +100 -100
  479. package/dist/model-retry.js +1 -1
  480. package/dist/model.js +104 -104
  481. package/dist/models-dev.js +107 -107
  482. package/dist/oauth/page.js +1 -1
  483. package/dist/permission/saved.js +86 -86
  484. package/dist/permission/sql.js +5 -5
  485. package/dist/permission.js +121 -121
  486. package/dist/persistent-pty/binary.bun.js +1 -1
  487. package/dist/persistent-pty/daemon.js +1 -1
  488. package/dist/persistent-pty/index.js +82 -82
  489. package/dist/persistent-pty/pty-binding.js +1 -1
  490. package/dist/persistent-pty.js +77 -77
  491. package/dist/plugin/agent.js +76 -76
  492. package/dist/plugin/command.js +102 -102
  493. package/dist/plugin/hooks.js +5 -5
  494. package/dist/plugin/host.js +212 -212
  495. package/dist/plugin/identity.js +3 -3
  496. package/dist/plugin/instance.js +5 -5
  497. package/dist/plugin/internal.js +332 -332
  498. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  499. package/dist/plugin/models-dev.js +98 -98
  500. package/dist/plugin/module.js +115 -115
  501. package/dist/plugin/optimize.js +4 -4
  502. package/dist/plugin/plan.js +104 -104
  503. package/dist/plugin/promise.js +1 -1
  504. package/dist/plugin/provider/amazon-bedrock.js +92 -92
  505. package/dist/plugin/provider/azure.js +116 -116
  506. package/dist/plugin/provider/cerebras.js +1 -1
  507. package/dist/plugin/provider/chatgpt.js +116 -116
  508. package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
  509. package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
  510. package/dist/plugin/provider/cohere.js +2 -2
  511. package/dist/plugin/provider/configured.js +112 -112
  512. package/dist/plugin/provider/databricks.js +1 -1
  513. package/dist/plugin/provider/digitalocean.js +95 -95
  514. package/dist/plugin/provider/dynamic.js +2 -2
  515. package/dist/plugin/provider/factory.js +1 -1
  516. package/dist/plugin/provider/github-copilot.js +97 -97
  517. package/dist/plugin/provider/gitlab.js +95 -95
  518. package/dist/plugin/provider/google-vertex.js +113 -113
  519. package/dist/plugin/provider/kilo.js +1 -1
  520. package/dist/plugin/provider/llmgateway.js +80 -80
  521. package/dist/plugin/provider/lmstudio.js +123 -123
  522. package/dist/plugin/provider/local.js +122 -122
  523. package/dist/plugin/provider/modal.js +94 -94
  524. package/dist/plugin/provider/neon.js +1 -1
  525. package/dist/plugin/provider/nvidia.js +1 -1
  526. package/dist/plugin/provider/ollama.js +125 -125
  527. package/dist/plugin/provider/openai.js +118 -118
  528. package/dist/plugin/provider/opencode.js +100 -100
  529. package/dist/plugin/provider/openrouter.js +93 -93
  530. package/dist/plugin/provider/perplexity.js +2 -2
  531. package/dist/plugin/provider/poe.js +81 -81
  532. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  533. package/dist/plugin/provider/sap-ai-core.js +93 -93
  534. package/dist/plugin/provider/sdk-factory.js +1 -1
  535. package/dist/plugin/provider/snowflake-cortex.js +115 -115
  536. package/dist/plugin/provider/vercel.js +92 -92
  537. package/dist/plugin/provider/vllm.js +125 -125
  538. package/dist/plugin/provider/xai.js +93 -93
  539. package/dist/plugin/provider/zenmux.js +1 -1
  540. package/dist/plugin/provider.js +168 -168
  541. package/dist/plugin/sdk.js +78 -78
  542. package/dist/plugin/service.js +3 -3
  543. package/dist/plugin/skill.js +132 -132
  544. package/dist/plugin/source-directory.js +1 -1
  545. package/dist/plugin/supervisor.js +351 -351
  546. package/dist/plugin/tool-input-repair.js +4 -4
  547. package/dist/plugin/update.js +6 -6
  548. package/dist/plugin/vcs/git.js +88 -88
  549. package/dist/plugin/vcs/hg.js +88 -88
  550. package/dist/plugin/verbosity.js +95 -95
  551. package/dist/plugin/warming.js +114 -114
  552. package/dist/plugin/websearch/exa.js +5 -5
  553. package/dist/plugin/websearch/firecrawl.js +6 -6
  554. package/dist/plugin/websearch/index.js +9 -9
  555. package/dist/plugin/websearch/mcp.js +2 -2
  556. package/dist/plugin/websearch/parallel.js +8 -8
  557. package/dist/plugin/websearch/tavily.js +4 -4
  558. package/dist/plugin/websearch/tinyfish.js +6 -6
  559. package/dist/plugin.js +219 -219
  560. package/dist/project/schema.js +8 -8
  561. package/dist/project/sql.js +4 -4
  562. package/dist/project.js +92 -92
  563. package/dist/provider.js +103 -103
  564. package/dist/pty/protocol.js +1 -1
  565. package/dist/pty/ticket.js +1 -1
  566. package/dist/pty.js +101 -101
  567. package/dist/reference/instructions.js +91 -91
  568. package/dist/reference.js +93 -93
  569. package/dist/repository-cache.js +83 -83
  570. package/dist/repository.js +3 -3
  571. package/dist/ripgrep/binary.js +2 -2
  572. package/dist/ripgrep.js +97 -97
  573. package/dist/rpc.js +88 -88
  574. package/dist/schema.js +1 -1
  575. package/dist/session/affinity.js +3 -3
  576. package/dist/session/command.js +76 -76
  577. package/dist/session/compaction.js +136 -136
  578. package/dist/session/context.js +155 -155
  579. package/dist/session/diff.js +90 -90
  580. package/dist/session/environment.js +5 -5
  581. package/dist/session/error.js +5 -5
  582. package/dist/session/event.js +1 -1
  583. package/dist/session/execution/restart.js +218 -218
  584. package/dist/session/execution.js +129 -129
  585. package/dist/session/generate.js +155 -155
  586. package/dist/session/history.js +15 -15
  587. package/dist/session/inbox.js +88 -88
  588. package/dist/session/info.js +3 -3
  589. package/dist/session/instruction-entry.js +81 -81
  590. package/dist/session/instruction-state.js +8 -8
  591. package/dist/session/instructions.js +99 -99
  592. package/dist/session/message-updater.js +2 -2
  593. package/dist/session/message.js +1 -1
  594. package/dist/session/model-request.js +120 -120
  595. package/dist/session/model-transport.js +7 -7
  596. package/dist/session/move.js +131 -131
  597. package/dist/session/projector.js +88 -88
  598. package/dist/session/prompt.js +107 -107
  599. package/dist/session/provider-context.js +3 -3
  600. package/dist/session/revert.js +92 -92
  601. package/dist/session/run-coordinator.js +3 -3
  602. package/dist/session/runner/index.js +3 -3
  603. package/dist/session/runner/llm.js +225 -225
  604. package/dist/session/runner/max-steps.js +1 -1
  605. package/dist/session/runner/model.js +100 -100
  606. package/dist/session/runner/publish-llm-event.js +115 -115
  607. package/dist/session/runner/retry.js +5 -5
  608. package/dist/session/runner/step.js +128 -128
  609. package/dist/session/runner/to-llm-message.js +2 -2
  610. package/dist/session/schema.js +5 -5
  611. package/dist/session/session.js +164 -164
  612. package/dist/session/shell.js +130 -130
  613. package/dist/session/skill.js +107 -107
  614. package/dist/session/sql.js +5 -5
  615. package/dist/session/stats.js +77 -77
  616. package/dist/session/store.js +89 -89
  617. package/dist/session/subagent-completion.js +1 -1
  618. package/dist/session/subagent-job.js +206 -206
  619. package/dist/session/system-prompt.js +3 -3
  620. package/dist/session/title.js +159 -159
  621. package/dist/session/to-session-error.js +113 -113
  622. package/dist/session/transfer.js +217 -217
  623. package/dist/session/usage.js +1 -1
  624. package/dist/session.js +210 -210
  625. package/dist/shell/parse.js +8 -8
  626. package/dist/shell/result.js +1 -1
  627. package/dist/shell/scan.js +1 -1
  628. package/dist/shell/select.js +9 -9
  629. package/dist/shell.js +132 -132
  630. package/dist/skill/discovery.js +6 -6
  631. package/dist/skill/instructions.js +109 -109
  632. package/dist/skill.js +114 -114
  633. package/dist/snapshot.js +91 -91
  634. package/dist/state.js +1 -1
  635. package/dist/tool/html-markdown.js +1 -1
  636. package/dist/tool/http-body.js +1 -1
  637. package/dist/tool/mcp.js +124 -124
  638. package/dist/tool/plugin/edit.js +122 -122
  639. package/dist/tool/plugin/file-diff.js +1 -1
  640. package/dist/tool/plugin/glob.js +126 -126
  641. package/dist/tool/plugin/grep.js +126 -126
  642. package/dist/tool/plugin/mcp-resource.js +119 -119
  643. package/dist/tool/plugin/opencode.js +111 -111
  644. package/dist/tool/plugin/patch.js +124 -124
  645. package/dist/tool/plugin/question.js +103 -103
  646. package/dist/tool/plugin/read.js +125 -125
  647. package/dist/tool/plugin/shell.js +211 -211
  648. package/dist/tool/plugin/skill.js +115 -115
  649. package/dist/tool/plugin/subagent.js +213 -213
  650. package/dist/tool/plugin/todo.js +138 -138
  651. package/dist/tool/plugin/webfetch.js +106 -106
  652. package/dist/tool/plugin/websearch.js +116 -116
  653. package/dist/tool/plugin/write.js +122 -122
  654. package/dist/tool/read-filesystem.js +102 -102
  655. package/dist/tool/runtime.js +1 -1
  656. package/dist/tool-output.js +7 -7
  657. package/dist/tool.js +14 -14
  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 +5 -5
  668. package/dist/v1/config/command.js +3 -3
  669. package/dist/v1/config/error.js +2 -2
  670. package/dist/v1/config/mcp.js +4 -4
  671. package/dist/v1/config/migrate.js +94 -94
  672. package/dist/v1/config/permission.js +7 -7
  673. package/dist/v1/config/plugin.js +3 -3
  674. package/dist/v1/config/provider-options.js +1 -1
  675. package/dist/v1/config/provider.js +4 -4
  676. package/dist/variant.js +95 -95
  677. package/dist/vcs/patch.js +1 -1
  678. package/dist/vcs.js +85 -85
  679. package/dist/voice.js +90 -90
  680. package/dist/websearch.js +80 -80
  681. package/dist/wellknown/plugin.js +78 -78
  682. package/dist/wellknown.js +83 -83
  683. package/dist/workspace/driver.js +7 -7
  684. package/dist/workspace/sql.js +1 -1
  685. package/dist/workspace.js +84 -84
  686. package/dist/worktree/directory.js +2 -2
  687. package/dist/worktree/git.js +10 -10
  688. package/dist/worktree/sql.js +5 -5
  689. package/dist/worktree/strategies.js +91 -91
  690. package/dist/worktree.js +100 -100
  691. package/package.json +8 -8
  692. package/dist/chunks/model-4v23spqy.js +0 -257
  693. package/dist/chunks/model-7bkvk8rj.js +0 -26
  694. package/dist/chunks/model-rap9a73h.js +0 -18
  695. /package/dist/chunks/{model-0qkdqm5v.js → pty-0qkdqm5v.js} +0 -0
  696. /package/dist/chunks/{model-0zkw76rk.js → pty-0zkw76rk.js} +0 -0
  697. /package/dist/chunks/{model-17cy0kzp.js → pty-17cy0kzp.js} +0 -0
  698. /package/dist/chunks/{model-1cnp2v09.js → pty-1cnp2v09.js} +0 -0
  699. /package/dist/chunks/{model-1kg9ymc8.js → pty-1kg9ymc8.js} +0 -0
  700. /package/dist/chunks/{model-24dcb14g.js → pty-24dcb14g.js} +0 -0
  701. /package/dist/chunks/{model-2710q6r3.js → pty-2710q6r3.js} +0 -0
  702. /package/dist/chunks/{model-2axfhc9x.js → pty-2axfhc9x.js} +0 -0
  703. /package/dist/chunks/{model-2bv980vf.js → pty-2bv980vf.js} +0 -0
  704. /package/dist/chunks/{model-2c3vjs8z.js → pty-2c3vjs8z.js} +0 -0
  705. /package/dist/chunks/{model-359p4xyc.js → pty-359p4xyc.js} +0 -0
  706. /package/dist/chunks/{model-3asan66x.js → pty-3asan66x.js} +0 -0
  707. /package/dist/chunks/{model-3t0ybcrp.js → pty-3t0ybcrp.js} +0 -0
  708. /package/dist/chunks/{model-3v8g72cx.js → pty-3v8g72cx.js} +0 -0
  709. /package/dist/chunks/{model-3wcehsnq.js → pty-3wcehsnq.js} +0 -0
  710. /package/dist/chunks/{model-43n2bw4t.js → pty-43n2bw4t.js} +0 -0
  711. /package/dist/chunks/{model-4knz6hnm.js → pty-4knz6hnm.js} +0 -0
  712. /package/dist/chunks/{model-4vcrnpx2.js → pty-4vcrnpx2.js} +0 -0
  713. /package/dist/chunks/{model-4y7fprxs.js → pty-4y7fprxs.js} +0 -0
  714. /package/dist/chunks/{model-53557ph1.js → pty-53557ph1.js} +0 -0
  715. /package/dist/chunks/{model-550bvhaj.js → pty-550bvhaj.js} +0 -0
  716. /package/dist/chunks/{model-6prwharc.js → pty-6prwharc.js} +0 -0
  717. /package/dist/chunks/{model-6q2bdcd1.js → pty-6q2bdcd1.js} +0 -0
  718. /package/dist/chunks/{model-7akdwqpd.js → pty-7akdwqpd.js} +0 -0
  719. /package/dist/chunks/{model-7m9af43g.js → pty-7m9af43g.js} +0 -0
  720. /package/dist/chunks/{model-822emrt2.js → pty-822emrt2.js} +0 -0
  721. /package/dist/chunks/{model-84wd9syh.js → pty-84wd9syh.js} +0 -0
  722. /package/dist/chunks/{model-88xbtdfr.js → pty-88xbtdfr.js} +0 -0
  723. /package/dist/chunks/{model-8n3pysct.js → pty-8n3pysct.js} +0 -0
  724. /package/dist/chunks/{model-8wj87zfr.js → pty-8wj87zfr.js} +0 -0
  725. /package/dist/chunks/{model-9a4afbnw.js → pty-9a4afbnw.js} +0 -0
  726. /package/dist/chunks/{model-9rqn6x4v.js → pty-9rqn6x4v.js} +0 -0
  727. /package/dist/chunks/{model-a6k6eb26.js → pty-a6k6eb26.js} +0 -0
  728. /package/dist/chunks/{model-af5trqkr.js → pty-af5trqkr.js} +0 -0
  729. /package/dist/chunks/{model-afrmfg78.js → pty-afrmfg78.js} +0 -0
  730. /package/dist/chunks/{model-aqzs7mqg.js → pty-aqzs7mqg.js} +0 -0
  731. /package/dist/chunks/{model-atq7p7m5.js → pty-atq7p7m5.js} +0 -0
  732. /package/dist/chunks/{model-bkyjaxrp.js → pty-bkyjaxrp.js} +0 -0
  733. /package/dist/chunks/{model-bmr6ed5q.js → pty-bmr6ed5q.js} +0 -0
  734. /package/dist/chunks/{model-cf4snx6d.js → pty-cf4snx6d.js} +0 -0
  735. /package/dist/chunks/{model-cvy3z8tj.js → pty-cvy3z8tj.js} +0 -0
  736. /package/dist/chunks/{model-d9fn303g.js → pty-d9fn303g.js} +0 -0
  737. /package/dist/chunks/{model-d9jj8t3e.js → pty-d9jj8t3e.js} +0 -0
  738. /package/dist/chunks/{model-dajrwvna.js → pty-dajrwvna.js} +0 -0
  739. /package/dist/chunks/{model-dap0rakb.js → pty-dap0rakb.js} +0 -0
  740. /package/dist/chunks/{model-df08tz66.js → pty-df08tz66.js} +0 -0
  741. /package/dist/chunks/{model-dy18nga0.js → pty-dy18nga0.js} +0 -0
  742. /package/dist/chunks/{model-e5kj55wp.js → pty-e5kj55wp.js} +0 -0
  743. /package/dist/chunks/{model-e73j6tqm.js → pty-e73j6tqm.js} +0 -0
  744. /package/dist/chunks/{model-ec1grn59.js → pty-ec1grn59.js} +0 -0
  745. /package/dist/chunks/{model-eh3zwz77.js → pty-eh3zwz77.js} +0 -0
  746. /package/dist/chunks/{model-emrn6kk6.js → pty-emrn6kk6.js} +0 -0
  747. /package/dist/chunks/{model-f0mxakyp.js → pty-f0mxakyp.js} +0 -0
  748. /package/dist/chunks/{model-f6n9ztr4.js → pty-f6n9ztr4.js} +0 -0
  749. /package/dist/chunks/{model-faypxj3z.js → pty-faypxj3z.js} +0 -0
  750. /package/dist/chunks/{model-fd410y7t.js → pty-fd410y7t.js} +0 -0
  751. /package/dist/chunks/{model-g4wezp1m.js → pty-g4wezp1m.js} +0 -0
  752. /package/dist/chunks/{model-g86h250q.js → pty-g86h250q.js} +0 -0
  753. /package/dist/chunks/{model-gebd4c9n.js → pty-gebd4c9n.js} +0 -0
  754. /package/dist/chunks/{model-gftt206x.js → pty-gftt206x.js} +0 -0
  755. /package/dist/chunks/{model-hcxmzztb.js → pty-hcxmzztb.js} +0 -0
  756. /package/dist/chunks/{model-hk9envan.js → pty-hk9envan.js} +0 -0
  757. /package/dist/chunks/{model-j2ntwpah.js → pty-j2ntwpah.js} +0 -0
  758. /package/dist/chunks/{model-j5zkgpj8.js → pty-j5zkgpj8.js} +0 -0
  759. /package/dist/chunks/{model-jjkms2e6.js → pty-jjkms2e6.js} +0 -0
  760. /package/dist/chunks/{model-jr7sbwjy.js → pty-jr7sbwjy.js} +0 -0
  761. /package/dist/chunks/{model-jwfs4k6c.js → pty-jwfs4k6c.js} +0 -0
  762. /package/dist/chunks/{model-jze0r7bz.js → pty-jze0r7bz.js} +0 -0
  763. /package/dist/chunks/{model-jzg6c2d5.js → pty-jzg6c2d5.js} +0 -0
  764. /package/dist/chunks/{model-m18g726c.js → pty-m18g726c.js} +0 -0
  765. /package/dist/chunks/{model-mp448xyj.js → pty-mp448xyj.js} +0 -0
  766. /package/dist/chunks/{model-msx8hqn2.js → pty-msx8hqn2.js} +0 -0
  767. /package/dist/chunks/{model-n05xt0ee.js → pty-n05xt0ee.js} +0 -0
  768. /package/dist/chunks/{model-n3j8tn72.js → pty-n3j8tn72.js} +0 -0
  769. /package/dist/chunks/{model-njntx4h6.js → pty-njntx4h6.js} +0 -0
  770. /package/dist/chunks/{model-pkyv6v7h.js → pty-pkyv6v7h.js} +0 -0
  771. /package/dist/chunks/{model-pyv0edze.js → pty-pyv0edze.js} +0 -0
  772. /package/dist/chunks/{model-q3sfg36h.js → pty-q3sfg36h.js} +0 -0
  773. /package/dist/chunks/{model-q74kybfr.js → pty-q74kybfr.js} +0 -0
  774. /package/dist/chunks/{model-qaymkmh1.js → pty-qaymkmh1.js} +0 -0
  775. /package/dist/chunks/{model-qb87gjwd.js → pty-qb87gjwd.js} +0 -0
  776. /package/dist/chunks/{model-qfa1cgps.js → pty-qfa1cgps.js} +0 -0
  777. /package/dist/chunks/{model-qg3g05ea.js → pty-qg3g05ea.js} +0 -0
  778. /package/dist/chunks/{model-qrg20bc0.js → pty-qrg20bc0.js} +0 -0
  779. /package/dist/chunks/{model-rcb2kzg1.js → pty-rcb2kzg1.js} +0 -0
  780. /package/dist/chunks/{model-sdp7kfr6.js → pty-sdp7kfr6.js} +0 -0
  781. /package/dist/chunks/{model-ssg3fenm.js → pty-ssg3fenm.js} +0 -0
  782. /package/dist/chunks/{model-ve7vex1e.js → pty-ve7vex1e.js} +0 -0
  783. /package/dist/chunks/{model-w803qqfp.js → pty-w803qqfp.js} +0 -0
  784. /package/dist/chunks/{model-wc3fc9cn.js → pty-wc3fc9cn.js} +0 -0
  785. /package/dist/chunks/{model-wer8tq1h.js → pty-wer8tq1h.js} +0 -0
  786. /package/dist/chunks/{model-wjj7prxr.js → pty-wjj7prxr.js} +0 -0
  787. /package/dist/chunks/{model-wtztk69x.js → pty-wtztk69x.js} +0 -0
  788. /package/dist/chunks/{model-x0ckcb58.js → pty-x0ckcb58.js} +0 -0
  789. /package/dist/chunks/{model-x61499pn.js → pty-x61499pn.js} +0 -0
  790. /package/dist/chunks/{model-y44na4kk.js → pty-y44na4kk.js} +0 -0
  791. /package/dist/chunks/{model-y8f7s663.js → pty-y8f7s663.js} +0 -0
  792. /package/dist/chunks/{model-ygaqb7jw.js → pty-ygaqb7jw.js} +0 -0
  793. /package/dist/chunks/{model-ym463w8f.js → pty-ym463w8f.js} +0 -0
  794. /package/dist/chunks/{model-z5v4ffb3.js → pty-z5v4ffb3.js} +0 -0
  795. /package/dist/chunks/{model-z9919s4g.js → pty-z9919s4g.js} +0 -0
@@ -1,49 +1,49 @@
1
1
  import {
2
2
  typeFollowing2
3
- } from "./model-hgz4x7wa.js";
3
+ } from "./pty-hgz4x7wa.js";
4
4
  import {
5
5
  RelativePath2
6
- } from "./model-z5v4ffb3.js";
6
+ } from "./pty-z5v4ffb3.js";
7
7
  import {
8
- Service80
9
- } from "./model-pmrbxne1.js";
8
+ Service78
9
+ } from "./pty-emdb9ywx.js";
10
10
  import {
11
- Service63
12
- } from "./model-5nszh0bg.js";
11
+ Service58
12
+ } from "./pty-d54gtgr2.js";
13
13
  import {
14
- Service16
15
- } from "./model-3ev0eyv6.js";
14
+ Service23
15
+ } from "./pty-gb91ecjr.js";
16
16
  import {
17
17
  DEFAULT_SEARCH_LIMIT2,
18
18
  DEFAULT_SEARCH_TIMEOUT_MS2,
19
19
  GlobInput2,
20
20
  Entry2
21
- } from "./model-yhd4kr0d.js";
21
+ } from "./pty-khtxvdmw.js";
22
22
  import {
23
- Service50
24
- } from "./model-95vh4d4w.js";
23
+ Service73
24
+ } from "./pty-y7j6ns4a.js";
25
25
  import {
26
- Service45
27
- } from "./model-7s91hvyw.js";
26
+ Service48
27
+ } from "./pty-x0tkdd4v.js";
28
28
  import {
29
29
  __export
30
- } from "./model-9rqn6x4v.js";
30
+ } from "./pty-9rqn6x4v.js";
31
31
 
32
32
  // src/tool/plugin/glob.ts
33
33
  var exports_glob = {};
34
34
  __export(exports_glob, {
35
35
  GlobTool: () => exports_glob,
36
- Input: () => Input4,
37
- Output: () => Output4,
38
- Plugin: () => Plugin4,
39
- name: () => name4,
40
- toModelContent: () => toModelContent3
36
+ Input: () => Input2,
37
+ Output: () => Output2,
38
+ Plugin: () => Plugin21,
39
+ name: () => name2,
40
+ toModelContent: () => toModelContent2
41
41
  });
42
42
  import { ToolFailure } from "@opencode/ai";
43
43
  import { Effect, Schema } from "effect";
44
44
  import path from "path";
45
- var name4 = "glob";
46
- var Input4 = Schema.Struct({
45
+ var name2 = "glob";
46
+ var Input2 = Schema.Struct({
47
47
  pattern: GlobInput2.fields.pattern.annotate({ description: "Glob pattern to match files against" }),
48
48
  path: Schema.optionalKey(RelativePath2).annotate({
49
49
  description: "Directory to search. Defaults to the current working directory."
@@ -55,35 +55,35 @@ var Input4 = Schema.Struct({
55
55
  description: `Maximum number of matching files to return (default: ${DEFAULT_SEARCH_LIMIT2})`
56
56
  })
57
57
  });
58
- var Output4 = Schema.Array(Entry2);
59
- var toModelContent3 = (entries, truncated = false) => {
58
+ var Output2 = Schema.Array(Entry2);
59
+ var toModelContent2 = (entries, truncated = false) => {
60
60
  const lines = entries.length === 0 ? ["No files found"] : entries.map((item) => item.path);
61
61
  if (truncated)
62
62
  lines.push("", `(Results are truncated: showing first ${entries.length} results. Consider using a more specific path or pattern.)`);
63
63
  return lines.join(`
64
64
  `);
65
65
  };
66
- var Plugin4 = {
66
+ var Plugin21 = {
67
67
  id: "opencode.tool.glob",
68
68
  effect: Effect.fn("GlobTool.Plugin")(function* (ctx) {
69
- const environment = yield* Service63;
70
- const ripgrep = yield* Service16;
71
- const location = yield* Service80;
72
- const access = yield* Service45;
73
- const permission = yield* Service50;
69
+ const environment = yield* Service58;
70
+ const ripgrep = yield* Service23;
71
+ const location = yield* Service78;
72
+ const access = yield* Service48;
73
+ const permission = yield* Service73;
74
74
  yield* ctx.tool.transform((editor) => editor.add({
75
- name: name4,
75
+ name: name2,
76
76
  options: { codemode: false },
77
77
  description: 'Search file paths using a glob pattern (examples: "**/*.ts", "src/**/*.tsx").',
78
- input: Input4,
79
- output: Output4,
78
+ input: Input2,
79
+ output: Output2,
80
80
  execute: (input, context) => Effect.gen(function* () {
81
81
  const searchPath = input.path === "undefined" || input.path === "null" ? undefined : input.path;
82
82
  const source = { type: "tool", messageID: context.messageID, id: context.id };
83
83
  const target = yield* access.resolve({ path: searchPath ?? ".", kind: "directory" });
84
84
  yield* access.authorizeExternal([target], context);
85
85
  yield* permission.assert({
86
- action: name4,
86
+ action: name2,
87
87
  resources: [input.pattern],
88
88
  save: ["*"],
89
89
  metadata: {
@@ -118,11 +118,11 @@ var Plugin4 = {
118
118
  return { entries: entries.slice(0, limit), truncated: entries.length > limit };
119
119
  }).pipe(Effect.map((result) => ({
120
120
  output: result.entries,
121
- content: toModelContent3(result.entries.map((entry) => ({ ...entry, path: path.resolve(location.directory, entry.path) })), result.truncated),
121
+ content: toModelContent2(result.entries.map((entry) => ({ ...entry, path: path.resolve(location.directory, entry.path) })), result.truncated),
122
122
  metadata: { count: result.entries.length, truncated: result.truncated }
123
123
  })), Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: `Unable to find files matching ${input.pattern}`, error })))
124
124
  })).pipe(Effect.orDie);
125
125
  })
126
126
  };
127
127
 
128
- export { name4, Input4, Output4, toModelContent3, Plugin4, exports_glob };
128
+ export { name2, Input2, Output2, toModelContent2, Plugin21, exports_glob };
@@ -1,10 +1,10 @@
1
1
  import {
2
- Service85,
3
- node89
4
- } from "./model-vd0d0qbj.js";
2
+ Service81,
3
+ node85
4
+ } from "./pty-wq2f1mye.js";
5
5
  import {
6
6
  __export
7
- } from "./model-9rqn6x4v.js";
7
+ } from "./pty-9rqn6x4v.js";
8
8
 
9
9
  // src/form.ts
10
10
  var exports_form = {};
@@ -12,40 +12,40 @@ __export(exports_form, {
12
12
  AlreadyExistsError: () => AlreadyExistsError2,
13
13
  AlreadySettledError: () => AlreadySettledError2,
14
14
  Answer: () => Answer2,
15
- Event: () => Event20,
15
+ Event: () => Event16,
16
16
  Field: () => Field2,
17
17
  Fields: () => Fields2,
18
18
  Form: () => exports_form,
19
- ID: () => ID17,
20
- Info: () => Info29,
19
+ ID: () => ID10,
20
+ Info: () => Info21,
21
21
  InvalidAnswerError: () => InvalidAnswerError2,
22
22
  InvalidFormError: () => InvalidFormError2,
23
- NotFoundError: () => NotFoundError12,
24
- Reply: () => Reply3,
25
- Service: () => Service83,
23
+ NotFoundError: () => NotFoundError7,
24
+ Reply: () => Reply2,
25
+ Service: () => Service69,
26
26
  State: () => State3,
27
27
  When: () => When2,
28
- layer: () => layer28,
29
- node: () => node87,
28
+ layer: () => layer27,
29
+ node: () => node73,
30
30
  validateAnswer: () => validateAnswer2,
31
31
  validateFields: () => validateFields2
32
32
  });
33
33
  import { Form } from "@opencode/schema/form";
34
34
  import { Cache, Context, Deferred, Duration, Effect, Exit, Layer, Option, Schema } from "effect";
35
35
  import { makeLocationNode } from "@opencode/util/effect/app-node";
36
- import { Event as Event20 } from "@opencode/schema/form";
36
+ import { Event as Event16 } from "@opencode/schema/form";
37
37
  var RETENTION = Duration.minutes(10);
38
- var ID17 = Form.ID;
39
- var Info29 = Form.Info;
38
+ var ID10 = Form.ID;
39
+ var Info21 = Form.Info;
40
40
  var Field2 = Form.Field;
41
41
  var Fields2 = Form.Fields;
42
42
  var When2 = Form.When;
43
43
  var State3 = Form.State;
44
44
  var Answer2 = Form.Answer;
45
- var Reply3 = Form.Reply;
45
+ var Reply2 = Form.Reply;
46
46
 
47
- class NotFoundError12 extends Schema.TaggedError()("Form.NotFoundError", {
48
- id: ID17
47
+ class NotFoundError7 extends Schema.TaggedError()("Form.NotFoundError", {
48
+ id: ID10
49
49
  }) {
50
50
  get message() {
51
51
  return `Form not found: ${this.id}`;
@@ -53,7 +53,7 @@ class NotFoundError12 extends Schema.TaggedError()("Form.NotFoundError", {
53
53
  }
54
54
 
55
55
  class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledError", {
56
- id: ID17
56
+ id: ID10
57
57
  }) {
58
58
  get message() {
59
59
  return `Form already settled: ${this.id}`;
@@ -61,7 +61,7 @@ class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledErro
61
61
  }
62
62
 
63
63
  class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError", {
64
- id: ID17
64
+ id: ID10
65
65
  }) {
66
66
  get message() {
67
67
  return `Form already exists: ${this.id}`;
@@ -69,7 +69,7 @@ class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError"
69
69
  }
70
70
 
71
71
  class InvalidAnswerError2 extends Schema.TaggedError()("Form.InvalidAnswerError", {
72
- id: ID17,
72
+ id: ID10,
73
73
  message: Schema.String
74
74
  }) {
75
75
  }
@@ -79,18 +79,18 @@ class InvalidFormError2 extends Schema.TaggedError()("Form.InvalidFormError", {
79
79
  }) {
80
80
  }
81
81
 
82
- class Service83 extends Context.Service()("@opencode/Form") {
82
+ class Service69 extends Context.Service()("@opencode/Form") {
83
83
  }
84
- var layer28 = Layer.effect(Service83, Effect.gen(function* () {
85
- const bus = yield* Service85;
84
+ var layer27 = Layer.effect(Service69, Effect.gen(function* () {
85
+ const bus = yield* Service81;
86
86
  let closed = false;
87
87
  const forms = yield* Cache.makeWith(() => Effect.die(new Error("Form cache must be used via set/getSuccess, never get")), {
88
88
  capacity: Number.MAX_SAFE_INTEGER,
89
89
  timeToLive: (exit) => Exit.isSuccess(exit) && exit.value.state.status === "pending" ? Duration.infinity : RETENTION
90
90
  });
91
- const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new NotFoundError12({ id })))));
91
+ const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new NotFoundError7({ id })))));
92
92
  const create = Effect.fn("Form.create")((input) => Effect.uninterruptible(Effect.gen(function* () {
93
- const id = input.id ?? ID17.create();
93
+ const id = input.id ?? ID10.create();
94
94
  const existing = yield* Cache.getSuccess(forms, id);
95
95
  if (Option.isSome(existing))
96
96
  return yield* new AlreadyExistsError2({ id });
@@ -162,9 +162,9 @@ var layer28 = Layer.effect(Service83, Effect.gen(function* () {
162
162
  closed = true;
163
163
  }).pipe(Effect.andThen(Cache.values(forms)), Effect.flatMap((entries) => Effect.forEach(Array.from(entries).filter((entry) => entry.state.status === "pending"), (entry) => cancel(entry.form.id).pipe(Effect.ignore), { discard: true })));
164
164
  yield* Effect.addFinalizer(() => close);
165
- return Service83.of({ create, ask, get, list, state, reply, cancel, close });
165
+ return Service69.of({ create, ask, get, list, state, reply, cancel, close });
166
166
  }));
167
- var node87 = makeLocationNode({ service: Service83, layer: layer28, deps: [node89] });
167
+ var node73 = makeLocationNode({ service: Service69, layer: layer27, deps: [node85] });
168
168
  function validateAnswer2(form, answer) {
169
169
  const fields = new Map(form.map((field) => [field.key, field]));
170
170
  for (const key of Object.keys(answer)) {
@@ -316,4 +316,4 @@ function isDateTime(value) {
316
316
  return !Number.isNaN(new Date(value).getTime());
317
317
  }
318
318
 
319
- export { ID17, Info29, Field2, Fields2, When2, State3, Answer2, Reply3, NotFoundError12, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service83, layer28, node87, validateAnswer2, validateFields2, exports_form, Event20 };
319
+ export { ID10, Info21, Field2, Fields2, When2, State3, Answer2, Reply2, NotFoundError7, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service69, layer27, node73, validateAnswer2, validateFields2, exports_form, Event16 };
@@ -0,0 +1,257 @@
1
+ import {
2
+ node80
3
+ } from "./pty-ghttpbhe.js";
4
+ import {
5
+ node73
6
+ } from "./pty-ydh080vk.js";
7
+ import {
8
+ node71
9
+ } from "./pty-j5y9yxpr.js";
10
+ import {
11
+ node82,
12
+ boundNode2
13
+ } from "./pty-emdb9ywx.js";
14
+ import {
15
+ node70
16
+ } from "./pty-ws3rr3fx.js";
17
+ import {
18
+ node69
19
+ } from "./pty-knfhyvcc.js";
20
+ import {
21
+ node68
22
+ } from "./pty-dbe6ax9h.js";
23
+ import {
24
+ node41
25
+ } from "./pty-6sk5sj01.js";
26
+ import {
27
+ configured6,
28
+ node57
29
+ } from "./pty-w2veat89.js";
30
+ import {
31
+ node60
32
+ } from "./pty-d54gtgr2.js";
33
+ import {
34
+ node52
35
+ } from "./pty-wy73jbek.js";
36
+ import {
37
+ node49
38
+ } from "./pty-0prfbnza.js";
39
+ import {
40
+ node20
41
+ } from "./pty-j7jn4qex.js";
42
+ import {
43
+ DirectoryNotFoundError2,
44
+ node19
45
+ } from "./pty-khtxvdmw.js";
46
+ import {
47
+ node67
48
+ } from "./pty-7jvyjmqp.js";
49
+ import {
50
+ node17
51
+ } from "./pty-t5bkfr6y.js";
52
+ import {
53
+ node18
54
+ } from "./pty-yq97mf54.js";
55
+ import {
56
+ node89
57
+ } from "./pty-ry6831an.js";
58
+ import {
59
+ node32
60
+ } from "./pty-8c229cqm.js";
61
+ import {
62
+ Service44,
63
+ node46
64
+ } from "./pty-51f5btjf.js";
65
+ import {
66
+ node38
67
+ } from "./pty-kawxgbzv.js";
68
+ import {
69
+ node90
70
+ } from "./pty-5gzjtbzb.js";
71
+ import {
72
+ node77
73
+ } from "./pty-y7j6ns4a.js";
74
+ import {
75
+ node45
76
+ } from "./pty-gecaqdc7.js";
77
+ import {
78
+ configured5,
79
+ node51
80
+ } from "./pty-9z80hxc4.js";
81
+ import {
82
+ node39
83
+ } from "./pty-rqhgjz8j.js";
84
+ import {
85
+ node88
86
+ } from "./pty-be2m8mkb.js";
87
+ import {
88
+ node31
89
+ } from "./pty-vj4msk15.js";
90
+ import {
91
+ node40
92
+ } from "./pty-8t56p07m.js";
93
+ import {
94
+ node30
95
+ } from "./pty-k0dv98ax.js";
96
+ import {
97
+ node76
98
+ } from "./pty-w579sh2t.js";
99
+ import {
100
+ node33
101
+ } from "./pty-2vx1pgcs.js";
102
+ import {
103
+ node28
104
+ } from "./pty-znp2av2g.js";
105
+ import {
106
+ node42
107
+ } from "./pty-v8wcx65a.js";
108
+ import {
109
+ node75
110
+ } from "./pty-sz1e9eqn.js";
111
+ import {
112
+ node59
113
+ } from "./pty-f59ep6tb.js";
114
+ import {
115
+ node55
116
+ } from "./pty-ewzhehhx.js";
117
+ import {
118
+ node54
119
+ } from "./pty-emtnyy8a.js";
120
+ import {
121
+ node21
122
+ } from "./pty-b5s7rv85.js";
123
+ import {
124
+ node23
125
+ } from "./pty-fna3snnf.js";
126
+ import {
127
+ node25
128
+ } from "./pty-5py0qphe.js";
129
+ import {
130
+ node16
131
+ } from "./pty-5pckqsa0.js";
132
+ import {
133
+ node2
134
+ } from "./pty-2x278s08.js";
135
+ import {
136
+ Service51,
137
+ node53
138
+ } from "./pty-5g9mj0x8.js";
139
+ import {
140
+ node50
141
+ } from "./pty-x0tkdd4v.js";
142
+ import {
143
+ node9,
144
+ bound2
145
+ } from "./pty-eys57y9b.js";
146
+ import {
147
+ node13
148
+ } from "./pty-b532nts2.js";
149
+ import {
150
+ node12
151
+ } from "./pty-vjkhbcr1.js";
152
+ import {
153
+ node6
154
+ } from "./pty-vq0fwg4j.js";
155
+ import {
156
+ node3
157
+ } from "./pty-qe7qwmvw.js";
158
+ import {
159
+ node74
160
+ } from "./pty-mgxskf66.js";
161
+ import {
162
+ node14
163
+ } from "./pty-16nt522w.js";
164
+ import {
165
+ node11
166
+ } from "./pty-vak501x5.js";
167
+ import {
168
+ __export
169
+ } from "./pty-9rqn6x4v.js";
170
+
171
+ // src/instance.ts
172
+ var exports_instance = {};
173
+ __export(exports_instance, {
174
+ Instance: () => exports_instance,
175
+ Service: () => Service44,
176
+ graph: () => graph2,
177
+ layer: () => layer2,
178
+ node: () => node46
179
+ });
180
+ import { Context, Effect, Layer } from "effect";
181
+ import { LayerNode } from "@opencode/util/effect/layer-node";
182
+ import { Node } from "@opencode/util/effect/app-node";
183
+ var nodes = [
184
+ node82,
185
+ node53,
186
+ node60,
187
+ node57,
188
+ node80,
189
+ node41,
190
+ node40,
191
+ node54,
192
+ node23,
193
+ node71,
194
+ node70,
195
+ node68,
196
+ node67,
197
+ node69,
198
+ node16,
199
+ node90,
200
+ node9,
201
+ node3,
202
+ node25,
203
+ node20,
204
+ node19,
205
+ node75,
206
+ node74,
207
+ node55,
208
+ node76,
209
+ node39,
210
+ node51,
211
+ node50,
212
+ node52,
213
+ node49,
214
+ node32,
215
+ node77,
216
+ node88,
217
+ node59,
218
+ node89,
219
+ node33,
220
+ node30,
221
+ node38,
222
+ node73,
223
+ node17,
224
+ node18,
225
+ node6,
226
+ node31,
227
+ node12,
228
+ node45,
229
+ node13,
230
+ node14,
231
+ node28,
232
+ node42,
233
+ node11,
234
+ node21,
235
+ node2
236
+ ];
237
+ var graph2 = LayerNode.group(nodes);
238
+ var vanillaReplacements = [
239
+ node57.replace(configured6({ project: false, global: false })),
240
+ node51.replace(configured5({ project: false, global: false }))
241
+ ];
242
+ function layer2(ref, options = {}) {
243
+ const startedAt = performance.now();
244
+ const replacements = [
245
+ ...options.discovery === false ? vanillaReplacements : [],
246
+ ...options.replacements ?? [],
247
+ node82.replace(boundNode2(ref)),
248
+ node9.replace(bound2(options.plugins ?? []))
249
+ ];
250
+ return LayerNode.compile(graph2, { replacements, shared: Node.tags.values.global }).pipe(Layer.catchCause((cause) => Layer.unwrap(Effect.failCause(cause).pipe(Effect.catch((error) => error instanceof DirectoryNotFoundError2 ? Effect.fail(error) : Effect.die(error))))), Layer.tap((context) => Effect.addFinalizer(() => Context.get(context, Service51).shutdown)), Layer.tap(() => Effect.logInfo("location services booted", {
251
+ directory: ref.directory,
252
+ workspaceID: ref.workspaceID,
253
+ durationMs: Math.round(performance.now() - startedAt)
254
+ })));
255
+ }
256
+
257
+ export { graph2, layer2, exports_instance };