@opencode/core 2.0.5 → 2.0.6

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 (802) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +80 -80
  3. package/dist/aisdk-native.js +88 -88
  4. package/dist/aisdk.js +93 -93
  5. package/dist/app.js +7 -7
  6. package/dist/bus.js +72 -72
  7. package/dist/chunks/{instruction-discovery-5rtcdtd1.js → persistent-pty-06dd7vd0.js} +19 -19
  8. package/dist/chunks/{instruction-discovery-338yd3q8.js → persistent-pty-07z5tzwy.js} +5 -5
  9. package/dist/chunks/{instruction-discovery-krxgz8mr.js → persistent-pty-0eqr15n0.js} +31 -31
  10. package/dist/chunks/{instruction-discovery-cksv5s6r.js → persistent-pty-0f5egwty.js} +29 -29
  11. package/dist/chunks/{instruction-discovery-1c2y5bma.js → persistent-pty-0kraehyv.js} +11 -11
  12. package/dist/chunks/{instruction-discovery-9y32njdq.js → persistent-pty-0n9t5jdb.js} +26 -26
  13. package/dist/chunks/{instruction-discovery-0paq2nw3.js → persistent-pty-0paq2nw3.js} +1 -1
  14. package/dist/chunks/{instruction-discovery-0q0f95c6.js → persistent-pty-0q0f95c6.js} +1 -1
  15. package/dist/chunks/{instruction-discovery-k6rzxkd3.js → persistent-pty-0wnsc2cx.js} +11 -11
  16. package/dist/chunks/{instruction-discovery-1dazxqgg.js → persistent-pty-1dazxqgg.js} +2 -2
  17. package/dist/chunks/{instruction-discovery-wd3qynhg.js → persistent-pty-1ft1n4nv.js} +1 -1
  18. package/dist/chunks/{instruction-discovery-378zzhja.js → persistent-pty-1hfd6v93.js} +26 -26
  19. package/dist/chunks/{instruction-discovery-h2vfddx5.js → persistent-pty-1kvb0kat.js} +46 -46
  20. package/dist/chunks/{instruction-discovery-jgf81bvk.js → persistent-pty-1t0nfscf.js} +87 -76
  21. package/dist/chunks/{instruction-discovery-4jdqb6vt.js → persistent-pty-1z7bxdr8.js} +25 -22
  22. package/dist/chunks/{instruction-discovery-21r38tys.js → persistent-pty-21r38tys.js} +1 -1
  23. package/dist/chunks/{instruction-discovery-qh96k4k1.js → persistent-pty-22k63xb0.js} +12 -12
  24. package/dist/chunks/{instruction-discovery-s84t8sre.js → persistent-pty-23mp22r0.js} +27 -27
  25. package/dist/chunks/{instruction-discovery-6h73sxmp.js → persistent-pty-2402vzrj.js} +5 -5
  26. package/dist/chunks/{instruction-discovery-z63w68vq.js → persistent-pty-29x78va6.js} +6 -6
  27. package/dist/chunks/{instruction-discovery-2a5m3afh.js → persistent-pty-2a5m3afh.js} +1 -1
  28. package/dist/chunks/{instruction-discovery-w4arg62q.js → persistent-pty-2jmaghvr.js} +4 -4
  29. package/dist/chunks/{instruction-discovery-6a9734zn.js → persistent-pty-2kg3amvy.js} +43 -31
  30. package/dist/chunks/{instruction-discovery-d7930f8j.js → persistent-pty-2ptmrvab.js} +10 -10
  31. package/dist/chunks/{instruction-discovery-gwm2cjfp.js → persistent-pty-2qke6n7n.js} +20 -20
  32. package/dist/chunks/{instruction-discovery-rb6z2mdp.js → persistent-pty-35v1kxn5.js} +23 -23
  33. package/dist/chunks/{instruction-discovery-p44d8wdy.js → persistent-pty-3cz8rj72.js} +5 -5
  34. package/dist/chunks/{instruction-discovery-mx7b5mce.js → persistent-pty-3esknjh8.js} +46 -46
  35. package/dist/chunks/{instruction-discovery-3fc6dm20.js → persistent-pty-3fc6dm20.js} +1 -1
  36. package/dist/chunks/{instruction-discovery-3hepkmqq.js → persistent-pty-3hepkmqq.js} +1 -1
  37. package/dist/chunks/{instruction-discovery-3smtnn6g.js → persistent-pty-3smtnn6g.js} +1 -1
  38. package/dist/chunks/{instruction-discovery-3tvqynh2.js → persistent-pty-3tvqynh2.js} +1 -1
  39. package/dist/chunks/{instruction-discovery-knb7evpn.js → persistent-pty-44ke2mar.js} +2 -2
  40. package/dist/chunks/{instruction-discovery-2j4ac2f1.js → persistent-pty-45ke46p8.js} +9 -9
  41. package/dist/chunks/{instruction-discovery-n81wkjqj.js → persistent-pty-49e0ywga.js} +3 -3
  42. package/dist/chunks/{instruction-discovery-vxf6g7p6.js → persistent-pty-4aps5ycz.js} +5 -5
  43. package/dist/chunks/{instruction-discovery-4edzycq9.js → persistent-pty-4c1zt1be.js} +83 -83
  44. package/dist/chunks/{instruction-discovery-78rb030m.js → persistent-pty-4ka5ffeb.js} +41 -41
  45. package/dist/chunks/{instruction-discovery-sxqcr6wk.js → persistent-pty-4m8jz26w.js} +10 -10
  46. package/dist/chunks/{instruction-discovery-1829bv76.js → persistent-pty-4st9gtz8.js} +11 -11
  47. package/dist/chunks/{instruction-discovery-y6pbk9jp.js → persistent-pty-4vq28sgd.js} +2 -2
  48. package/dist/chunks/{instruction-discovery-1nm9pcrp.js → persistent-pty-4yerfa2a.js} +24 -24
  49. package/dist/chunks/{instruction-discovery-tmp7mf59.js → persistent-pty-4ygxkg3r.js} +20 -20
  50. package/dist/chunks/{instruction-discovery-88z92y6j.js → persistent-pty-51a2ymsf.js} +43 -43
  51. package/dist/chunks/{instruction-discovery-5a7yz907.js → persistent-pty-53vt59dk.js} +10 -7
  52. package/dist/chunks/{instruction-discovery-3c8gbk9s.js → persistent-pty-55wk8xf1.js} +18 -18
  53. package/dist/chunks/{instruction-discovery-2w6fc0zt.js → persistent-pty-57ez7d0k.js} +7 -7
  54. package/dist/chunks/{instruction-discovery-a1bz86dw.js → persistent-pty-5c4hm403.js} +3 -3
  55. package/dist/chunks/persistent-pty-5cyty3r2.js +478 -0
  56. package/dist/chunks/{instruction-discovery-5daktx2q.js → persistent-pty-5daktx2q.js} +1 -1
  57. package/dist/chunks/{instruction-discovery-qewbq6bc.js → persistent-pty-5dp7vyn0.js} +10 -10
  58. package/dist/chunks/{instruction-discovery-etcptmad.js → persistent-pty-5dwyakjy.js} +28 -28
  59. package/dist/chunks/{instruction-discovery-vx97awvm.js → persistent-pty-5esmf8a0.js} +31 -31
  60. package/dist/chunks/{instruction-discovery-mjqn40ac.js → persistent-pty-5kte75t4.js} +13 -13
  61. package/dist/chunks/{instruction-discovery-ttdfrrk2.js → persistent-pty-5r49kz0e.js} +27 -27
  62. package/dist/chunks/{instruction-discovery-ytfea4mt.js → persistent-pty-5smkf6vr.js} +18 -18
  63. package/dist/chunks/{instruction-discovery-5t3nmthw.js → persistent-pty-5t3nmthw.js} +2 -2
  64. package/dist/chunks/{instruction-discovery-m837a38g.js → persistent-pty-5we05nd2.js} +19 -19
  65. package/dist/chunks/{instruction-discovery-0a90bcv0.js → persistent-pty-61d6m9y9.js} +8 -8
  66. package/dist/chunks/{instruction-discovery-b1746fgd.js → persistent-pty-63mn2t91.js} +25 -25
  67. package/dist/chunks/{instruction-discovery-669tq793.js → persistent-pty-669tq793.js} +1 -1
  68. package/dist/chunks/{instruction-discovery-6msgmcgs.js → persistent-pty-6msgmcgs.js} +1 -1
  69. package/dist/chunks/{instruction-discovery-1sj4msk3.js → persistent-pty-6nppgqk8.js} +16 -16
  70. package/dist/chunks/{instruction-discovery-4jww6vkh.js → persistent-pty-6vxbcxjn.js} +17 -17
  71. package/dist/chunks/{instruction-discovery-xdbx4t5e.js → persistent-pty-6yaq8bgj.js} +14 -14
  72. package/dist/chunks/{instruction-discovery-73tb2d7t.js → persistent-pty-73tb2d7t.js} +1 -1
  73. package/dist/chunks/{instruction-discovery-df9eyrmy.js → persistent-pty-74rrnwt7.js} +12 -12
  74. package/dist/chunks/{instruction-discovery-q76b2ped.js → persistent-pty-768y9nds.js} +22 -22
  75. package/dist/chunks/{instruction-discovery-vyy6cxw9.js → persistent-pty-7ac170kv.js} +4 -4
  76. package/dist/chunks/{instruction-discovery-2jh18hkm.js → persistent-pty-7adxfadd.js} +4 -4
  77. package/dist/chunks/{instruction-discovery-7bmhse3q.js → persistent-pty-7bmhse3q.js} +1 -1
  78. package/dist/chunks/{instruction-discovery-qgn6gcr1.js → persistent-pty-7dqw4kz8.js} +5 -5
  79. package/dist/chunks/{instruction-discovery-4jq0495n.js → persistent-pty-7knfbc9g.js} +20 -20
  80. package/dist/chunks/{instruction-discovery-9hjja45j.js → persistent-pty-7m245gq7.js} +9 -9
  81. package/dist/chunks/{instruction-discovery-qcb68cv5.js → persistent-pty-81jqfy1y.js} +25 -25
  82. package/dist/chunks/{instruction-discovery-8hdgcmvp.js → persistent-pty-8558z9wf.js} +5 -5
  83. package/dist/chunks/{instruction-discovery-jcehjjw3.js → persistent-pty-8649vrz9.js} +4 -4
  84. package/dist/chunks/{instruction-discovery-k9w3fgz4.js → persistent-pty-89x64swv.js} +26 -26
  85. package/dist/chunks/{instruction-discovery-8d7r5vzw.js → persistent-pty-8d7r5vzw.js} +1 -1
  86. package/dist/chunks/{instruction-discovery-029er0hp.js → persistent-pty-8g5k0jjx.js} +6 -6
  87. package/dist/chunks/{instruction-discovery-cbgr23ns.js → persistent-pty-8szzmgce.js} +11 -11
  88. package/dist/chunks/{instruction-discovery-48pbfrvk.js → persistent-pty-8y1sr6jq.js} +9 -9
  89. package/dist/chunks/{instruction-discovery-r1p3dd79.js → persistent-pty-94pybxf5.js} +18 -18
  90. package/dist/chunks/{instruction-discovery-3nwqm4xm.js → persistent-pty-95t0hkjg.js} +5 -5
  91. package/dist/chunks/{instruction-discovery-emkjygpb.js → persistent-pty-95z2c9pc.js} +21 -21
  92. package/dist/chunks/{instruction-discovery-g9cpt5ca.js → persistent-pty-9rbga6h0.js} +29 -29
  93. package/dist/chunks/{instruction-discovery-dw8937wj.js → persistent-pty-9x1fwner.js} +14 -14
  94. package/dist/chunks/{instruction-discovery-qm0v3jhh.js → persistent-pty-a2ew8a62.js} +7 -7
  95. package/dist/chunks/{instruction-discovery-nn3w8ya3.js → persistent-pty-a4v39hfy.js} +11 -11
  96. package/dist/chunks/{instruction-discovery-j5rxtxht.js → persistent-pty-a89e0tac.js} +4 -4
  97. package/dist/chunks/{instruction-discovery-aaet6srn.js → persistent-pty-aaet6srn.js} +2 -2
  98. package/dist/chunks/{instruction-discovery-78v47nsk.js → persistent-pty-ag9w8cw1.js} +5 -5
  99. package/dist/chunks/{instruction-discovery-9v8385ms.js → persistent-pty-am60j996.js} +8 -8
  100. package/dist/chunks/{instruction-discovery-24p6mxem.js → persistent-pty-amys79f3.js} +15 -15
  101. package/dist/chunks/{instruction-discovery-hzzav9z2.js → persistent-pty-anj84gah.js} +14 -14
  102. package/dist/chunks/{instruction-discovery-1r7c63ym.js → persistent-pty-awsncmv7.js} +3 -3
  103. package/dist/chunks/{instruction-discovery-36m7pkzw.js → persistent-pty-axebf1a4.js} +8 -8
  104. package/dist/chunks/{instruction-discovery-aebc7qpb.js → persistent-pty-axg0gedx.js} +32 -32
  105. package/dist/chunks/{instruction-discovery-s2br5vfy.js → persistent-pty-axsc7vaz.js} +1 -1
  106. package/dist/chunks/{instruction-discovery-fqww2hbw.js → persistent-pty-ayxtpegw.js} +38 -34
  107. package/dist/chunks/{instruction-discovery-e4nq6v23.js → persistent-pty-azqw3jb1.js} +5 -5
  108. package/dist/chunks/{instruction-discovery-mn7hgmyj.js → persistent-pty-b1a1n7cj.js} +3 -3
  109. package/dist/chunks/{instruction-discovery-b6gygkdw.js → persistent-pty-b6gygkdw.js} +2 -2
  110. package/dist/chunks/{instruction-discovery-dwd00071.js → persistent-pty-bjyddaxd.js} +20 -20
  111. package/dist/chunks/{instruction-discovery-ydzd8ct0.js → persistent-pty-byea612g.js} +17 -17
  112. package/dist/chunks/{instruction-discovery-26zmf1pq.js → persistent-pty-ca0tf0b7.js} +25 -25
  113. package/dist/chunks/{instruction-discovery-9hn6k4tm.js → persistent-pty-cmwkp3r5.js} +8 -8
  114. package/dist/chunks/{instruction-discovery-ay615zsc.js → persistent-pty-cppz10m7.js} +21 -17
  115. package/dist/chunks/{instruction-discovery-ssbpaa97.js → persistent-pty-cpxfwkbg.js} +13 -13
  116. package/dist/chunks/{instruction-discovery-emzgf0hj.js → persistent-pty-crxeq1ff.js} +3 -3
  117. package/dist/chunks/{instruction-discovery-x9hq217q.js → persistent-pty-cs048tcd.js} +32 -32
  118. package/dist/chunks/{instruction-discovery-81czwxpn.js → persistent-pty-csf2jhsg.js} +4 -4
  119. package/dist/chunks/{instruction-discovery-djszqvmq.js → persistent-pty-cwa6csj7.js} +9 -9
  120. package/dist/chunks/{instruction-discovery-jk6a9ave.js → persistent-pty-d2z8n5gq.js} +38 -38
  121. package/dist/chunks/{instruction-discovery-5rz2hsq0.js → persistent-pty-d3yjsxey.js} +7 -7
  122. package/dist/chunks/{instruction-discovery-y55yjzpr.js → persistent-pty-d9tmdxxh.js} +57 -57
  123. package/dist/chunks/{instruction-discovery-t9zs3egg.js → persistent-pty-dfe8djrf.js} +4 -4
  124. package/dist/chunks/{instruction-discovery-y7x142mt.js → persistent-pty-dhwr7h25.js} +11 -11
  125. package/dist/chunks/{instruction-discovery-8p4f9s12.js → persistent-pty-dj2t23y0.js} +2 -2
  126. package/dist/chunks/{instruction-discovery-dpkg50ah.js → persistent-pty-dpkg50ah.js} +1 -1
  127. package/dist/chunks/{instruction-discovery-wjck36vb.js → persistent-pty-e0rr02qg.js} +11 -11
  128. package/dist/chunks/{instruction-discovery-5qd3pb7m.js → persistent-pty-e3qxr5gk.js} +2 -2
  129. package/dist/chunks/{instruction-discovery-ef5x83kb.js → persistent-pty-ef5x83kb.js} +1 -1
  130. package/dist/chunks/{instruction-discovery-ak3nc98z.js → persistent-pty-eh332ggn.js} +4 -4
  131. package/dist/chunks/{instruction-discovery-32nwpadc.js → persistent-pty-em6q0j7w.js} +11 -11
  132. package/dist/chunks/{instruction-discovery-23wpwp1k.js → persistent-pty-ene4sphv.js} +6 -6
  133. package/dist/chunks/{instruction-discovery-etq0c3wd.js → persistent-pty-etq0c3wd.js} +1 -1
  134. package/dist/chunks/{instruction-discovery-m4cf4vvt.js → persistent-pty-f2pnfy76.js} +15 -15
  135. package/dist/chunks/{instruction-discovery-0r7xxs81.js → persistent-pty-f3r3b7qx.js} +23 -23
  136. package/dist/chunks/{instruction-discovery-nscznvay.js → persistent-pty-fhs97t90.js} +9 -9
  137. package/dist/chunks/{instruction-discovery-c6nzkrcz.js → persistent-pty-fjqrscp2.js} +4 -4
  138. package/dist/chunks/{instruction-discovery-zmz7rfv6.js → persistent-pty-frk1q65v.js} +70 -56
  139. package/dist/chunks/{instruction-discovery-eq23s0y6.js → persistent-pty-fvsyg6qk.js} +5 -5
  140. package/dist/chunks/{instruction-discovery-4nj4bn9q.js → persistent-pty-fwwk8vbp.js} +9 -9
  141. package/dist/chunks/{instruction-discovery-fxbjtjnd.js → persistent-pty-fxbjtjnd.js} +1 -1
  142. package/dist/chunks/{instruction-discovery-x4hh2yva.js → persistent-pty-g2er3606.js} +32 -32
  143. package/dist/chunks/{instruction-discovery-6bp9km5f.js → persistent-pty-g3v3qf95.js} +5 -5
  144. package/dist/chunks/{instruction-discovery-b3y784v2.js → persistent-pty-gaezwqx6.js} +23 -23
  145. package/dist/chunks/{instruction-discovery-ab258zec.js → persistent-pty-gbe3t543.js} +22 -22
  146. package/dist/chunks/{instruction-discovery-v5w6sppg.js → persistent-pty-gbwj81ez.js} +32 -32
  147. package/dist/chunks/{instruction-discovery-gd4qta3r.js → persistent-pty-gd4qta3r.js} +1 -1
  148. package/dist/chunks/{instruction-discovery-9n0dsy51.js → persistent-pty-ge476xvj.js} +178 -178
  149. package/dist/chunks/{instruction-discovery-x4ytj6pq.js → persistent-pty-gek3hqmr.js} +32 -32
  150. package/dist/chunks/{instruction-discovery-q60qfh9s.js → persistent-pty-gfkdt5qx.js} +6 -6
  151. package/dist/chunks/{instruction-discovery-x12gwff2.js → persistent-pty-gjvcn921.js} +29 -29
  152. package/dist/chunks/{instruction-discovery-fw3v8b4w.js → persistent-pty-gkq5qcyg.js} +18 -18
  153. package/dist/chunks/{instruction-discovery-gv6a8nnw.js → persistent-pty-gv6a8nnw.js} +2 -2
  154. package/dist/chunks/persistent-pty-gwk30na0.js +65 -0
  155. package/dist/chunks/persistent-pty-gxrgn0ds.js +252 -0
  156. package/dist/chunks/{instruction-discovery-h03wrkyp.js → persistent-pty-h03wrkyp.js} +2 -2
  157. package/dist/chunks/{instruction-discovery-kqjw8gv6.js → persistent-pty-h39be83b.js} +33 -33
  158. package/dist/chunks/{instruction-discovery-0a3qk1rf.js → persistent-pty-h3jkmnye.js} +33 -27
  159. package/dist/chunks/{instruction-discovery-44h5tttr.js → persistent-pty-h6r3nrb9.js} +4 -4
  160. package/dist/chunks/{instruction-discovery-h6vf3j39.js → persistent-pty-h6vf3j39.js} +1 -1
  161. package/dist/chunks/{instruction-discovery-9pv03zpw.js → persistent-pty-hcf1qdgt.js} +42 -42
  162. package/dist/chunks/{instruction-discovery-eebc2rt6.js → persistent-pty-hdb7f41y.js} +23 -23
  163. package/dist/chunks/{instruction-discovery-f828m53h.js → persistent-pty-hdnk95c8.js} +2 -2
  164. package/dist/chunks/{instruction-discovery-hes1j7ga.js → persistent-pty-hes1j7ga.js} +2 -2
  165. package/dist/chunks/{instruction-discovery-tbrsbcaz.js → persistent-pty-hfwabszm.js} +19 -19
  166. package/dist/chunks/persistent-pty-hr9dp009.js +4 -0
  167. package/dist/chunks/{instruction-discovery-xxx2a5sq.js → persistent-pty-hz2whg8s.js} +8 -8
  168. package/dist/chunks/{instruction-discovery-5p6pg4tj.js → persistent-pty-hzhe0gvd.js} +20 -20
  169. package/dist/chunks/{instruction-discovery-58ka6e3j.js → persistent-pty-j10zwm3w.js} +33 -33
  170. package/dist/chunks/{instruction-discovery-qwy8h0yc.js → persistent-pty-j542mbwn.js} +10 -10
  171. package/dist/chunks/{instruction-discovery-j56e64zr.js → persistent-pty-j56e64zr.js} +1 -1
  172. package/dist/chunks/persistent-pty-j6sjxh3t.js +48 -0
  173. package/dist/chunks/{instruction-discovery-466w7y98.js → persistent-pty-jn5zp6kq.js} +10 -10
  174. package/dist/chunks/{instruction-discovery-n1xefwxf.js → persistent-pty-jp86qn4x.js} +17 -17
  175. package/dist/chunks/{instruction-discovery-k3gnzxs0.js → persistent-pty-jppvw2tx.js} +5 -5
  176. package/dist/chunks/{instruction-discovery-nzks3jc8.js → persistent-pty-k3c624dm.js} +3 -3
  177. package/dist/chunks/{instruction-discovery-em05np38.js → persistent-pty-k4vvbs8q.js} +11 -11
  178. package/dist/chunks/{instruction-discovery-9rkevmgk.js → persistent-pty-k5z6kse8.js} +32 -32
  179. package/dist/chunks/{instruction-discovery-td2t4wzh.js → persistent-pty-k859smhz.js} +45 -45
  180. package/dist/chunks/{instruction-discovery-0yy4b7d0.js → persistent-pty-kesv6def.js} +32 -32
  181. package/dist/chunks/{instruction-discovery-18steed6.js → persistent-pty-kkpc3vmh.js} +28 -24
  182. package/dist/chunks/{instruction-discovery-zav06jzw.js → persistent-pty-kne8f3cn.js} +4 -4
  183. package/dist/chunks/{instruction-discovery-tr16pgkv.js → persistent-pty-krracc70.js} +30 -30
  184. package/dist/chunks/{instruction-discovery-cfpkc3c9.js → persistent-pty-m0jqrx5p.js} +2 -2
  185. package/dist/chunks/{instruction-discovery-g479j9dz.js → persistent-pty-m2xyr0c9.js} +8 -8
  186. package/dist/chunks/{instruction-discovery-m3fdjcah.js → persistent-pty-m3fdjcah.js} +1 -1
  187. package/dist/chunks/{instruction-discovery-m9w0rfyh.js → persistent-pty-m9w0rfyh.js} +1 -1
  188. package/dist/chunks/{instruction-discovery-f2kqmm63.js → persistent-pty-masp7ejj.js} +11 -11
  189. package/dist/chunks/{instruction-discovery-33w4ejhs.js → persistent-pty-mfqp6xfm.js} +9 -9
  190. package/dist/chunks/{instruction-discovery-78hbjvp7.js → persistent-pty-mg0hvqns.js} +24 -24
  191. package/dist/chunks/{instruction-discovery-g8tp2ddb.js → persistent-pty-mhhfs06f.js} +91 -91
  192. package/dist/chunks/{instruction-discovery-tm6j2b42.js → persistent-pty-mns2zg1r.js} +51 -51
  193. package/dist/chunks/{instruction-discovery-jyfph6m6.js → persistent-pty-mpz2f9hn.js} +22 -22
  194. package/dist/chunks/{instruction-discovery-3bnvp3y0.js → persistent-pty-mvf3rv83.js} +15 -15
  195. package/dist/chunks/{instruction-discovery-56w11rj3.js → persistent-pty-mvpt2jq4.js} +4 -4
  196. package/dist/chunks/{instruction-discovery-8actpy02.js → persistent-pty-mzwaw4s1.js} +13 -13
  197. package/dist/chunks/{instruction-discovery-g35x6qc6.js → persistent-pty-nd83aj77.js} +19 -19
  198. package/dist/chunks/{instruction-discovery-n0tdmknn.js → persistent-pty-nga2x94v.js} +9 -9
  199. package/dist/chunks/{instruction-discovery-1mr1eyme.js → persistent-pty-ngp9tqdp.js} +12 -12
  200. package/dist/chunks/{instruction-discovery-rw15cjs6.js → persistent-pty-nmv4qf5f.js} +10 -7
  201. package/dist/chunks/{instruction-discovery-x83qg319.js → persistent-pty-nrby4tch.js} +3 -3
  202. package/dist/chunks/{instruction-discovery-p6hhdbp1.js → persistent-pty-p23m4hfg.js} +10 -10
  203. package/dist/chunks/{instruction-discovery-m8pwhfnp.js → persistent-pty-p2860678.js} +44 -43
  204. package/dist/chunks/{instruction-discovery-k14vmcg0.js → persistent-pty-p4dwv8bm.js} +13 -13
  205. package/dist/chunks/{instruction-discovery-h7dw0jnp.js → persistent-pty-pbjanjg3.js} +44 -44
  206. package/dist/chunks/{instruction-discovery-pjvnvgmy.js → persistent-pty-pjvnvgmy.js} +1 -1
  207. package/dist/chunks/{instruction-discovery-pknna89w.js → persistent-pty-pknna89w.js} +1 -1
  208. package/dist/chunks/{instruction-discovery-88dkmhka.js → persistent-pty-pqkcmren.js} +14 -14
  209. package/dist/chunks/{instruction-discovery-z3tdms7e.js → persistent-pty-px9mqhce.js} +35 -35
  210. package/dist/chunks/{instruction-discovery-vyxzcs45.js → persistent-pty-pxnvhszz.js} +4 -4
  211. package/dist/chunks/{instruction-discovery-gm9abxbg.js → persistent-pty-q00hqmww.js} +15 -15
  212. package/dist/chunks/{instruction-discovery-77m2hw5c.js → persistent-pty-q4v54bpb.js} +36 -36
  213. package/dist/chunks/{instruction-discovery-pyp2rmkt.js → persistent-pty-q5rhn9x0.js} +16 -16
  214. package/dist/chunks/{instruction-discovery-vcye14pz.js → persistent-pty-qcjne9p2.js} +14 -14
  215. package/dist/chunks/{instruction-discovery-dcjwzqtv.js → persistent-pty-qe3x1bke.js} +37 -37
  216. package/dist/chunks/{instruction-discovery-7j3fq2cw.js → persistent-pty-qk51h78h.js} +9 -9
  217. package/dist/chunks/{instruction-discovery-qsdy395h.js → persistent-pty-qsdy395h.js} +1 -1
  218. package/dist/chunks/{instruction-discovery-qjpk9dge.js → persistent-pty-qydamkj6.js} +9 -9
  219. package/dist/chunks/{instruction-discovery-cckk8bsw.js → persistent-pty-r0185wf8.js} +26 -26
  220. package/dist/chunks/{instruction-discovery-1z146pd3.js → persistent-pty-r8b3me2j.js} +19 -19
  221. package/dist/chunks/{instruction-discovery-yp2x3t23.js → persistent-pty-r8xr0va3.js} +4 -4
  222. package/dist/chunks/{instruction-discovery-rdw6cm16.js → persistent-pty-rdw6cm16.js} +1 -1
  223. package/dist/chunks/{instruction-discovery-444wcx0m.js → persistent-pty-ry98d82p.js} +35 -35
  224. package/dist/chunks/{instruction-discovery-yrznvahk.js → persistent-pty-s4enseaf.js} +2 -2
  225. package/dist/chunks/{instruction-discovery-gbt6w4kb.js → persistent-pty-s8d7rejh.js} +8 -8
  226. package/dist/chunks/{instruction-discovery-1az6fcmj.js → persistent-pty-sd29ckz9.js} +11 -11
  227. package/dist/chunks/{instruction-discovery-mqy0jkn2.js → persistent-pty-sej7e0cf.js} +4 -4
  228. package/dist/chunks/{instruction-discovery-64s65d1n.js → persistent-pty-sgwh5nyn.js} +8 -8
  229. package/dist/chunks/{instruction-discovery-hnpkfvtv.js → persistent-pty-sj90gq8y.js} +47 -47
  230. package/dist/chunks/{instruction-discovery-0e92bpf8.js → persistent-pty-svvemcs6.js} +8 -8
  231. package/dist/chunks/{instruction-discovery-gq5rp1wh.js → persistent-pty-sx06aacx.js} +3 -3
  232. package/dist/chunks/{instruction-discovery-aq5y8b9e.js → persistent-pty-t1dawjzh.js} +8 -8
  233. package/dist/chunks/{instruction-discovery-e17z8zpc.js → persistent-pty-t3qbpr1w.js} +7 -7
  234. package/dist/chunks/{instruction-discovery-fbaqdnvp.js → persistent-pty-t6xg0e00.js} +17 -17
  235. package/dist/chunks/{instruction-discovery-9kyabea7.js → persistent-pty-tamw7e85.js} +14 -14
  236. package/dist/chunks/{instruction-discovery-tazgh4e4.js → persistent-pty-tazgh4e4.js} +1 -1
  237. package/dist/chunks/{instruction-discovery-cpaj0n15.js → persistent-pty-tbpqatpq.js} +9 -9
  238. package/dist/chunks/{instruction-discovery-tcezcvh9.js → persistent-pty-tcezcvh9.js} +1 -1
  239. package/dist/chunks/{instruction-discovery-tdstcens.js → persistent-pty-tdstcens.js} +1 -1
  240. package/dist/chunks/{instruction-discovery-rzs3gq0x.js → persistent-pty-tk9ew89t.js} +8 -8
  241. package/dist/chunks/{instruction-discovery-mbrtjw0c.js → persistent-pty-tqf3jwg0.js} +6 -6
  242. package/dist/chunks/{instruction-discovery-19w9qk9n.js → persistent-pty-ts2x07a1.js} +1 -1
  243. package/dist/chunks/{instruction-discovery-tvtrv512.js → persistent-pty-tvtrv512.js} +1 -1
  244. package/dist/chunks/{instruction-discovery-x33k6nf3.js → persistent-pty-txckpkgb.js} +24 -24
  245. package/dist/chunks/persistent-pty-v1faaxn9.js +18 -0
  246. package/dist/chunks/{instruction-discovery-h9vg4cc6.js → persistent-pty-v85t9p8e.js} +27 -27
  247. package/dist/chunks/{instruction-discovery-zhv99wwk.js → persistent-pty-vcntgk60.js} +14 -14
  248. package/dist/chunks/{instruction-discovery-veqvce7d.js → persistent-pty-veqvce7d.js} +1 -1
  249. package/dist/chunks/persistent-pty-vkwmxz0p.js +26 -0
  250. package/dist/chunks/{instruction-discovery-zdpte8cy.js → persistent-pty-vnzr5dgv.js} +13 -13
  251. package/dist/chunks/{instruction-discovery-a8bn8zg0.js → persistent-pty-vsp1fds9.js} +21 -21
  252. package/dist/chunks/{instruction-discovery-vzcthcp8.js → persistent-pty-vzcthcp8.js} +1 -1
  253. package/dist/chunks/{instruction-discovery-hq8zt1th.js → persistent-pty-w21bzq9q.js} +6 -6
  254. package/dist/chunks/{instruction-discovery-w3wsvvr9.js → persistent-pty-w3wsvvr9.js} +1 -1
  255. package/dist/chunks/{instruction-discovery-n9bg66xr.js → persistent-pty-w47dka18.js} +35 -35
  256. package/dist/chunks/{instruction-discovery-wd87259q.js → persistent-pty-wd87259q.js} +1 -1
  257. package/dist/chunks/{instruction-discovery-yhj6r7vt.js → persistent-pty-wn0nt2j8.js} +24 -24
  258. package/dist/chunks/{instruction-discovery-hj4jgbr8.js → persistent-pty-wp9pt51y.js} +9 -9
  259. package/dist/chunks/{instruction-discovery-wmttgrd3.js → persistent-pty-wsmhkxds.js} +10 -10
  260. package/dist/chunks/{instruction-discovery-92f49rtq.js → persistent-pty-wx6gfcwp.js} +23 -23
  261. package/dist/chunks/{instruction-discovery-x1ezjp6w.js → persistent-pty-x1ezjp6w.js} +1 -1
  262. package/dist/chunks/{instruction-discovery-q581keqr.js → persistent-pty-x3h8tes1.js} +2 -2
  263. package/dist/chunks/{instruction-discovery-drwq78ky.js → persistent-pty-xfkkasph.js} +4 -4
  264. package/dist/chunks/{instruction-discovery-207ajt2h.js → persistent-pty-xh49vxj8.js} +5 -5
  265. package/dist/chunks/{instruction-discovery-y35sf2j4.js → persistent-pty-xvrfmkdb.js} +4 -4
  266. package/dist/chunks/{instruction-discovery-45zz8fdq.js → persistent-pty-xyxzmjjm.js} +5 -5
  267. package/dist/chunks/{instruction-discovery-rwk055kb.js → persistent-pty-xz3t98gq.js} +3 -3
  268. package/dist/chunks/{instruction-discovery-dwvzh0g2.js → persistent-pty-y10wk092.js} +7 -7
  269. package/dist/chunks/{instruction-discovery-y1fvbwt7.js → persistent-pty-y1fvbwt7.js} +1 -1
  270. package/dist/chunks/{instruction-discovery-cvnk88jx.js → persistent-pty-y99sa8tk.js} +24 -24
  271. package/dist/chunks/{instruction-discovery-yrhqyw5v.js → persistent-pty-yrhqyw5v.js} +1 -1
  272. package/dist/chunks/{instruction-discovery-3zj26zxs.js → persistent-pty-yyz8jpkn.js} +18 -17
  273. package/dist/chunks/{instruction-discovery-q2bxhs6b.js → persistent-pty-yz26c8tn.js} +55 -53
  274. package/dist/chunks/{instruction-discovery-9g3d7f2z.js → persistent-pty-yzdcysfh.js} +26 -26
  275. package/dist/chunks/{instruction-discovery-z0bkrqjs.js → persistent-pty-z0bkrqjs.js} +1 -1
  276. package/dist/chunks/{instruction-discovery-ts9rs282.js → persistent-pty-z1zwcfv4.js} +20 -20
  277. package/dist/chunks/{instruction-discovery-33msecec.js → persistent-pty-z5dnp9d4.js} +30 -30
  278. package/dist/chunks/{instruction-discovery-y3w6sw4s.js → persistent-pty-z84pa76x.js} +5 -5
  279. package/dist/chunks/{instruction-discovery-a87mck0n.js → persistent-pty-z880hw7s.js} +28 -28
  280. package/dist/chunks/{instruction-discovery-ampvn4qt.js → persistent-pty-zbxvfzam.js} +3 -3
  281. package/dist/chunks/{instruction-discovery-jg7s3n8r.js → persistent-pty-zdd5h57h.js} +23 -23
  282. package/dist/chunks/{instruction-discovery-7kvy0jtg.js → persistent-pty-ze07024f.js} +16 -16
  283. package/dist/chunks/{instruction-discovery-zeh9ct20.js → persistent-pty-zeh9ct20.js} +2 -2
  284. package/dist/chunks/{instruction-discovery-gqt4q109.js → persistent-pty-zjqwybhk.js} +24 -24
  285. package/dist/chunks/{instruction-discovery-f7n6j563.js → persistent-pty-zmtxzyyy.js} +17 -17
  286. package/dist/chunks/{instruction-discovery-zr2ceqn5.js → persistent-pty-zr2ceqn5.js} +1 -1
  287. package/dist/chunks/{instruction-discovery-4kvj1wzz.js → persistent-pty-zvh69c5a.js} +12 -12
  288. package/dist/chunks/{instruction-discovery-zxq2ej10.js → persistent-pty-zxq2ej10.js} +1 -1
  289. package/dist/codemode/catalog.js +1 -1
  290. package/dist/codemode/instructions.js +9 -9
  291. package/dist/codemode/tool.js +3 -3
  292. package/dist/codemode/web.js +1 -1
  293. package/dist/command.js +82 -82
  294. package/dist/config/discovery.js +81 -81
  295. package/dist/config/markdown.js +1 -1
  296. package/dist/config/normalize.js +105 -105
  297. package/dist/config/plugin/agent.js +124 -124
  298. package/dist/config/plugin/command.js +213 -213
  299. package/dist/config/plugin/compaction.js +159 -159
  300. package/dist/config/plugin/compatibility.js +140 -140
  301. package/dist/config/plugin/entry-observer.js +1 -1
  302. package/dist/config/plugin/formatter.js +123 -123
  303. package/dist/config/plugin/image.js +122 -122
  304. package/dist/config/plugin/instruction.js +89 -89
  305. package/dist/config/plugin/location-watcher.js +124 -124
  306. package/dist/config/plugin/mcp.js +131 -131
  307. package/dist/config/plugin/policy.js +122 -122
  308. package/dist/config/plugin/provider.js +122 -122
  309. package/dist/config/plugin/reference.js +124 -124
  310. package/dist/config/plugin/shell.js +124 -124
  311. package/dist/config/plugin/skill-file.js +101 -101
  312. package/dist/config/plugin/skill.js +143 -143
  313. package/dist/config/plugin/snapshot.js +122 -122
  314. package/dist/config/plugin/source.js +125 -125
  315. package/dist/config/plugin/tool-output.js +124 -124
  316. package/dist/config/plugin/websearch.js +123 -123
  317. package/dist/config/plugin/worktree.js +124 -124
  318. package/dist/config/variable.js +3 -3
  319. package/dist/config/watch.js +1 -1
  320. package/dist/config.js +127 -127
  321. package/dist/credential/sql.js +2 -2
  322. package/dist/credential.js +84 -84
  323. package/dist/database/database.js +69 -69
  324. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  325. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  326. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  327. package/dist/database/drizzle/index.js +13 -13
  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 +14 -14
  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.gen.js +48 -48
  388. package/dist/database/migration.js +50 -50
  389. package/dist/database/path.js +2 -2
  390. package/dist/database/schema.gen.js +1 -1
  391. package/dist/database/schema.sql.js +1 -1
  392. package/dist/database/sqlite.bun.js +1 -1
  393. package/dist/database/sqlite.js +1 -1
  394. package/dist/database/sqlite.node.js +1 -1
  395. package/dist/database/sqlite.workerd.js +1 -1
  396. package/dist/database/v1-migration.bun.js +78 -78
  397. package/dist/database/v1-migration.js +1 -1
  398. package/dist/effect/app-node-builder.js +366 -365
  399. package/dist/effect/app-node-platform.js +2 -2
  400. package/dist/effect/keyed-mutex.js +1 -1
  401. package/dist/effect/websocket-constructor.js +1 -1
  402. package/dist/environment/driver.js +1 -1
  403. package/dist/environment/environment.js +92 -92
  404. package/dist/environment/exec-defaults.js +2 -2
  405. package/dist/environment/files.js +1 -1
  406. package/dist/environment/index.js +94 -94
  407. package/dist/environment/local.js +2 -2
  408. package/dist/environment/memory.js +2 -2
  409. package/dist/environment/unavailable.js +1 -1
  410. package/dist/event/sql.js +1 -1
  411. package/dist/event-logger.js +73 -73
  412. package/dist/file-access.js +103 -103
  413. package/dist/file-mutation.js +93 -93
  414. package/dist/file-retention.js +1 -1
  415. package/dist/file.js +1 -1
  416. package/dist/filesystem/fff.bun.js +2 -2
  417. package/dist/filesystem/fff.js +1 -1
  418. package/dist/filesystem/fff.node.js +2 -2
  419. package/dist/filesystem/fff.workerd.js +2 -2
  420. package/dist/filesystem/ignore.js +1 -1
  421. package/dist/filesystem/location-watcher-policy.js +6 -6
  422. package/dist/filesystem/location-watcher.js +226 -226
  423. package/dist/filesystem/protected.js +1 -1
  424. package/dist/filesystem/search.js +102 -102
  425. package/dist/filesystem/watcher-binding.js +3 -3
  426. package/dist/filesystem/watcher.js +15 -15
  427. package/dist/filesystem.js +109 -105
  428. package/dist/form.js +81 -81
  429. package/dist/formatter/builtins.js +2 -2
  430. package/dist/formatter.js +88 -88
  431. package/dist/generate.js +100 -100
  432. package/dist/git.js +10 -10
  433. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  434. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  435. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  436. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  437. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  438. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  439. package/dist/github-copilot/copilot-provider.js +17 -17
  440. package/dist/github-copilot/models.js +98 -98
  441. package/dist/github-copilot/openai-compatible-error.js +1 -1
  442. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  443. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  444. package/dist/github-copilot/responses/openai-error.js +1 -1
  445. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  446. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  447. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  448. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  449. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  450. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  451. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  452. package/dist/id/id.js +1 -1
  453. package/dist/image/photon.js +2 -2
  454. package/dist/image.js +2 -2
  455. package/dist/instance/service.js +5 -5
  456. package/dist/instance.js +357 -356
  457. package/dist/instruction-discovery.js +84 -84
  458. package/dist/instructions/builtins.js +86 -86
  459. package/dist/instructions/index.js +5 -5
  460. package/dist/integration/connection.js +3 -3
  461. package/dist/integration.js +85 -85
  462. package/dist/job.js +78 -78
  463. package/dist/kv/sql.js +2 -2
  464. package/dist/kv.js +72 -72
  465. package/dist/location-activity.js +134 -134
  466. package/dist/location-lifecycle.js +110 -0
  467. package/dist/location-mutation.js +103 -103
  468. package/dist/location-service-map.js +87 -85
  469. package/dist/location-services.js +354 -353
  470. package/dist/location.js +84 -84
  471. package/dist/mcp/client.js +90 -90
  472. package/dist/mcp/index.js +107 -107
  473. package/dist/mcp/instructions.js +127 -127
  474. package/dist/mcp/oauth.js +77 -77
  475. package/dist/mcp/stdio.js +89 -89
  476. package/dist/mime.js +1 -1
  477. package/dist/modal/models.js +98 -98
  478. package/dist/model-resolver.js +97 -97
  479. package/dist/model.js +101 -101
  480. package/dist/models-dev.js +102 -102
  481. package/dist/oauth/page.js +1 -1
  482. package/dist/permission/saved.js +81 -81
  483. package/dist/permission/sql.js +5 -5
  484. package/dist/permission.js +110 -110
  485. package/dist/persistent-pty/binary.bun.js +1 -1
  486. package/dist/persistent-pty/daemon.js +1 -1
  487. package/dist/persistent-pty/index.js +85 -85
  488. package/dist/persistent-pty/pty-binding.js +1 -1
  489. package/dist/persistent-pty.js +74 -74
  490. package/dist/plugin/agent.js +103 -103
  491. package/dist/plugin/command.js +100 -100
  492. package/dist/plugin/hooks.js +5 -5
  493. package/dist/plugin/host.js +217 -217
  494. package/dist/plugin/identity.js +3 -3
  495. package/dist/plugin/instance.js +5 -5
  496. package/dist/plugin/internal.js +328 -328
  497. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  498. package/dist/plugin/models-dev.js +95 -95
  499. package/dist/plugin/module.js +7 -7
  500. package/dist/plugin/optimize.js +2 -2
  501. package/dist/plugin/plan.js +101 -101
  502. package/dist/plugin/promise.js +1 -1
  503. package/dist/plugin/provider/amazon-bedrock.js +89 -89
  504. package/dist/plugin/provider/azure.js +121 -121
  505. package/dist/plugin/provider/cerebras.js +1 -1
  506. package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
  507. package/dist/plugin/provider/cloudflare-workers-ai.js +120 -120
  508. package/dist/plugin/provider/cohere.js +2 -2
  509. package/dist/plugin/provider/configured.js +118 -118
  510. package/dist/plugin/provider/digitalocean.js +92 -92
  511. package/dist/plugin/provider/dynamic.js +2 -2
  512. package/dist/plugin/provider/factory.js +1 -1
  513. package/dist/plugin/provider/gateway.js +2 -2
  514. package/dist/plugin/provider/github-copilot.js +92 -92
  515. package/dist/plugin/provider/gitlab.js +90 -90
  516. package/dist/plugin/provider/google-vertex.js +89 -89
  517. package/dist/plugin/provider/kilo.js +1 -1
  518. package/dist/plugin/provider/llmgateway.js +76 -76
  519. package/dist/plugin/provider/lmstudio.js +121 -121
  520. package/dist/plugin/provider/modal.js +91 -91
  521. package/dist/plugin/provider/nvidia.js +1 -1
  522. package/dist/plugin/provider/ollama.js +121 -121
  523. package/dist/plugin/provider/openai.js +91 -91
  524. package/dist/plugin/provider/opencode.js +92 -92
  525. package/dist/plugin/provider/openrouter.js +90 -90
  526. package/dist/plugin/provider/perplexity.js +2 -2
  527. package/dist/plugin/provider/poe.js +77 -77
  528. package/dist/plugin/provider/prompt-cache-key.js +89 -89
  529. package/dist/plugin/provider/sap-ai-core.js +90 -90
  530. package/dist/plugin/provider/sdk-factory.js +1 -1
  531. package/dist/plugin/provider/snowflake-cortex.js +121 -121
  532. package/dist/plugin/provider/venice.js +2 -2
  533. package/dist/plugin/provider/vercel.js +89 -89
  534. package/dist/plugin/provider/vllm.js +121 -121
  535. package/dist/plugin/provider/xai.js +90 -90
  536. package/dist/plugin/provider/zenmux.js +1 -1
  537. package/dist/plugin/provider.js +158 -158
  538. package/dist/plugin/sdk.js +73 -73
  539. package/dist/plugin/service.js +3 -3
  540. package/dist/plugin/skill.js +138 -138
  541. package/dist/plugin/source-directory.js +1 -1
  542. package/dist/plugin/supervisor.js +347 -347
  543. package/dist/plugin/update.js +6 -6
  544. package/dist/plugin/vcs/git.js +85 -85
  545. package/dist/plugin/vcs/hg.js +85 -85
  546. package/dist/plugin/warming.js +120 -120
  547. package/dist/plugin/websearch/exa.js +7 -7
  548. package/dist/plugin/websearch/firecrawl.js +8 -8
  549. package/dist/plugin/websearch/index.js +9 -9
  550. package/dist/plugin/websearch/mcp.js +6 -6
  551. package/dist/plugin/websearch/parallel.js +8 -8
  552. package/dist/plugin/websearch/tavily.js +6 -6
  553. package/dist/plugin/websearch/tinyfish.js +8 -8
  554. package/dist/plugin.js +224 -224
  555. package/dist/project/schema.js +6 -6
  556. package/dist/project/sql.js +4 -4
  557. package/dist/project.js +85 -85
  558. package/dist/provider.js +98 -98
  559. package/dist/pty/protocol.js +1 -1
  560. package/dist/pty/schema.js +3 -3
  561. package/dist/pty/ticket.js +1 -1
  562. package/dist/pty.js +97 -97
  563. package/dist/reference/instructions.js +88 -88
  564. package/dist/reference.js +90 -90
  565. package/dist/repository-cache.js +80 -80
  566. package/dist/repository.js +3 -3
  567. package/dist/ripgrep/binary.js +2 -2
  568. package/dist/ripgrep.js +94 -94
  569. package/dist/rpc.js +85 -85
  570. package/dist/schema.js +1 -1
  571. package/dist/session/command.js +73 -73
  572. package/dist/session/compaction.js +133 -133
  573. package/dist/session/context.js +151 -151
  574. package/dist/session/diff.js +87 -87
  575. package/dist/session/environment.js +5 -5
  576. package/dist/session/error.js +5 -5
  577. package/dist/session/event.js +1 -1
  578. package/dist/session/execution/restart.js +226 -226
  579. package/dist/session/execution.js +125 -125
  580. package/dist/session/generate.js +150 -150
  581. package/dist/session/history.js +15 -15
  582. package/dist/session/inbox.js +85 -85
  583. package/dist/session/info.js +3 -3
  584. package/dist/session/instruction-entry.js +78 -78
  585. package/dist/session/instruction-state.js +8 -8
  586. package/dist/session/instructions.js +96 -96
  587. package/dist/session/message-updater.js +4 -4
  588. package/dist/session/message.js +1 -1
  589. package/dist/session/model-request.js +118 -118
  590. package/dist/session/model-transport.js +9 -9
  591. package/dist/session/move.js +129 -129
  592. package/dist/session/projector.js +85 -85
  593. package/dist/session/prompt.js +104 -104
  594. package/dist/session/provider-context.js +3 -3
  595. package/dist/session/revert.js +89 -89
  596. package/dist/session/run-coordinator.js +3 -3
  597. package/dist/session/runner/index.js +3 -3
  598. package/dist/session/runner/llm.js +230 -229
  599. package/dist/session/runner/max-steps.js +1 -1
  600. package/dist/session/runner/model.js +97 -97
  601. package/dist/session/runner/publish-llm-event.js +3 -3
  602. package/dist/session/runner/retry.js +113 -113
  603. package/dist/session/runner/step.js +125 -125
  604. package/dist/session/runner/to-llm-message.js +2 -2
  605. package/dist/session/schema.js +5 -5
  606. package/dist/session/session.js +169 -169
  607. package/dist/session/shell.js +137 -137
  608. package/dist/session/skill.js +102 -102
  609. package/dist/session/sql.js +5 -5
  610. package/dist/session/stats.js +74 -74
  611. package/dist/session/store.js +86 -86
  612. package/dist/session/subagent-completion.js +1 -1
  613. package/dist/session/subagent-job.js +207 -207
  614. package/dist/session/system-prompt.js +3 -3
  615. package/dist/session/title.js +155 -155
  616. package/dist/session/to-session-error.js +110 -110
  617. package/dist/session/transfer.js +221 -221
  618. package/dist/session/usage.js +1 -1
  619. package/dist/session.js +215 -215
  620. package/dist/shell/parse.js +6 -6
  621. package/dist/shell/result.js +1 -1
  622. package/dist/shell/scan.js +1 -1
  623. package/dist/shell/select.js +13 -13
  624. package/dist/shell.js +139 -139
  625. package/dist/skill/discovery.js +6 -6
  626. package/dist/skill/instructions.js +106 -106
  627. package/dist/skill.js +111 -111
  628. package/dist/snapshot.js +88 -88
  629. package/dist/state.js +1 -1
  630. package/dist/tool/html-markdown.js +1 -1
  631. package/dist/tool/http-body.js +1 -1
  632. package/dist/tool/mcp.js +120 -120
  633. package/dist/tool/plugin/edit.js +113 -113
  634. package/dist/tool/plugin/file-diff.js +1 -1
  635. package/dist/tool/plugin/glob.js +121 -121
  636. package/dist/tool/plugin/grep.js +121 -121
  637. package/dist/tool/plugin/opencode.js +3 -3
  638. package/dist/tool/plugin/patch.js +121 -121
  639. package/dist/tool/plugin/question.js +102 -102
  640. package/dist/tool/plugin/read.js +124 -124
  641. package/dist/tool/plugin/shell.js +216 -216
  642. package/dist/tool/plugin/skill.js +112 -112
  643. package/dist/tool/plugin/subagent.js +218 -218
  644. package/dist/tool/plugin/webfetch.js +111 -111
  645. package/dist/tool/plugin/websearch.js +113 -113
  646. package/dist/tool/plugin/write.js +119 -119
  647. package/dist/tool/read-filesystem.js +99 -99
  648. package/dist/tool/runtime.js +1 -1
  649. package/dist/tool-output.js +8 -8
  650. package/dist/tool.js +10 -10
  651. package/dist/types/filesystem.d.ts +10 -2
  652. package/dist/types/form.d.ts +1 -0
  653. package/dist/types/instance.d.ts +2 -1
  654. package/dist/types/location-lifecycle.d.ts +9 -0
  655. package/dist/types/location-service-map.d.ts +2 -1
  656. package/dist/types/permission.d.ts +1 -0
  657. package/dist/types/plugin/host.d.ts +2 -2
  658. package/dist/types/session/model-transport.d.ts +10 -1
  659. package/dist/types/session/runner/index.d.ts +36 -3
  660. package/dist/types/session/runner/step.d.ts +1 -0
  661. package/dist/util/error-summary.js +1 -1
  662. package/dist/util/error.js +1 -1
  663. package/dist/util/git-executable.js +2 -2
  664. package/dist/util/iife.js +1 -1
  665. package/dist/util/lazy.js +1 -1
  666. package/dist/util/slug.js +1 -1
  667. package/dist/util/token.js +1 -1
  668. package/dist/util/which.js +1 -1
  669. package/dist/util/wildcard.js +1 -1
  670. package/dist/v1/config/agent.js +7 -7
  671. package/dist/v1/config/attachment.js +4 -4
  672. package/dist/v1/config/command.js +5 -5
  673. package/dist/v1/config/config.js +16 -16
  674. package/dist/v1/config/error.js +4 -4
  675. package/dist/v1/config/formatter.js +5 -5
  676. package/dist/v1/config/layout.js +1 -1
  677. package/dist/v1/config/lsp.js +3 -3
  678. package/dist/v1/config/mcp.js +4 -4
  679. package/dist/v1/config/migrate.js +91 -91
  680. package/dist/v1/config/permission.js +7 -7
  681. package/dist/v1/config/plugin.js +3 -3
  682. package/dist/v1/config/provider-options.js +1 -1
  683. package/dist/v1/config/provider.js +4 -4
  684. package/dist/v1/config/server.js +2 -2
  685. package/dist/v1/config/skills.js +3 -3
  686. package/dist/v1/permission.js +1 -1
  687. package/dist/variant.js +90 -90
  688. package/dist/vcs/patch.js +1 -1
  689. package/dist/vcs.js +88 -88
  690. package/dist/websearch.js +81 -81
  691. package/dist/wellknown/plugin.js +75 -75
  692. package/dist/wellknown.js +80 -80
  693. package/dist/workspace/driver.js +5 -5
  694. package/dist/workspace/sql.js +1 -1
  695. package/dist/workspace.js +79 -79
  696. package/dist/worktree/directory.js +2 -2
  697. package/dist/worktree/git.js +10 -10
  698. package/dist/worktree/sql.js +5 -5
  699. package/dist/worktree/strategies.js +88 -88
  700. package/dist/worktree.js +97 -97
  701. package/package.json +8 -8
  702. package/dist/chunks/instruction-discovery-3vhfgt92.js +0 -34
  703. package/dist/chunks/instruction-discovery-4v7qdvcn.js +0 -18
  704. package/dist/chunks/instruction-discovery-6cqkcgv0.js +0 -478
  705. package/dist/chunks/instruction-discovery-7aagt1ep.js +0 -247
  706. package/dist/chunks/instruction-discovery-mqvgb463.js +0 -26
  707. package/dist/chunks/instruction-discovery-wd3es6t1.js +0 -4
  708. /package/dist/chunks/{instruction-discovery-0qkdqm5v.js → persistent-pty-0qkdqm5v.js} +0 -0
  709. /package/dist/chunks/{instruction-discovery-0zkw76rk.js → persistent-pty-0zkw76rk.js} +0 -0
  710. /package/dist/chunks/{instruction-discovery-17cy0kzp.js → persistent-pty-17cy0kzp.js} +0 -0
  711. /package/dist/chunks/{instruction-discovery-1cnp2v09.js → persistent-pty-1cnp2v09.js} +0 -0
  712. /package/dist/chunks/{instruction-discovery-1kg9ymc8.js → persistent-pty-1kg9ymc8.js} +0 -0
  713. /package/dist/chunks/{instruction-discovery-24dcb14g.js → persistent-pty-24dcb14g.js} +0 -0
  714. /package/dist/chunks/{instruction-discovery-2710q6r3.js → persistent-pty-2710q6r3.js} +0 -0
  715. /package/dist/chunks/{instruction-discovery-2axfhc9x.js → persistent-pty-2axfhc9x.js} +0 -0
  716. /package/dist/chunks/{instruction-discovery-2c3vjs8z.js → persistent-pty-2c3vjs8z.js} +0 -0
  717. /package/dist/chunks/{instruction-discovery-359p4xyc.js → persistent-pty-359p4xyc.js} +0 -0
  718. /package/dist/chunks/{instruction-discovery-3asan66x.js → persistent-pty-3asan66x.js} +0 -0
  719. /package/dist/chunks/{instruction-discovery-3v8g72cx.js → persistent-pty-3v8g72cx.js} +0 -0
  720. /package/dist/chunks/{instruction-discovery-3w5fmr99.js → persistent-pty-3w5fmr99.js} +0 -0
  721. /package/dist/chunks/{instruction-discovery-3wcehsnq.js → persistent-pty-3wcehsnq.js} +0 -0
  722. /package/dist/chunks/{instruction-discovery-43n2bw4t.js → persistent-pty-43n2bw4t.js} +0 -0
  723. /package/dist/chunks/{instruction-discovery-4knz6hnm.js → persistent-pty-4knz6hnm.js} +0 -0
  724. /package/dist/chunks/{instruction-discovery-4vcrnpx2.js → persistent-pty-4vcrnpx2.js} +0 -0
  725. /package/dist/chunks/{instruction-discovery-4y7fprxs.js → persistent-pty-4y7fprxs.js} +0 -0
  726. /package/dist/chunks/{instruction-discovery-53557ph1.js → persistent-pty-53557ph1.js} +0 -0
  727. /package/dist/chunks/{instruction-discovery-550bvhaj.js → persistent-pty-550bvhaj.js} +0 -0
  728. /package/dist/chunks/{instruction-discovery-6prwharc.js → persistent-pty-6prwharc.js} +0 -0
  729. /package/dist/chunks/{instruction-discovery-7akdwqpd.js → persistent-pty-7akdwqpd.js} +0 -0
  730. /package/dist/chunks/{instruction-discovery-7m9af43g.js → persistent-pty-7m9af43g.js} +0 -0
  731. /package/dist/chunks/{instruction-discovery-822emrt2.js → persistent-pty-822emrt2.js} +0 -0
  732. /package/dist/chunks/{instruction-discovery-88xbtdfr.js → persistent-pty-88xbtdfr.js} +0 -0
  733. /package/dist/chunks/{instruction-discovery-8n3pysct.js → persistent-pty-8n3pysct.js} +0 -0
  734. /package/dist/chunks/{instruction-discovery-922hggd3.js → persistent-pty-922hggd3.js} +0 -0
  735. /package/dist/chunks/{instruction-discovery-9a4afbnw.js → persistent-pty-9a4afbnw.js} +0 -0
  736. /package/dist/chunks/{instruction-discovery-9rqn6x4v.js → persistent-pty-9rqn6x4v.js} +0 -0
  737. /package/dist/chunks/{instruction-discovery-a6k6eb26.js → persistent-pty-a6k6eb26.js} +0 -0
  738. /package/dist/chunks/{instruction-discovery-af5trqkr.js → persistent-pty-af5trqkr.js} +0 -0
  739. /package/dist/chunks/{instruction-discovery-afrmfg78.js → persistent-pty-afrmfg78.js} +0 -0
  740. /package/dist/chunks/{instruction-discovery-aqzs7mqg.js → persistent-pty-aqzs7mqg.js} +0 -0
  741. /package/dist/chunks/{instruction-discovery-atq7p7m5.js → persistent-pty-atq7p7m5.js} +0 -0
  742. /package/dist/chunks/{instruction-discovery-bkyjaxrp.js → persistent-pty-bkyjaxrp.js} +0 -0
  743. /package/dist/chunks/{instruction-discovery-bmr6ed5q.js → persistent-pty-bmr6ed5q.js} +0 -0
  744. /package/dist/chunks/{instruction-discovery-cf4snx6d.js → persistent-pty-cf4snx6d.js} +0 -0
  745. /package/dist/chunks/{instruction-discovery-cvy3z8tj.js → persistent-pty-cvy3z8tj.js} +0 -0
  746. /package/dist/chunks/{instruction-discovery-d9fn303g.js → persistent-pty-d9fn303g.js} +0 -0
  747. /package/dist/chunks/{instruction-discovery-d9jj8t3e.js → persistent-pty-d9jj8t3e.js} +0 -0
  748. /package/dist/chunks/{instruction-discovery-dajrwvna.js → persistent-pty-dajrwvna.js} +0 -0
  749. /package/dist/chunks/{instruction-discovery-dap0rakb.js → persistent-pty-dap0rakb.js} +0 -0
  750. /package/dist/chunks/{instruction-discovery-df08tz66.js → persistent-pty-df08tz66.js} +0 -0
  751. /package/dist/chunks/{instruction-discovery-dy18nga0.js → persistent-pty-dy18nga0.js} +0 -0
  752. /package/dist/chunks/{instruction-discovery-e5kj55wp.js → persistent-pty-e5kj55wp.js} +0 -0
  753. /package/dist/chunks/{instruction-discovery-e73j6tqm.js → persistent-pty-e73j6tqm.js} +0 -0
  754. /package/dist/chunks/{instruction-discovery-ec1grn59.js → persistent-pty-ec1grn59.js} +0 -0
  755. /package/dist/chunks/{instruction-discovery-eh3zwz77.js → persistent-pty-eh3zwz77.js} +0 -0
  756. /package/dist/chunks/{instruction-discovery-emrn6kk6.js → persistent-pty-emrn6kk6.js} +0 -0
  757. /package/dist/chunks/{instruction-discovery-f0mxakyp.js → persistent-pty-f0mxakyp.js} +0 -0
  758. /package/dist/chunks/{instruction-discovery-f6n9ztr4.js → persistent-pty-f6n9ztr4.js} +0 -0
  759. /package/dist/chunks/{instruction-discovery-faypxj3z.js → persistent-pty-faypxj3z.js} +0 -0
  760. /package/dist/chunks/{instruction-discovery-fd410y7t.js → persistent-pty-fd410y7t.js} +0 -0
  761. /package/dist/chunks/{instruction-discovery-fxgpk5d8.js → persistent-pty-fxgpk5d8.js} +0 -0
  762. /package/dist/chunks/{instruction-discovery-g4wezp1m.js → persistent-pty-g4wezp1m.js} +0 -0
  763. /package/dist/chunks/{instruction-discovery-g86h250q.js → persistent-pty-g86h250q.js} +0 -0
  764. /package/dist/chunks/{instruction-discovery-gebd4c9n.js → persistent-pty-gebd4c9n.js} +0 -0
  765. /package/dist/chunks/{instruction-discovery-gftt206x.js → persistent-pty-gftt206x.js} +0 -0
  766. /package/dist/chunks/{instruction-discovery-hjbc5kem.js → persistent-pty-hjbc5kem.js} +0 -0
  767. /package/dist/chunks/{instruction-discovery-hk9envan.js → persistent-pty-hk9envan.js} +0 -0
  768. /package/dist/chunks/{instruction-discovery-j2ntwpah.js → persistent-pty-j2ntwpah.js} +0 -0
  769. /package/dist/chunks/{instruction-discovery-j5zkgpj8.js → persistent-pty-j5zkgpj8.js} +0 -0
  770. /package/dist/chunks/{instruction-discovery-jjkms2e6.js → persistent-pty-jjkms2e6.js} +0 -0
  771. /package/dist/chunks/{instruction-discovery-jr7sbwjy.js → persistent-pty-jr7sbwjy.js} +0 -0
  772. /package/dist/chunks/{instruction-discovery-jwfs4k6c.js → persistent-pty-jwfs4k6c.js} +0 -0
  773. /package/dist/chunks/{instruction-discovery-jzg6c2d5.js → persistent-pty-jzg6c2d5.js} +0 -0
  774. /package/dist/chunks/{instruction-discovery-mp448xyj.js → persistent-pty-mp448xyj.js} +0 -0
  775. /package/dist/chunks/{instruction-discovery-msx8hqn2.js → persistent-pty-msx8hqn2.js} +0 -0
  776. /package/dist/chunks/{instruction-discovery-n05xt0ee.js → persistent-pty-n05xt0ee.js} +0 -0
  777. /package/dist/chunks/{instruction-discovery-n3j8tn72.js → persistent-pty-n3j8tn72.js} +0 -0
  778. /package/dist/chunks/{instruction-discovery-njntx4h6.js → persistent-pty-njntx4h6.js} +0 -0
  779. /package/dist/chunks/{instruction-discovery-q3sfg36h.js → persistent-pty-q3sfg36h.js} +0 -0
  780. /package/dist/chunks/{instruction-discovery-q74kybfr.js → persistent-pty-q74kybfr.js} +0 -0
  781. /package/dist/chunks/{instruction-discovery-qaymkmh1.js → persistent-pty-qaymkmh1.js} +0 -0
  782. /package/dist/chunks/{instruction-discovery-qb87gjwd.js → persistent-pty-qb87gjwd.js} +0 -0
  783. /package/dist/chunks/{instruction-discovery-qfa1cgps.js → persistent-pty-qfa1cgps.js} +0 -0
  784. /package/dist/chunks/{instruction-discovery-qg3g05ea.js → persistent-pty-qg3g05ea.js} +0 -0
  785. /package/dist/chunks/{instruction-discovery-qrg20bc0.js → persistent-pty-qrg20bc0.js} +0 -0
  786. /package/dist/chunks/{instruction-discovery-rcb2kzg1.js → persistent-pty-rcb2kzg1.js} +0 -0
  787. /package/dist/chunks/{instruction-discovery-sdp7kfr6.js → persistent-pty-sdp7kfr6.js} +0 -0
  788. /package/dist/chunks/{instruction-discovery-sk3qaz4a.js → persistent-pty-sk3qaz4a.js} +0 -0
  789. /package/dist/chunks/{instruction-discovery-ssg3fenm.js → persistent-pty-ssg3fenm.js} +0 -0
  790. /package/dist/chunks/{instruction-discovery-twg0f83k.js → persistent-pty-twg0f83k.js} +0 -0
  791. /package/dist/chunks/{instruction-discovery-w803qqfp.js → persistent-pty-w803qqfp.js} +0 -0
  792. /package/dist/chunks/{instruction-discovery-wc3fc9cn.js → persistent-pty-wc3fc9cn.js} +0 -0
  793. /package/dist/chunks/{instruction-discovery-wer8tq1h.js → persistent-pty-wer8tq1h.js} +0 -0
  794. /package/dist/chunks/{instruction-discovery-wtztk69x.js → persistent-pty-wtztk69x.js} +0 -0
  795. /package/dist/chunks/{instruction-discovery-x0ckcb58.js → persistent-pty-x0ckcb58.js} +0 -0
  796. /package/dist/chunks/{instruction-discovery-x61499pn.js → persistent-pty-x61499pn.js} +0 -0
  797. /package/dist/chunks/{instruction-discovery-y44na4kk.js → persistent-pty-y44na4kk.js} +0 -0
  798. /package/dist/chunks/{instruction-discovery-y8cydn3q.js → persistent-pty-y8cydn3q.js} +0 -0
  799. /package/dist/chunks/{instruction-discovery-y8f7s663.js → persistent-pty-y8f7s663.js} +0 -0
  800. /package/dist/chunks/{instruction-discovery-ygaqb7jw.js → persistent-pty-ygaqb7jw.js} +0 -0
  801. /package/dist/chunks/{instruction-discovery-ym463w8f.js → persistent-pty-ym463w8f.js} +0 -0
  802. /package/dist/chunks/{instruction-discovery-z9919s4g.js → persistent-pty-z9919s4g.js} +0 -0
