@opencode/core 0.0.0-dev-20782 → 0.0.0-dev-20784

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 (836) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +84 -84
  3. package/dist/aisdk-native.js +90 -90
  4. package/dist/aisdk.js +95 -95
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +70 -70
  7. package/dist/chunks/{instruction-discovery-360mpsp8.js → file-retention-01m0edtj.js} +11 -11
  8. package/dist/chunks/file-retention-02wkw50e.js +513 -0
  9. package/dist/chunks/{instruction-discovery-3zb3e7qp.js → file-retention-0crjjxxx.js} +18 -18
  10. package/dist/chunks/{instruction-discovery-44cwas1f.js → file-retention-0e3qe3yy.js} +14 -14
  11. package/dist/chunks/{instruction-discovery-q0xm7vwc.js → file-retention-0j77ygfz.js} +6 -6
  12. package/dist/chunks/{instruction-discovery-0paq2nw3.js → file-retention-0paq2nw3.js} +1 -1
  13. package/dist/chunks/{instruction-discovery-rzzn19w1.js → file-retention-0rfmeyxn.js} +11 -11
  14. package/dist/chunks/{instruction-discovery-e9z206xw.js → file-retention-0sdx5hkx.js} +16 -16
  15. package/dist/chunks/{instruction-discovery-0vbcp93d.js → file-retention-0vbcp93d.js} +2 -2
  16. package/dist/chunks/{instruction-discovery-n61x7dr3.js → file-retention-0y4k1x12.js} +10 -10
  17. package/dist/chunks/{instruction-discovery-kkna0xt5.js → file-retention-15vdfc9c.js} +3 -3
  18. package/dist/chunks/{instruction-discovery-1dvck2a7.js → file-retention-1dvck2a7.js} +2 -2
  19. package/dist/chunks/{instruction-discovery-t2jc4d6d.js → file-retention-1f2vccss.js} +36 -36
  20. package/dist/chunks/{instruction-discovery-q0fzxeza.js → file-retention-1k45a421.js} +11 -11
  21. package/dist/chunks/{instruction-discovery-8sze2n9a.js → file-retention-1p07q0wb.js} +8 -8
  22. package/dist/chunks/{instruction-discovery-963fmf73.js → file-retention-226karrg.js} +15 -15
  23. package/dist/chunks/{instruction-discovery-1r358xma.js → file-retention-2908y79c.js} +14 -14
  24. package/dist/chunks/{instruction-discovery-axjmkx9q.js → file-retention-291fq28g.js} +49 -49
  25. package/dist/chunks/{instruction-discovery-4ts7tf6z.js → file-retention-2ccvkpx1.js} +2 -2
  26. package/dist/chunks/{instruction-discovery-smdct0jd.js → file-retention-2ekw743c.js} +1 -1
  27. package/dist/chunks/{instruction-discovery-9b00c1fb.js → file-retention-2hg7qvzt.js} +5 -5
  28. package/dist/chunks/{instruction-discovery-zyc9an2m.js → file-retention-2j3kqcde.js} +22 -22
  29. package/dist/chunks/{instruction-discovery-gj71zhbs.js → file-retention-2k9fjx65.js} +5 -5
  30. package/dist/chunks/{instruction-discovery-c2kcpa0d.js → file-retention-2mqvqnd5.js} +13 -13
  31. package/dist/chunks/{instruction-discovery-np756ma8.js → file-retention-2n9hdwqs.js} +28 -28
  32. package/dist/chunks/{instruction-discovery-5t3nmthw.js → file-retention-2vvh33eb.js} +3 -3
  33. package/dist/chunks/{instruction-discovery-ta6js1ab.js → file-retention-2w2dfs1b.js} +13 -13
  34. package/dist/chunks/{instruction-discovery-rwp39ykb.js → file-retention-32y4ehgv.js} +11 -11
  35. package/dist/chunks/{instruction-discovery-z6qhsg7w.js → file-retention-35p49r4v.js} +29 -29
  36. package/dist/chunks/{instruction-discovery-0xezjjjn.js → file-retention-37ea9c2d.js} +8 -8
  37. package/dist/chunks/{instruction-discovery-3fc6dm20.js → file-retention-3fc6dm20.js} +1 -1
  38. package/dist/chunks/{instruction-discovery-3hepkmqq.js → file-retention-3hepkmqq.js} +1 -1
  39. package/dist/chunks/{instruction-discovery-b6gygkdw.js → file-retention-3hwn7j4h.js} +5 -5
  40. package/dist/chunks/{instruction-discovery-k5ycpxe4.js → file-retention-3pa89wpn.js} +4 -4
  41. package/dist/chunks/{instruction-discovery-3smtnn6g.js → file-retention-3smtnn6g.js} +1 -1
  42. package/dist/chunks/{instruction-discovery-3tvqynh2.js → file-retention-3tvqynh2.js} +1 -1
  43. package/dist/chunks/{instruction-discovery-3y377wv9.js → file-retention-3y377wv9.js} +1 -1
  44. package/dist/chunks/{instruction-discovery-3zsf4n22.js → file-retention-3zsf4n22.js} +1 -1
  45. package/dist/chunks/{instruction-discovery-4434d9q2.js → file-retention-4434d9q2.js} +2 -2
  46. package/dist/chunks/{instruction-discovery-pb4fdh5c.js → file-retention-4bzbvhwk.js} +15 -15
  47. package/dist/chunks/{instruction-discovery-rv5n7j43.js → file-retention-4re51v5c.js} +79 -79
  48. package/dist/chunks/{instruction-discovery-9wfzrxmy.js → file-retention-4wnyxfvg.js} +4 -4
  49. package/dist/chunks/{instruction-discovery-bcmjx010.js → file-retention-4x8je4cs.js} +25 -25
  50. package/dist/chunks/{instruction-discovery-bxvqbgr6.js → file-retention-4zeyygbb.js} +11 -11
  51. package/dist/chunks/{instruction-discovery-r94pvvab.js → file-retention-54ma36ye.js} +4 -4
  52. package/dist/chunks/{instruction-discovery-79vj9ttj.js → file-retention-54vb1344.js} +33 -33
  53. package/dist/chunks/{instruction-discovery-wxbrt247.js → file-retention-5526gnt0.js} +5 -5
  54. package/dist/chunks/{instruction-discovery-xfkkasph.js → file-retention-57b9ws8p.js} +7 -7
  55. package/dist/chunks/{instruction-discovery-zsr4wwhv.js → file-retention-5dkn69vz.js} +4 -4
  56. package/dist/chunks/file-retention-5fec3t3w.js +31 -0
  57. package/dist/chunks/{instruction-discovery-7rna5akc.js → file-retention-5g380qbr.js} +12 -12
  58. package/dist/chunks/{instruction-discovery-5m9w47nd.js → file-retention-5m9w47nd.js} +1 -1
  59. package/dist/chunks/{instruction-discovery-j9ckj638.js → file-retention-5shkaybx.js} +15 -15
  60. package/dist/chunks/{instruction-discovery-pgnspfd3.js → file-retention-5sn004hq.js} +19 -19
  61. package/dist/chunks/{instruction-discovery-79edx0mb.js → file-retention-5w8jzqx5.js} +3 -3
  62. package/dist/chunks/{instruction-discovery-5yzzbxa7.js → file-retention-5xtgfte3.js} +8 -8
  63. package/dist/chunks/{instruction-discovery-x4fwsepj.js → file-retention-5z9rmvjz.js} +63 -63
  64. package/dist/chunks/{instruction-discovery-kfab6w5x.js → file-retention-641gya88.js} +1 -1
  65. package/dist/chunks/{instruction-discovery-0we0h601.js → file-retention-6gaajhts.js} +11 -11
  66. package/dist/chunks/{instruction-discovery-z2k32cdp.js → file-retention-6mbzp12p.js} +30 -30
  67. package/dist/chunks/{instruction-discovery-cqmz66tp.js → file-retention-6wh776qa.js} +3 -3
  68. package/dist/chunks/{instruction-discovery-6xb47vfp.js → file-retention-6xb47vfp.js} +1 -1
  69. package/dist/chunks/{instruction-discovery-2geymwnw.js → file-retention-700ev8gh.js} +35 -35
  70. package/dist/chunks/{instruction-discovery-71az546q.js → file-retention-71az546q.js} +2 -2
  71. package/dist/chunks/{instruction-discovery-qxjc9qry.js → file-retention-72sxpf59.js} +3 -3
  72. package/dist/chunks/{instruction-discovery-y7bnjqap.js → file-retention-75w0f5x3.js} +6 -6
  73. package/dist/chunks/{instruction-discovery-wcham18f.js → file-retention-76g80x4f.js} +3 -3
  74. package/dist/chunks/{instruction-discovery-f62qkzqr.js → file-retention-76rvckpe.js} +5 -5
  75. package/dist/chunks/{instruction-discovery-7bmhse3q.js → file-retention-7bmhse3q.js} +1 -1
  76. package/dist/chunks/{instruction-discovery-8xfrtn2e.js → file-retention-7cxxxtha.js} +47 -47
  77. package/dist/chunks/{instruction-discovery-0jwsre1p.js → file-retention-7dqw4kz8.js} +5 -5
  78. package/dist/chunks/{instruction-discovery-fcr3mt8k.js → file-retention-7fdjvgwr.js} +4 -4
  79. package/dist/chunks/{instruction-discovery-n7akkzww.js → file-retention-7j5w12p9.js} +33 -33
  80. package/dist/chunks/{instruction-discovery-8n1xcq6q.js → file-retention-7kk9evys.js} +4 -4
  81. package/dist/chunks/{instruction-discovery-xg6qg3nm.js → file-retention-7me7tz75.js} +4 -4
  82. package/dist/chunks/{instruction-discovery-tf0c2awf.js → file-retention-7pj8drkf.js} +11 -11
  83. package/dist/chunks/{instruction-discovery-yfhn5nrx.js → file-retention-81fjg4yx.js} +6 -6
  84. package/dist/chunks/{instruction-discovery-gdgw3x5a.js → file-retention-84wx499v.js} +28 -28
  85. package/dist/chunks/{instruction-discovery-q83947zm.js → file-retention-85snt3vs.js} +125 -125
  86. package/dist/chunks/{instruction-discovery-5pyjqqve.js → file-retention-85xxa1xb.js} +2 -2
  87. package/dist/chunks/{instruction-discovery-sezbf1v0.js → file-retention-87bzfwd4.js} +9 -9
  88. package/dist/chunks/{instruction-discovery-6k2hc147.js → file-retention-88pgeajf.js} +6 -6
  89. package/dist/chunks/{instruction-discovery-8m6m0r52.js → file-retention-8m6m0r52.js} +1 -1
  90. package/dist/chunks/{instruction-discovery-af40zjcf.js → file-retention-8sd5y0hb.js} +24 -24
  91. package/dist/chunks/{instruction-discovery-tcay1cqt.js → file-retention-909p1r3q.js} +6 -6
  92. package/dist/chunks/{instruction-discovery-x0jg5t32.js → file-retention-90ncnea0.js} +15 -15
  93. package/dist/chunks/{instruction-discovery-sw89crrp.js → file-retention-998r05vw.js} +14 -14
  94. package/dist/chunks/{instruction-discovery-9e5bzkjp.js → file-retention-9e5bzkjp.js} +3 -3
  95. package/dist/chunks/{instruction-discovery-8swzzhdb.js → file-retention-9hy1eatw.js} +7 -7
  96. package/dist/chunks/{instruction-discovery-c7w2daa3.js → file-retention-9j1mbtc1.js} +15 -15
  97. package/dist/chunks/{instruction-discovery-49eq2tc2.js → file-retention-9r9w78qs.js} +9 -9
  98. package/dist/chunks/{instruction-discovery-60p1zxrk.js → file-retention-a0pnfrft.js} +34 -34
  99. package/dist/chunks/{instruction-discovery-chrxq3ex.js → file-retention-a310axxt.js} +16 -16
  100. package/dist/chunks/{instruction-discovery-nh9cv99v.js → file-retention-a9kdv268.js} +13 -13
  101. package/dist/chunks/{instruction-discovery-63fhbdq2.js → file-retention-ab8h52gf.js} +26 -26
  102. package/dist/chunks/{instruction-discovery-27zpda9y.js → file-retention-ac7rwfbv.js} +12 -12
  103. package/dist/chunks/{instruction-discovery-5fnjcay5.js → file-retention-adm4qcea.js} +32 -32
  104. package/dist/chunks/{instruction-discovery-cdpzxgfg.js → file-retention-ath3g41k.js} +38 -38
  105. package/dist/chunks/{instruction-discovery-rxkxex79.js → file-retention-azanj09g.js} +10 -10
  106. package/dist/chunks/{instruction-discovery-8vsr9pta.js → file-retention-azy71b5p.js} +10 -10
  107. package/dist/chunks/{instruction-discovery-f4284ta9.js → file-retention-b2tc811h.js} +7 -7
  108. package/dist/chunks/{instruction-discovery-scgrse2b.js → file-retention-b3f8fkhc.js} +5 -5
  109. package/dist/chunks/{instruction-discovery-vx3jgdek.js → file-retention-ba07h9gm.js} +3 -3
  110. package/dist/chunks/{instruction-discovery-vd95wqeb.js → file-retention-banfh6zd.js} +18 -18
  111. package/dist/chunks/{instruction-discovery-57dh3qy1.js → file-retention-bbcm0tyt.js} +73 -73
  112. package/dist/chunks/{instruction-discovery-1ygqh575.js → file-retention-bjx1sjef.js} +3 -3
  113. package/dist/chunks/{instruction-discovery-kvjzkr2v.js → file-retention-bkxyw0dr.js} +9 -9
  114. package/dist/chunks/{instruction-discovery-b08h51y8.js → file-retention-btmq9cxd.js} +11 -11
  115. package/dist/chunks/{instruction-discovery-e9ga1v8m.js → file-retention-btwe4kze.js} +2 -2
  116. package/dist/chunks/{instruction-discovery-602dh00x.js → file-retention-bzn6nda8.js} +11 -11
  117. package/dist/chunks/{instruction-discovery-50q9psn3.js → file-retention-cd70q2ry.js} +24 -24
  118. package/dist/chunks/{instruction-discovery-ckj0avjx.js → file-retention-ck45pw9k.js} +4 -4
  119. package/dist/chunks/{instruction-discovery-v23r60sg.js → file-retention-d580n77m.js} +11 -11
  120. package/dist/chunks/{instruction-discovery-hv4axfbz.js → file-retention-d6w343vm.js} +17 -17
  121. package/dist/chunks/{instruction-discovery-8a6ws7jr.js → file-retention-d7x0sh0y.js} +10 -10
  122. package/dist/chunks/{instruction-discovery-q5mm4580.js → file-retention-d7zv88p4.js} +14 -14
  123. package/dist/chunks/{instruction-discovery-dpkg50ah.js → file-retention-dpkg50ah.js} +1 -1
  124. package/dist/chunks/{instruction-discovery-a75c3n10.js → file-retention-dwaxmk1s.js} +11 -11
  125. package/dist/chunks/{instruction-discovery-pwtcwx0t.js → file-retention-dwe8s81y.js} +8 -8
  126. package/dist/chunks/file-retention-dxj72tfx.js +18 -0
  127. package/dist/chunks/{instruction-discovery-5qd3pb7m.js → file-retention-e3qxr5gk.js} +2 -2
  128. package/dist/chunks/{instruction-discovery-egtbwj3m.js → file-retention-e4ma86vn.js} +10 -10
  129. package/dist/chunks/{instruction-discovery-3hmxmgkr.js → file-retention-e4nca66s.js} +5 -5
  130. package/dist/chunks/{instruction-discovery-9tw9cr0p.js → file-retention-e80jqawr.js} +16 -16
  131. package/dist/chunks/{instruction-discovery-fqyzxfb3.js → file-retention-ea9a622x.js} +8 -8
  132. package/dist/chunks/{instruction-discovery-gn494k17.js → file-retention-ecv6s6zk.js} +24 -24
  133. package/dist/chunks/{instruction-discovery-1dazxqgg.js → file-retention-eej6y6fw.js} +6 -6
  134. package/dist/chunks/{instruction-discovery-ef5x83kb.js → file-retention-ef5x83kb.js} +1 -1
  135. package/dist/chunks/{instruction-discovery-0stc2z4v.js → file-retention-ek3n6pab.js} +10 -10
  136. package/dist/chunks/{instruction-discovery-c8dqtw9g.js → file-retention-enqcm95t.js} +36 -36
  137. package/dist/chunks/{instruction-discovery-10r2mgvp.js → file-retention-eyhnzkb4.js} +3 -3
  138. package/dist/chunks/{instruction-discovery-5dnsm7b1.js → file-retention-eynxa54k.js} +44 -44
  139. package/dist/chunks/file-retention-f2fj5fz0.js +253 -0
  140. package/dist/chunks/{instruction-discovery-0vbd7zxx.js → file-retention-f8d5qev0.js} +10 -10
  141. package/dist/chunks/{instruction-discovery-f51fnx13.js → file-retention-fgjzfnyp.js} +5 -5
  142. package/dist/chunks/{instruction-discovery-a11hgr5e.js → file-retention-fhx5vk7x.js} +26 -26
  143. package/dist/chunks/{instruction-discovery-4cdv1at0.js → file-retention-fjh3s92b.js} +24 -24
  144. package/dist/chunks/{instruction-discovery-1kemzmpx.js → file-retention-fkrcgtjd.js} +8 -8
  145. package/dist/chunks/{instruction-discovery-v5dkyp31.js → file-retention-fm2qvscf.js} +4 -4
  146. package/dist/chunks/{instruction-discovery-8tj7q0dk.js → file-retention-frf5w0nt.js} +15 -15
  147. package/dist/chunks/{instruction-discovery-mreyc66c.js → file-retention-fshxsajn.js} +27 -27
  148. package/dist/chunks/{instruction-discovery-gf7945dc.js → file-retention-g7kzsnmy.js} +14 -14
  149. package/dist/chunks/{instruction-discovery-y6wkewnn.js → file-retention-g95216pe.js} +45 -45
  150. package/dist/chunks/{instruction-discovery-gd4qta3r.js → file-retention-gd4qta3r.js} +1 -1
  151. package/dist/chunks/{instruction-discovery-qkf3nnpx.js → file-retention-gfe3ax2q.js} +3 -3
  152. package/dist/chunks/{instruction-discovery-8d7r5vzw.js → file-retention-gk8qb678.js} +4 -4
  153. package/dist/chunks/{instruction-discovery-at8ypwft.js → file-retention-gw2k9m0t.js} +14 -14
  154. package/dist/chunks/{instruction-discovery-r96p2y56.js → file-retention-gz086qgb.js} +10 -10
  155. package/dist/chunks/{instruction-discovery-h2b79v29.js → file-retention-h2b79v29.js} +2 -2
  156. package/dist/chunks/{instruction-discovery-z4p89hhw.js → file-retention-h5qdgnb5.js} +22 -22
  157. package/dist/chunks/{instruction-discovery-h6vf3j39.js → file-retention-h6vf3j39.js} +1 -1
  158. package/dist/chunks/{instruction-discovery-31xfzrxg.js → file-retention-h7s7r6s9.js} +5 -5
  159. package/dist/chunks/{instruction-discovery-44ak30pa.js → file-retention-h9pnpq88.js} +4 -4
  160. package/dist/chunks/{instruction-discovery-2a5m3afh.js → file-retention-hgz4x7wa.js} +4 -4
  161. package/dist/chunks/{instruction-discovery-pb85jpk7.js → file-retention-hn2ax6sd.js} +21 -21
  162. package/dist/chunks/{instruction-discovery-btgar8yp.js → file-retention-hnra3d6s.js} +5 -5
  163. package/dist/chunks/{instruction-discovery-mjxe5z4k.js → file-retention-hp90m9cj.js} +30 -30
  164. package/dist/chunks/{instruction-discovery-y1tpmgde.js → file-retention-hq6c81g9.js} +11 -11
  165. package/dist/chunks/{instruction-discovery-bpf208j3.js → file-retention-hrh521yf.js} +11 -11
  166. package/dist/chunks/{instruction-discovery-ystf5kkg.js → file-retention-hs4w86ex.js} +7 -7
  167. package/dist/chunks/{instruction-discovery-qqynch2e.js → file-retention-hs6v00ac.js} +11 -11
  168. package/dist/chunks/{instruction-discovery-gge0vm43.js → file-retention-hymc8p36.js} +8 -8
  169. package/dist/chunks/{instruction-discovery-1tjztkak.js → file-retention-j4hxg427.js} +4 -4
  170. package/dist/chunks/{instruction-discovery-j56e64zr.js → file-retention-j56e64zr.js} +1 -1
  171. package/dist/chunks/{instruction-discovery-he27pt63.js → file-retention-jhdf29st.js} +1 -1
  172. package/dist/chunks/{instruction-discovery-synadcw7.js → file-retention-jjenqzg1.js} +40 -40
  173. package/dist/chunks/{instruction-discovery-hq1vq67z.js → file-retention-jtmhc97q.js} +49 -49
  174. package/dist/chunks/{instruction-discovery-y8cydn3q.js → file-retention-jze0r7bz.js} +3 -8
  175. package/dist/chunks/{instruction-discovery-3ax2ysvz.js → file-retention-k3wcbxqn.js} +4 -4
  176. package/dist/chunks/{instruction-discovery-sv19v7sb.js → file-retention-k430jzx8.js} +12 -12
  177. package/dist/chunks/{instruction-discovery-r9w3djhf.js → file-retention-k79tzb9n.js} +8 -8
  178. package/dist/chunks/{instruction-discovery-s5zmf07f.js → file-retention-ka5c30pq.js} +20 -20
  179. package/dist/chunks/{instruction-discovery-cqs6vem1.js → file-retention-kksd5aqz.js} +28 -28
  180. package/dist/chunks/{instruction-discovery-k3wb8j43.js → file-retention-kkymj4jt.js} +16 -16
  181. package/dist/chunks/{instruction-discovery-t7n9q6bq.js → file-retention-kne8f3cn.js} +4 -4
  182. package/dist/chunks/{instruction-discovery-bm9y40sw.js → file-retention-ks6sgrkr.js} +2 -2
  183. package/dist/chunks/{instruction-discovery-m3fdjcah.js → file-retention-m3fdjcah.js} +1 -1
  184. package/dist/chunks/{instruction-discovery-17mpb7fd.js → file-retention-m6y8pydv.js} +4 -4
  185. package/dist/chunks/{instruction-discovery-syz74wzn.js → file-retention-m8q1dgfp.js} +3 -3
  186. package/dist/chunks/{instruction-discovery-r3q6pmcz.js → file-retention-m91gvp7t.js} +6 -6
  187. package/dist/chunks/{instruction-discovery-m9w0rfyh.js → file-retention-m9w0rfyh.js} +1 -1
  188. package/dist/chunks/{instruction-discovery-xmqf1fmd.js → file-retention-mcp2qyd7.js} +17 -17
  189. package/dist/chunks/{instruction-discovery-y8vrn31s.js → file-retention-md08r0z8.js} +24 -24
  190. package/dist/chunks/{instruction-discovery-cqchcp8x.js → file-retention-mm2pt0qe.js} +11 -11
  191. package/dist/chunks/{instruction-discovery-8b5rhhee.js → file-retention-mmsbfapg.js} +1 -1
  192. package/dist/chunks/{instruction-discovery-4j5x2wz8.js → file-retention-msa89gt8.js} +14 -14
  193. package/dist/chunks/{instruction-discovery-nj2dn555.js → file-retention-mvsrg00e.js} +19 -19
  194. package/dist/chunks/{instruction-discovery-e8529jhe.js → file-retention-mx7expm3.js} +14 -14
  195. package/dist/chunks/{instruction-discovery-6nsn052z.js → file-retention-my8b67cc.js} +11 -11
  196. package/dist/chunks/{instruction-discovery-xrx0vcgk.js → file-retention-n7chjqa1.js} +15 -15
  197. package/dist/chunks/{instruction-discovery-8stx3s0r.js → file-retention-nb1wrey8.js} +7 -7
  198. package/dist/chunks/{instruction-discovery-9w7chaj1.js → file-retention-nge58cm1.js} +13 -13
  199. package/dist/chunks/{instruction-discovery-akv18b54.js → file-retention-nqj1gben.js} +20 -20
  200. package/dist/chunks/file-retention-nxaxcbj9.js +26 -0
  201. package/dist/chunks/{instruction-discovery-9av7h1n2.js → file-retention-pdetw647.js} +11 -11
  202. package/dist/chunks/{instruction-discovery-gh15yn4h.js → file-retention-pgdn5y71.js} +16 -16
  203. package/dist/chunks/{instruction-discovery-t2vr066h.js → file-retention-phxa5z0e.js} +7 -7
  204. package/dist/chunks/{instruction-discovery-pjvnvgmy.js → file-retention-pjvnvgmy.js} +1 -1
  205. package/dist/chunks/{instruction-discovery-pknna89w.js → file-retention-pknna89w.js} +1 -1
  206. package/dist/chunks/{instruction-discovery-d858xzj7.js → file-retention-pmwpe40e.js} +4 -4
  207. package/dist/chunks/{instruction-discovery-xvg5nvxt.js → file-retention-pq6k9xjj.js} +4 -4
  208. package/dist/chunks/{instruction-discovery-0ged7w62.js → file-retention-pr54a62y.js} +24 -24
  209. package/dist/chunks/{instruction-discovery-3w5fmr99.js → file-retention-pyv0edze.js} +8 -5
  210. package/dist/chunks/{instruction-discovery-2wdw534y.js → file-retention-q3qqjc4j.js} +8 -8
  211. package/dist/chunks/{instruction-discovery-686tktas.js → file-retention-q4dve0yc.js} +9 -9
  212. package/dist/chunks/{instruction-discovery-9bvphjpv.js → file-retention-qf6etae5.js} +8 -8
  213. package/dist/chunks/{instruction-discovery-m8w6th39.js → file-retention-qmqgtz8f.js} +9 -9
  214. package/dist/chunks/{instruction-discovery-qnc92qwc.js → file-retention-qnc92qwc.js} +1 -1
  215. package/dist/chunks/{instruction-discovery-qsdy395h.js → file-retention-qsdy395h.js} +1 -1
  216. package/dist/chunks/{instruction-discovery-65b4pyhp.js → file-retention-qsxkee9e.js} +14 -14
  217. package/dist/chunks/{instruction-discovery-qkmtz0t6.js → file-retention-qthw6f29.js} +11 -11
  218. package/dist/chunks/{instruction-discovery-n2rqx0tz.js → file-retention-r2ktrraj.js} +19 -19
  219. package/dist/chunks/{instruction-discovery-73tb2d7t.js → file-retention-r2z489rp.js} +4 -4
  220. package/dist/chunks/{instruction-discovery-rdw6cm16.js → file-retention-rdw6cm16.js} +1 -1
  221. package/dist/chunks/{instruction-discovery-qq85v7zp.js → file-retention-rr9cc36v.js} +9 -9
  222. package/dist/chunks/{instruction-discovery-xk4rh883.js → file-retention-rtg4wmet.js} +2 -2
  223. package/dist/chunks/{instruction-discovery-t5yd8hbr.js → file-retention-ryndta0d.js} +9 -9
  224. package/dist/chunks/{instruction-discovery-1k2smawz.js → file-retention-s4wwhvjv.js} +13 -13
  225. package/dist/chunks/{instruction-discovery-s8d7rejh.js → file-retention-s8d7rejh.js} +1 -1
  226. package/dist/chunks/{instruction-discovery-6qskr82s.js → file-retention-sd2fp9ec.js} +13 -13
  227. package/dist/chunks/{instruction-discovery-w7vtn5sw.js → file-retention-sf9ed94r.js} +2 -2
  228. package/dist/chunks/{instruction-discovery-4rkyb0s7.js → file-retention-sfczn6wa.js} +8 -8
  229. package/dist/chunks/{instruction-discovery-kyktj0vd.js → file-retention-spqcpneg.js} +6 -6
  230. package/dist/chunks/{instruction-discovery-p2783dtm.js → file-retention-sww10ew7.js} +13 -13
  231. package/dist/chunks/{instruction-discovery-34qpsr95.js → file-retention-t171g2rj.js} +8 -8
  232. package/dist/chunks/{instruction-discovery-t323t0gb.js → file-retention-t3kgvaqg.js} +2 -2
  233. package/dist/chunks/{instruction-discovery-zpj5ct35.js → file-retention-t5ae1t4b.js} +25 -25
  234. package/dist/chunks/{instruction-discovery-yhq47pcp.js → file-retention-t8g2rvm9.js} +7 -7
  235. package/dist/chunks/{instruction-discovery-tazgh4e4.js → file-retention-tazgh4e4.js} +1 -1
  236. package/dist/chunks/{instruction-discovery-tcezcvh9.js → file-retention-tcezcvh9.js} +1 -1
  237. package/dist/chunks/{instruction-discovery-tdstcens.js → file-retention-tdstcens.js} +1 -1
  238. package/dist/chunks/{instruction-discovery-feetnjr6.js → file-retention-thygzj8s.js} +27 -27
  239. package/dist/chunks/{instruction-discovery-4xpgt2w9.js → file-retention-tk14y25j.js} +5 -5
  240. package/dist/chunks/{instruction-discovery-etq0c3wd.js → file-retention-tyytaxap.js} +2 -2
  241. package/dist/chunks/{instruction-discovery-aaet6srn.js → file-retention-v7p4zvkq.js} +9 -9
  242. package/dist/chunks/{instruction-discovery-7ryxxm4b.js → file-retention-v7rdbjkx.js} +25 -25
  243. package/dist/chunks/{instruction-discovery-2as4tx64.js → file-retention-v97fnpgb.js} +1 -1
  244. package/dist/chunks/{instruction-discovery-ze5v0a14.js → file-retention-vbrars45.js} +9 -9
  245. package/dist/chunks/{instruction-discovery-s69ykywc.js → file-retention-vcn79w6t.js} +3 -3
  246. package/dist/chunks/{instruction-discovery-x4mjcayf.js → file-retention-vczmck8z.js} +13 -13
  247. package/dist/chunks/{instruction-discovery-veqvce7d.js → file-retention-veqvce7d.js} +1 -1
  248. package/dist/chunks/{instruction-discovery-89bb6baa.js → file-retention-vwpcpzep.js} +8 -8
  249. package/dist/chunks/{instruction-discovery-x34zhfjm.js → file-retention-vytaj533.js} +26 -26
  250. package/dist/chunks/{instruction-discovery-vzs5sf6e.js → file-retention-vzs5sf6e.js} +1 -1
  251. package/dist/chunks/{instruction-discovery-w1eejvng.js → file-retention-w1eejvng.js} +1 -1
  252. package/dist/chunks/{instruction-discovery-w3wsvvr9.js → file-retention-w3wsvvr9.js} +1 -1
  253. package/dist/chunks/{instruction-discovery-68vyckmv.js → file-retention-waztmdc6.js} +20 -20
  254. package/dist/chunks/{instruction-discovery-6ws5tars.js → file-retention-wcdwbs26.js} +18 -18
  255. package/dist/chunks/{instruction-discovery-wd87259q.js → file-retention-wd87259q.js} +1 -1
  256. package/dist/chunks/{instruction-discovery-z8bhx33c.js → file-retention-wsq1jxfe.js} +34 -34
  257. package/dist/chunks/{instruction-discovery-6caak1jq.js → file-retention-wx15gkxh.js} +16 -16
  258. package/dist/chunks/{instruction-discovery-cfxa9as9.js → file-retention-wy0w7taj.js} +9 -9
  259. package/dist/chunks/{instruction-discovery-rp2ppsw4.js → file-retention-x0q3bb0r.js} +26 -26
  260. package/dist/chunks/{instruction-discovery-0m8hv4nh.js → file-retention-x47gwdav.js} +11 -11
  261. package/dist/chunks/{instruction-discovery-ycjk77ae.js → file-retention-x799tqys.js} +15 -15
  262. package/dist/chunks/{instruction-discovery-eb5z6jr7.js → file-retention-xc914k0j.js} +24 -24
  263. package/dist/chunks/{instruction-discovery-a1ct5nee.js → file-retention-xdqkszf6.js} +16 -16
  264. package/dist/chunks/{instruction-discovery-d2q60j7m.js → file-retention-xhr4eg5m.js} +12 -12
  265. package/dist/chunks/{instruction-discovery-tm3atzj4.js → file-retention-xhvwjgs8.js} +42 -42
  266. package/dist/chunks/{instruction-discovery-wjz06c0c.js → file-retention-xnyn0jx3.js} +14 -14
  267. package/dist/chunks/{instruction-discovery-857eprax.js → file-retention-xrmap3r6.js} +7 -9
  268. package/dist/chunks/{instruction-discovery-m59p890d.js → file-retention-xwfqprxb.js} +7 -7
  269. package/dist/chunks/{instruction-discovery-avcq3x7p.js → file-retention-xxy9zgkz.js} +20 -20
  270. package/dist/chunks/{instruction-discovery-y1fvbwt7.js → file-retention-y1fvbwt7.js} +1 -1
  271. package/dist/chunks/{instruction-discovery-g4f17vch.js → file-retention-y497myth.js} +1 -1
  272. package/dist/chunks/{instruction-discovery-5th9bftb.js → file-retention-y5y4kes7.js} +58 -37
  273. package/dist/chunks/{instruction-discovery-ykqrqqm6.js → file-retention-y6nv3cb4.js} +24 -24
  274. package/dist/chunks/{instruction-discovery-ncjwbx8b.js → file-retention-ycd7fagt.js} +24 -24
  275. package/dist/chunks/{instruction-discovery-aecw5y3e.js → file-retention-ymh22vxa.js} +9 -9
  276. package/dist/chunks/{instruction-discovery-1tbv6vyw.js → file-retention-ynmknp8q.js} +19 -21
  277. package/dist/chunks/{instruction-discovery-1acjjqhc.js → file-retention-yp2x3t23.js} +4 -4
  278. package/dist/chunks/{instruction-discovery-h4wwbfpj.js → file-retention-ytt0bby0.js} +10 -10
  279. package/dist/chunks/{instruction-discovery-z0bkrqjs.js → file-retention-z0bkrqjs.js} +1 -1
  280. package/dist/chunks/{instruction-discovery-zhz6d7qj.js → file-retention-z3db4tjk.js} +21 -21
  281. package/dist/chunks/{instruction-discovery-1swkvkvd.js → file-retention-z71twgyp.js} +1 -1
  282. package/dist/chunks/{instruction-discovery-fd3yny95.js → file-retention-z7qtbqvc.js} +19 -19
  283. package/dist/chunks/{instruction-discovery-rz911c4y.js → file-retention-zfs8ae4p.js} +4 -4
  284. package/dist/chunks/{instruction-discovery-zr2ceqn5.js → file-retention-zr2ceqn5.js} +1 -1
  285. package/dist/chunks/{instruction-discovery-h0xvqqwh.js → file-retention-zrnmd36g.js} +6 -6
  286. package/dist/chunks/{instruction-discovery-zxq2ej10.js → file-retention-zxq2ej10.js} +1 -1
  287. package/dist/codemode/catalog.js +1 -1
  288. package/dist/codemode/instructions.js +11 -11
  289. package/dist/codemode/tool.js +3 -3
  290. package/dist/codemode/web.js +1 -1
  291. package/dist/command.js +78 -78
  292. package/dist/config/discovery.js +83 -83
  293. package/dist/config/markdown.js +1 -1
  294. package/dist/config/normalize.js +100 -100
  295. package/dist/config/plugin/agent.js +117 -117
  296. package/dist/config/plugin/command.js +206 -206
  297. package/dist/config/plugin/compaction.js +155 -155
  298. package/dist/config/plugin/compatibility.js +135 -135
  299. package/dist/config/plugin/entry-observer.js +1 -1
  300. package/dist/config/plugin/formatter.js +118 -118
  301. package/dist/config/plugin/image.js +117 -117
  302. package/dist/config/plugin/instruction.js +91 -91
  303. package/dist/config/plugin/location-watcher.js +119 -119
  304. package/dist/config/plugin/mcp.js +124 -124
  305. package/dist/config/plugin/policy.js +118 -118
  306. package/dist/config/plugin/provider.js +117 -117
  307. package/dist/config/plugin/reference.js +119 -119
  308. package/dist/config/plugin/shell.js +119 -119
  309. package/dist/config/plugin/skill-file.js +103 -103
  310. package/dist/config/plugin/skill.js +138 -138
  311. package/dist/config/plugin/snapshot.js +117 -117
  312. package/dist/config/plugin/source.js +120 -120
  313. package/dist/config/plugin/tool-output.js +118 -118
  314. package/dist/config/plugin/websearch.js +118 -118
  315. package/dist/config/plugin/worktree.js +119 -119
  316. package/dist/config/variable.js +3 -3
  317. package/dist/config/watch.js +1 -1
  318. package/dist/config.js +122 -122
  319. package/dist/credential/sql.js +2 -2
  320. package/dist/credential.js +74 -74
  321. package/dist/database/database.js +67 -67
  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/20260910120000_clear_v1_session_permission.js +1 -1
  385. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  386. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  387. package/dist/database/migration.gen.js +50 -50
  388. package/dist/database/migration.js +52 -52
  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 +4 -4
  393. package/dist/database/sqlite.js +1 -1
  394. package/dist/database/sqlite.node.js +4 -4
  395. package/dist/database/sqlite.workerd.js +4 -4
  396. package/dist/database/v1-migration.bun.js +77 -77
  397. package/dist/database/v1-migration.js +1 -1
  398. package/dist/effect/app-node-builder.js +366 -366
  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 +94 -94
  404. package/dist/environment/exec-defaults.js +2 -2
  405. package/dist/environment/files.js +3 -3
  406. package/dist/environment/index.js +98 -98
  407. package/dist/environment/local.js +2 -2
  408. package/dist/environment/memory.js +2 -2
  409. package/dist/environment/unavailable.js +2 -2
  410. package/dist/event/sql.js +1 -1
  411. package/dist/event-logger.js +71 -71
  412. package/dist/file-access.js +105 -105
  413. package/dist/file-mutation.js +95 -95
  414. package/dist/file-retention.js +1 -1
  415. package/dist/filesystem/fff.bun.js +2 -2
  416. package/dist/filesystem/fff.js +1 -1
  417. package/dist/filesystem/fff.node.js +2 -2
  418. package/dist/filesystem/fff.workerd.js +2 -2
  419. package/dist/filesystem/location-watcher-policy.js +6 -6
  420. package/dist/filesystem/location-watcher.js +221 -221
  421. package/dist/filesystem/protected.js +1 -1
  422. package/dist/filesystem/search.js +104 -104
  423. package/dist/filesystem/watcher-binding.js +3 -3
  424. package/dist/filesystem/watcher.js +15 -15
  425. package/dist/filesystem.js +103 -103
  426. package/dist/form.js +71 -71
  427. package/dist/formatter/builtins.js +4 -4
  428. package/dist/formatter.js +88 -88
  429. package/dist/generate.js +104 -104
  430. package/dist/git.js +6 -6
  431. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  432. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  433. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  434. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  435. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  436. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  437. package/dist/github-copilot/copilot-provider.js +17 -17
  438. package/dist/github-copilot/models.js +100 -100
  439. package/dist/github-copilot/openai-compatible-error.js +1 -1
  440. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  441. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  442. package/dist/github-copilot/responses/openai-error.js +1 -1
  443. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  444. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  445. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  446. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  447. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  448. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  449. package/dist/github-copilot/responses/tool/web-search.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 +357 -357
  454. package/dist/instruction-discovery.js +86 -86
  455. package/dist/instructions/builtins.js +88 -88
  456. package/dist/instructions/index.js +1 -1
  457. package/dist/integration/connection.js +1 -1
  458. package/dist/integration.js +78 -78
  459. package/dist/job.js +77 -77
  460. package/dist/kv/sql.js +2 -2
  461. package/dist/kv.js +74 -74
  462. package/dist/location-activity.js +132 -132
  463. package/dist/location-lifecycle.js +104 -104
  464. package/dist/location-service-map.js +87 -87
  465. package/dist/location-services.js +354 -354
  466. package/dist/location.js +82 -82
  467. package/dist/managed-policy.js +8 -8
  468. package/dist/mcp/client.js +92 -92
  469. package/dist/mcp/index.js +98 -98
  470. package/dist/mcp/instructions.js +124 -124
  471. package/dist/mcp/oauth.js +76 -76
  472. package/dist/mcp/stdio.js +91 -91
  473. package/dist/mime.js +1 -1
  474. package/dist/modal/models.js +100 -100
  475. package/dist/model-resolver.js +99 -99
  476. package/dist/model.js +97 -97
  477. package/dist/models-dev.js +106 -106
  478. package/dist/oauth/page.js +1 -1
  479. package/dist/permission/saved.js +81 -81
  480. package/dist/permission/sql.js +5 -5
  481. package/dist/permission.js +114 -114
  482. package/dist/persistent-pty/binary.bun.js +1 -1
  483. package/dist/persistent-pty/daemon.js +1 -1
  484. package/dist/persistent-pty/index.js +87 -87
  485. package/dist/persistent-pty/pty-binding.js +1 -1
  486. package/dist/persistent-pty.js +76 -76
  487. package/dist/plugin/agent.js +73 -73
  488. package/dist/plugin/command.js +101 -101
  489. package/dist/plugin/hooks.js +5 -5
  490. package/dist/plugin/host.js +212 -212
  491. package/dist/plugin/identity.js +3 -3
  492. package/dist/plugin/instance.js +5 -5
  493. package/dist/plugin/internal.js +329 -329
  494. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  495. package/dist/plugin/models-dev.js +97 -97
  496. package/dist/plugin/module.js +118 -118
  497. package/dist/plugin/optimize.js +4 -4
  498. package/dist/plugin/plan.js +103 -103
  499. package/dist/plugin/promise.js +1 -1
  500. package/dist/plugin/provider/amazon-bedrock.js +91 -91
  501. package/dist/plugin/provider/azure.js +116 -116
  502. package/dist/plugin/provider/cerebras.js +1 -1
  503. package/dist/plugin/provider/chatgpt.js +95 -95
  504. package/dist/plugin/provider/cloudflare-ai-gateway.js +114 -114
  505. package/dist/plugin/provider/cloudflare-workers-ai.js +115 -115
  506. package/dist/plugin/provider/cohere.js +2 -2
  507. package/dist/plugin/provider/configured.js +113 -113
  508. package/dist/plugin/provider/databricks.js +1 -1
  509. package/dist/plugin/provider/digitalocean.js +94 -94
  510. package/dist/plugin/provider/dynamic.js +2 -2
  511. package/dist/plugin/provider/factory.js +1 -1
  512. package/dist/plugin/provider/github-copilot.js +96 -96
  513. package/dist/plugin/provider/gitlab.js +94 -94
  514. package/dist/plugin/provider/google-vertex.js +114 -114
  515. package/dist/plugin/provider/kilo.js +1 -1
  516. package/dist/plugin/provider/llmgateway.js +79 -79
  517. package/dist/plugin/provider/lmstudio.js +117 -117
  518. package/dist/plugin/provider/local.js +114 -114
  519. package/dist/plugin/provider/modal.js +93 -93
  520. package/dist/plugin/provider/neon.js +1 -1
  521. package/dist/plugin/provider/nvidia.js +1 -1
  522. package/dist/plugin/provider/ollama.js +117 -117
  523. package/dist/plugin/provider/openai.js +96 -96
  524. package/dist/plugin/provider/opencode.js +98 -98
  525. package/dist/plugin/provider/openrouter.js +92 -92
  526. package/dist/plugin/provider/perplexity.js +2 -2
  527. package/dist/plugin/provider/poe.js +80 -80
  528. package/dist/plugin/provider/prompt-cache-key.js +91 -91
  529. package/dist/plugin/provider/sap-ai-core.js +92 -92
  530. package/dist/plugin/provider/sdk-factory.js +1 -1
  531. package/dist/plugin/provider/snowflake-cortex.js +116 -116
  532. package/dist/plugin/provider/vercel.js +91 -91
  533. package/dist/plugin/provider/vllm.js +117 -117
  534. package/dist/plugin/provider/xai.js +92 -92
  535. package/dist/plugin/provider/zenmux.js +1 -1
  536. package/dist/plugin/provider.js +159 -159
  537. package/dist/plugin/sdk.js +77 -77
  538. package/dist/plugin/service.js +3 -3
  539. package/dist/plugin/skill.js +133 -133
  540. package/dist/plugin/source-directory.js +1 -1
  541. package/dist/plugin/supervisor.js +348 -348
  542. package/dist/plugin/tool-input-repair.js +4 -4
  543. package/dist/plugin/update.js +4 -4
  544. package/dist/plugin/vcs/git.js +87 -87
  545. package/dist/plugin/vcs/hg.js +87 -87
  546. package/dist/plugin/verbosity.js +94 -94
  547. package/dist/plugin/warming.js +115 -115
  548. package/dist/plugin/websearch/exa.js +7 -7
  549. package/dist/plugin/websearch/firecrawl.js +8 -8
  550. package/dist/plugin/websearch/index.js +9 -9
  551. package/dist/plugin/websearch/mcp.js +2 -2
  552. package/dist/plugin/websearch/parallel.js +6 -6
  553. package/dist/plugin/websearch/tavily.js +6 -6
  554. package/dist/plugin/websearch/tinyfish.js +8 -8
  555. package/dist/plugin.js +215 -215
  556. package/dist/project/schema.js +2 -2
  557. package/dist/project/sql.js +4 -4
  558. package/dist/project.js +81 -81
  559. package/dist/provider.js +96 -96
  560. package/dist/pty/protocol.js +1 -1
  561. package/dist/pty/ticket.js +1 -1
  562. package/dist/pty.js +92 -92
  563. package/dist/reference/instructions.js +90 -90
  564. package/dist/reference.js +92 -92
  565. package/dist/repository-cache.js +82 -82
  566. package/dist/repository.js +1 -1
  567. package/dist/ripgrep/binary.js +2 -2
  568. package/dist/ripgrep.js +96 -96
  569. package/dist/rpc.js +87 -87
  570. package/dist/schema.js +1 -1
  571. package/dist/session/affinity.js +3 -3
  572. package/dist/session/command.js +75 -75
  573. package/dist/session/compaction.js +134 -134
  574. package/dist/session/context.js +152 -152
  575. package/dist/session/diff.js +89 -89
  576. package/dist/session/environment.js +5 -5
  577. package/dist/session/error.js +5 -5
  578. package/dist/session/event.js +1 -1
  579. package/dist/session/execution/restart.js +215 -215
  580. package/dist/session/execution.js +126 -126
  581. package/dist/session/generate.js +153 -153
  582. package/dist/session/history.js +15 -15
  583. package/dist/session/inbox.js +85 -85
  584. package/dist/session/info.js +3 -3
  585. package/dist/session/instruction-entry.js +80 -80
  586. package/dist/session/instruction-state.js +8 -8
  587. package/dist/session/instructions.js +98 -98
  588. package/dist/session/message-updater.js +4 -4
  589. package/dist/session/message.js +1 -1
  590. package/dist/session/model-request.js +119 -119
  591. package/dist/session/model-transport.js +7 -7
  592. package/dist/session/move.js +130 -130
  593. package/dist/session/projector.js +87 -87
  594. package/dist/session/prompt.js +106 -106
  595. package/dist/session/provider-context.js +3 -3
  596. package/dist/session/revert.js +91 -91
  597. package/dist/session/run-coordinator.js +3 -3
  598. package/dist/session/runner/index.js +3 -3
  599. package/dist/session/runner/llm.js +225 -225
  600. package/dist/session/runner/max-steps.js +1 -1
  601. package/dist/session/runner/model.js +99 -99
  602. package/dist/session/runner/publish-llm-event.js +114 -114
  603. package/dist/session/runner/retry.js +4 -4
  604. package/dist/session/runner/step.js +126 -126
  605. package/dist/session/runner/to-llm-message.js +2 -2
  606. package/dist/session/schema.js +5 -5
  607. package/dist/session/session.js +163 -163
  608. package/dist/session/shell.js +131 -131
  609. package/dist/session/skill.js +106 -106
  610. package/dist/session/sql.js +5 -5
  611. package/dist/session/stats.js +74 -74
  612. package/dist/session/store.js +86 -86
  613. package/dist/session/subagent-completion.js +1 -1
  614. package/dist/session/subagent-job.js +206 -206
  615. package/dist/session/system-prompt.js +5 -5
  616. package/dist/session/title.js +158 -158
  617. package/dist/session/to-session-error.js +112 -112
  618. package/dist/session/transfer.js +208 -208
  619. package/dist/session/usage.js +1 -1
  620. package/dist/session.js +210 -210
  621. package/dist/shell/parse.js +6 -6
  622. package/dist/shell/result.js +1 -1
  623. package/dist/shell/scan.js +1 -1
  624. package/dist/shell/select.js +13 -13
  625. package/dist/shell.js +131 -131
  626. package/dist/skill/discovery.js +6 -6
  627. package/dist/skill/instructions.js +108 -108
  628. package/dist/skill.js +113 -113
  629. package/dist/snapshot.js +94 -94
  630. package/dist/state.js +1 -1
  631. package/dist/tool/html-markdown.js +1 -1
  632. package/dist/tool/http-body.js +1 -1
  633. package/dist/tool/mcp.js +121 -121
  634. package/dist/tool/plugin/edit.js +121 -121
  635. package/dist/tool/plugin/file-diff.js +1 -1
  636. package/dist/tool/plugin/glob.js +125 -125
  637. package/dist/tool/plugin/grep.js +125 -125
  638. package/dist/tool/plugin/mcp-resource.js +118 -118
  639. package/dist/tool/plugin/opencode.js +110 -110
  640. package/dist/tool/plugin/patch.js +123 -123
  641. package/dist/tool/plugin/question.js +104 -104
  642. package/dist/tool/plugin/read.js +126 -126
  643. package/dist/tool/plugin/shell.js +211 -211
  644. package/dist/tool/plugin/skill.js +114 -114
  645. package/dist/tool/plugin/subagent.js +213 -213
  646. package/dist/tool/plugin/webfetch.js +111 -111
  647. package/dist/tool/plugin/websearch.js +115 -115
  648. package/dist/tool/plugin/write.js +123 -123
  649. package/dist/tool/read-filesystem.js +101 -101
  650. package/dist/tool/runtime.js +1 -1
  651. package/dist/tool-output.js +7 -7
  652. package/dist/tool.js +14 -14
  653. package/dist/types/bus.d.ts +2 -2
  654. package/dist/types/database/database.d.ts +1 -1
  655. package/dist/types/database/drizzle/effect-sqlite/driver.d.ts +1 -1
  656. package/dist/types/database/drizzle/effect-sqlite/session.d.ts +2 -2
  657. package/dist/types/database/drizzle/sqlite-core/effect/db.d.ts +1 -1
  658. package/dist/types/database/drizzle/sqlite-core/effect/session.d.ts +1 -1
  659. package/dist/types/database/sqlite.bun.d.ts +1 -1
  660. package/dist/types/database/sqlite.d.ts +4 -4
  661. package/dist/types/database/sqlite.node.d.ts +1 -1
  662. package/dist/types/database/sqlite.workerd.d.ts +1 -1
  663. package/dist/types/effect/app-node-platform.d.ts +1 -1
  664. package/dist/types/effect/websocket-constructor.d.ts +1 -1
  665. package/dist/types/environment/driver.d.ts +1 -1
  666. package/dist/types/environment/environment.d.ts +1 -1
  667. package/dist/types/environment/exec-defaults.d.ts +1 -1
  668. package/dist/types/environment/local.d.ts +1 -1
  669. package/dist/types/environment/unavailable.d.ts +7 -7
  670. package/dist/types/models-dev.d.ts +1 -1
  671. package/dist/types/plugin/internal.d.ts +1 -1
  672. package/dist/types/plugin/provider/azure.d.ts +1 -1
  673. package/dist/types/plugin/provider/chatgpt.d.ts +2 -2
  674. package/dist/types/plugin/provider/digitalocean.d.ts +1 -1
  675. package/dist/types/plugin/provider/gitlab.d.ts +1 -1
  676. package/dist/types/plugin/provider/lmstudio.d.ts +2 -2
  677. package/dist/types/plugin/provider/local.d.ts +4 -4
  678. package/dist/types/plugin/provider/ollama.d.ts +2 -2
  679. package/dist/types/plugin/provider/opencode.d.ts +1 -1
  680. package/dist/types/plugin/provider/poe.d.ts +1 -1
  681. package/dist/types/plugin/provider/snowflake-cortex.d.ts +1 -1
  682. package/dist/types/plugin/provider/vllm.d.ts +2 -2
  683. package/dist/types/plugin/websearch/exa.d.ts +1 -1
  684. package/dist/types/plugin/websearch/firecrawl.d.ts +1 -1
  685. package/dist/types/plugin/websearch/index.d.ts +1 -1
  686. package/dist/types/plugin/websearch/mcp.d.ts +2 -2
  687. package/dist/types/plugin/websearch/parallel.d.ts +1 -1
  688. package/dist/types/plugin/websearch/tavily.d.ts +1 -1
  689. package/dist/types/plugin/websearch/tinyfish.d.ts +1 -1
  690. package/dist/types/session/diff.d.ts +1 -1
  691. package/dist/types/session/history.d.ts +5 -5
  692. package/dist/types/session/inbox.d.ts +10 -10
  693. package/dist/types/session/instruction-entry.d.ts +2 -2
  694. package/dist/types/session/instruction-state.d.ts +10 -10
  695. package/dist/types/session/model-transport.d.ts +1 -1
  696. package/dist/types/tool/http-body.d.ts +2 -2
  697. package/dist/types/tool/plugin/webfetch.d.ts +1 -1
  698. package/dist/types/v1/config/agent.d.ts +6 -66
  699. package/dist/types/v1/config/migrate.d.ts +1 -1
  700. package/dist/types/v1/config/permission.d.ts +5 -53
  701. package/dist/types/wellknown.d.ts +1 -1
  702. package/dist/util/error-summary.js +1 -1
  703. package/dist/util/error.js +1 -1
  704. package/dist/util/git-executable.js +2 -2
  705. package/dist/util/iife.js +1 -1
  706. package/dist/util/lazy.js +1 -1
  707. package/dist/util/slug.js +1 -1
  708. package/dist/util/token.js +1 -1
  709. package/dist/util/which.js +1 -1
  710. package/dist/util/wildcard.js +1 -1
  711. package/dist/v1/config/agent.js +7 -7
  712. package/dist/v1/config/command.js +3 -3
  713. package/dist/v1/config/error.js +4 -4
  714. package/dist/v1/config/mcp.js +4 -4
  715. package/dist/v1/config/migrate.js +93 -93
  716. package/dist/v1/config/permission.js +9 -7
  717. package/dist/v1/config/plugin.js +3 -3
  718. package/dist/v1/config/provider-options.js +1 -1
  719. package/dist/v1/config/provider.js +4 -4
  720. package/dist/variant.js +92 -92
  721. package/dist/vcs/patch.js +1 -1
  722. package/dist/vcs.js +90 -90
  723. package/dist/websearch.js +85 -85
  724. package/dist/wellknown/plugin.js +77 -77
  725. package/dist/wellknown.js +82 -82
  726. package/dist/workspace/driver.js +5 -5
  727. package/dist/workspace/sql.js +1 -1
  728. package/dist/workspace.js +85 -83
  729. package/dist/worktree/directory.js +2 -2
  730. package/dist/worktree/git.js +8 -8
  731. package/dist/worktree/sql.js +5 -5
  732. package/dist/worktree/strategies.js +90 -90
  733. package/dist/worktree.js +95 -95
  734. package/package.json +13 -12
  735. package/dist/chunks/instruction-discovery-4n467418.js +0 -26
  736. package/dist/chunks/instruction-discovery-50mzsvk4.js +0 -41
  737. package/dist/chunks/instruction-discovery-gvycgm0h.js +0 -253
  738. package/dist/chunks/instruction-discovery-jqh9b0xq.js +0 -18
  739. package/dist/chunks/instruction-discovery-nhyhg56g.js +0 -513
  740. /package/dist/chunks/{instruction-discovery-0qkdqm5v.js → file-retention-0qkdqm5v.js} +0 -0
  741. /package/dist/chunks/{instruction-discovery-0zkw76rk.js → file-retention-0zkw76rk.js} +0 -0
  742. /package/dist/chunks/{instruction-discovery-17cy0kzp.js → file-retention-17cy0kzp.js} +0 -0
  743. /package/dist/chunks/{instruction-discovery-1cnp2v09.js → file-retention-1cnp2v09.js} +0 -0
  744. /package/dist/chunks/{instruction-discovery-1kg9ymc8.js → file-retention-1kg9ymc8.js} +0 -0
  745. /package/dist/chunks/{instruction-discovery-24dcb14g.js → file-retention-24dcb14g.js} +0 -0
  746. /package/dist/chunks/{instruction-discovery-2710q6r3.js → file-retention-2710q6r3.js} +0 -0
  747. /package/dist/chunks/{instruction-discovery-2axfhc9x.js → file-retention-2axfhc9x.js} +0 -0
  748. /package/dist/chunks/{instruction-discovery-2c3vjs8z.js → file-retention-2c3vjs8z.js} +0 -0
  749. /package/dist/chunks/{instruction-discovery-34c7v6d4.js → file-retention-34c7v6d4.js} +0 -0
  750. /package/dist/chunks/{instruction-discovery-359p4xyc.js → file-retention-359p4xyc.js} +0 -0
  751. /package/dist/chunks/{instruction-discovery-3asan66x.js → file-retention-3asan66x.js} +0 -0
  752. /package/dist/chunks/{instruction-discovery-3t0ybcrp.js → file-retention-3t0ybcrp.js} +0 -0
  753. /package/dist/chunks/{instruction-discovery-3v8g72cx.js → file-retention-3v8g72cx.js} +0 -0
  754. /package/dist/chunks/{instruction-discovery-3wcehsnq.js → file-retention-3wcehsnq.js} +0 -0
  755. /package/dist/chunks/{instruction-discovery-43n2bw4t.js → file-retention-43n2bw4t.js} +0 -0
  756. /package/dist/chunks/{instruction-discovery-4knz6hnm.js → file-retention-4knz6hnm.js} +0 -0
  757. /package/dist/chunks/{instruction-discovery-4vcrnpx2.js → file-retention-4vcrnpx2.js} +0 -0
  758. /package/dist/chunks/{instruction-discovery-4y7fprxs.js → file-retention-4y7fprxs.js} +0 -0
  759. /package/dist/chunks/{instruction-discovery-53557ph1.js → file-retention-53557ph1.js} +0 -0
  760. /package/dist/chunks/{instruction-discovery-550bvhaj.js → file-retention-550bvhaj.js} +0 -0
  761. /package/dist/chunks/{instruction-discovery-6prwharc.js → file-retention-6prwharc.js} +0 -0
  762. /package/dist/chunks/{instruction-discovery-6q2bdcd1.js → file-retention-6q2bdcd1.js} +0 -0
  763. /package/dist/chunks/{instruction-discovery-7akdwqpd.js → file-retention-7akdwqpd.js} +0 -0
  764. /package/dist/chunks/{instruction-discovery-7m9af43g.js → file-retention-7m9af43g.js} +0 -0
  765. /package/dist/chunks/{instruction-discovery-822emrt2.js → file-retention-822emrt2.js} +0 -0
  766. /package/dist/chunks/{instruction-discovery-84wd9syh.js → file-retention-84wd9syh.js} +0 -0
  767. /package/dist/chunks/{instruction-discovery-88xbtdfr.js → file-retention-88xbtdfr.js} +0 -0
  768. /package/dist/chunks/{instruction-discovery-8n3pysct.js → file-retention-8n3pysct.js} +0 -0
  769. /package/dist/chunks/{instruction-discovery-8wj87zfr.js → file-retention-8wj87zfr.js} +0 -0
  770. /package/dist/chunks/{instruction-discovery-9a4afbnw.js → file-retention-9a4afbnw.js} +0 -0
  771. /package/dist/chunks/{instruction-discovery-9rqn6x4v.js → file-retention-9rqn6x4v.js} +0 -0
  772. /package/dist/chunks/{instruction-discovery-a6k6eb26.js → file-retention-a6k6eb26.js} +0 -0
  773. /package/dist/chunks/{instruction-discovery-af5trqkr.js → file-retention-af5trqkr.js} +0 -0
  774. /package/dist/chunks/{instruction-discovery-afrmfg78.js → file-retention-afrmfg78.js} +0 -0
  775. /package/dist/chunks/{instruction-discovery-aqzs7mqg.js → file-retention-aqzs7mqg.js} +0 -0
  776. /package/dist/chunks/{instruction-discovery-atq7p7m5.js → file-retention-atq7p7m5.js} +0 -0
  777. /package/dist/chunks/{instruction-discovery-bkyjaxrp.js → file-retention-bkyjaxrp.js} +0 -0
  778. /package/dist/chunks/{instruction-discovery-bmr6ed5q.js → file-retention-bmr6ed5q.js} +0 -0
  779. /package/dist/chunks/{instruction-discovery-bw78ga2c.js → file-retention-bw78ga2c.js} +0 -0
  780. /package/dist/chunks/{instruction-discovery-cf4snx6d.js → file-retention-cf4snx6d.js} +0 -0
  781. /package/dist/chunks/{instruction-discovery-cvy3z8tj.js → file-retention-cvy3z8tj.js} +0 -0
  782. /package/dist/chunks/{instruction-discovery-d9fn303g.js → file-retention-d9fn303g.js} +0 -0
  783. /package/dist/chunks/{instruction-discovery-d9jj8t3e.js → file-retention-d9jj8t3e.js} +0 -0
  784. /package/dist/chunks/{instruction-discovery-dajrwvna.js → file-retention-dajrwvna.js} +0 -0
  785. /package/dist/chunks/{instruction-discovery-dap0rakb.js → file-retention-dap0rakb.js} +0 -0
  786. /package/dist/chunks/{instruction-discovery-df08tz66.js → file-retention-df08tz66.js} +0 -0
  787. /package/dist/chunks/{instruction-discovery-dy18nga0.js → file-retention-dy18nga0.js} +0 -0
  788. /package/dist/chunks/{instruction-discovery-e5kj55wp.js → file-retention-e5kj55wp.js} +0 -0
  789. /package/dist/chunks/{instruction-discovery-e73j6tqm.js → file-retention-e73j6tqm.js} +0 -0
  790. /package/dist/chunks/{instruction-discovery-ec1grn59.js → file-retention-ec1grn59.js} +0 -0
  791. /package/dist/chunks/{instruction-discovery-eh3zwz77.js → file-retention-eh3zwz77.js} +0 -0
  792. /package/dist/chunks/{instruction-discovery-emrn6kk6.js → file-retention-emrn6kk6.js} +0 -0
  793. /package/dist/chunks/{instruction-discovery-f0mxakyp.js → file-retention-f0mxakyp.js} +0 -0
  794. /package/dist/chunks/{instruction-discovery-f6n9ztr4.js → file-retention-f6n9ztr4.js} +0 -0
  795. /package/dist/chunks/{instruction-discovery-faypxj3z.js → file-retention-faypxj3z.js} +0 -0
  796. /package/dist/chunks/{instruction-discovery-fd410y7t.js → file-retention-fd410y7t.js} +0 -0
  797. /package/dist/chunks/{instruction-discovery-fxgpk5d8.js → file-retention-fxgpk5d8.js} +0 -0
  798. /package/dist/chunks/{instruction-discovery-g4wezp1m.js → file-retention-g4wezp1m.js} +0 -0
  799. /package/dist/chunks/{instruction-discovery-g86h250q.js → file-retention-g86h250q.js} +0 -0
  800. /package/dist/chunks/{instruction-discovery-gebd4c9n.js → file-retention-gebd4c9n.js} +0 -0
  801. /package/dist/chunks/{instruction-discovery-gftt206x.js → file-retention-gftt206x.js} +0 -0
  802. /package/dist/chunks/{instruction-discovery-hk9envan.js → file-retention-hk9envan.js} +0 -0
  803. /package/dist/chunks/{instruction-discovery-j2ntwpah.js → file-retention-j2ntwpah.js} +0 -0
  804. /package/dist/chunks/{instruction-discovery-j5zkgpj8.js → file-retention-j5zkgpj8.js} +0 -0
  805. /package/dist/chunks/{instruction-discovery-jjkms2e6.js → file-retention-jjkms2e6.js} +0 -0
  806. /package/dist/chunks/{instruction-discovery-jr7sbwjy.js → file-retention-jr7sbwjy.js} +0 -0
  807. /package/dist/chunks/{instruction-discovery-jwfs4k6c.js → file-retention-jwfs4k6c.js} +0 -0
  808. /package/dist/chunks/{instruction-discovery-jzg6c2d5.js → file-retention-jzg6c2d5.js} +0 -0
  809. /package/dist/chunks/{instruction-discovery-mp448xyj.js → file-retention-mp448xyj.js} +0 -0
  810. /package/dist/chunks/{instruction-discovery-msx8hqn2.js → file-retention-msx8hqn2.js} +0 -0
  811. /package/dist/chunks/{instruction-discovery-n05xt0ee.js → file-retention-n05xt0ee.js} +0 -0
  812. /package/dist/chunks/{instruction-discovery-n3j8tn72.js → file-retention-n3j8tn72.js} +0 -0
  813. /package/dist/chunks/{instruction-discovery-njntx4h6.js → file-retention-njntx4h6.js} +0 -0
  814. /package/dist/chunks/{instruction-discovery-q3sfg36h.js → file-retention-q3sfg36h.js} +0 -0
  815. /package/dist/chunks/{instruction-discovery-q74kybfr.js → file-retention-q74kybfr.js} +0 -0
  816. /package/dist/chunks/{instruction-discovery-qaymkmh1.js → file-retention-qaymkmh1.js} +0 -0
  817. /package/dist/chunks/{instruction-discovery-qb87gjwd.js → file-retention-qb87gjwd.js} +0 -0
  818. /package/dist/chunks/{instruction-discovery-qfa1cgps.js → file-retention-qfa1cgps.js} +0 -0
  819. /package/dist/chunks/{instruction-discovery-qg3g05ea.js → file-retention-qg3g05ea.js} +0 -0
  820. /package/dist/chunks/{instruction-discovery-qrg20bc0.js → file-retention-qrg20bc0.js} +0 -0
  821. /package/dist/chunks/{instruction-discovery-rcb2kzg1.js → file-retention-rcb2kzg1.js} +0 -0
  822. /package/dist/chunks/{instruction-discovery-sdp7kfr6.js → file-retention-sdp7kfr6.js} +0 -0
  823. /package/dist/chunks/{instruction-discovery-ssg3fenm.js → file-retention-ssg3fenm.js} +0 -0
  824. /package/dist/chunks/{instruction-discovery-ve7vex1e.js → file-retention-ve7vex1e.js} +0 -0
  825. /package/dist/chunks/{instruction-discovery-w803qqfp.js → file-retention-w803qqfp.js} +0 -0
  826. /package/dist/chunks/{instruction-discovery-wc3fc9cn.js → file-retention-wc3fc9cn.js} +0 -0
  827. /package/dist/chunks/{instruction-discovery-wer8tq1h.js → file-retention-wer8tq1h.js} +0 -0
  828. /package/dist/chunks/{instruction-discovery-wtztk69x.js → file-retention-wtztk69x.js} +0 -0
  829. /package/dist/chunks/{instruction-discovery-x0ckcb58.js → file-retention-x0ckcb58.js} +0 -0
  830. /package/dist/chunks/{instruction-discovery-x61499pn.js → file-retention-x61499pn.js} +0 -0
  831. /package/dist/chunks/{instruction-discovery-y44na4kk.js → file-retention-y44na4kk.js} +0 -0
  832. /package/dist/chunks/{instruction-discovery-y8f7s663.js → file-retention-y8f7s663.js} +0 -0
  833. /package/dist/chunks/{instruction-discovery-ygaqb7jw.js → file-retention-ygaqb7jw.js} +0 -0
  834. /package/dist/chunks/{instruction-discovery-ym463w8f.js → file-retention-ym463w8f.js} +0 -0
  835. /package/dist/chunks/{instruction-discovery-z5v4ffb3.js → file-retention-z5v4ffb3.js} +0 -0
  836. /package/dist/chunks/{instruction-discovery-z9919s4g.js → file-retention-z9919s4g.js} +0 -0
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  Service84,
3
3
  node88
