@opencode/core 0.0.0-dev-19379 → 0.0.0-dev-19382

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 (783) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +79 -79
  3. package/dist/aisdk-native.js +2 -2
  4. package/dist/aisdk.js +6 -6
  5. package/dist/app.js +5 -5
  6. package/dist/bus.js +67 -67
  7. package/dist/catalog.js +83 -83
  8. package/dist/chunks/{tool-96yt6zt0.js → persistent-pty-00mqm9kf.js} +1 -1
  9. package/dist/chunks/{tool-bw0vgseb.js → persistent-pty-05xfxpq7.js} +8 -8
  10. package/dist/chunks/{tool-a1trtke8.js → persistent-pty-0ccq33vw.js} +18 -18
  11. package/dist/chunks/{tool-qjv1kgxp.js → persistent-pty-0cxbqrwq.js} +6 -6
  12. package/dist/chunks/{tool-d8nc1xcx.js → persistent-pty-0gr7cw0d.js} +4 -4
  13. package/dist/chunks/{tool-0paq2nw3.js → persistent-pty-0paq2nw3.js} +1 -1
  14. package/dist/chunks/{tool-0q0f95c6.js → persistent-pty-0q0f95c6.js} +1 -1
  15. package/dist/chunks/{tool-s5y24r57.js → persistent-pty-0thdkkg9.js} +22 -22
  16. package/dist/chunks/{tool-da80s3j0.js → persistent-pty-0tpn3p1b.js} +9 -9
  17. package/dist/chunks/{tool-qv0wc28n.js → persistent-pty-0zqpp7wj.js} +28 -28
  18. package/dist/chunks/{tool-1dazxqgg.js → persistent-pty-1dazxqgg.js} +2 -2
  19. package/dist/chunks/{tool-1dfhrqqs.js → persistent-pty-1dfhrqqs.js} +2 -2
  20. package/dist/chunks/{tool-m0e4k89a.js → persistent-pty-1dnwr72p.js} +19 -19
  21. package/dist/chunks/{tool-s1ntnqg8.js → persistent-pty-1eygjsb7.js} +28 -28
  22. package/dist/chunks/{tool-tkmwgdpd.js → persistent-pty-1g7epwpd.js} +4 -4
  23. package/dist/chunks/{tool-4b9d4ban.js → persistent-pty-1kpvqeks.js} +30 -30
  24. package/dist/chunks/{tool-vthfdbtm.js → persistent-pty-1rx0sgk8.js} +9 -9
  25. package/dist/chunks/{tool-xhmq8qgk.js → persistent-pty-1tjg7tvh.js} +9 -9
  26. package/dist/chunks/{tool-6pjqvkvy.js → persistent-pty-1w52t0mb.js} +35 -35
  27. package/dist/chunks/{tool-nk7adjn9.js → persistent-pty-1xxx0jg9.js} +13 -13
  28. package/dist/chunks/{tool-56gdpj1q.js → persistent-pty-1ygqh575.js} +9 -9
  29. package/dist/chunks/{tool-fg89hjd0.js → persistent-pty-203e24v7.js} +11 -11
  30. package/dist/chunks/{tool-21r38tys.js → persistent-pty-21r38tys.js} +1 -1
  31. package/dist/chunks/{tool-2402vzrj.js → persistent-pty-2402vzrj.js} +1 -1
  32. package/dist/chunks/{tool-2a5m3afh.js → persistent-pty-2a5m3afh.js} +1 -1
  33. package/dist/chunks/{tool-gbr0xc8p.js → persistent-pty-2b6sywcb.js} +7 -7
  34. package/dist/chunks/{tool-ggqmz6hz.js → persistent-pty-2dqdz844.js} +25 -25
  35. package/dist/chunks/{tool-2zzmp7wr.js → persistent-pty-2fnsjhej.js} +43 -43
  36. package/dist/chunks/{tool-g0r3sqqz.js → persistent-pty-2g1m3br9.js} +4 -4
  37. package/dist/chunks/{tool-rnnf5beh.js → persistent-pty-2g2y3drj.js} +15 -15
  38. package/dist/chunks/{tool-z66a08k2.js → persistent-pty-2ht10vg0.js} +16 -16
  39. package/dist/chunks/{tool-z9xrf9ae.js → persistent-pty-2p82gks5.js} +14 -14
  40. package/dist/chunks/{tool-86ch7czp.js → persistent-pty-2qqgsyc5.js} +5 -5
  41. package/dist/chunks/{tool-ex0pka66.js → persistent-pty-2vgzs72b.js} +5 -5
  42. package/dist/chunks/{tool-vzsebwty.js → persistent-pty-380vsvkf.js} +16 -16
  43. package/dist/chunks/{tool-3fc6dm20.js → persistent-pty-3fc6dm20.js} +1 -1
  44. package/dist/chunks/{tool-3hepkmqq.js → persistent-pty-3hepkmqq.js} +1 -1
  45. package/dist/chunks/{tool-w2j24v20.js → persistent-pty-3mbmw1sq.js} +29 -29
  46. package/dist/chunks/{tool-hq2pf95s.js → persistent-pty-3nrktzjr.js} +54 -54
  47. package/dist/chunks/{tool-7s8wxhe3.js → persistent-pty-3rn9y9mm.js} +6 -6
  48. package/dist/chunks/{tool-3smtnn6g.js → persistent-pty-3smtnn6g.js} +1 -1
  49. package/dist/chunks/{tool-3tvqynh2.js → persistent-pty-3tvqynh2.js} +1 -1
  50. package/dist/chunks/{tool-3w0fmcng.js → persistent-pty-3w0fmcng.js} +2 -2
  51. package/dist/chunks/{tool-2jz4251c.js → persistent-pty-3xgyx5eq.js} +11 -11
  52. package/dist/chunks/{tool-f8q7mv7a.js → persistent-pty-4066mr2m.js} +1 -1
  53. package/dist/chunks/{tool-zgzs5q79.js → persistent-pty-42mde3pg.js} +17 -17
  54. package/dist/chunks/{tool-fjbq45d4.js → persistent-pty-496txj22.js} +7 -7
  55. package/dist/chunks/{tool-4d9703xz.js → persistent-pty-4gh75n31.js} +34 -34
  56. package/dist/chunks/{tool-bkb5a00e.js → persistent-pty-4jwxjs78.js} +20 -20
  57. package/dist/chunks/{tool-633evckm.js → persistent-pty-4v5j83by.js} +15 -15
  58. package/dist/chunks/{tool-kvvk39gs.js → persistent-pty-50mzsvk4.js} +4 -4
  59. package/dist/chunks/{tool-4qfg6tr3.js → persistent-pty-5bkegwna.js} +3 -3
  60. package/dist/chunks/{tool-5daktx2q.js → persistent-pty-5daktx2q.js} +1 -1
  61. package/dist/chunks/{tool-wpm25e6z.js → persistent-pty-5fk2x3ne.js} +24 -24
  62. package/dist/chunks/{tool-k8sr7gbn.js → persistent-pty-5gachfgg.js} +9 -9
  63. package/dist/chunks/{tool-sn7nedy1.js → persistent-pty-5pxstkb3.js} +6 -6
  64. package/dist/chunks/{tool-jz5sxy2v.js → persistent-pty-5qkxfyep.js} +5 -5
  65. package/dist/chunks/{tool-5t3nmthw.js → persistent-pty-5t3nmthw.js} +2 -2
  66. package/dist/chunks/{tool-73z4m2pk.js → persistent-pty-62ck2ww7.js} +9 -9
  67. package/dist/chunks/{tool-669tq793.js → persistent-pty-669tq793.js} +1 -1
  68. package/dist/chunks/{tool-5760zpgv.js → persistent-pty-6hjj4s54.js} +20 -20
  69. package/dist/chunks/{tool-6msgmcgs.js → persistent-pty-6msgmcgs.js} +1 -1
  70. package/dist/chunks/{tool-r31h19w0.js → persistent-pty-6p3c3cwj.js} +21 -21
  71. package/dist/chunks/{tool-71q4at8m.js → persistent-pty-71q4at8m.js} +1 -1
  72. package/dist/chunks/{tool-p9g8fs1b.js → persistent-pty-72tn9ghv.js} +12 -12
  73. package/dist/chunks/{tool-ksz0h0wp.js → persistent-pty-79r1wrqa.js} +1 -1
  74. package/dist/chunks/{tool-7bmhse3q.js → persistent-pty-7bmhse3q.js} +1 -1
  75. package/dist/chunks/{tool-rsym84ch.js → persistent-pty-81swgkk7.js} +7 -7
  76. package/dist/chunks/{tool-x3et2xth.js → persistent-pty-844ef7ks.js} +8 -8
  77. package/dist/chunks/{tool-8d7r5vzw.js → persistent-pty-8d7r5vzw.js} +1 -1
  78. package/dist/chunks/{tool-g65nhabx.js → persistent-pty-8f3c4n8p.js} +46 -46
  79. package/dist/chunks/{tool-my2vsdvd.js → persistent-pty-8fq8nx20.js} +23 -23
  80. package/dist/chunks/{tool-ndwv5czm.js → persistent-pty-8gs24b9n.js} +23 -23
  81. package/dist/chunks/{tool-afdssyjb.js → persistent-pty-8gxqpgph.js} +4 -4
  82. package/dist/chunks/{tool-8p4f9s12.js → persistent-pty-8p4f9s12.js} +2 -2
  83. package/dist/chunks/{tool-d951yb37.js → persistent-pty-9c74y0ya.js} +5 -5
  84. package/dist/chunks/persistent-pty-9sh4wc5j.js +18 -0
  85. package/dist/chunks/{tool-a1bz86dw.js → persistent-pty-a1bz86dw.js} +3 -3
  86. package/dist/chunks/{tool-h8z8y9gx.js → persistent-pty-a4zefx4s.js} +35 -35
  87. package/dist/chunks/{tool-r5mxsnnv.js → persistent-pty-a8w0823b.js} +11 -11
  88. package/dist/chunks/{tool-68z3g7wa.js → persistent-pty-a9dg8arj.js} +11 -11
  89. package/dist/chunks/{tool-aaet6srn.js → persistent-pty-aaet6srn.js} +2 -2
  90. package/dist/chunks/{tool-gbr8tf1f.js → persistent-pty-ab1e930g.js} +32 -32
  91. package/dist/chunks/{tool-pxvmbgv7.js → persistent-pty-aezrryrs.js} +16 -16
  92. package/dist/chunks/{tool-md4njvp1.js → persistent-pty-axp4ehpq.js} +8 -8
  93. package/dist/chunks/{tool-b6gygkdw.js → persistent-pty-b6gygkdw.js} +2 -2
  94. package/dist/chunks/{tool-v98da975.js → persistent-pty-bf3rh841.js} +3 -3
  95. package/dist/chunks/{tool-cq37gk0t.js → persistent-pty-bha4atvq.js} +4 -4
  96. package/dist/chunks/{tool-mgvxvxy8.js → persistent-pty-bhkdh15s.js} +8 -8
  97. package/dist/chunks/{tool-wp10hzn9.js → persistent-pty-bq15f1dj.js} +11 -11
  98. package/dist/chunks/{tool-q5xvhvda.js → persistent-pty-bqvjxhzq.js} +6 -6
  99. package/dist/chunks/{tool-w34p3xb7.js → persistent-pty-br7dekmv.js} +20 -20
  100. package/dist/chunks/{tool-hpngd2zc.js → persistent-pty-brv10750.js} +23 -23
  101. package/dist/chunks/{tool-bv56xrks.js → persistent-pty-bv56xrks.js} +2 -2
  102. package/dist/chunks/{tool-jmdz0sbc.js → persistent-pty-bw41nzns.js} +39 -39
  103. package/dist/chunks/{tool-de588183.js → persistent-pty-c05fm11c.js} +18 -18
  104. package/dist/chunks/{tool-dta3evr6.js → persistent-pty-c2hefdhc.js} +9 -9
  105. package/dist/chunks/{tool-k16ay38w.js → persistent-pty-c3kepfq8.js} +1 -1
  106. package/dist/chunks/{tool-ejds8jz3.js → persistent-pty-c53hcw8m.js} +14 -14
  107. package/dist/chunks/{tool-w79ev46z.js → persistent-pty-c8ada3m6.js} +10 -10
  108. package/dist/chunks/{tool-cfpkc3c9.js → persistent-pty-cfpkc3c9.js} +2 -2
  109. package/dist/chunks/{tool-cfdvfm92.js → persistent-pty-cnhax2e6.js} +15 -15
  110. package/dist/chunks/{tool-b6mtk9c3.js → persistent-pty-cpb6a78b.js} +35 -35
  111. package/dist/chunks/{tool-s8zy8myc.js → persistent-pty-cr07tj7n.js} +5 -5
  112. package/dist/chunks/{tool-dj0vbr5c.js → persistent-pty-d2eaxeas.js} +6 -6
  113. package/dist/chunks/{tool-gnrde763.js → persistent-pty-d8vze2cf.js} +13 -13
  114. package/dist/chunks/{tool-0nm12y21.js → persistent-pty-d9sn21bc.js} +2 -2
  115. package/dist/chunks/{tool-r9babyk8.js → persistent-pty-dcj77ap2.js} +1 -1
  116. package/dist/chunks/{tool-9p97h4bj.js → persistent-pty-df3me751.js} +14 -14
  117. package/dist/chunks/{tool-pmr4s4kc.js → persistent-pty-dfe8djrf.js} +4 -4
  118. package/dist/chunks/{tool-3p3x94rf.js → persistent-pty-djc8e50c.js} +11 -11
  119. package/dist/chunks/{tool-05x22vh6.js → persistent-pty-djvn5p54.js} +17 -17
  120. package/dist/chunks/persistent-pty-drn01q1n.js +22 -0
  121. package/dist/chunks/{tool-51ecw79a.js → persistent-pty-dwwycwrc.js} +17 -17
  122. package/dist/chunks/{tool-41my7587.js → persistent-pty-e8ne7jhy.js} +26 -26
  123. package/dist/chunks/{tool-rhjbct0v.js → persistent-pty-eaj1djv9.js} +8 -8
  124. package/dist/chunks/{tool-1h6hxh2v.js → persistent-pty-egptq5ne.js} +25 -25
  125. package/dist/chunks/{tool-r3g2zw8n.js → persistent-pty-egy5b1a6.js} +15 -15
  126. package/dist/chunks/{tool-cm4824a7.js → persistent-pty-ejanc1th.js} +17 -17
  127. package/dist/chunks/{tool-r5x6zcsm.js → persistent-pty-eq1pz5kg.js} +3 -3
  128. package/dist/chunks/{tool-6eq1ecze.js → persistent-pty-eq21rbs0.js} +20 -20
  129. package/dist/chunks/{tool-qb37669g.js → persistent-pty-esqtk39r.js} +24 -24
  130. package/dist/chunks/{tool-etq0c3wd.js → persistent-pty-etq0c3wd.js} +1 -1
  131. package/dist/chunks/{tool-bkqp681g.js → persistent-pty-f2ew84cp.js} +4 -4
  132. package/dist/chunks/{tool-1ebyragb.js → persistent-pty-f3ymaypt.js} +83 -83
  133. package/dist/chunks/{tool-f828m53h.js → persistent-pty-f828m53h.js} +2 -2
  134. package/dist/chunks/{tool-1vg0z8s6.js → persistent-pty-f8714f1t.js} +12 -12
  135. package/dist/chunks/{tool-5g5vryzc.js → persistent-pty-fgxp3znt.js} +26 -26
  136. package/dist/chunks/{tool-eht72x8j.js → persistent-pty-fqhavq00.js} +166 -166
  137. package/dist/chunks/{tool-fxbjtjnd.js → persistent-pty-fxbjtjnd.js} +1 -1
  138. package/dist/chunks/{tool-fpv6qd1b.js → persistent-pty-fyjrpq2n.js} +5 -5
  139. package/dist/chunks/{tool-r7drcb11.js → persistent-pty-g5dj6d40.js} +20 -20
  140. package/dist/chunks/{tool-696gwma4.js → persistent-pty-g8dftn7c.js} +8 -8
  141. package/dist/chunks/{tool-gd4qta3r.js → persistent-pty-gd4qta3r.js} +1 -1
  142. package/dist/chunks/{tool-rmdyxgmk.js → persistent-pty-gdvyk2fc.js} +8 -8
  143. package/dist/chunks/{tool-y3d2q9vv.js → persistent-pty-gpt16vvq.js} +43 -43
  144. package/dist/chunks/{tool-gv6a8nnw.js → persistent-pty-gv6a8nnw.js} +2 -2
  145. package/dist/chunks/{tool-h03wrkyp.js → persistent-pty-h03wrkyp.js} +2 -2
  146. package/dist/chunks/{tool-h6vf3j39.js → persistent-pty-h6vf3j39.js} +1 -1
  147. package/dist/chunks/{tool-c7esj933.js → persistent-pty-h7x6gk14.js} +30 -30
  148. package/dist/chunks/{tool-15yeawe0.js → persistent-pty-h9gezfnd.js} +10 -10
  149. package/dist/chunks/{tool-2vxj95ja.js → persistent-pty-h9rdfrn4.js} +7 -7
  150. package/dist/chunks/{tool-wj2v0k25.js → persistent-pty-hbrvt83f.js} +13 -13
  151. package/dist/chunks/{tool-hjt4xg1x.js → persistent-pty-hjt4xg1x.js} +1 -1
  152. package/dist/chunks/{tool-ewkh189h.js → persistent-pty-hm87teft.js} +33 -33
  153. package/dist/chunks/{tool-qfzjjq78.js → persistent-pty-hx11cw1n.js} +28 -28
  154. package/dist/chunks/{tool-j56e64zr.js → persistent-pty-j56e64zr.js} +1 -1
  155. package/dist/chunks/{tool-8pjeqzy6.js → persistent-pty-j6y2w35b.js} +4 -4
  156. package/dist/chunks/{tool-jexxy024.js → persistent-pty-j7wq2tw5.js} +3 -3
  157. package/dist/chunks/{tool-nbddwgy7.js → persistent-pty-jefma2gq.js} +10 -10
  158. package/dist/chunks/{tool-8sghyhzw.js → persistent-pty-jj63jgrn.js} +8 -8
  159. package/dist/chunks/{tool-9btxb8b6.js → persistent-pty-jkg31575.js} +16 -16
  160. package/dist/chunks/{tool-05b1y4dr.js → persistent-pty-jnmqjdkf.js} +4 -4
  161. package/dist/chunks/{tool-tsjp663x.js → persistent-pty-jsdanxxx.js} +15 -15
  162. package/dist/chunks/{tool-21w6f4t1.js → persistent-pty-jtwxsvja.js} +32 -32
  163. package/dist/chunks/{tool-hz50bpaw.js → persistent-pty-jyh705nr.js} +13 -13
  164. package/dist/chunks/{tool-j53mwve1.js → persistent-pty-k38a9k66.js} +22 -22
  165. package/dist/chunks/{tool-bcnz578n.js → persistent-pty-k4ewzjtn.js} +2 -2
  166. package/dist/chunks/{tool-5qzyr48w.js → persistent-pty-k5ezyj3d.js} +18 -18
  167. package/dist/chunks/{tool-h0sk5aap.js → persistent-pty-ka3dfe4s.js} +11 -11
  168. package/dist/chunks/{tool-kg06axw8.js → persistent-pty-kg06axw8.js} +1 -1
  169. package/dist/chunks/{tool-7qqqkbay.js → persistent-pty-kh3ehkc0.js} +4 -4
  170. package/dist/chunks/{tool-fgh0kbhd.js → persistent-pty-kmv022h3.js} +1 -1
  171. package/dist/chunks/{tool-0d48j2g7.js → persistent-pty-kn9q0df9.js} +83 -83
  172. package/dist/chunks/{tool-6qsbgg6d.js → persistent-pty-kr9sgtgf.js} +4 -4
  173. package/dist/chunks/{tool-w16m6tyk.js → persistent-pty-krp391jj.js} +1 -1
  174. package/dist/chunks/{tool-zcg95sqw.js → persistent-pty-m526qhmk.js} +16 -16
  175. package/dist/chunks/{tool-m86bnw2c.js → persistent-pty-m86bnw2c.js} +2 -2
  176. package/dist/chunks/{tool-m9w0rfyh.js → persistent-pty-m9w0rfyh.js} +1 -1
  177. package/dist/chunks/{tool-mkcjrzeh.js → persistent-pty-mkcjrzeh.js} +1 -1
  178. package/dist/chunks/{tool-zyhhd2fv.js → persistent-pty-mq0g1pjt.js} +10 -10
  179. package/dist/chunks/{tool-0zcz30tj.js → persistent-pty-nbzsj80d.js} +8 -8
  180. package/dist/chunks/{tool-fng9e0je.js → persistent-pty-nqnxh7mc.js} +6 -6
  181. package/dist/chunks/{tool-dvxy4nff.js → persistent-pty-nvh2x716.js} +4 -4
  182. package/dist/chunks/{tool-6adng5bp.js → persistent-pty-nxb1d4ft.js} +41 -41
  183. package/dist/chunks/{tool-30m4pwpa.js → persistent-pty-p28nmw69.js} +4 -4
  184. package/dist/chunks/{tool-9hb82pnx.js → persistent-pty-pa491p54.js} +3 -3
  185. package/dist/chunks/{tool-gsn1s9q4.js → persistent-pty-pavjzv7z.js} +20 -20
  186. package/dist/chunks/{tool-mscmm5qy.js → persistent-pty-pg5p62yz.js} +54 -54
  187. package/dist/chunks/{tool-pjvnvgmy.js → persistent-pty-pjvnvgmy.js} +1 -1
  188. package/dist/chunks/{tool-pknna89w.js → persistent-pty-pknna89w.js} +1 -1
  189. package/dist/chunks/{tool-xt4b7xn2.js → persistent-pty-ppky1t1y.js} +7 -7
  190. package/dist/chunks/{tool-en6p13p1.js → persistent-pty-ppnmpad2.js} +36 -36
  191. package/dist/chunks/{tool-s4m8g8bm.js → persistent-pty-prvjh75d.js} +12 -12
  192. package/dist/chunks/{tool-kds0djg1.js → persistent-pty-psjz8p8b.js} +9 -9
  193. package/dist/chunks/{tool-a65ag8hp.js → persistent-pty-pwby03bc.js} +25 -25
  194. package/dist/chunks/{tool-y37q8m77.js → persistent-pty-q0a6gzyv.js} +4 -4
  195. package/dist/chunks/{tool-9e22rrr7.js → persistent-pty-q31fgcfb.js} +2 -2
  196. package/dist/chunks/{tool-thwwa0w0.js → persistent-pty-q3x0tf1z.js} +8 -8
  197. package/dist/chunks/{tool-fhrj5q46.js → persistent-pty-q71trj3n.js} +22 -22
  198. package/dist/chunks/persistent-pty-qapv375x.js +4 -0
  199. package/dist/chunks/{tool-z69s9t6b.js → persistent-pty-qcfsefxz.js} +5 -5
  200. package/dist/chunks/{tool-0jwsre1p.js → persistent-pty-qgn6gcr1.js} +5 -5
  201. package/dist/chunks/{tool-5a7gn10h.js → persistent-pty-qgwcde76.js} +16 -16
  202. package/dist/chunks/{tool-0r7yqxbf.js → persistent-pty-qn4ba14w.js} +5 -5
  203. package/dist/chunks/{tool-2fd9pgf2.js → persistent-pty-qp5gp8ee.js} +11 -11
  204. package/dist/chunks/{tool-2v95mq3w.js → persistent-pty-qqgkdyp0.js} +9 -9
  205. package/dist/chunks/{tool-qsdy395h.js → persistent-pty-qsdy395h.js} +1 -1
  206. package/dist/chunks/{tool-vaz94ndt.js → persistent-pty-qsr17ax6.js} +33 -33
  207. package/dist/chunks/{tool-axed6m3p.js → persistent-pty-qvxvbnwj.js} +25 -25
  208. package/dist/chunks/{tool-d3j2qqy4.js → persistent-pty-qwkytnft.js} +6 -6
  209. package/dist/chunks/{tool-gwha4ydq.js → persistent-pty-r0perv49.js} +13 -13
  210. package/dist/chunks/{tool-r8xr0va3.js → persistent-pty-r8xr0va3.js} +1 -1
  211. package/dist/chunks/{tool-srgejpfz.js → persistent-pty-ra27perh.js} +9 -9
  212. package/dist/chunks/{tool-d50f2zf5.js → persistent-pty-rfnzy394.js} +1 -1
  213. package/dist/chunks/{tool-v26tvdgf.js → persistent-pty-rp5c9stp.js} +3 -3
  214. package/dist/chunks/{tool-6k2nj7vx.js → persistent-pty-rr02k77t.js} +4 -4
  215. package/dist/chunks/{tool-kzbv3s93.js → persistent-pty-rxpytfvj.js} +16 -16
  216. package/dist/chunks/{tool-x5tcqr1p.js → persistent-pty-rxr84acp.js} +17 -17
  217. package/dist/chunks/{tool-0zfqxbnb.js → persistent-pty-ry6p75md.js} +11 -11
  218. package/dist/chunks/{tool-n76fdqym.js → persistent-pty-rz0qknjf.js} +5 -5
  219. package/dist/chunks/{tool-ms4rcynk.js → persistent-pty-s2prs345.js} +56 -56
  220. package/dist/chunks/{tool-btvg4dtp.js → persistent-pty-s3428mxb.js} +6 -6
  221. package/dist/chunks/{tool-743vzpe1.js → persistent-pty-sdch2j4x.js} +12 -12
  222. package/dist/chunks/{tool-v3dxcww3.js → persistent-pty-sfxpj00y.js} +10 -10
  223. package/dist/chunks/{tool-8vrcpm4q.js → persistent-pty-sqe88krq.js} +31 -31
  224. package/dist/chunks/{tool-wxh88d0y.js → persistent-pty-ssrx42ha.js} +17 -17
  225. package/dist/chunks/{tool-qe5gzwnf.js → persistent-pty-sv2fejnn.js} +26 -26
  226. package/dist/chunks/{tool-10jt87st.js → persistent-pty-sznf9k39.js} +6 -6
  227. package/dist/chunks/{tool-t0x5rdq8.js → persistent-pty-t0x5rdq8.js} +2 -2
  228. package/dist/chunks/{tool-ra46mqdh.js → persistent-pty-t369btdv.js} +11 -11
  229. package/dist/chunks/{tool-m27pyyd3.js → persistent-pty-t69nnh3p.js} +8 -8
  230. package/dist/chunks/{tool-tazgh4e4.js → persistent-pty-tazgh4e4.js} +1 -1
  231. package/dist/chunks/{tool-tcezcvh9.js → persistent-pty-tcezcvh9.js} +1 -1
  232. package/dist/chunks/{tool-tdstcens.js → persistent-pty-tdstcens.js} +1 -1
  233. package/dist/chunks/{tool-za5a73ez.js → persistent-pty-tejv9b0j.js} +22 -22
  234. package/dist/chunks/{tool-0kh1dket.js → persistent-pty-tjhr2e2t.js} +10 -10
  235. package/dist/chunks/{tool-7ayp9bzc.js → persistent-pty-ttv5kw1x.js} +17 -17
  236. package/dist/chunks/{tool-tvtrv512.js → persistent-pty-tvtrv512.js} +1 -1
  237. package/dist/chunks/{tool-fr2z3k18.js → persistent-pty-v397qx2x.js} +8 -8
  238. package/dist/chunks/{tool-veqvce7d.js → persistent-pty-veqvce7d.js} +1 -1
  239. package/dist/chunks/persistent-pty-vj8pphjv.js +247 -0
  240. package/dist/chunks/{tool-9pr9kb5n.js → persistent-pty-vmbc9md7.js} +9 -9
  241. package/dist/chunks/{tool-f2xt3akv.js → persistent-pty-vq1smemt.js} +35 -35
  242. package/dist/chunks/{tool-v4dba12z.js → persistent-pty-vz3schgb.js} +24 -24
  243. package/dist/chunks/{tool-vzcthcp8.js → persistent-pty-vzcthcp8.js} +1 -1
  244. package/dist/chunks/{tool-06dxphr1.js → persistent-pty-w1k39n5e.js} +4 -4
  245. package/dist/chunks/{tool-w3wsvvr9.js → persistent-pty-w3wsvvr9.js} +1 -1
  246. package/dist/chunks/{tool-sy6d2kz5.js → persistent-pty-w5qx82t0.js} +41 -41
  247. package/dist/chunks/{tool-ptyjv6sg.js → persistent-pty-w76whj5z.js} +3 -3
  248. package/dist/chunks/{tool-ebah8r6x.js → persistent-pty-w9nng7hv.js} +6 -6
  249. package/dist/chunks/{tool-wd87259q.js → persistent-pty-wd87259q.js} +1 -1
  250. package/dist/chunks/{tool-chwx7274.js → persistent-pty-wjhyqx8g.js} +32 -32
  251. package/dist/chunks/{tool-hees407t.js → persistent-pty-wk2d4yp7.js} +29 -29
  252. package/dist/chunks/{tool-7dn173gk.js → persistent-pty-wm96rsv2.js} +5 -5
  253. package/dist/chunks/{tool-xyg9ex2f.js → persistent-pty-wsg5c7h7.js} +24 -24
  254. package/dist/chunks/{tool-nbs99w42.js → persistent-pty-wzgex4pb.js} +24 -24
  255. package/dist/chunks/{tool-x1ezjp6w.js → persistent-pty-x1ezjp6w.js} +1 -1
  256. package/dist/chunks/{tool-q1a7cndp.js → persistent-pty-x1xcpfha.js} +13 -13
  257. package/dist/chunks/{tool-x43y2vfs.js → persistent-pty-x43y2vfs.js} +2 -2
  258. package/dist/chunks/{tool-x28ddgy9.js → persistent-pty-xbcdabpt.js} +15 -15
  259. package/dist/chunks/{tool-2d7a4veb.js → persistent-pty-xcz8yps6.js} +22 -12
  260. package/dist/chunks/{tool-7sx5x0t6.js → persistent-pty-xfe2x8na.js} +14 -14
  261. package/dist/chunks/{tool-drmrb9qm.js → persistent-pty-xfwn3bvs.js} +27 -27
  262. package/dist/chunks/{tool-7nsxx1n0.js → persistent-pty-xfwnp4wv.js} +9 -9
  263. package/dist/chunks/{tool-6fpdxqjr.js → persistent-pty-xskhzebk.js} +8 -8
  264. package/dist/chunks/{tool-q931v04c.js → persistent-pty-xyqew3mv.js} +5 -5
  265. package/dist/chunks/{tool-y1fvbwt7.js → persistent-pty-y1fvbwt7.js} +1 -1
  266. package/dist/chunks/{tool-y71avatq.js → persistent-pty-y71avatq.js} +1 -1
  267. package/dist/chunks/persistent-pty-yaazxw7p.js +462 -0
  268. package/dist/chunks/{tool-n92a0n41.js → persistent-pty-ydky9c7y.js} +41 -41
  269. package/dist/chunks/{tool-ghjvnvzw.js → persistent-pty-yp9wmgac.js} +24 -24
  270. package/dist/chunks/{tool-98e599kb.js → persistent-pty-yq2bn28b.js} +5 -5
  271. package/dist/chunks/{tool-yrhqyw5v.js → persistent-pty-yrhqyw5v.js} +1 -1
  272. package/dist/chunks/{tool-yrznvahk.js → persistent-pty-yrznvahk.js} +2 -2
  273. package/dist/chunks/{tool-q9zmb7fc.js → persistent-pty-ytcfwrs1.js} +13 -13
  274. package/dist/chunks/{tool-z0bkrqjs.js → persistent-pty-z0bkrqjs.js} +1 -1
  275. package/dist/chunks/{tool-r97m09da.js → persistent-pty-z2r733d6.js} +16 -16
  276. package/dist/chunks/{tool-z63w68vq.js → persistent-pty-z63w68vq.js} +2 -2
  277. package/dist/chunks/{tool-jv879gk1.js → persistent-pty-za010qp9.js} +15 -15
  278. package/dist/chunks/{tool-3f98637v.js → persistent-pty-zbqm35g7.js} +24 -24
  279. package/dist/chunks/{tool-zeh9ct20.js → persistent-pty-zeh9ct20.js} +2 -2
  280. package/dist/chunks/{tool-56apbv2d.js → persistent-pty-zm83jvmn.js} +18 -18
  281. package/dist/chunks/{tool-m0qyqzr3.js → persistent-pty-zqsxpf7r.js} +21 -21
  282. package/dist/chunks/{tool-zr2ceqn5.js → persistent-pty-zr2ceqn5.js} +1 -1
  283. package/dist/chunks/{tool-thcppwqw.js → persistent-pty-zs8qganv.js} +38 -38
  284. package/dist/chunks/{tool-vz3ggmzd.js → persistent-pty-zv0yrbwn.js} +26 -26
  285. package/dist/chunks/{tool-qvyan8t8.js → persistent-pty-zw3btwk7.js} +19 -19
  286. package/dist/chunks/{tool-zxq2ej10.js → persistent-pty-zxq2ej10.js} +1 -1
  287. package/dist/chunks/{tool-cyg7q180.js → persistent-pty-zyehkexa.js} +10 -10
  288. package/dist/chunks/{tool-4pn12svn.js → persistent-pty-zzdrk7md.js} +25 -25
  289. package/dist/codemode/catalog.js +1 -1
  290. package/dist/codemode/instructions.js +7 -7
  291. package/dist/codemode/tool.js +2 -2
  292. package/dist/command.js +77 -77
  293. package/dist/config/discovery.js +77 -77
  294. package/dist/config/markdown.js +1 -1
  295. package/dist/config/normalize.js +19 -19
  296. package/dist/config/plugin/agent.js +117 -117
  297. package/dist/config/plugin/command.js +209 -209
  298. package/dist/config/plugin/compaction.js +155 -155
  299. package/dist/config/plugin/entry-observer.js +1 -1
  300. package/dist/config/plugin/formatter.js +117 -117
  301. package/dist/config/plugin/image.js +115 -115
  302. package/dist/config/plugin/instruction.js +85 -85
  303. package/dist/config/plugin/location-watcher.js +115 -115
  304. package/dist/config/plugin/mcp.js +126 -126
  305. package/dist/config/plugin/policy.js +114 -114
  306. package/dist/config/plugin/provider.js +113 -113
  307. package/dist/config/plugin/reference.js +117 -117
  308. package/dist/config/plugin/shell.js +116 -116
  309. package/dist/config/plugin/skill-file.js +97 -97
  310. package/dist/config/plugin/skill.js +136 -136
  311. package/dist/config/plugin/snapshot.js +115 -115
  312. package/dist/config/plugin/source.js +117 -117
  313. package/dist/config/plugin/tool-output.js +117 -117
  314. package/dist/config/plugin/websearch.js +113 -113
  315. package/dist/config/plugin/worktree.js +118 -118
  316. package/dist/config/variable.js +3 -3
  317. package/dist/config/watch.js +1 -1
  318. package/dist/config.js +119 -119
  319. package/dist/credential/sql.js +2 -2
  320. package/dist/credential.js +83 -83
  321. package/dist/database/database.js +64 -64
  322. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  323. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  324. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  325. package/dist/database/drizzle/index.js +13 -13
  326. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  327. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  328. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  329. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  330. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  331. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  332. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  333. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  334. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  335. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  336. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  337. package/dist/database/drizzle.js +14 -14
  338. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  339. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  340. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  341. package/dist/database/migration/20260225215848_workspace.js +1 -1
  342. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  343. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  344. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  345. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  346. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  347. package/dist/database/migration/20260323234822_events.js +1 -1
  348. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  349. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  350. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  351. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  352. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  353. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  354. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  355. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  356. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  357. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  358. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  359. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  360. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  361. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  362. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  363. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  364. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  365. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  366. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  367. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  368. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  369. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  370. package/dist/database/migration/20260611035744_credential.js +1 -1
  371. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  372. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  373. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  374. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  375. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  376. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  377. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  378. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  379. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  380. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  381. package/dist/database/migration/20260812213948_worktree.js +1 -1
  382. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  383. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  384. package/dist/database/migration.gen.js +47 -47
  385. package/dist/database/migration.js +49 -49
  386. package/dist/database/path.js +2 -2
  387. package/dist/database/schema.gen.js +1 -1
  388. package/dist/database/schema.sql.js +1 -1
  389. package/dist/database/sqlite.bun.js +1 -1
  390. package/dist/database/sqlite.js +1 -1
  391. package/dist/database/sqlite.node.js +1 -1
  392. package/dist/database/sqlite.workerd.js +1 -1
  393. package/dist/database/v1-migration.bun.js +74 -74
  394. package/dist/database/v1-migration.js +1 -1
  395. package/dist/effect/app-node-builder.js +362 -362
  396. package/dist/effect/app-node-platform.js +2 -2
  397. package/dist/effect/keyed-mutex.js +1 -1
  398. package/dist/effect/websocket-constructor.js +1 -1
  399. package/dist/environment/driver.js +1 -1
  400. package/dist/environment/environment.js +88 -88
  401. package/dist/environment/exec-defaults.js +2 -2
  402. package/dist/environment/files.js +1 -1
  403. package/dist/environment/index.js +88 -88
  404. package/dist/environment/local.js +2 -2
  405. package/dist/environment/memory.js +2 -2
  406. package/dist/environment/unavailable.js +1 -1
  407. package/dist/event/sql.js +1 -1
  408. package/dist/event-logger.js +68 -68
  409. package/dist/file-access.js +99 -99
  410. package/dist/file-mutation.js +89 -89
  411. package/dist/file-retention.js +1 -1
  412. package/dist/file.js +1 -1
  413. package/dist/filesystem/fff.bun.js +2 -2
  414. package/dist/filesystem/fff.js +1 -1
  415. package/dist/filesystem/fff.node.js +2 -2
  416. package/dist/filesystem/fff.workerd.js +2 -2
  417. package/dist/filesystem/ignore.js +1 -1
  418. package/dist/filesystem/location-watcher-policy.js +2 -2
  419. package/dist/filesystem/location-watcher.js +216 -216
  420. package/dist/filesystem/protected.js +1 -1
  421. package/dist/filesystem/search.js +95 -95
  422. package/dist/filesystem/watcher-binding.js +1 -1
  423. package/dist/filesystem/watcher.js +15 -15
  424. package/dist/filesystem.js +96 -96
  425. package/dist/form.js +84 -84
  426. package/dist/formatter/builtins.js +4 -4
  427. package/dist/formatter.js +82 -82
  428. package/dist/generate.js +93 -93
  429. package/dist/git.js +7 -7
  430. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  431. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  432. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  433. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  434. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  435. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  436. package/dist/github-copilot/copilot-provider.js +17 -17
  437. package/dist/github-copilot/models.js +3 -3
  438. package/dist/github-copilot/openai-compatible-error.js +1 -1
  439. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  440. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  441. package/dist/github-copilot/responses/openai-error.js +1 -1
  442. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  443. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  444. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  445. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  446. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  447. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  448. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  449. package/dist/id/id.js +1 -1
  450. package/dist/image/photon.js +2 -2
  451. package/dist/image.js +6 -6
  452. package/dist/instance/service.js +5 -5
  453. package/dist/instance.js +353 -353
  454. package/dist/instruction-discovery.js +81 -81
  455. package/dist/instructions/builtins.js +82 -82
  456. package/dist/instructions/index.js +5 -5
  457. package/dist/integration/connection.js +1 -1
  458. package/dist/integration.js +86 -86
  459. package/dist/job.js +77 -77
  460. package/dist/kv/sql.js +2 -2
  461. package/dist/kv.js +71 -71
  462. package/dist/location-activity.js +128 -128
  463. package/dist/location-mutation.js +99 -99
  464. package/dist/location-service-map.js +81 -81
  465. package/dist/location-services.js +350 -350
  466. package/dist/location.js +82 -82
  467. package/dist/mcp/client.js +86 -86
  468. package/dist/mcp/index.js +95 -95
  469. package/dist/mcp/instructions.js +116 -116
  470. package/dist/mcp/oauth.js +3 -3
  471. package/dist/mcp/stdio.js +85 -85
  472. package/dist/mime.js +1 -1
  473. package/dist/modal/models.js +3 -3
  474. package/dist/model-resolver.js +86 -86
  475. package/dist/model.js +8 -8
  476. package/dist/models-dev.js +78 -78
  477. package/dist/oauth/page.js +1 -1
  478. package/dist/permission/saved.js +80 -80
  479. package/dist/permission/sql.js +5 -5
  480. package/dist/permission.js +108 -108
  481. package/dist/persistent-pty/binary.bun.js +1 -1
  482. package/dist/persistent-pty/daemon.js +1 -1
  483. package/dist/persistent-pty/index.js +84 -84
  484. package/dist/persistent-pty/pty-binding.js +1 -1
  485. package/dist/persistent-pty.js +73 -73
  486. package/dist/plugin/agent.js +99 -99
  487. package/dist/plugin/command.js +96 -96
  488. package/dist/plugin/hooks.js +5 -5
  489. package/dist/plugin/host.js +213 -213
  490. package/dist/plugin/instance.js +5 -5
  491. package/dist/plugin/internal.js +324 -324
  492. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  493. package/dist/plugin/models-dev.js +75 -75
  494. package/dist/plugin/module.js +5 -5
  495. package/dist/plugin/optimize.js +2 -2
  496. package/dist/plugin/plan.js +97 -97
  497. package/dist/plugin/promise.js +1 -1
  498. package/dist/plugin/provider/alibaba.js +2 -2
  499. package/dist/plugin/provider/amazon-bedrock.js +2 -2
  500. package/dist/plugin/provider/anthropic.js +2 -2
  501. package/dist/plugin/provider/azure.js +118 -118
  502. package/dist/plugin/provider/cerebras.js +2 -2
  503. package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -117
  504. package/dist/plugin/provider/cloudflare-workers-ai.js +117 -117
  505. package/dist/plugin/provider/cohere.js +2 -2
  506. package/dist/plugin/provider/configured.js +114 -114
  507. package/dist/plugin/provider/digitalocean.js +79 -79
  508. package/dist/plugin/provider/dynamic.js +2 -2
  509. package/dist/plugin/provider/factory.js +1 -1
  510. package/dist/plugin/provider/gateway.js +2 -2
  511. package/dist/plugin/provider/github-copilot.js +80 -80
  512. package/dist/plugin/provider/gitlab.js +3 -3
  513. package/dist/plugin/provider/google-vertex.js +2 -2
  514. package/dist/plugin/provider/kilo.js +2 -2
  515. package/dist/plugin/provider/llmgateway.js +76 -76
  516. package/dist/plugin/provider/lmstudio.js +117 -117
  517. package/dist/plugin/provider/mistral.js +2 -2
  518. package/dist/plugin/provider/modal.js +79 -79
  519. package/dist/plugin/provider/nvidia.js +2 -2
  520. package/dist/plugin/provider/ollama.js +117 -117
  521. package/dist/plugin/provider/openai-compatible.js +1 -1
  522. package/dist/plugin/provider/openai.js +78 -78
  523. package/dist/plugin/provider/opencode.js +79 -79
  524. package/dist/plugin/provider/openrouter.js +3 -3
  525. package/dist/plugin/provider/perplexity.js +2 -2
  526. package/dist/plugin/provider/poe.js +76 -76
  527. package/dist/plugin/provider/sap-ai-core.js +3 -3
  528. package/dist/plugin/provider/sdk-factory.js +1 -1
  529. package/dist/plugin/provider/snowflake-cortex.js +117 -117
  530. package/dist/plugin/provider/venice.js +2 -2
  531. package/dist/plugin/provider/vercel.js +2 -2
  532. package/dist/plugin/provider/vllm.js +117 -117
  533. package/dist/plugin/provider/xai.js +77 -77
  534. package/dist/plugin/provider/zenmux.js +2 -2
  535. package/dist/plugin/provider.js +158 -158
  536. package/dist/plugin/sdk.js +74 -74
  537. package/dist/plugin/service.js +3 -3
  538. package/dist/plugin/skill.js +133 -133
  539. package/dist/plugin/source-directory.js +1 -1
  540. package/dist/plugin/supervisor.js +339 -339
  541. package/dist/plugin/update.js +6 -6
  542. package/dist/plugin/variant.js +4 -4
  543. package/dist/plugin/vcs/git.js +82 -82
  544. package/dist/plugin/vcs/hg.js +82 -82
  545. package/dist/plugin/warming.js +112 -112
  546. package/dist/plugin/websearch/exa.js +7 -7
  547. package/dist/plugin/websearch/firecrawl.js +6 -6
  548. package/dist/plugin/websearch/index.js +8 -8
  549. package/dist/plugin/websearch/mcp.js +6 -6
  550. package/dist/plugin/websearch/parallel.js +8 -8
  551. package/dist/plugin/websearch/tavily.js +6 -6
  552. package/dist/plugin.js +224 -224
  553. package/dist/project/schema.js +6 -6
  554. package/dist/project/sql.js +4 -4
  555. package/dist/project.js +83 -83
  556. package/dist/provider.js +7 -7
  557. package/dist/pty/protocol.js +1 -1
  558. package/dist/pty/schema.js +3 -3
  559. package/dist/pty/ticket.js +1 -1
  560. package/dist/pty.js +92 -92
  561. package/dist/reference/instructions.js +84 -84
  562. package/dist/reference.js +86 -86
  563. package/dist/repository-cache.js +76 -76
  564. package/dist/repository.js +1 -1
  565. package/dist/ripgrep/binary.js +2 -2
  566. package/dist/ripgrep.js +91 -91
  567. package/dist/rpc.js +81 -81
  568. package/dist/schema.js +1 -1
  569. package/dist/session/command.js +72 -72
  570. package/dist/session/compaction.js +129 -129
  571. package/dist/session/context.js +147 -147
  572. package/dist/session/environment.js +5 -5
  573. package/dist/session/error.js +5 -5
  574. package/dist/session/event.js +1 -1
  575. package/dist/session/execution/restart.js +216 -216
  576. package/dist/session/execution.js +122 -122
  577. package/dist/session/generate.js +148 -148
  578. package/dist/session/history.js +13 -13
  579. package/dist/session/inbox.js +88 -88
  580. package/dist/session/info.js +3 -3
  581. package/dist/session/instruction-entry.js +77 -77
  582. package/dist/session/instruction-state.js +8 -8
  583. package/dist/session/instructions.js +88 -88
  584. package/dist/session/message-updater.js +2 -2
  585. package/dist/session/message.js +1 -1
  586. package/dist/session/model-request.js +113 -113
  587. package/dist/session/model-transport.js +9 -9
  588. package/dist/session/move.js +126 -126
  589. package/dist/session/projector.js +84 -84
  590. package/dist/session/prompt.js +100 -100
  591. package/dist/session/provider-context.js +3 -3
  592. package/dist/session/revert.js +85 -85
  593. package/dist/session/run-coordinator.js +1 -1
  594. package/dist/session/runner/index.js +3 -3
  595. package/dist/session/runner/llm.js +223 -223
  596. package/dist/session/runner/max-steps.js +1 -1
  597. package/dist/session/runner/model.js +86 -86
  598. package/dist/session/runner/publish-llm-event.js +3 -3
  599. package/dist/session/runner/retry.js +110 -110
  600. package/dist/session/runner/step.js +119 -119
  601. package/dist/session/runner/to-llm-message.js +2 -2
  602. package/dist/session/schema.js +5 -5
  603. package/dist/session/session.js +169 -169
  604. package/dist/session/shell.js +131 -131
  605. package/dist/session/skill.js +98 -98
  606. package/dist/session/sql.js +5 -5
  607. package/dist/session/stats.js +71 -71
  608. package/dist/session/store.js +85 -85
  609. package/dist/session/subagent-completion.js +1 -1
  610. package/dist/session/subagent-job.js +205 -205
  611. package/dist/session/system-prompt.js +1 -1
  612. package/dist/session/title.js +145 -145
  613. package/dist/session/to-session-error.js +107 -107
  614. package/dist/session/transfer.js +211 -211
  615. package/dist/session/usage.js +1 -1
  616. package/dist/session.js +211 -211
  617. package/dist/shell/parse.js +6 -6
  618. package/dist/shell/result.js +1 -1
  619. package/dist/shell/scan.js +1 -1
  620. package/dist/shell/select.js +11 -11
  621. package/dist/shell.js +131 -131
  622. package/dist/skill/discovery.js +2 -2
  623. package/dist/skill/instructions.js +102 -102
  624. package/dist/skill.js +107 -107
  625. package/dist/snapshot.js +86 -86
  626. package/dist/state.js +1 -1
  627. package/dist/tool/html-markdown.js +1 -1
  628. package/dist/tool/http-body.js +1 -1
  629. package/dist/tool/mcp.js +119 -119
  630. package/dist/tool/plugin/edit.js +115 -115
  631. package/dist/tool/plugin/file-diff.js +1 -1
  632. package/dist/tool/plugin/glob.js +116 -116
  633. package/dist/tool/plugin/grep.js +120 -120
  634. package/dist/tool/plugin/opencode.js +3 -3
  635. package/dist/tool/plugin/patch.js +117 -117
  636. package/dist/tool/plugin/question.js +98 -98
  637. package/dist/tool/plugin/read.js +121 -121
  638. package/dist/tool/plugin/shell.js +210 -210
  639. package/dist/tool/plugin/skill.js +108 -108
  640. package/dist/tool/plugin/subagent.js +212 -212
  641. package/dist/tool/plugin/webfetch.js +107 -107
  642. package/dist/tool/plugin/websearch.js +103 -103
  643. package/dist/tool/plugin/write.js +117 -117
  644. package/dist/tool/read-filesystem.js +92 -92
  645. package/dist/tool/runtime.js +1 -1
  646. package/dist/tool-output.js +8 -8
  647. package/dist/tool.js +13 -13
  648. package/dist/util/error-summary.js +1 -1
  649. package/dist/util/error.js +1 -1
  650. package/dist/util/iife.js +1 -1
  651. package/dist/util/lazy.js +1 -1
  652. package/dist/util/slug.js +1 -1
  653. package/dist/util/token.js +1 -1
  654. package/dist/util/which.js +1 -1
  655. package/dist/util/wildcard.js +1 -1
  656. package/dist/v1/config/agent.js +5 -5
  657. package/dist/v1/config/attachment.js +2 -2
  658. package/dist/v1/config/command.js +3 -3
  659. package/dist/v1/config/config.js +16 -16
  660. package/dist/v1/config/error.js +2 -2
  661. package/dist/v1/config/formatter.js +3 -3
  662. package/dist/v1/config/layout.js +1 -1
  663. package/dist/v1/config/lsp.js +5 -5
  664. package/dist/v1/config/mcp.js +4 -4
  665. package/dist/v1/config/migrate.js +4 -4
  666. package/dist/v1/config/permission.js +3 -3
  667. package/dist/v1/config/plugin.js +3 -3
  668. package/dist/v1/config/provider-options.js +1 -1
  669. package/dist/v1/config/provider.js +4 -4
  670. package/dist/v1/config/server.js +2 -2
  671. package/dist/v1/config/skills.js +3 -3
  672. package/dist/v1/permission.js +1 -1
  673. package/dist/vcs/patch.js +1 -1
  674. package/dist/vcs.js +85 -85
  675. package/dist/websearch.js +82 -82
  676. package/dist/wellknown/plugin.js +74 -74
  677. package/dist/wellknown.js +77 -77
  678. package/dist/workspace/driver.js +7 -7
  679. package/dist/workspace/sql.js +1 -1
  680. package/dist/workspace.js +78 -78
  681. package/dist/worktree/directory.js +2 -2
  682. package/dist/worktree/git.js +5 -5
  683. package/dist/worktree/refresh.js +340 -340
  684. package/dist/worktree/sql.js +5 -5
  685. package/dist/worktree.js +91 -91
  686. package/package.json +8 -8
  687. package/dist/chunks/tool-0mesazry.js +0 -4
  688. package/dist/chunks/tool-by5v678g.js +0 -18
  689. package/dist/chunks/tool-mgy9m8rq.js +0 -247
  690. package/dist/chunks/tool-n9psyyj4.js +0 -462
  691. package/dist/chunks/tool-qwjx2d3p.js +0 -22
  692. /package/dist/chunks/{tool-0qkdqm5v.js → persistent-pty-0qkdqm5v.js} +0 -0
  693. /package/dist/chunks/{tool-0zkw76rk.js → persistent-pty-0zkw76rk.js} +0 -0
  694. /package/dist/chunks/{tool-17cy0kzp.js → persistent-pty-17cy0kzp.js} +0 -0
  695. /package/dist/chunks/{tool-1cnp2v09.js → persistent-pty-1cnp2v09.js} +0 -0
  696. /package/dist/chunks/{tool-1kg9ymc8.js → persistent-pty-1kg9ymc8.js} +0 -0
  697. /package/dist/chunks/{tool-2710q6r3.js → persistent-pty-2710q6r3.js} +0 -0
  698. /package/dist/chunks/{tool-2axfhc9x.js → persistent-pty-2axfhc9x.js} +0 -0
  699. /package/dist/chunks/{tool-2c3vjs8z.js → persistent-pty-2c3vjs8z.js} +0 -0
  700. /package/dist/chunks/{tool-359p4xyc.js → persistent-pty-359p4xyc.js} +0 -0
  701. /package/dist/chunks/{tool-3asan66x.js → persistent-pty-3asan66x.js} +0 -0
  702. /package/dist/chunks/{tool-3v8g72cx.js → persistent-pty-3v8g72cx.js} +0 -0
  703. /package/dist/chunks/{tool-3w5fmr99.js → persistent-pty-3w5fmr99.js} +0 -0
  704. /package/dist/chunks/{tool-3wcehsnq.js → persistent-pty-3wcehsnq.js} +0 -0
  705. /package/dist/chunks/{tool-43n2bw4t.js → persistent-pty-43n2bw4t.js} +0 -0
  706. /package/dist/chunks/{tool-4knz6hnm.js → persistent-pty-4knz6hnm.js} +0 -0
  707. /package/dist/chunks/{tool-4y7fprxs.js → persistent-pty-4y7fprxs.js} +0 -0
  708. /package/dist/chunks/{tool-53557ph1.js → persistent-pty-53557ph1.js} +0 -0
  709. /package/dist/chunks/{tool-550bvhaj.js → persistent-pty-550bvhaj.js} +0 -0
  710. /package/dist/chunks/{tool-6prwharc.js → persistent-pty-6prwharc.js} +0 -0
  711. /package/dist/chunks/{tool-7akdwqpd.js → persistent-pty-7akdwqpd.js} +0 -0
  712. /package/dist/chunks/{tool-7m9af43g.js → persistent-pty-7m9af43g.js} +0 -0
  713. /package/dist/chunks/{tool-822emrt2.js → persistent-pty-822emrt2.js} +0 -0
  714. /package/dist/chunks/{tool-88xbtdfr.js → persistent-pty-88xbtdfr.js} +0 -0
  715. /package/dist/chunks/{tool-8n3pysct.js → persistent-pty-8n3pysct.js} +0 -0
  716. /package/dist/chunks/{tool-922hggd3.js → persistent-pty-922hggd3.js} +0 -0
  717. /package/dist/chunks/{tool-9a4afbnw.js → persistent-pty-9a4afbnw.js} +0 -0
  718. /package/dist/chunks/{tool-9rqn6x4v.js → persistent-pty-9rqn6x4v.js} +0 -0
  719. /package/dist/chunks/{tool-a1tpkmh4.js → persistent-pty-a1tpkmh4.js} +0 -0
  720. /package/dist/chunks/{tool-a6k6eb26.js → persistent-pty-a6k6eb26.js} +0 -0
  721. /package/dist/chunks/{tool-af5trqkr.js → persistent-pty-af5trqkr.js} +0 -0
  722. /package/dist/chunks/{tool-afrmfg78.js → persistent-pty-afrmfg78.js} +0 -0
  723. /package/dist/chunks/{tool-aqzs7mqg.js → persistent-pty-aqzs7mqg.js} +0 -0
  724. /package/dist/chunks/{tool-atq7p7m5.js → persistent-pty-atq7p7m5.js} +0 -0
  725. /package/dist/chunks/{tool-bkyjaxrp.js → persistent-pty-bkyjaxrp.js} +0 -0
  726. /package/dist/chunks/{tool-bmr6ed5q.js → persistent-pty-bmr6ed5q.js} +0 -0
  727. /package/dist/chunks/{tool-cf4snx6d.js → persistent-pty-cf4snx6d.js} +0 -0
  728. /package/dist/chunks/{tool-cvy3z8tj.js → persistent-pty-cvy3z8tj.js} +0 -0
  729. /package/dist/chunks/{tool-d9fn303g.js → persistent-pty-d9fn303g.js} +0 -0
  730. /package/dist/chunks/{tool-d9jj8t3e.js → persistent-pty-d9jj8t3e.js} +0 -0
  731. /package/dist/chunks/{tool-dajrwvna.js → persistent-pty-dajrwvna.js} +0 -0
  732. /package/dist/chunks/{tool-dap0rakb.js → persistent-pty-dap0rakb.js} +0 -0
  733. /package/dist/chunks/{tool-df08tz66.js → persistent-pty-df08tz66.js} +0 -0
  734. /package/dist/chunks/{tool-dy18nga0.js → persistent-pty-dy18nga0.js} +0 -0
  735. /package/dist/chunks/{tool-e5kj55wp.js → persistent-pty-e5kj55wp.js} +0 -0
  736. /package/dist/chunks/{tool-e73j6tqm.js → persistent-pty-e73j6tqm.js} +0 -0
  737. /package/dist/chunks/{tool-ec1grn59.js → persistent-pty-ec1grn59.js} +0 -0
  738. /package/dist/chunks/{tool-eh3zwz77.js → persistent-pty-eh3zwz77.js} +0 -0
  739. /package/dist/chunks/{tool-emrn6kk6.js → persistent-pty-emrn6kk6.js} +0 -0
  740. /package/dist/chunks/{tool-f0mxakyp.js → persistent-pty-f0mxakyp.js} +0 -0
  741. /package/dist/chunks/{tool-f6n9ztr4.js → persistent-pty-f6n9ztr4.js} +0 -0
  742. /package/dist/chunks/{tool-faypxj3z.js → persistent-pty-faypxj3z.js} +0 -0
  743. /package/dist/chunks/{tool-fd410y7t.js → persistent-pty-fd410y7t.js} +0 -0
  744. /package/dist/chunks/{tool-fxgpk5d8.js → persistent-pty-fxgpk5d8.js} +0 -0
  745. /package/dist/chunks/{tool-g4wezp1m.js → persistent-pty-g4wezp1m.js} +0 -0
  746. /package/dist/chunks/{tool-g86h250q.js → persistent-pty-g86h250q.js} +0 -0
  747. /package/dist/chunks/{tool-gebd4c9n.js → persistent-pty-gebd4c9n.js} +0 -0
  748. /package/dist/chunks/{tool-gftt206x.js → persistent-pty-gftt206x.js} +0 -0
  749. /package/dist/chunks/{tool-hjbc5kem.js → persistent-pty-hjbc5kem.js} +0 -0
  750. /package/dist/chunks/{tool-hk9envan.js → persistent-pty-hk9envan.js} +0 -0
  751. /package/dist/chunks/{tool-hrnqkpcd.js → persistent-pty-hrnqkpcd.js} +0 -0
  752. /package/dist/chunks/{tool-j2ntwpah.js → persistent-pty-j2ntwpah.js} +0 -0
  753. /package/dist/chunks/{tool-j5zkgpj8.js → persistent-pty-j5zkgpj8.js} +0 -0
  754. /package/dist/chunks/{tool-jr7sbwjy.js → persistent-pty-jr7sbwjy.js} +0 -0
  755. /package/dist/chunks/{tool-jwfs4k6c.js → persistent-pty-jwfs4k6c.js} +0 -0
  756. /package/dist/chunks/{tool-jzg6c2d5.js → persistent-pty-jzg6c2d5.js} +0 -0
  757. /package/dist/chunks/{tool-mp448xyj.js → persistent-pty-mp448xyj.js} +0 -0
  758. /package/dist/chunks/{tool-msx8hqn2.js → persistent-pty-msx8hqn2.js} +0 -0
  759. /package/dist/chunks/{tool-n05xt0ee.js → persistent-pty-n05xt0ee.js} +0 -0
  760. /package/dist/chunks/{tool-n3j8tn72.js → persistent-pty-n3j8tn72.js} +0 -0
  761. /package/dist/chunks/{tool-njntx4h6.js → persistent-pty-njntx4h6.js} +0 -0
  762. /package/dist/chunks/{tool-paphc93g.js → persistent-pty-paphc93g.js} +0 -0
  763. /package/dist/chunks/{tool-q3sfg36h.js → persistent-pty-q3sfg36h.js} +0 -0
  764. /package/dist/chunks/{tool-q74kybfr.js → persistent-pty-q74kybfr.js} +0 -0
  765. /package/dist/chunks/{tool-qaymkmh1.js → persistent-pty-qaymkmh1.js} +0 -0
  766. /package/dist/chunks/{tool-qb87gjwd.js → persistent-pty-qb87gjwd.js} +0 -0
  767. /package/dist/chunks/{tool-qfa1cgps.js → persistent-pty-qfa1cgps.js} +0 -0
  768. /package/dist/chunks/{tool-qrg20bc0.js → persistent-pty-qrg20bc0.js} +0 -0
  769. /package/dist/chunks/{tool-rcb2kzg1.js → persistent-pty-rcb2kzg1.js} +0 -0
  770. /package/dist/chunks/{tool-sdp7kfr6.js → persistent-pty-sdp7kfr6.js} +0 -0
  771. /package/dist/chunks/{tool-sk3qaz4a.js → persistent-pty-sk3qaz4a.js} +0 -0
  772. /package/dist/chunks/{tool-ssg3fenm.js → persistent-pty-ssg3fenm.js} +0 -0
  773. /package/dist/chunks/{tool-twg0f83k.js → persistent-pty-twg0f83k.js} +0 -0
  774. /package/dist/chunks/{tool-w803qqfp.js → persistent-pty-w803qqfp.js} +0 -0
  775. /package/dist/chunks/{tool-wer8tq1h.js → persistent-pty-wer8tq1h.js} +0 -0
  776. /package/dist/chunks/{tool-wtztk69x.js → persistent-pty-wtztk69x.js} +0 -0
  777. /package/dist/chunks/{tool-x0ckcb58.js → persistent-pty-x0ckcb58.js} +0 -0
  778. /package/dist/chunks/{tool-x61499pn.js → persistent-pty-x61499pn.js} +0 -0
  779. /package/dist/chunks/{tool-y44na4kk.js → persistent-pty-y44na4kk.js} +0 -0
  780. /package/dist/chunks/{tool-y8cydn3q.js → persistent-pty-y8cydn3q.js} +0 -0
  781. /package/dist/chunks/{tool-ygaqb7jw.js → persistent-pty-ygaqb7jw.js} +0 -0
  782. /package/dist/chunks/{tool-ym463w8f.js → persistent-pty-ym463w8f.js} +0 -0
  783. /package/dist/chunks/{tool-z9919s4g.js → persistent-pty-z9919s4g.js} +0 -0