@@ -2,47 +2,47 @@ import {
2
2
  Metadata2,
3
3
  useragent2,
4
4
  node44
5
- } from "./instruction-discovery-wmttgrd3.js";
5
+ } from "./persistent-pty-wsmhkxds.js";
6
6
  import {
7
7
  provenance2,
8
8
  compatible2
9
- } from "./instruction-discovery-81czwxpn.js";
9
+ } from "./persistent-pty-csf2jhsg.js";
10
10
  import {
11
- Service58,
12
- node61
13
- } from "./instruction-discovery-aq5y8b9e.js";
11
+ Service63,
12
+ node67
13
+ } from "./persistent-pty-t1dawjzh.js";
14
14
  import {
15
15
  DeclinedError2
16
- } from "./instruction-discovery-zmz7rfv6.js";
16
+ } from "./persistent-pty-frk1q65v.js";
17
17
  import {
18
18
  CancelledError2
19
- } from "./instruction-discovery-cbgr23ns.js";
19
+ } from "./persistent-pty-8szzmgce.js";
20
20
  import {
21
21
  Error2
22
- } from "./instruction-discovery-vcye14pz.js";
22
+ } from "./persistent-pty-qcjne9p2.js";
23
23
  import {
24
- Service32,
25
- node35
26
- } from "./instruction-discovery-3zj26zxs.js";
24
+ Service23,
25
+ node27
26
+ } from "./persistent-pty-yyz8jpkn.js";
27
27
  import {
28
- make14
29
- } from "./instruction-discovery-drwq78ky.js";
28
+ make15
29
+ } from "./persistent-pty-xfkkasph.js";
30
30
  import {
31
31
  toLLMMessages2
32
- } from "./instruction-discovery-19w9qk9n.js";
32
+ } from "./persistent-pty-ts2x07a1.js";
33
33
  import {
34
34
  __export
35
- } from "./instruction-discovery-9rqn6x4v.js";
35
+ } from "./persistent-pty-9rqn6x4v.js";
36
36
 