4
- } from "./instruction-discovery-17mpb7fd.js";
4
+ } from "./file-retention-m6y8pydv.js";
5
5
  import {
6
6
  Service78,
7
7
  node82
8
- } from "./instruction-discovery-w7vtn5sw.js";
8
+ } from "./file-retention-sf9ed94r.js";
9
9
  import {
10
- Service75,
10
+ Service63,
11
11
  login2,
12
- node79
13
- } from "./instruction-discovery-n2rqx0tz.js";
12
+ node66
13
+ } from "./file-retention-r2ktrraj.js";
14
14
  import {
15
15
  lazy2
16
- } from "./instruction-discovery-88xbtdfr.js";
16
+ } from "./file-retention-88xbtdfr.js";
17
17
  import {
18
18
  __export
19
- } from "./instruction-discovery-9rqn6x4v.js";
19
+ } from "./file-retention-9rqn6x4v.js";
20
20
 
21
21
  // src/pty.ts
22
22
  var exports_pty = {};
@@ -26,11 +26,11 @@ __export(exports_pty, {
26
26
  ExitedError: () => ExitedError2,
27
27
  ID: () => ID2,
28
28
  Info: () => Info2,
29
- NotFoundError: () => NotFoundError3,
29
+ NotFoundError: () => NotFoundError2,
30
30
  Pty: () => exports_pty,
31
- Service: () => Service21,
31
+ Service: () => Service16,
32
32
  UpdateInput: () => UpdateInput2,
33
- node: () => node23
33
+ node: () => node18
34
34
  });