@@ -1,29 +1,29 @@
1
1
  import {
2
2
  Service79,
3
3
  node84
4
- } from "./tool-bkqp681g.js";
4
+ } from "./persistent-pty-f2ew84cp.js";
5
5
  import {
6
6
  environment2
7
- } from "./tool-r3g2zw8n.js";
7
+ } from "./persistent-pty-egy5b1a6.js";
8
8
  import {
9
9
  makeDaemonTransport2
10
- } from "./tool-sk3qaz4a.js";
10
+ } from "./persistent-pty-sk3qaz4a.js";
11
11
  import {
12
12
  __export
13
- } from "./tool-9rqn6x4v.js";
13
+ } from "./persistent-pty-9rqn6x4v.js";
14
14
 
15
15
  // src/persistent-pty/index.ts
16
16
  var exports_persistent_pty = {};
17
17
  __export(exports_persistent_pty, {
18
18
  Handoff: () => Handoff2,
19
- NotFoundError: () => NotFoundError5,
19
+ NotFoundError: () => NotFoundError7,
20
20
  Options: () => Options9,
21
21
  PersistentPty: () => exports_persistent_pty,
22
- Service: () => Service46,
23
- UnavailableError: () => UnavailableError2,
24
- configured: () => configured10,
25
- layer: () => layer19,
26
- node: () => node52
22
+ Service: () => Service62,
23
+ UnavailableError: () => UnavailableError3,
24
+ configured: () => configured9,
25
+ layer: () => layer25,
26
+ node: () => node66
27
27
  });