37
37
  // src/session/model-request.ts
38
38
  var exports_model_request = {};
39
39
  __export(exports_model_request, {
40
- Service: () => Service31,
40
+ Service: () => Service22,
41
41
  SessionModelRequest: () => exports_model_request,
42
42
  baseTranscript: () => baseTranscript2,
43
43
  boundImages: () => boundImages2,
44
- layer: () => layer13,
45
- node: () => node34,
44
+ layer: () => layer10,
45
+ node: () => node26,
46
46
  unsupportedParts: () => unsupportedParts2
47
47
  });
48
48
  import {
@@ -66,7 +66,7 @@ var baseTranscript2 = (input) => {
66
66
  return {
67
67
  providerMetadataKey,
68
68
  system: [
69
- input.agent.system ? input.agent.system : make14(input.tools.definitions.map((tool) => tool.name)),
69
+ input.agent.system ? input.agent.system : make15(input.tools.definitions.map((tool) => tool.name)),
70
70
  input.initial
71
71
  ].filter((part) => part.length > 0).map(SystemPart.make),
72
72
  messages: toLLMMessages2(input.messages, input.model.ref, providerMetadataKey)
@@ -150,11 +150,11 @@ var boundImages2 = (messages) => {
150
150
  }));
151
151
  };
152
152
 