35
35
  import { makeLocationNode } from "@opencode/util/effect/app-node";
36
36
  import { Context, Effect, Layer, Schema } from "effect";
@@ -44,7 +44,7 @@ var Info2 = Pty.Info;
44
44
  var CreateInput2 = Pty.CreateInput;
45
45
  var UpdateInput2 = Pty.UpdateInput;
46
46
 
47
- class NotFoundError3 extends Schema.TaggedError()("Pty.NotFoundError", {
47
+ class NotFoundError2 extends Schema.TaggedError()("Pty.NotFoundError", {
48
48
  ptyID: ID2
49
49
  }) {
50
50
  }
@@ -54,12 +54,12 @@ class ExitedError2 extends Schema.TaggedError()("Pty.ExitedError", {
54
54
  }) {
55
55
  }
56
56
 
57
- class Service21 extends Context.Service()("@opencode/Pty") {
57
+ class Service16 extends Context.Service()("@opencode/Pty") {
58
58
  }
59
- var layer = Layer.effect(Service21, Effect.gen(function* () {
59
+ var layer = Layer.effect(Service16, Effect.gen(function* () {
60
60
  const bus = yield* Service84;
61
61
  const location = yield* Service78;
62
- const shell = yield* Service75;
62
+ const shell = yield* Service63;
63
63
  const context = yield* Effect.context();
64
64
  const runFork = Effect.runForkWith(context);
65
65
  const sessions = new Map;
@@ -96,7 +96,7 @@ var layer = Layer.effect(Service21, Effect.gen(function* () {
96
96
  const requireSession = Effect.fn("Pty.requireSession")(function* (id) {
97
97
  const session = sessions.get(id);
98
98
  if (!session)
99
- return yield* new NotFoundError3({ ptyID: id });
99
+ return yield* new NotFoundError2({ ptyID: id });
100
100
  return session;
101
101
  });
102
102
  const removeSession = Effect.fnUntraced(function* (id) {
@@ -267,12 +267,12 @@ var layer = Layer.effect(Service21, Effect.gen(function* () {
267
267
  }
268
268
  };
269
269
  });
270
- return Service21.of({ list, get, create, update, remove, write, attach });
270
+ return Service16.of({ list, get, create, update, remove, write, attach });
271
271
  }));
272
- var node23 = makeLocationNode({
273
- service: Service21,
272
+ var node18 = makeLocationNode({
273
+ service: Service16,
274
274
  layer,
275
- deps: [node88, node82, node79]
275
+ deps: [node88, node82, node66]
276
276
  });
277
277
 
278
- export { ID2, Info2, CreateInput2, UpdateInput2, NotFoundError3, ExitedError2, Service21, node23, exports_pty, Event3 };
278
+ export { ID2, Info2, CreateInput2, UpdateInput2, NotFoundError2, ExitedError2, Service16, node18, exports_pty, Event3 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./instruction-discovery-9rqn6x4v.js";
3
+ } from "./file-retention-9rqn6x4v.js";
4
4
 
5
5
  // src/util/wildcard.ts
6
6
  var exports_wildcard = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ID12
3
- } from "./instruction-discovery-nj2dn555.js";
3
+ } from "./file-retention-mvsrg00e.js";
4
4
 
5
5
  // src/plugin/provider/openrouter.ts
6
6
  import { Effect } from "effect";
@@ -1,44 +1,50 @@
1
+ import {
2
+ Failed2
3
+ } from "./file-retention-hgz4x7wa.js";
4
+ import {
5
+ execDefaults2
6
+ } from "./file-retention-eej6y6fw.js";
1
7
  import {
2
8
  Service85,
3
9
  node89
4
- } from "./instruction-discovery-qkf3nnpx.js";
10
+ } from "./file-retention-gfe3ax2q.js";
5
11
  import {
6
12
  makeUnsafe2
7
- } from "./instruction-discovery-dpkg50ah.js";
13
+ } from "./file-retention-dpkg50ah.js";
8
14
  import {
9
15
  Binding2,
10
16
  RegistryService2,
11
- node62
12
- } from "./instruction-discovery-r3q6pmcz.js";
17
+ node69
18
+ } from "./file-retention-m91gvp7t.js";
13
19
  import {
14
20
  WorkspaceTable2
15
- } from "./instruction-discovery-faypxj3z.js";
21
+ } from "./file-retention-faypxj3z.js";
16
22
  import {
17
23
  __export
18
- } from "./instruction-discovery-9rqn6x4v.js";
24
+ } from "./file-retention-9rqn6x4v.js";
19
25
 
20
26
  // src/workspace.ts
21
27
  var exports_workspace = {};
22
28
  __export(exports_workspace, {
23
29
  CreateConflict: () => CreateConflict2,
24
- ID: () => ID6,
25
- Info: () => Info15,
26
- NotFound: () => NotFound3,
27
- Service: () => Service59,
30
+ ID: () => ID11,
31
+ Info: () => Info14,
32
+ NotFound: () => NotFound2,
33
+ Service: () => Service65,
28
34
  Workspace: () => exports_workspace,
29
- configured: () => configured7,
30
- node: () => node61
35
+ configured: () => configured8,
36
+ node: () => node68
31
37
  });
32
38
  import { Workspace } from "@opencode/schema/workspace";
33
39
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
34
40
  import { eq } from "drizzle-orm";
35
41
  import { Clock, Context, Deferred, Duration, Effect, Exit, FiberSet, Layer, Ref, Schedule, Schema, Scope } from "effect";
36
42
  import { systemError } from "effect/PlatformError";
37
- import { make } from "effect/unstable/process/ChildProcessSpawner";
38
- var ID6 = Workspace.ID;
43
+ import { make } from "effect/process/ChildProcessSpawner";
44
+ var ID11 = Workspace.ID;
39
45
 
40
- class Info15 extends Schema.Class("Workspace.Info")({
41
- id: ID6,
46
+ class Info14 extends Schema.Class("Workspace.Info")({
47
+ id: ID11,
42
48
  provider: Schema.String,
43
49
  binding: Binding2,
44
50
  createdAt: Schema.Number,
@@ -46,24 +52,24 @@ class Info15 extends Schema.Class("Workspace.Info")({
46
52
  }) {
47
53
  }
48
54
 
49
- class NotFound3 extends Schema.TaggedError()("Workspace.NotFound", { workspaceID: ID6 }) {
55
+ class NotFound2 extends Schema.TaggedError()("Workspace.NotFound", { workspaceID: ID11 }) {
50
56
  }
51
57
 
52
58
  class CreateConflict2 extends Schema.TaggedError()("Workspace.CreateConflict", {
53
- workspaceID: ID6,
59
+ workspaceID: ID11,
54
60
  provider: Schema.String,
55
61
  existingProvider: Schema.String
56
62
  }) {
57
63
  }
58
64
 
59
- class Service59 extends Context.Service()("@opencode/Workspace") {
65
+ class Service65 extends Context.Service()("@opencode/Workspace") {
60
66
  }
61
- var configured7 = (options = {}) => makeGlobalNode({
62
- service: Service59,
67
+ var configured8 = (options = {}) => makeGlobalNode({
68
+ service: Service65,
63
69
  layer: layer(options),
64
- deps: [node89, node62]
70
+ deps: [node89, node69]
65
71
  });
66
- var layer = (options) => Layer.effect(Service59, Effect.gen(function* () {
72
+ var layer = (options) => Layer.effect(Service65, Effect.gen(function* () {
67
73
  const db = (yield* Service85).db;
68
74
  const registry = yield* RegistryService2;
69
75
  const lifetime = yield* Scope.Scope;
@@ -76,11 +82,11 @@ var layer = (options) => Layer.effect(Service59, Effect.gen(function* () {
76
82
  const load = Effect.fn("Workspace.load")(function* (workspaceID) {
77
83
  const row = yield* find(workspaceID);
78
84
  if (!row)
79
- return yield* new NotFound3({ workspaceID });
85
+ return yield* new NotFound2({ workspaceID });
80
86
  return row;
81
87
  });
82
88
  const saveBinding = (workspaceID, binding) => db.update(WorkspaceTable2).set({ binding }).where(eq(WorkspaceTable2.id, workspaceID)).run().pipe(Effect.orDie);
83
- const info = (row, binding) => new Info15({
89
+ const info = (row, binding) => new Info14({
84
90
  id: row.id,
85
91
  provider: row.provider,
86
92
  binding,
@@ -123,6 +129,10 @@ var layer = (options) => Layer.effect(Service59, Effect.gen(function* () {
123
129
  const connection = {
124
130
  driver,
125
131
  environment,
132
+ files: {
133
+ ...execDefaults2(environment.spawner),
134
+ ...environment.overrides
135
+ },
126
136
  saveBinding: persistBinding,
127
137
  lastActivity: yield* Ref.make(now),
128
138
  active: yield* Ref.make(0),
@@ -154,9 +164,9 @@ var layer = (options) => Layer.effect(Service59, Effect.gen(function* () {
154
164
  yield* Scope.close(connection.scope, Exit.void);
155
165
  }).pipe(Effect.catchCause((cause) => Effect.logError("workspace idle suspension failed", cause)))), { concurrency: "unbounded", discard: true });
156
166
  }).pipe(Effect.repeat(Schedule.spaced(options.pollInterval ?? Duration.minutes(1))), Effect.forkScoped);
157
- return Service59.of({
167
+ return Service65.of({
158
168
  create: Effect.fn("Workspace.create")(function* (input) {
159
- const workspaceID = input.id ?? ID6.create();
169
+ const workspaceID = input.id ?? ID11.create();
160
170
  const existing = yield* db.select({ provider: WorkspaceTable2.provider }).from(WorkspaceTable2).where(eq(WorkspaceTable2.id, workspaceID)).get().pipe(Effect.orDie);
161
171
  if (existing) {
162
172
  if (existing.provider === input.provider)
@@ -183,28 +193,39 @@ var layer = (options) => Layer.effect(Service59, Effect.gen(function* () {
183
193
  }),
184
194
  provision,
185
195
  connect: Effect.fn("Workspace.connect")(function* (workspaceID) {
186
- const spawner = make((command) => Effect.acquireRelease(Effect.suspend(() => connections.has(workspaceID) ? Effect.void : provision(workspaceID)).pipe(Effect.andThen(locks.withLock(workspaceID)(Effect.gen(function* () {
196
+ const acquire = Effect.acquireRelease(Effect.suspend(() => connections.has(workspaceID) ? Effect.void : provision(workspaceID)).pipe(Effect.andThen(locks.withLock(workspaceID)(Effect.gen(function* () {
187
197
  const connection = yield* open(workspaceID);
188
198
  yield* Ref.set(connection.lastActivity, yield* Clock.currentTimeMillis);
189
199
  yield* Ref.update(connection.active, (active) => active + 1);
190
200
  return connection;
191
- }))), Effect.mapError((cause) => systemError({
201
+ })))), (connection) => locks.withLock(workspaceID)(Effect.gen(function* () {
202
+ yield* Ref.update(connection.active, (active) => active - 1);
203
+ yield* Ref.set(connection.lastActivity, yield* Clock.currentTimeMillis);
204
+ })));
205
+ const spawner = make((command) => acquire.pipe(Effect.mapError((cause) => systemError({
192
206
  _tag: "Unknown",
193
207
  module: "Workspace",
194
208
  method: "spawn",
195
209
  description: `Failed to wake workspace ${workspaceID}`,
196
210
  cause
197
- }))), (connection) => locks.withLock(workspaceID)(Effect.gen(function* () {
198
- yield* Ref.update(connection.active, (active) => active - 1);
199
- yield* Ref.set(connection.lastActivity, yield* Clock.currentTimeMillis);
200
- }))).pipe(Effect.flatMap((connection) => connection.environment.spawner.spawn(command))));
201
- return { spawner };
211
+ })), Effect.flatMap((connection) => connection.environment.spawner.spawn(command))));
212
+ const withFiles = (path, use) => Effect.scoped(acquire.pipe(Effect.mapError((cause) => new Failed2({ path, cause })), Effect.flatMap((connection) => use(connection.files))));
213
+ const overrides = {
214
+ read: (path, range) => withFiles(path, (files) => files.read(path, range)),
215
+ write: (path, bytes) => withFiles(path, (files) => files.write(path, bytes)),
216
+ stat: (path) => withFiles(path, (files) => files.stat(path)),
217
+ list: (path) => withFiles(path, (files) => files.list(path)),
218
+ remove: (path) => withFiles(path, (files) => files.remove(path)),
219
+ move: (from, to) => withFiles(from, (files) => files.move(from, to)),
220
+ mkdir: (path) => withFiles(path, (files) => files.mkdir(path))
221
+ };
222
+ return { spawner, overrides };
202
223
  }),
203
224
  destroy: Effect.fn("Workspace.destroy")(function* (workspaceID) {
204
225
  const attempt = attempts.get(workspaceID);
205
226
  if (attempt) {
206
227
  attempts.delete(workspaceID);
207
- Deferred.doneUnsafe(attempt, Exit.fail(new NotFound3({ workspaceID })));
228
+ Deferred.doneUnsafe(attempt, Exit.fail(new NotFound2({ workspaceID })));
208
229
  }
209
230
  return yield* locks.withLock(workspaceID)(Effect.gen(function* () {
210
231
  const row = yield* find(workspaceID);
@@ -221,6 +242,6 @@ var layer = (options) => Layer.effect(Service59, Effect.gen(function* () {
221
242
  })
222
243
  });
223
244
  }));
224
- var node61 = configured7();
245
+ var node68 = configured8();
225
246
 
226
- export { ID6, Info15, NotFound3, CreateConflict2, Service59, configured7, node61, exports_workspace };
247
+ export { ID11, Info14, NotFound2, CreateConflict2, Service65, configured8, node68, exports_workspace };
@@ -1,35 +1,35 @@
1
1
  import {
2
- ID10,
3
- Service68
4
- } from "./instruction-discovery-50q9psn3.js";
2
+ ID8,
3
+ Service57
4
+ } from "./file-retention-cd70q2ry.js";
5
5
  import {
6
6
  Service78
7
- } from "./instruction-discovery-w7vtn5sw.js";
7
+ } from "./file-retention-sf9ed94r.js";
8
8
  import {
9
- Service55
10
- } from "./instruction-discovery-t2jc4d6d.js";
9
+ Service66
10
+ } from "./file-retention-1f2vccss.js";
11
11
  import {
12
- Service75,
12
+ Service63,
13
13
  args2
14
- } from "./instruction-discovery-n2rqx0tz.js";
14
+ } from "./file-retention-r2ktrraj.js";
15
15
  import {
16
- Service28
17
- } from "./instruction-discovery-rv5n7j43.js";
16
+ Service27
17
+ } from "./file-retention-4re51v5c.js";
18
18
  import {
19
- Service10
20
- } from "./instruction-discovery-pgnspfd3.js";
19
+ Service11
20
+ } from "./file-retention-5sn004hq.js";
21
21
  import {
22
22
  parseOption2
23
- } from "./instruction-discovery-8m6m0r52.js";
23
+ } from "./file-retention-8m6m0r52.js";
24
24
  import {
25
25
  __export
26
- } from "./instruction-discovery-9rqn6x4v.js";
26
+ } from "./file-retention-9rqn6x4v.js";
27
27
 
28
28
  // src/config/plugin/command.ts
29
29
  var exports_command2 = {};
30
30
  __export(exports_command2, {
31
31
  ConfigCommandPlugin: () => exports_command2,
32
- Plugin: () => Plugin37
32
+ Plugin: () => Plugin29
33
33
  });
34
34
  import { define } from "@opencode/plugin/effect/plugin";
35
35
  import { ConfigCommand } from "@opencode/schema/config/command";
@@ -38,13 +38,13 @@ import { Provider } from "@opencode/schema/provider";
38
38
  import { AppProcess } from "@opencode/util/process";
39
39
  import path from "path";
40
40
  import { Effect, Option, PubSub, Schema, Stream } from "effect";
41
- import { ChildProcess } from "effect/unstable/process";
41
+ import { ChildProcess } from "effect/process";
42
42
  import { FSUtil } from "@opencode/util/fs-util";
43
43
  var decodeCommand = Schema.decodeUnknownOption(ConfigCommand.Info);
44
- var Plugin37 = define({
44
+ var Plugin29 = define({
45
45
  id: "opencode.config.command",
46
46
  effect: Effect.fn(function* (ctx) {
47
- const config = yield* Service55;
47
+ const config = yield* Service66;
48
48
  const fs = yield* FSUtil.Service;
49
49
  const loadEntry = Effect.fnUntraced(function* (entry) {
50
50
  if (entry.type === "document")
@@ -56,10 +56,10 @@ var Plugin37 = define({
56
56
  });
57
57
  const location = yield* Service78;
58
58
  const processes = yield* AppProcess.Service;
59
- const shell = yield* Service75;
60
- const sessions = yield* Service28;
61
- const agents = yield* Service68;
62
- const subagents = yield* Service10;
59
+ const shell = yield* Service63;
60
+ const sessions = yield* Service27;
61
+ const agents = yield* Service57;
62
+ const subagents = yield* Service11;
63
63
  const load = Effect.fn("ConfigCommandPlugin.load")(function* () {
64
64
  return yield* Effect.forEach(yield* config.entries(), loadEntry).pipe(Effect.map((documents) => documents.flat()));
65
65
  });
@@ -80,7 +80,7 @@ var Plugin37 = define({
80
80
  name,
81
81
  description: command.description,
82
82
  execute: (input) => Effect.gen(function* () {
83
- const agent = command.agent === undefined ? undefined : ID10.make(command.agent);
83
+ const agent = command.agent === undefined ? undefined : ID8.make(command.agent);
84
84
  const commandAgent = agent === undefined ? undefined : (yield* ctx.agent.get({ agentID: agent })).data;
85
85
  const model = command.model === undefined ? commandAgent?.model : {
86
86
  id: Model.ID.make(command.model.model),
@@ -204,4 +204,4 @@ var placeholderRegex = /\$(\d+)/g;
204
204
  var quoteTrimRegex = /^["']|["']$/g;
205
205
  var shellRegex = /!`([^`]+)`/g;
206
206
 
207
- export { Plugin37, exports_command2 };
207
+ export { Plugin29, exports_command2 };
@@ -1,55 +1,55 @@
1
1
  import {
2
- NotFound2,
2
+ NotFound3,
3
3
  WrongKind2,
4
4
  Failed2,
5
5
  typeFollowing2
6
- } from "./instruction-discovery-2a5m3afh.js";
6
+ } from "./file-retention-hgz4x7wa.js";
7
7
  import {
8
8
  execDefaults2
9
- } from "./instruction-discovery-1dazxqgg.js";
9
+ } from "./file-retention-eej6y6fw.js";
10
10
  import {
11
11
  makeLocalDriver2
12
- } from "./instruction-discovery-b6gygkdw.js";
12
+ } from "./file-retention-3hwn7j4h.js";
13
13
  import {
14
14
  makeMemoryDriver2
15
- } from "./instruction-discovery-aaet6srn.js";
15
+ } from "./file-retention-v7p4zvkq.js";
16
16
  import {
17
17
  Service78,
18
18
  node82
19
- } from "./instruction-discovery-w7vtn5sw.js";
19
+ } from "./file-retention-sf9ed94r.js";
20
20
  import {
21
- Service59,
22
- node61
23
- } from "./instruction-discovery-5th9bftb.js";
21
+ Service65,
22
+ node68
23
+ } from "./file-retention-y5y4kes7.js";
24
24
  import {
25
25
  __export
26
- } from "./instruction-discovery-9rqn6x4v.js";
26
+ } from "./file-retention-9rqn6x4v.js";
27
27
 
28
28
  // src/environment/environment.ts
29
29
  var exports_environment2 = {};
30
30
  __export(exports_environment2, {
31
31
  EnvironmentService: () => exports_environment2,
32
- Service: () => Service57,
33
- node: () => node59
32
+ Service: () => Service64,
33
+ node: () => node67
34
34
  });
35
35
  import { CrossSpawnSpawner } from "@opencode/util/cross-spawn-spawner";
36
36
  import { makeLocationNode } from "@opencode/util/effect/app-node";
37
37
  import { Context, Effect, Layer } from "effect";
38
- import { ChildProcessSpawner } from "effect/unstable/process/ChildProcessSpawner";
38
+ import { ChildProcessSpawner } from "effect/process/ChildProcessSpawner";
39
39
 
40
40
  // src/environment/index.ts
41
41
  var exports_environment3 = {};
42
42
  __export(exports_environment3, {
43
43
  Environment: () => exports_environment3,
44
44
  Failed: () => Failed2,
45
- NotFound: () => NotFound2,
46
- Service: () => Service57,
45
+ NotFound: () => NotFound3,
46
+ Service: () => Service64,
47
47
  WrongKind: () => WrongKind2,
48
48
  execDefaults: () => execDefaults2,
49
49
  makeFiles: () => makeFiles2,
50
50
  makeLocalDriver: () => makeLocalDriver2,
51
51
  makeMemoryDriver: () => makeMemoryDriver2,
52
- node: () => node59,
52
+ node: () => node67,
53
53
  typeFollowing: () => typeFollowing2
54
54
  });
55
55
  var makeFiles2 = (driver) => ({
@@ -58,19 +58,19 @@ var makeFiles2 = (driver) => ({
58
58
  });
59
59
 
60
60
  // src/environment/environment.ts
61
- class Service57 extends Context.Service()("@opencode/Environment") {
61
+ class Service64 extends Context.Service()("@opencode/Environment") {
62
62
  }
63
- var layer = Layer.effect(Service57, Effect.gen(function* () {
63
+ var layer = Layer.effect(Service64, Effect.gen(function* () {
64
64
  const spawner = yield* ChildProcessSpawner;
65
65
  const location = yield* Service78;
66
- const workspace = yield* Service59;
66
+ const workspace = yield* Service65;
67
67
  const driver = location.workspaceID ? yield* workspace.connect(location.workspaceID).pipe(Effect.mapError((cause) => new Error(`Failed to bind Environment to workspace ${location.workspaceID}`, { cause })), Effect.orDie) : makeLocalDriver2(spawner);
68
- return Service57.of({ files: makeFiles2(driver), spawner: driver.spawner });
68
+ return Service64.of({ files: makeFiles2(driver), spawner: driver.spawner });
69
69
  }));
70
- var node59 = makeLocationNode({
71
- service: Service57,
70
+ var node67 = makeLocationNode({
71
+ service: Service64,
72
72
  layer,
73
- deps: [CrossSpawnSpawner.node, node82, node61]
73
+ deps: [CrossSpawnSpawner.node, node82, node68]
74
74
  });
75
75
 
76
- export { Service57, node59, exports_environment2, makeFiles2, exports_environment3 };
76
+ export { Service64, node67, exports_environment2, makeFiles2, exports_environment3 };
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  useragent2
3
- } from "./instruction-discovery-bpf208j3.js";
3
+ } from "./file-retention-hrh521yf.js";
4
4
  import {
5
5
  __export
6
- } from "./instruction-discovery-9rqn6x4v.js";
6
+ } from "./file-retention-9rqn6x4v.js";
7
7
 
8
8
  // src/plugin/websearch/tavily.ts
9
9
  var exports_tavily = {};
10
10
  __export(exports_tavily, {
11
- Plugin: () => Plugin5,
11
+ Plugin: () => Plugin11,
12
12
  WebSearchTavily: () => exports_tavily,
13
- endpoint: () => endpoint3
13
+ endpoint: () => endpoint6
14
14
  });
15
15
  import { define } from "@opencode/plugin/effect/plugin";
16
16
  import { Duration, Effect, Schema } from "effect";
17
- import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
18
- var endpoint3 = "https://api.tavily.com/search";
17
+ import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
18
+ var endpoint6 = "https://api.tavily.com/search";
19
19
  var SearchRequest = Schema.Struct({
20
20
  query: Schema.String,
21
21
  search_depth: Schema.Literal("basic"),
@@ -29,7 +29,7 @@ var SearchResponse = Schema.Struct({
29
29
  content: Schema.String
30
30
  }))
31
31
  });
32
- var Plugin5 = define({
32
+ var Plugin11 = define({
33
33
  id: "opencode.websearch.tavily",
34
34
  effect: Effect.fn("WebSearchTavily.Plugin")(function* (ctx) {
35
35
  const http = yield* HttpClient.HttpClient;
@@ -51,7 +51,7 @@ var Plugin5 = define({
51
51
  execute: (input) => Effect.gen(function* () {
52
52
  const connection = yield* ctx.integration.connection.active("tavily");
53
53
  const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
54
- const request = yield* HttpClientRequest.post(endpoint3).pipe(HttpClientRequest.acceptJson, HttpClientRequest.setHeaders({
54
+ const request = yield* HttpClientRequest.post(endpoint6).pipe(HttpClientRequest.acceptJson, HttpClientRequest.setHeaders({
55
55
  "User-Agent": useragent2(ctx.app),
56
56
  "X-Client-Name": "opencode2",
57
57
  ...credential?.type === "key" ? { Authorization: `Bearer ${credential.key}` } : { "X-Tavily-Access-Mode": "keyless" }
@@ -77,4 +77,4 @@ var Plugin5 = define({
77
77
  })
78
78
  });
79
79
 
80
- export { endpoint3, Plugin5, exports_tavily };
80
+ export { endpoint6, Plugin11, exports_tavily };
@@ -1,18 +1,19 @@
1
1
  import {
2
2
  PositiveInt2
3
- } from "./instruction-discovery-z5v4ffb3.js";
3
+ } from "./file-retention-z5v4ffb3.js";
4
4
  import {
5
- Info14
6
- } from "./instruction-discovery-50mzsvk4.js";
5
+ Entries2,
6
+ Info16
7
+ } from "./file-retention-5fec3t3w.js";
7
8
  import {
8
9
  __export
9
- } from "./instruction-discovery-9rqn6x4v.js";
10
+ } from "./file-retention-9rqn6x4v.js";
10
11
 
11
12
  // src/v1/config/agent.ts
12
- var exports_agent3 = {};
13
- __export(exports_agent3, {
14
- ConfigAgentV1: () => exports_agent3,
15
- Info: () => Info11
13
+ var exports_agent4 = {};
14
+ __export(exports_agent4, {
15
+ ConfigAgentV1: () => exports_agent4,
16
+ Info: () => Info15
16
17
  });
17
18
  import { Schema, SchemaGetter } from "effect";
18
19
  var Color = Schema.Union([
@@ -27,7 +28,7 @@ var AgentSchema = Schema.StructWithRest(Schema.Struct({
27
28
  temperature: Schema.optional(Schema.Finite),
28
29
  top_p: Schema.optional(Schema.Finite),
29
30
  prompt: Schema.optional(Schema.String),
30
- tools: Schema.optional(Schema.Record(Schema.String, Schema.Boolean)).annotate({
31
+ tools: Schema.optional(Entries2(Schema.Boolean)).annotate({
31
32
  description: "@deprecated Use 'permission' field instead"
32
33
  }),
33
34
  disable: Schema.optional(Schema.Boolean),
@@ -44,7 +45,7 @@ var AgentSchema = Schema.StructWithRest(Schema.Struct({
44
45
  description: "Maximum number of agentic iterations before forcing text-only response"
45
46
  }),
46
47
  maxSteps: Schema.optional(PositiveInt2).annotate({ description: "@deprecated Use 'steps' field instead." }),
47
- permission: Schema.optional(Info14)
48
+ permission: Schema.optional(Info16)
48
49
  }), [Schema.Record(Schema.String, Schema.Any)]);
49
50
  var KNOWN_KEYS = new Set(["name", ...Object.keys(AgentSchema.schema.fields)]);
50
51
  var normalize = (agent) => {
@@ -53,22 +54,19 @@ var normalize = (agent) => {
53
54
  if (!KNOWN_KEYS.has(key))
54
55
  options[key] = value;
55
56
  }
56
- const permission = {};
57
- for (const [tool, enabled] of Object.entries(agent.tools ?? {})) {
57
+ const permission = new Map;
58
+ for (const [tool, enabled] of agent.tools ?? []) {
58
59
  const action = enabled ? "allow" : "deny";
59
- if (tool === "write" || tool === "edit" || tool === "patch") {
60
- permission.edit = action;
61
- continue;
62
- }
63
- permission[tool] = action;
60
+ permission.set(tool === "write" || tool === "patch" ? "edit" : tool, action);
64
61
  }
65
- globalThis.Object.assign(permission, agent.permission);
62
+ for (const [key, rule] of agent.permission ?? [])
63
+ permission.set(key, rule);
66
64
  const steps = agent.steps ?? agent.maxSteps;
67
- return { ...agent, options, permission, ...steps !== undefined ? { steps } : {} };
65
+ return { ...agent, options, permission: [...permission], ...steps !== undefined ? { steps } : {} };
68
66
  };
69
- var Info11 = AgentSchema.pipe(Schema.decodeTo(AgentSchema, {
67
+ var Info15 = AgentSchema.pipe(Schema.decodeTo(Schema.toType(AgentSchema), {
70
68
  decode: SchemaGetter.transform(normalize),
71
69
  encode: SchemaGetter.passthrough({ strict: false })
72
70
  })).annotate({ identifier: "AgentConfig" });
73
71
 
74
- export { Info11, exports_agent3 };
72
+ export { Info15, exports_agent4 };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  __export
3
- } from "./instruction-discovery-9rqn6x4v.js";
3
+ } from "./file-retention-9rqn6x4v.js";
4
4
 
5
5
  // src/session/run-coordinator.ts
6
6
  var exports_run_coordinator = {};
7
7
  __export(exports_run_coordinator, {
8
8
  SessionRunCoordinator: () => exports_run_coordinator,
9
- make: () => make17
9
+ make: () => make16
10
10
  });
11
11
  import { Deferred, Effect, Fiber, FiberSet } from "effect";
12
- var make17 = (options) => Effect.gen(function* () {
12
+ var make16 = (options) => Effect.gen(function* () {
13
13
  const executions = new Map;
14
14
  const fork = yield* FiberSet.makeRuntime();
15
15
  const loop = (key, execution, force) => Effect.suspend(() => options.drain(key, force, execution.scope)).pipe(Effect.andThen(Effect.suspend(() => {
@@ -89,4 +89,4 @@ var make17 = (options) => Effect.gen(function* () {
89
89
  };
90
90
  });
91
91
 
92
- export { make17, exports_run_coordinator };
92
+ export { make16, exports_run_coordinator };