28
28
  import os from "node:os";
29
29
  import path from "node:path";
@@ -37,19 +37,19 @@ import { resolveBinary } from "#persistent-pty-binary";
37
37
  import { Handoff as Handoff2 } from "@opencode/schema/persistent-pty";
38
38
  var Options9 = Schema.Struct({ handoff: Schema.optional(Handoff) });
39
39
 
40
- class UnavailableError2 extends Schema.TaggedError()("PersistentPty.UnavailableError", {
40
+ class UnavailableError3 extends Schema.TaggedError()("PersistentPty.UnavailableError", {
41
41
  message: Schema.String
42
42
  }) {
43
43
  }
44
44
 
45
- class NotFoundError5 extends Schema.TaggedError()("PersistentPty.NotFoundError", {
45
+ class NotFoundError7 extends Schema.TaggedError()("PersistentPty.NotFoundError", {
46
46
  ptyID: Pty.ID
47
47
  }) {
48
48
  }
49
49
 
50
- class Service46 extends Context.Service()("@opencode/PersistentPty") {
50
+ class Service62 extends Context.Service()("@opencode/PersistentPty") {
51
51
  }
52
- var makeLayer = (options = {}) => Layer.effect(Service46, Effect.gen(function* () {
52
+ var makeLayer = (options = {}) => Layer.effect(Service62, Effect.gen(function* () {
53
53
  const bus = yield* Service79;
54
54
  const global = yield* Global.Service;
55
55
  const context = yield* Effect.context();
@@ -72,7 +72,7 @@ var makeLayer = (options = {}) => Layer.effect(Service46, Effect.gen(function* (
72
72
  const get = Effect.fn("PersistentPty.get")(function* (id) {
73
73
  const found = (yield* list()).find((terminal) => terminal.id === id);
74
74
  if (!found)
75
- return yield* new NotFoundError5({ ptyID: id });
75
+ return yield* new NotFoundError7({ ptyID: id });
76
76
  return found;
77
77
  });
78
78
  const create = Effect.fn("PersistentPty.create")(function* (sessionID, input) {
@@ -162,7 +162,7 @@ var makeLayer = (options = {}) => Layer.effect(Service46, Effect.gen(function* (
162
162
  });
163
163
  const read = Effect.fn("PersistentPty.read")(function* (sessionID, lines) {
164
164
  if (lines !== undefined && !Schema.is(ReadLines)(lines))
165
- return yield* new UnavailableError2({ message: "lines must be an integer between 1 and 65535" });
165
+ return yield* new UnavailableError3({ message: "lines must be an integer between 1 and 65535" });
166
166
  const id = current.get(sessionID);
167
167
  if (!id)
168
168
  return null;
@@ -239,7 +239,7 @@ var makeLayer = (options = {}) => Layer.effect(Service46, Effect.gen(function* (
239
239
  detach: attachment.detach
240
240
  };
241
241
  });
242
- return Service46.of({
242
+ return Service62.of({
243
243
  list,
244
244
  get,
245
245
  create,
@@ -255,17 +255,17 @@ var makeLayer = (options = {}) => Layer.effect(Service46, Effect.gen(function* (
255
255
  attach
256
256
  });
257
257
  }));
258
- var layer19 = makeLayer();
259
- var configured10 = (options) => makeGlobalNode({
260
- service: Service46,
261
- layer: options === undefined ? layer19 : makeLayer(options),
258
+ var layer25 = makeLayer();
259
+ var configured9 = (options) => makeGlobalNode({
260
+ service: Service62,
261
+ layer: options === undefined ? layer25 : makeLayer(options),
262
262
  deps: [node84, Global.node]
263
263
  });
264
- var node52 = configured10();
264
+ var node66 = configured9();
265
265
  var request = (daemon, value, start = false) => daemon.request(value, start).pipe(Effect.mapError(unavailable));
266
266
  var optionalRequest = (daemon, value) => daemon.requestIfRunning(value).pipe(Effect.mapError(unavailable));
267
- var unexpected = (response) => Effect.fail(new UnavailableError2({ message: `unexpected opencode-pty response: ${response.type}` }));
268
- var unavailable = (error) => new UnavailableError2({ message: error instanceof Error ? error.message : String(error) });
267
+ var unexpected = (response) => Effect.fail(new UnavailableError3({ message: `unexpected opencode-pty response: ${response.type}` }));
268
+ var unavailable = (error) => new UnavailableError3({ message: error instanceof Error ? error.message : String(error) });
269
269
  var runtimeDirectory = () => {
270
270
  const root = process.env.OPENCODE_PTY_RUNTIME_DIR ?? (process.env.XDG_RUNTIME_DIR ? path.join(process.env.XDG_RUNTIME_DIR, "opencode-pty") : path.join(os.tmpdir(), `opencode-pty-${typeof process.getuid === "function" ? process.getuid() : process.env.USER || "unknown"}`));
271
271
  return path.join(root, crypto.randomUUID());
@@ -301,4 +301,4 @@ function fromID(value) {
301
301
  return parsed;
302
302
  }
303
303
 
304
- export { Options9, UnavailableError2, NotFoundError5, Service46, layer19, configured10, node52, exports_persistent_pty, Handoff2 };
304
+ export { Options9, UnavailableError3, NotFoundError7, Service62, layer25, configured9, node66, exports_persistent_pty, Handoff2 };
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  create3
3
- } from "./tool-kg06axw8.js";
3
+ } from "./persistent-pty-kg06axw8.js";
4
4
  import {
5
5
  which2
6
- } from "./tool-qaymkmh1.js";
6
+ } from "./persistent-pty-qaymkmh1.js";
7
7
  import {
8
8
  __export
9
- } from "./tool-9rqn6x4v.js";
9
+ } from "./persistent-pty-9rqn6x4v.js";
10
10
 
11
11
  // src/shell/select.ts
12
12
  var exports_select = {};
13
13
  __export(exports_select, {
14
14
  Options: () => Options10,
15
- Service: () => Service47,
15
+ Service: () => Service63,
16
16
  ShellSelect: () => exports_select,
17
17
  args: () => args2,
18
- configured: () => configured11,
18
+ configured: () => configured10,
19
19
  environment: () => environment2,
20
20
  gitbash: () => gitbash2,
21
- list: () => list3,
21
+ list: () => list4,
22
22
  login: () => login2,
23
23
  name: () => name15,
24
- node: () => node53,
24
+ node: () => node67,
25
25
  ps: () => ps2,
26
26
  resolve: () => resolve2
27
27
  });
@@ -47,7 +47,7 @@ var Options10 = Schema.Struct({
47
47
  gitbash: Schema.optional(Schema.String)
48
48
  });
49
49
 
50
- class Service47 extends Context.Service()("@opencode/ShellSelect") {
50
+ class Service63 extends Context.Service()("@opencode/ShellSelect") {
51
51
  }
52
52
  function stat(file) {
53
53
  return statSync(file, { throwIfNoEntry: false }) ?? undefined;
@@ -184,11 +184,11 @@ resolve2.reset = () => {
184
184
  defaultConfigured = undefined;
185
185
  defaultCompatible = undefined;
186
186
  };
187
- async function list3(options, bin) {
187
+ async function list4(options, bin) {
188
188
  const shells = process.platform === "win32" ? win(options, bin) : await unix();
189
189
  return shells.filter((shell) => executable(shell, options, bin)).map((shell) => info(shell, options, bin));
190
190
  }
191
- var layer = (options) => Layer.effect(Service47, Effect.gen(function* () {
191
+ var layer = (options) => Layer.effect(Service63, Effect.gen(function* () {
192
192
  const global = yield* Global.Service;
193
193
  const state = create3({
194
194
  name: "shell-select",
@@ -199,15 +199,15 @@ var layer = (options) => Layer.effect(Service47, Effect.gen(function* () {
199
199
  }
200
200
  })
201
201
  });
202
- return Service47.of({
202
+ return Service63.of({
203
203
  transform: state.transform,
204
204
  reload: state.reload,
205
205
  resolve: (input) => Effect.sync(() => resolve2(input, state.get().shell, options, global.bin))
206
206
  });
207
207
  }));
208
- function configured11(options) {
209
- return makeLocationNode({ service: Service47, layer: layer(options), deps: [Global.node] });
208
+ function configured10(options) {
209
+ return makeLocationNode({ service: Service63, layer: layer(options), deps: [Global.node] });
210
210
  }
211
- var node53 = configured11();
211
+ var node67 = configured10();
212
212
 
213
- export { Options10, Service47, gitbash2, name15, login2, ps2, args2, environment2, resolve2, list3, configured11, node53, exports_select };
213
+ export { Options10, Service63, gitbash2, name15, login2, ps2, args2, environment2, resolve2, list4, configured10, node67, exports_select };
@@ -1,32 +1,32 @@
1
1
  import {
2
2
  Service80,
3
3
  node85
4
- } from "./tool-v26tvdgf.js";
4
+ } from "./persistent-pty-rp5c9stp.js";
5
5
  import {
6
- Key3,
6
+ Key4,
7
7
  removed2,
8
- make20,
8
+ make21,
9
9
  combine2
10
- } from "./tool-rhjbct0v.js";
10
+ } from "./persistent-pty-eaj1djv9.js";
11
11
  import {
12
12
  InstructionEntryTable2
13
- } from "./tool-a1bz86dw.js";
13
+ } from "./persistent-pty-a1bz86dw.js";
14
14
  import {
15
15
  __export
16
- } from "./tool-9rqn6x4v.js";
16
+ } from "./persistent-pty-9rqn6x4v.js";
17
17
 
18
18
  // src/session/instruction-entry.ts
19
19
  var exports_instruction_entry = {};
20
20
  __export(exports_instruction_entry, {
21
- Info: () => Info5,
21
+ Info: () => Info6,
22
22
  InstructionEntry: () => exports_instruction_entry,
23
23
  Key: () => Key2,
24
24
  MaxValueBytes: () => MaxValueBytes2,
25
- Service: () => Service25,
25
+ Service: () => Service31,
26
26
  Snapshot: () => Snapshot2,
27
27
  ValueTooLargeError: () => ValueTooLargeError2,
28
28
  initialize: () => initialize2,
29
- node: () => node30,
29
+ node: () => node36,
30
30
  snapshot: () => snapshot2
31
31
  });
32
32
  import { and, asc, eq, isNotNull, isNull, ne, or } from "drizzle-orm";
@@ -34,7 +34,7 @@ import { Context, Effect, Layer, Schema } from "effect";
34
34
  import { InstructionEntry } from "@opencode/schema/instruction-entry";
35
35
  import { makeLocationNode } from "@opencode/util/effect/app-node";
36
36
  var Key2 = InstructionEntry.Key;
37
- var Info5 = InstructionEntry.Info;
37
+ var Info6 = InstructionEntry.Info;
38
38
  var Snapshot2 = InstructionEntry.Snapshot;
39
39
  var MaxValueBytes2 = InstructionEntry.MaxValueBytes;
40
40
  var ValueTooLargeError2 = InstructionEntry.ValueTooLargeError;
@@ -56,13 +56,13 @@ var initialize2 = Effect.fn("InstructionEntry.initialize")(function* (db, sessio
56
56
  }))).run().pipe(Effect.orDie), { discard: true });
57
57
  });
58
58
 
59
- class Service25 extends Context.Service()("@opencode/InstructionEntry") {
59
+ class Service31 extends Context.Service()("@opencode/InstructionEntry") {
60
60
  }
61
61
  var renderValue = (value) => typeof value === "string" ? value : JSON.stringify(value, null, 2);
62
62
  var renderBlock = (key, value) => [`<context key="${key}">`, renderValue(value), "</context>"].join(`
63
63
  `);
64
- var source = (entry) => make20({
65
- key: Key3.make(`api/${entry.key}`),
64
+ var source = (entry) => make21({
65
+ key: Key4.make(`api/${entry.key}`),
66
66
  codec: Schema.toCodecJson(Schema.Json),
67
67
  read: Effect.succeed(entry.removed ? removed2 : entry.value),
68
68
  render: {
@@ -75,7 +75,7 @@ var source = (entry) => make20({
75
75
  removed: () => `The context under "${entry.key}" no longer applies. Disregard it.`
76
76
  }
77
77
  });
78
- var layer = Layer.effect(Service25, Effect.gen(function* () {
78
+ var layer = Layer.effect(Service31, Effect.gen(function* () {
79
79
  const { db } = yield* Service80;
80
80
  const rows = Effect.fnUntraced(function* (sessionID, includeRemoved) {
81
81
  return yield* db.select({
@@ -108,8 +108,8 @@ var layer = Layer.effect(Service25, Effect.gen(function* () {
108
108
  const load = Effect.fn("InstructionEntry.load")(function* (sessionID) {
109
109
  return combine2((yield* rows(sessionID, true)).map(source));
110
110
  });
111
- return Service25.of({ list, put, remove, load });
111
+ return Service31.of({ list, put, remove, load });
112
112
  }));
113
- var node30 = makeLocationNode({ service: Service25, layer, deps: [node85] });
113
+ var node36 = makeLocationNode({ service: Service31, layer, deps: [node85] });
114
114
 
115
- export { Key2, Info5, Snapshot2, MaxValueBytes2, ValueTooLargeError2, snapshot2, initialize2, Service25, node30, exports_instruction_entry };
115
+ export { Key2, Info6, Snapshot2, MaxValueBytes2, ValueTooLargeError2, snapshot2, initialize2, Service31, node36, exports_instruction_entry };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  which2
3
- } from "./tool-qaymkmh1.js";
3
+ } from "./persistent-pty-qaymkmh1.js";
4
4
 
5
5
  // src/formatter/builtins.ts
6
6
  import { Effect } from "effect";
7
7
  import { ChildProcess } from "effect/unstable/process";
8
- function make5(input) {
8
+ function make8(input) {
9
9
  const disabled = false;
10
10
  const findExecutable = (name) => which2(name, undefined, input.bin);
11
11
  const findUp = (target) => input.fs.findUp(target, input.directory, input.worktree);
@@ -261,4 +261,4 @@ function isRecord(input) {
261
261
  return Boolean(input && typeof input === "object" && !Array.isArray(input));
262
262
  }
263
263
 
264
- export { make5 };
264
+ export { make8 };
@@ -1,48 +1,48 @@
1
1
  import {
2
2
  Service79
3
- } from "./tool-bkqp681g.js";
3
+ } from "./persistent-pty-f2ew84cp.js";
4
4
  import {
5
- Service78
6
- } from "./tool-cyg7q180.js";
5
+ Service68
6
+ } from "./persistent-pty-zyehkexa.js";
7
7
  import {
8
8
  group2,
9
9
  batch2,
10
10
  shutdown2,
11
11
  inherit2
12
- } from "./tool-kg06axw8.js";
12
+ } from "./persistent-pty-kg06axw8.js";
13
13
  import {
14
- Service34,
14
+ Service32,
15
15
  awaitActivation2
16
- } from "./tool-by5v678g.js";
16
+ } from "./persistent-pty-9sh4wc5j.js";
17
17
  import {
18
18
  make11,
19
19
  requirements3,
20
20
  storage2
21
- } from "./tool-eht72x8j.js";
21
+ } from "./persistent-pty-fqhavq00.js";
22
22
  import {
23
23
  __export
24
- } from "./tool-9rqn6x4v.js";
24
+ } from "./persistent-pty-9rqn6x4v.js";
25
25
 
26
26
  // src/plugin.ts
27
27
  var exports_plugin2 = {};
28
28
  __export(exports_plugin2, {
29
- Event: () => Event5,
30
- ID: () => ID3,
31
- Info: () => Info3,
29
+ Event: () => Event3,
30
+ ID: () => ID2,
31
+ Info: () => Info2,
32
32
  Plugin: () => exports_plugin2,
33
- Service: () => Service34,
33
+ Service: () => Service32,
34
34
  Source: () => Source2,
35
35
  State: () => State2,
36
36
  awaitActivation: () => awaitActivation2,
37
- node: () => node24
37
+ node: () => node18
38
38
  });
39
- import { Event as Event5, ID as ID3, Info as Info3, Source as Source2, State as State2 } from "@opencode/schema/plugin";
39
+ import { Event as Event3, ID as ID2, Info as Info2, Source as Source2, State as State2 } from "@opencode/schema/plugin";
40
40
  import { Plugin } from "@opencode/schema/plugin";
41
41
  import { Node } from "@opencode/util/effect/app-node";
42
42
  import { Cause, Context, Effect, Exit, Latch, Layer, Logger, Queue, References, Scope, Semaphore } from "effect";
43
- var layer = Layer.effect(Service34, Effect.gen(function* () {
43
+ var layer = Layer.effect(Service32, Effect.gen(function* () {
44
44
  const bus = yield* Service79;
45
- const kv = yield* Service78;
45
+ const kv = yield* Service68;
46
46
  const scope = yield* Scope.make();
47
47
  const active = new Map;
48
48
  const lock = Semaphore.makeUnsafe(1);
@@ -205,7 +205,7 @@ var layer = Layer.effect(Service34, Effect.gen(function* () {
205
205
  yield* shutdown2(Scope.close(scope, exit));
206
206
  }));
207
207
  yield* Effect.addFinalizer(close);
208
- return Service34.of({
208
+ return Service32.of({
209
209
  activate,
210
210
  close,
211
211
  awaitActivation: ready.await,
@@ -222,10 +222,10 @@ function slotInfo(slot) {
222
222
  features: { server: true, ...slot.plugin.features }
223
223
  };
224
224
  }
225
- var node24 = Node.makeLocationNode({
226
- service: Service34,
225
+ var node18 = Node.makeLocationNode({
226
+ service: Service32,
227
227
  layer,
228
228
  deps: [requirements3]
229
229
  });
230
230
 
231
- export { node24, exports_plugin2, Event5, ID3, Info3, Source2, State2 };
231
+ export { node18, exports_plugin2, Event3, ID2, Info2, Source2, State2 };
@@ -4,43 +4,43 @@ import {
4
4
  normalizeContent2,
5
5
  normalizedName2,
6
6
  effectiveName2
7
- } from "./tool-3w5fmr99.js";
7
+ } from "./persistent-pty-3w5fmr99.js";
8
8
  import {
9
9
  create2,
10
10
  catalog2
11
- } from "./tool-x43y2vfs.js";
11
+ } from "./persistent-pty-x43y2vfs.js";
12
12
  import {
13
13
  create3
14
- } from "./tool-kg06axw8.js";
14
+ } from "./persistent-pty-kg06axw8.js";
15
15
  import {
16
- Service54,
17
- node60
18
- } from "./tool-k8sr7gbn.js";
16
+ Service47,
17
+ node52
18
+ } from "./persistent-pty-5gachfgg.js";
19
19
  import {
20
- Service74,
21
- node79
22
- } from "./tool-8sghyhzw.js";
20
+ Service73,
21
+ node78
22
+ } from "./persistent-pty-jj63jgrn.js";
23
23
  import {
24
24
  match2
25
- } from "./tool-y1fvbwt7.js";
25
+ } from "./persistent-pty-y1fvbwt7.js";
26
26
  import {
27
27
  __export
28
- } from "./tool-9rqn6x4v.js";
28
+ } from "./persistent-pty-9rqn6x4v.js";
29
29
 
30
30
  // src/tool.ts
31
31
  var exports_tool = {};
32
32
  __export(exports_tool, {
33
33
  CallID: () => CallID2,
34
34
  Content: () => Content3,
35
- Error: () => Error5,
35
+ Error: () => Error4,
36
36
  FileContent: () => FileContent3,
37
37
  RegistrationError: () => RegistrationError2,
38
- Service: () => Service53,
38
+ Service: () => Service46,
39
39
  TextContent: () => TextContent2,
40
40
  Tool: () => exports_tool,
41
- node: () => node59
41
+ node: () => node51
42
42
  });
43
- import { CallID as CallID2, Content as Content3, Error as Error5, FileContent as FileContent3, TextContent as TextContent2 } from "@opencode/schema/tool";
43
+ import { CallID as CallID2, Content as Content3, Error as Error4, FileContent as FileContent3, TextContent as TextContent2 } from "@opencode/schema/tool";
44
44
  import { ToolDefinition } from "@opencode/ai";
45
45
  import { Tool } from "@opencode/schema/tool";
46
46
  import { Context, Effect, Layer, Result, Schema, SchemaIssue } from "effect";
@@ -51,11 +51,11 @@ class RegistrationError2 extends Schema.TaggedError()("Tool.RegistrationError",
51
51
  }) {
52
52
  }
53
53
 
54
- class Service53 extends Context.Service()("@opencode/Tool") {
54
+ class Service46 extends Context.Service()("@opencode/Tool") {
55
55
  }
56
- var layer = Layer.effect(Service53, Effect.gen(function* () {
57
- const hooks = yield* Service74;
58
- const image = yield* Service54;
56
+ var layer = Layer.effect(Service46, Effect.gen(function* () {
57
+ const hooks = yield* Service73;
58
+ const image = yield* Service47;
59
59
  const normalizeImages = Effect.fnUntraced(function* (content) {
60
60
  const normalized = yield* Effect.forEach(content, (item) => {
61
61
  if (item.type !== "file" || !item.mime.startsWith("image/"))
@@ -180,7 +180,7 @@ var layer = Layer.effect(Service53, Effect.gen(function* () {
180
180
  error: error.message
181
181
  }), { discard: true })
182
182
  });
183
- return Service53.of({
183
+ return Service46.of({
184
184
  transform: state.transform,
185
185
  reload: state.reload,
186
186
  snapshot: Effect.fn("Tool.snapshot")((permissions) => Effect.sync(() => {
@@ -262,10 +262,10 @@ function namespaceError(name) {
262
262
  return;
263
263
  return new RegistrationError2({ name, message: `Invalid tool namespace: ${JSON.stringify(name)}` });
264
264
  }
265
- var node59 = makeLocationNode({
266
- service: Service53,
265
+ var node51 = makeLocationNode({
266
+ service: Service46,
267
267
  layer,
268
- deps: [node79, node60]
268
+ deps: [node78, node52]
269
269
  });
270
270
 
271
- export { RegistrationError2, Service53, node59, exports_tool, CallID2, Content3, Error5, FileContent3, TextContent2 };
271
+ export { RegistrationError2, Service46, node51, exports_tool, CallID2, Content3, Error4, FileContent3, TextContent2 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./tool-9rqn6x4v.js";
3
+ } from "./persistent-pty-9rqn6x4v.js";
4
4
 
5
5
  // src/database/sqlite.ts
6
6
  var exports_sqlite = {};
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  Service80,
3
3
  node85
4
- } from "./tool-v26tvdgf.js";
4
+ } from "./persistent-pty-rp5c9stp.js";
5
5
  import {
6
6
  EventSequenceTable2,
7
7
  EventTable2
8
- } from "./tool-2710q6r3.js";
8
+ } from "./persistent-pty-2710q6r3.js";
9
9
  import {
10
10
  makeUnsafe2
11
- } from "./tool-y71avatq.js";
11
+ } from "./persistent-pty-y71avatq.js";
12
12
  import {
13
13
  __export
14
- } from "./tool-9rqn6x4v.js";
14
+ } from "./persistent-pty-9rqn6x4v.js";
15
15
 
16
16
  // src/bus.ts
17
17
  var exports_bus = {};