153
- class Service31 extends Context.Service()("@opencode/SessionModelRequest") {
153
+ class Service22 extends Context.Service()("@opencode/SessionModelRequest") {
154
154
  }
155
- var layer13 = Layer.effect(Service31, Effect.gen(function* () {
156
- const hooks = yield* Service58;
157
- const transport = yield* Service32;
155
+ var layer10 = Layer.effect(Service22, Effect.gen(function* () {
156
+ const hooks = yield* Service63;
157
+ const transport = yield* Service23;
158
158
  const app = yield* Metadata2;
159
159
  const prepare = Effect.fn("SessionModelRequest.prepare")(function* (kind, input, shape) {
160
160
  const session = input.session;
@@ -231,11 +231,15 @@ var layer13 = Layer.effect(Service31, Effect.gen(function* () {
231
231
  });
232
232
  return HttpClientResponse.fromWeb(sent, after.response);
233
233
  }).pipe(Effect.mapError((cause) => cause instanceof Error ? cause : new Error(String(cause)))) : undefined;
234
- const webSocket = input.webSocket === "session" && model.transport === "websocket" ? transport.bind(session.id, (connect) => hooks.trigger("session", "experimental.ws.handshake", {
235
- ...scope,
236
- url: connect.url,
237
- headers: connect.headers
238
- }).pipe(Effect.map((event) => ({ url: event.url, headers: event.headers })))) : undefined;
234
+ const webSocket = input.webSocket === "session" && model.transport === "websocket" ? transport.bind(session.id, {
235
+ handshake: (connect) => hooks.trigger("session", "experimental.ws.handshake", {
236
+ ...scope,
237
+ url: connect.url,
238
+ headers: connect.headers
239
+ }).pipe(Effect.map((event) => ({ url: event.url, headers: event.headers }))),
240
+ send: (frame) => hooks.trigger("session", "experimental.ws.send", { ...scope, frame }).pipe(Effect.map((event) => event.frame)),
241
+ receive: (frame) => hooks.trigger("session", "experimental.ws.receive", { ...scope, frame }).pipe(Effect.map((event) => event.frame))
242
+ }) : undefined;
239
243
  return {
240
244
  event: shaped,
241
245
  request,
@@ -248,17 +252,17 @@ var layer13 = Layer.effect(Service31, Effect.gen(function* () {
248
252
  };
249
253
  });
250
254
  const agentHook = (name, agent) => (draft, tools) => hooks.trigger("session", name, { ...draft, agent, tools });
251
- return Service31.of({
255
+ return Service22.of({
252
256
  primary: (input) => prepare("primary", input, agentHook("context", input.agent)),
253
257
  compaction: (input) => prepare("compaction", input, agentHook("compaction", input.agent)),
254
258
  generate: (input) => prepare("generate", input, agentHook("generate", input.agent)),
255
259
  title: (input) => prepare("title", input, (draft) => hooks.trigger("session", "title", draft))
256
260
  });
257
261
  }));
258
- var node34 = makeLocationNode({
259
- service: Service31,
260
- layer: layer13,
261
- deps: [node61, node35, node44]
262
+ var node26 = makeLocationNode({
263
+ service: Service22,
264
+ layer: layer10,
265
+ deps: [node67, node27, node44]
262
266
  });
263
267
 
264
- export { baseTranscript2, unsupportedParts2, boundImages2, Service31, layer13, node34, exports_model_request };
268
+ export { baseTranscript2, unsupportedParts2, boundImages2, Service22, layer10, node26, exports_model_request };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./instruction-discovery-922hggd3.js";
3
+ } from "./persistent-pty-922hggd3.js";
4
4
  import {
5
- Service76
6
- } from "./instruction-discovery-88dkmhka.js";
5
+ Service79
6
+ } from "./persistent-pty-pqkcmren.js";
7
7
  import {
8
8
  __export
9
- } from "./instruction-discovery-9rqn6x4v.js";
9
+ } from "./persistent-pty-9rqn6x4v.js";
10
10
 
11
11
  // src/config/discovery.ts
12
12
  var exports_discovery2 = {};
@@ -23,7 +23,7 @@ var names4 = ["opencode.json", "opencode.jsonc"];
23
23
  var discover3 = Effect.fn("ConfigDiscovery.discover")(function* (options) {
24
24
  const fs = yield* FSUtil.Service;
25
25
  const global = yield* Global.Service;
26
- const location = yield* Service76;
26
+ const location = yield* Service79;
27
27
  const globalDirectory = AbsolutePath2.make(global.config);
28
28
  const globalAgentsDirectory = AbsolutePath2.make(path.join(global.home, ".agents"));
29
29
  const globalClaudeDirectory = AbsolutePath2.make(path.join(global.home, ".claude"));
@@ -1,7 +1,7 @@
1
1
  // src/session/schema.ts
2
2
  import * as SessionSchema2 from "@opencode/schema/session";
3
3
  import { Session } from "@opencode/schema/session";
4
- var ID6 = Session.ID;
5
- var Info20 = Session.Info;
4
+ var ID8 = Session.ID;
5
+ var Info13 = Session.Info;
6
6
 
7
- export { ID6, Info20, SessionSchema2 };
7
+ export { ID8, Info13, SessionSchema2 };
@@ -2,10 +2,10 @@ import {
2
2
  NotFound2,
3
3
  WrongKind2,
4
4
  Failed2
5
- } from "./instruction-discovery-2a5m3afh.js";
5
+ } from "./persistent-pty-2a5m3afh.js";
6
6
  import {
7
7
  __export
8
- } from "./instruction-discovery-9rqn6x4v.js";
8
+ } from "./persistent-pty-9rqn6x4v.js";
9
9
 
10
10
  // src/environment/local.ts
11
11
  var exports_local = {};
@@ -1,48 +1,48 @@
1
1
  import {
2
- Service81
3
- } from "./instruction-discovery-7kvy0jtg.js";
2
+ Service82
3
+ } from "./persistent-pty-ze07024f.js";
4
4
  import {
5
- Service80
6
- } from "./instruction-discovery-ssbpaa97.js";
5
+ Service73
6
+ } from "./persistent-pty-cpxfwkbg.js";
7
7
  import {
8
8
  group2,
9
9
  batch2,
10
10
  shutdown2,
11
11
  inherit2
12
- } from "./instruction-discovery-rdw6cm16.js";
12
+ } from "./persistent-pty-rdw6cm16.js";
13
13
  import {
14
- Service29,
14
+ Service24,
15
15
  awaitActivation2
16
- } from "./instruction-discovery-4v7qdvcn.js";
16
+ } from "./persistent-pty-v1faaxn9.js";
17
17
  import {
18
18
  make11,
19
19
  requirements3,
20
20
  storage2
21
- } from "./instruction-discovery-9n0dsy51.js";
21
+ } from "./persistent-pty-ge476xvj.js";
22
22
  import {
23
23
  __export
24
- } from "./instruction-discovery-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: () => Event3,
29
+ Event: () => Event2,
30
30
  ID: () => ID2,
31
31
  Info: () => Info2,
32
32
  Plugin: () => exports_plugin2,
33
- Service: () => Service29,
33
+ Service: () => Service24,
34
34
  Source: () => Source2,
35
35
  State: () => State2,
36
36
  awaitActivation: () => awaitActivation2,
37
- node: () => node19
37
+ node: () => node15
38
38
  });
39
- import { Event as Event3, ID as ID2, Info as Info2, Source as Source2, State as State2 } from "@opencode/schema/plugin";
39
+ import { Event as Event2, 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(Service29, Effect.gen(function* () {
44
- const bus = yield* Service81;
45
- const kv = yield* Service80;
43
+ var layer = Layer.effect(Service24, Effect.gen(function* () {
44
+ const bus = yield* Service82;
45
+ const kv = yield* Service73;
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(Service29, Effect.gen(function* () {
205
205
  yield* shutdown2(Scope.close(scope, exit));
206
206
  }));
207
207
  yield* Effect.addFinalizer(close);
208
- return Service29.of({
208
+ return Service24.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 node19 = Node.makeLocationNode({
226
- service: Service29,
225
+ var node15 = Node.makeLocationNode({
226
+ service: Service24,
227
227
  layer,
228
228
  deps: [requirements3]
229
229
  });
230
230
 
231
- export { node19, exports_plugin2, Event3, ID2, Info2, Source2, State2 };
231
+ export { node15, exports_plugin2, Event2, ID2, Info2, Source2, State2 };
@@ -1,24 +1,24 @@
1
1
  import {
2
- Service81
3
- } from "./instruction-discovery-7kvy0jtg.js";
2
+ Service82
3
+ } from "./persistent-pty-ze07024f.js";
4
4
  import {
5
5
  OAuth3,
6
- Event16
7
- } from "./instruction-discovery-444wcx0m.js";
6
+ Event19
7
+ } from "./persistent-pty-ry98d82p.js";
8
8
  import {
9
- ID10,
9
+ ID14,
10
10
  MethodID2
11
- } from "./instruction-discovery-v5w6sppg.js";
11
+ } from "./persistent-pty-gbwj81ez.js";
12
12
  import {
13
- ID9,
13
+ ID13,
14
14
  mergeOverlay2,
15
15
  mergeHeaders2
16
- } from "./instruction-discovery-58ka6e3j.js";
16
+ } from "./persistent-pty-j10zwm3w.js";
17
17
  import {
18
- ID18,
18
+ ID3,
19
19
  Input14,
20
20
  Response2
21
- } from "./instruction-discovery-k9w3fgz4.js";
21
+ } from "./persistent-pty-89x64swv.js";
22
22
 
23
23
  // src/plugin/provider/opencode.ts
24
24
  import { Duration, Effect, Equal, Schema, Semaphore, Stream } from "effect";
@@ -32,7 +32,7 @@ var methodID = MethodID2.make("device");
32
32
  var RemoteResponse = Schema.Struct({
33
33
  providers: Schema.Record(Schema.String, ConfigProvider.Info),
34
34
  websearch: Schema.Struct({
35
- providerID: ID18
35
+ providerID: ID3
36
36
  }).pipe(Schema.optional)
37
37
  });
38
38
  var Device = Schema.Struct({
@@ -54,7 +54,7 @@ var User = Schema.Struct({ id: Schema.String, email: Schema.String });
54
54
  var Org = Schema.Struct({ id: Schema.String, name: Schema.String });
55
55
  function oauth(http) {
56
56
  return {
57
- integrationID: ID10.make("opencode"),
57
+ integrationID: ID14.make("opencode"),
58
58
  method: {
59
59
  id: methodID,
60
60
  type: "oauth",
@@ -99,7 +99,7 @@ function oauth(http) {
99
99
  var OpencodePlugin2 = define({
100
100
  id: "opencode.provider.opencode",
101
101
  effect: Effect.fn(function* (ctx) {
102
- const bus = yield* Service81;
102
+ const bus = yield* Service82;
103
103
  const http = yield* HttpClient.HttpClient;
104
104
  const loading = Semaphore.makeUnsafe(1);
105
105
  let snapshot = { config: undefined, connection: undefined };
@@ -125,7 +125,7 @@ var OpencodePlugin2 = define({
125
125
  providers.update(providerID, (provider) => {
126
126
  if (source && source.provider !== provider)
127
127
  Object.assign(provider, structuredClone(source.provider), { id: provider.id });
128
- provider.integrationID = ID10.make("opencode");
128
+ provider.integrationID = ID14.make("opencode");
129
129
  if (item.canonical !== undefined)
130
130
  provider.canonical = item.canonical;
131
131
  if (item.name !== undefined)
@@ -195,7 +195,7 @@ var OpencodePlugin2 = define({
195
195
  sourceConnection: snapshot.connection
196
196
  });
197
197
  }
198
- const item = providers.get(ID9.opencode);
198
+ const item = providers.get(ID13.opencode);
199
199
  if (!item)
200
200
  return;
201
201
  const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
@@ -207,7 +207,7 @@ var OpencodePlugin2 = define({
207
207
  });
208
208
  });
209
209
  yield* ctx.model.transform((models) => {
210
- const item = models.provider.get(ID9.opencode);
210
+ const item = models.provider.get(ID13.opencode);
211
211
  if (!item)
212
212
  return;
213
213
  const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey && item.provider.settings.apiKey !== "public");
@@ -262,7 +262,7 @@ var OpencodePlugin2 = define({
262
262
  yield* Effect.all([ctx.provider.reload(), ctx.websearch.reload()], { concurrency: 2, discard: true });
263
263
  });
264
264
  const refresh = () => loading.withPermit(load().pipe(Effect.andThen(apply)));
265
- yield* bus.subscribe(Event16.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID10.make("opencode")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
265
+ yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("opencode")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
266
266
  yield* Effect.sleep(Duration.minutes(1)).pipe(Effect.andThen(loading.withPermit(load().pipe(Effect.flatMap((next) => Equal.equals(snapshot, next) ? Effect.void : apply(next))))), Effect.forever, Effect.forkScoped);
267
267
  })
268
268
  });
@@ -1,32 +1,32 @@
1
1
  import {
2
- Key4,
2
+ Key3,
3
3
  removed2,
4
4
  empty3,
5
- make19,
5
+ make21,
6
6
  diffByKey2
7
- } from "./instruction-discovery-gbt6w4kb.js";
7
+ } from "./persistent-pty-s8d7rejh.js";
8
8
  import {
9
9
  evaluate2
10
- } from "./instruction-discovery-zmz7rfv6.js";
10
+ } from "./persistent-pty-frk1q65v.js";
11
11
  import {
12
- Service33,
13
- node36
14
- } from "./instruction-discovery-q2bxhs6b.js";
12
+ Service28,
13
+ node31
14
+ } from "./persistent-pty-yz26c8tn.js";
15
15
  import {
16
16
  namespace2,
17
- name13
18
- } from "./instruction-discovery-tmp7mf59.js";
17
+ name14
18
+ } from "./persistent-pty-4ygxkg3r.js";
19
19
  import {
20
20
  __export
21
- } from "./instruction-discovery-9rqn6x4v.js";
21
+ } from "./persistent-pty-9rqn6x4v.js";
22
22
 
23
23
  // src/mcp/instructions.ts
24
- var exports_instructions5 = {};
25
- __export(exports_instructions5, {
26
- McpInstructions: () => exports_instructions5,
27
- Service: () => Service26,
28
- layer: () => layer11,
29
- node: () => node29
24
+ var exports_instructions2 = {};
25
+ __export(exports_instructions2, {
26
+ McpInstructions: () => exports_instructions2,
27
+ Service: () => Service20,
28
+ layer: () => layer9,
29
+ node: () => node24
30
30
  });
31
31
  import { makeLocationNode } from "@opencode/util/effect/app-node";
32
32
  import { Context, Effect, Layer, Schema } from "effect";
@@ -62,17 +62,17 @@ var update = (previous, current) => {
62
62
  `);
63
63
  };
64
64
 
65
- class Service26 extends Context.Service()("@opencode/McpInstructions") {
65
+ class Service20 extends Context.Service()("@opencode/McpInstructions") {
66
66
  }
67
- var layer11 = Layer.effect(Service26, Effect.gen(function* () {
68
- const mcp = yield* Service33;
69
- return Service26.of({
67
+ var layer9 = Layer.effect(Service20, Effect.gen(function* () {
68
+ const mcp = yield* Service28;
69
+ return Service20.of({
70
70
  load: Effect.fn("McpInstructions.load")(function* (selection) {
71
71
  const agent = selection.info;
72
72
  if (!agent)
73
73
  return empty3;
74
- const source = (value) => make19({
75
- key: Key4.make("core/mcp-guidance"),
74
+ const source = (value) => make21({
75
+ key: Key3.make("core/mcp-guidance"),
76
76
  codec: Schema.toCodecJson(Schema.Array(Summary)),
77
77
  read: Effect.succeed(value),
78
78
  render: {
@@ -90,7 +90,7 @@ var layer11 = Layer.effect(Service26, Effect.gen(function* () {
90
90
  const codemode = owned[0]?.codemode !== false;
91
91
  if (codemode && !canExecute)
92
92
  return [];
93
- if (!owned.some((tool) => evaluate2(name13(tool.server, tool.name), "*", agent.permissions).effect !== "deny"))
93
+ if (!owned.some((tool) => evaluate2(name14(tool.server, tool.name), "*", agent.permissions).effect !== "deny"))
94
94
  return [];
95
95
  return [
96
96
  codemode ? { server: item.server, instructions: item.instructions } : { server: item.server, instructions: item.instructions, codemode: false }
@@ -100,6 +100,6 @@ var layer11 = Layer.effect(Service26, Effect.gen(function* () {
100
100
  })
101
101
  });
102
102
  }));
103
- var node29 = makeLocationNode({ service: Service26, layer: layer11, deps: [node36] });
103
+ var node24 = makeLocationNode({ service: Service20, layer: layer9, deps: [node31] });
104
104
 
105
- export { Service26, layer11, node29, exports_instructions5 };
105
+ export { Service20, layer9, node24, exports_instructions2 };
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  __export
3
- } from "./instruction-discovery-9rqn6x4v.js";
3
+ } from "./persistent-pty-9rqn6x4v.js";
4
4
 
5
5
  // src/plugin/instance.ts
6
6
  var exports_instance2 = {};
7
7
  __export(exports_instance2, {
8
8
  InstancePlugins: () => exports_instance2,
9
- Service: () => Service3,
9
+ Service: () => Service5,
10
10
  bound: () => bound2,
11
- node: () => node4
11
+ node: () => node7
12
12
  });
13
13
  import { Context, Layer } from "effect";
14
14
  import { makeLocationNode } from "@opencode/util/effect/app-node";
15
15
 
16
- class Service3 extends Context.Service()("@opencode/InstancePlugins") {
16
+ class Service5 extends Context.Service()("@opencode/InstancePlugins") {
17
17
  }
18
- var node4 = makeLocationNode({
19
- service: Service3,
18
+ var node7 = makeLocationNode({
19
+ service: Service5,
20
20
  layer: bound2([]),
21
21
  deps: []
22
22
  });
@@ -26,7 +26,7 @@ function bound2(plugins) {
26
26
  throw new Error(`duplicate instance plugin ids: ${duplicates.map((plugin) => plugin.id).join(", ")}`);
27
27
  }
28
28
  const stamped = plugins.map((plugin) => ({ ...plugin, revision: "instance", source: { type: "sdk" } }));
29
- return Layer.succeed(Service3, Service3.of({ all: () => stamped }));
29
+ return Layer.succeed(Service5, Service5.of({ all: () => stamped }));
30
30
  }
31
31
 
32
- export { Service3, node4, bound2, exports_instance2 };
32
+ export { Service5, node7, bound2, exports_instance2 };
@@ -1,23 +1,23 @@
1
1
  import {
2
- Service69,
3
- node72,
2
+ Service49,
3
+ node52,
4
4
  canonical3
5
- } from "./instruction-discovery-3vhfgt92.js";
5
+ } from "./persistent-pty-j6sjxh3t.js";
6
6
  import {
7
- Service50,
8
- node53
9
- } from "./instruction-discovery-hq8zt1th.js";
7
+ Service46,
8
+ node49
9
+ } from "./persistent-pty-w21bzq9q.js";
10
10
  import {
11
- Service17
12
- } from "./instruction-discovery-r1p3dd79.js";
11
+ Service58
12
+ } from "./persistent-pty-gwk30na0.js";
13
13
  import {
14
14
  layer2
15
- } from "./instruction-discovery-7aagt1ep.js";
15
+ } from "./persistent-pty-gxrgn0ds.js";
16
16
 
17
17
  // src/location-services.ts
18
18
  import { Context, Duration, Effect, Exit, Layer, LayerMap, MutableHashMap, Option } from "effect";
19
19
  function buildLocationServiceMap2(replacements = []) {
20
- return Layer.effect(Service69, Effect.gen(function* () {
20
+ return Layer.effect(Service49, Effect.gen(function* () {
21
21
  const owner = yield* Effect.scope;
22
22
  const builds = MutableHashMap.empty();
23
23
  const inner = yield* LayerMap.make((ref) => {
@@ -25,12 +25,16 @@ function buildLocationServiceMap2(replacements = []) {
25
25
  MutableHashMap.set(builds, ref, build);
26
26
  return Layer.fromBuild((memoMap, scope) => Effect.suspend(() => Layer.buildWithMemoMap(layer2(ref, { replacements: bindings }), memoMap, scope)).pipe(Effect.onExit((exit) => {
27
27
  const finish = Effect.suspend(() => {
28
- if (Option.getOrUndefined(MutableHashMap.get(builds, ref)) !== build)
29
- return Effect.void;
30
28
  if (Exit.isSuccess(exit)) {
31
- build.close = Context.get(exit.value, Service17).close;
32
- return Effect.void;
29
+ return Effect.gen(function* () {
30
+ const lifecycle = Context.get(exit.value, Service58);
31
+ if (Option.getOrUndefined(MutableHashMap.get(builds, ref)) !== build)
32
+ return yield* lifecycle.shutdown;
33
+ build.close = lifecycle.shutdown;
34
+ });
33
35
  }
36
+ if (Option.getOrUndefined(MutableHashMap.get(builds, ref)) !== build)
37
+ return Effect.void;
34
38
  MutableHashMap.remove(builds, ref);
35
39
  return Exit.isFailure(exit) ? inner.invalidate(ref) : Effect.void;
36
40
  });
@@ -47,14 +51,14 @@ function buildLocationServiceMap2(replacements = []) {
47
51
  const build = Option.getOrUndefined(MutableHashMap.get(builds, key));
48
52
  MutableHashMap.remove(builds, key);
49
53
  return inner.invalidate(key).pipe(Effect.andThen(build?.close ?? Effect.void));
50
- })
54
+ }).pipe(Effect.uninterruptible)
51
55
  };
52
56
  const bindings = [
53
- node53.replace(Layer.succeed(Service50, {
57
+ node49.replace(Layer.succeed(Service46, {
54
58
  provide: (session) => Effect.provide(map.get(session.location))
55
59
  })),
56
60
  ...replacements,
57
- node72.replace(Layer.succeed(Service69, map))
61
+ node52.replace(Layer.succeed(Service49, map))
58
62
  ];
59
63
  return map;
60
64
  }));
@@ -1,29 +1,29 @@
1
1
  import {
2
- Service82,
3
- node86
4
- } from "./instruction-discovery-wjck36vb.js";
2
+ Service83,
3
+ node87
4
+ } from "./persistent-pty-e0rr02qg.js";
5
5
  import {
6
6
  KVTable2
7
- } from "./instruction-discovery-3hepkmqq.js";
7
+ } from "./persistent-pty-3hepkmqq.js";
8
8
  import {
9
9
  __export
10
- } from "./instruction-discovery-9rqn6x4v.js";
10
+ } from "./persistent-pty-9rqn6x4v.js";
11
11
 
12
12
  // src/kv.ts
13
13
  var exports_kv = {};
14
14
  __export(exports_kv, {
15
15
  KV: () => exports_kv,
16
- Service: () => Service80,
17
- node: () => node84
16
+ Service: () => Service73,
17
+ node: () => node77
18
18
  });
19
19
  import { and, asc, eq, gt, gte, lt } from "drizzle-orm";
20
20
  import { Context, Effect, Layer } from "effect";
21
21
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
22
- class Service80 extends Context.Service()("@opencode/KV") {
22
+ class Service73 extends Context.Service()("@opencode/KV") {
23
23
  }
24
- var layer = Layer.effect(Service80, Effect.gen(function* () {
25
- const db = (yield* Service82).db;
26
- return Service80.of({
24
+ var layer = Layer.effect(Service73, Effect.gen(function* () {
25
+ const db = (yield* Service83).db;
26
+ return Service73.of({
27
27
  get: Effect.fn("KV.get")(function* (key) {
28
28
  return (yield* db.select({ value: KVTable2.value }).from(KVTable2).where(eq(KVTable2.key, key)).get().pipe(Effect.orDie))?.value;
29
29
  }),
@@ -51,6 +51,6 @@ function prefixEnd(prefix) {
51
51
  return;
52
52
  return `${points.slice(0, index).join("")}${String.fromCodePoint(points[index].codePointAt(0) + 1)}`;
53
53
  }
54
- var node84 = makeGlobalNode({ service: Service80, layer, deps: [node86] });
54
+ var node77 = makeGlobalNode({ service: Service73, layer, deps: [node87] });
55
55
 
56
- export { Service80, node84, exports_kv };
56
+ export { Service73, node77, exports_kv };
@@ -1,6 +1,6 @@
1
1
  import {
2
- ID9
3
- } from "./instruction-discovery-58ka6e3j.js";
2
+ ID13
3
+ } from "./persistent-pty-j10zwm3w.js";
4
4
 
5
5
  // src/plugin/provider/prompt-cache-key.ts
6
6
  import { Effect } from "effect";
@@ -24,7 +24,7 @@ var PromptCacheKeyPlugin2 = define({
24
24
  effect: Effect.fn(function* (ctx) {
25
25
  yield* ctx.model.transform((models) => {
26
26
  for (const id of providerIDs) {
27
- const providerID = ID9.make(id);
27
+ const providerID = ID13.make(id);
28
28
  for (const model of models.list(providerID)) {
29
29
  models.update(model.providerID, model.id, (draft) => {
30
30
  draft.compatibility = { ...draft.compatibility, supportsPromptCacheKey: true };