@opencode/core 0.0.0-dev-1015 → 0.0.0-dev-1017

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 (936) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +90 -90
  3. package/dist/aisdk-native.js +102 -102
  4. package/dist/aisdk.js +108 -108
  5. package/dist/app.js +9 -9
  6. package/dist/artifact.js +244 -244
  7. package/dist/bus.js +80 -80
  8. package/dist/chunks/{instruction-discovery-e437mpew.js → console-access-00wetygp.js} +27 -27
  9. package/dist/chunks/{instruction-discovery-0nynr8sa.js → console-access-01nh8d1f.js} +13 -13
  10. package/dist/chunks/{instruction-discovery-034tev2y.js → console-access-034tev2y.js} +2 -2
  11. package/dist/chunks/{instruction-discovery-2fvrv2dh.js → console-access-0c4tnbwp.js} +42 -42
  12. package/dist/chunks/{instruction-discovery-bfzxg64b.js → console-access-0fzra7c1.js} +16 -16
  13. package/dist/chunks/{instruction-discovery-0ma9gw4f.js → console-access-0ma9gw4f.js} +2 -2
  14. package/dist/chunks/{instruction-discovery-0hmx2qjn.js → console-access-0php2d2a.js} +4 -4
  15. package/dist/chunks/{instruction-discovery-1aqsckx4.js → console-access-1aqsckx4.js} +1 -1
  16. package/dist/chunks/{instruction-discovery-1ep2p91f.js → console-access-1ep2p91f.js} +2 -2
  17. package/dist/chunks/{instruction-discovery-vtkyewdg.js → console-access-1g3ebhf2.js} +11 -11
  18. package/dist/chunks/{instruction-discovery-qxnmxsad.js → console-access-1jydya01.js} +12 -12
  19. package/dist/chunks/{instruction-discovery-m8c1a2pd.js → console-access-1ke8bj3s.js} +83 -83
  20. package/dist/chunks/{instruction-discovery-1x2knyw4.js → console-access-1x2knyw4.js} +1 -1
  21. package/dist/chunks/{instruction-discovery-a2h73pm3.js → console-access-1ys6s8ex.js} +7 -7
  22. package/dist/chunks/{instruction-discovery-8b3vzgkx.js → console-access-25h84942.js} +4 -4
  23. package/dist/chunks/{instruction-discovery-63d3zap5.js → console-access-2a105sgk.js} +20 -20
  24. package/dist/chunks/{instruction-discovery-2fc7eemy.js → console-access-2fc7eemy.js} +1 -1
  25. package/dist/chunks/{instruction-discovery-dfsy2zcm.js → console-access-2hmytcqx.js} +5 -5
  26. package/dist/chunks/{instruction-discovery-ggx84v7x.js → console-access-2s9mae96.js} +6 -6
  27. package/dist/chunks/{instruction-discovery-5zpqhmp2.js → console-access-319wad08.js} +3 -3
  28. package/dist/chunks/{instruction-discovery-sj4dkmm8.js → console-access-33m0s2nz.js} +8 -8
  29. package/dist/chunks/{instruction-discovery-3hepkmqq.js → console-access-3hepkmqq.js} +1 -1
  30. package/dist/chunks/{instruction-discovery-a1tswj55.js → console-access-3k3rxdp5.js} +5 -5
  31. package/dist/chunks/{instruction-discovery-3qgwywyc.js → console-access-3qgwywyc.js} +1 -1
  32. package/dist/chunks/{instruction-discovery-40y6dtc2.js → console-access-40y6dtc2.js} +1 -1
  33. package/dist/chunks/{instruction-discovery-5enarcya.js → console-access-40za9wsf.js} +6 -6
  34. package/dist/chunks/{instruction-discovery-t4fc5w9m.js → console-access-42dt597g.js} +22 -22
  35. package/dist/chunks/{instruction-discovery-rac80r1t.js → console-access-4brrtwnk.js} +4 -4
  36. package/dist/chunks/{instruction-discovery-4dx1dgte.js → console-access-4dx1dgte.js} +1 -1
  37. package/dist/chunks/{instruction-discovery-3by6mha1.js → console-access-4e35pt6y.js} +20 -20
  38. package/dist/chunks/{instruction-discovery-4f25tdd0.js → console-access-4f25tdd0.js} +1 -1
  39. package/dist/chunks/{instruction-discovery-z8je6wes.js → console-access-4gfb3bt5.js} +28 -28
  40. package/dist/chunks/{instruction-discovery-pb9gr1fn.js → console-access-4h1wd4gx.js} +10 -10
  41. package/dist/chunks/{instruction-discovery-cac42eeb.js → console-access-4mwkmjka.js} +12 -12
  42. package/dist/chunks/{instruction-discovery-4pyp9zr9.js → console-access-4pyp9zr9.js} +1 -1
  43. package/dist/chunks/{instruction-discovery-4v008n1t.js → console-access-4v008n1t.js} +1 -1
  44. package/dist/chunks/{instruction-discovery-s51rk2n1.js → console-access-539dw32x.js} +4 -4
  45. package/dist/chunks/{instruction-discovery-71jgy235.js → console-access-53dkjeyp.js} +5 -5
  46. package/dist/chunks/{instruction-discovery-096a4ey7.js → console-access-5e40m4rg.js} +28 -28
  47. package/dist/chunks/{instruction-discovery-rkss24s3.js → console-access-5kwgtyjv.js} +6 -6
  48. package/dist/chunks/{instruction-discovery-5m9w47nd.js → console-access-5m9w47nd.js} +1 -1
  49. package/dist/chunks/{instruction-discovery-1mjed9m0.js → console-access-5sx2nyee.js} +18 -18
  50. package/dist/chunks/{instruction-discovery-8k1b2kbc.js → console-access-5txf6bq2.js} +5 -5
  51. package/dist/chunks/{instruction-discovery-5whx36p1.js → console-access-5whx36p1.js} +1 -1
  52. package/dist/chunks/{instruction-discovery-18b1hh0p.js → console-access-5yydhn6j.js} +11 -11
  53. package/dist/chunks/{instruction-discovery-1yq9hg58.js → console-access-5zrxpy3q.js} +5 -5
  54. package/dist/chunks/{instruction-discovery-z514yeqw.js → console-access-6779fhng.js} +9 -9
  55. package/dist/chunks/{instruction-discovery-g5ds3bms.js → console-access-6awqtksd.js} +5 -5
  56. package/dist/chunks/console-access-6bshxcsx.js +18 -0
  57. package/dist/chunks/{instruction-discovery-9dqxst5z.js → console-access-6gr25a60.js} +4 -4
  58. package/dist/chunks/{instruction-discovery-5n4jvj3e.js → console-access-6ph701rk.js} +23 -23
  59. package/dist/chunks/{instruction-discovery-kp8agc27.js → console-access-6s7y4mzb.js} +41 -41
  60. package/dist/chunks/{instruction-discovery-j20ahyp3.js → console-access-711ydcza.js} +18 -18
  61. package/dist/chunks/{instruction-discovery-nq91b848.js → console-access-73j1tefy.js} +10 -10
  62. package/dist/chunks/{instruction-discovery-45m6e38z.js → console-access-76t9x0j9.js} +11 -11
  63. package/dist/chunks/{instruction-discovery-80mg3ag8.js → console-access-775hqbnd.js} +3 -3
  64. package/dist/chunks/{instruction-discovery-a631g2cm.js → console-access-78w6k734.js} +5 -5
  65. package/dist/chunks/{instruction-discovery-r7fbedde.js → console-access-7a1x92tv.js} +32 -32
  66. package/dist/chunks/{instruction-discovery-7bmhse3q.js → console-access-7bmhse3q.js} +1 -1
  67. package/dist/chunks/{instruction-discovery-6ghwpzxw.js → console-access-7fc3zf12.js} +59 -59
  68. package/dist/chunks/{instruction-discovery-x150ncgg.js → console-access-7h7tvtg0.js} +2 -2
  69. package/dist/chunks/{instruction-discovery-z8d5w4cp.js → console-access-7kmfd5bq.js} +14 -14
  70. package/dist/chunks/{instruction-discovery-9r920prg.js → console-access-7m127d97.js} +11 -11
  71. package/dist/chunks/{instruction-discovery-kmekj7m2.js → console-access-7nqkf5r1.js} +4 -4
  72. package/dist/chunks/{instruction-discovery-7w2ypzdf.js → console-access-7w2ypzdf.js} +1 -1
  73. package/dist/chunks/{instruction-discovery-7weczvnd.js → console-access-7weczvnd.js} +1 -1
  74. package/dist/chunks/{instruction-discovery-k5xaj77z.js → console-access-80d2910p.js} +15 -15
  75. package/dist/chunks/{instruction-discovery-80pdk984.js → console-access-80pdk984.js} +1 -1
  76. package/dist/chunks/{instruction-discovery-h0aek10s.js → console-access-81vp2bdd.js} +28 -28
  77. package/dist/chunks/{instruction-discovery-v48fmenw.js → console-access-82415c55.js} +14 -14
  78. package/dist/chunks/{instruction-discovery-71cpk4y0.js → console-access-83xqprrw.js} +26 -26
  79. package/dist/chunks/{instruction-discovery-sykep8z1.js → console-access-84jk9pt4.js} +19 -19
  80. package/dist/chunks/{instruction-discovery-85jq8dht.js → console-access-85jq8dht.js} +1 -1
  81. package/dist/chunks/{instruction-discovery-jyk617cr.js → console-access-85z0p8cr.js} +9 -9
  82. package/dist/chunks/{instruction-discovery-ev4zfx05.js → console-access-88rt2abm.js} +12 -12
  83. package/dist/chunks/{instruction-discovery-0nqxgmxj.js → console-access-8aa5qpgd.js} +13 -13
  84. package/dist/chunks/{instruction-discovery-5z37zzep.js → console-access-8e2htjhy.js} +125 -69
  85. package/dist/chunks/{instruction-discovery-6mx9s162.js → console-access-8j97sx0h.js} +21 -21
  86. package/dist/chunks/{instruction-discovery-8sxe6kv8.js → console-access-8sxe6kv8.js} +2 -2
  87. package/dist/chunks/{instruction-discovery-rke1pk6v.js → console-access-8w4dph67.js} +17 -17
  88. package/dist/chunks/{instruction-discovery-8wtp7s3z.js → console-access-8wtp7s3z.js} +1 -1
  89. package/dist/chunks/{instruction-discovery-p7y8ak2q.js → console-access-8xfjm4xd.js} +13 -13
  90. package/dist/chunks/{instruction-discovery-8zv0xmg5.js → console-access-8zv0xmg5.js} +1 -1
  91. package/dist/chunks/{instruction-discovery-65s9w0ba.js → console-access-92mhy90n.js} +30 -30
  92. package/dist/chunks/{instruction-discovery-w8yavv78.js → console-access-92szfccm.js} +4 -4
  93. package/dist/chunks/{instruction-discovery-kzdam8c6.js → console-access-93xmyh8q.js} +5 -5
  94. package/dist/chunks/{instruction-discovery-2q78srga.js → console-access-95af1ntp.js} +22 -22
  95. package/dist/chunks/{instruction-discovery-963hk181.js → console-access-963hk181.js} +2 -2
  96. package/dist/chunks/{instruction-discovery-axa33maw.js → console-access-97t8yghf.js} +3 -3
  97. package/dist/chunks/{instruction-discovery-fn5th1ab.js → console-access-99wyeap2.js} +21 -21
  98. package/dist/chunks/{instruction-discovery-npdj87z7.js → console-access-9g2550n8.js} +22 -22
  99. package/dist/chunks/{instruction-discovery-xqv7e1eg.js → console-access-9kzxe4bd.js} +5 -5
  100. package/dist/chunks/{instruction-discovery-6cqkw5v2.js → console-access-9rqhy0gk.js} +7 -7
  101. package/dist/chunks/{instruction-discovery-ptymmbb1.js → console-access-9ws4v24n.js} +9 -9
  102. package/dist/chunks/{instruction-discovery-61qraad9.js → console-access-9zwexsxs.js} +5 -5
  103. package/dist/chunks/{instruction-discovery-zjxmd7k6.js → console-access-a5r23509.js} +10 -10
  104. package/dist/chunks/{instruction-discovery-8hvja03c.js → console-access-abkkd8xa.js} +9 -9
  105. package/dist/chunks/{instruction-discovery-em917w8p.js → console-access-ahfdps10.js} +31 -31
  106. package/dist/chunks/{instruction-discovery-fwjbabb2.js → console-access-anr8vs6y.js} +6 -6
  107. package/dist/chunks/{instruction-discovery-js360skg.js → console-access-aqw5qhcs.js} +12 -12
  108. package/dist/chunks/{instruction-discovery-dc403p35.js → console-access-as65ctta.js} +27 -27
  109. package/dist/chunks/{instruction-discovery-qrwsktcm.js → console-access-as9vw75j.js} +10 -10
  110. package/dist/chunks/{instruction-discovery-gt02w2mb.js → console-access-aw3adnsh.js} +11 -11
  111. package/dist/chunks/{instruction-discovery-ayjs7tqn.js → console-access-ayjs7tqn.js} +2 -2
  112. package/dist/chunks/{instruction-discovery-wr3re1en.js → console-access-b6z35kmf.js} +4 -4
  113. package/dist/chunks/{instruction-discovery-xm43y1n1.js → console-access-b8szz0av.js} +41 -41
  114. package/dist/chunks/{instruction-discovery-3cnfysr5.js → console-access-b8tn5dt9.js} +6 -6
  115. package/dist/chunks/{instruction-discovery-n6fjjwma.js → console-access-b9tmr8d0.js} +4 -4
  116. package/dist/chunks/{instruction-discovery-4jbr7150.js → console-access-baxkc6y7.js} +36 -36
  117. package/dist/chunks/{instruction-discovery-7bvxhdvg.js → console-access-bf930bhg.js} +12 -12
  118. package/dist/chunks/{instruction-discovery-45a2j779.js → console-access-bg133t4s.js} +37 -37
  119. package/dist/chunks/{instruction-discovery-jkdcm5hg.js → console-access-bhfd478d.js} +4 -4
  120. package/dist/chunks/{instruction-discovery-vmz99vp1.js → console-access-bpacjzwd.js} +15 -15
  121. package/dist/chunks/{instruction-discovery-hbtbm6gc.js → console-access-bpm7v70q.js} +40 -40
  122. package/dist/chunks/{instruction-discovery-bq407wpz.js → console-access-brtp5cf0.js} +48 -48
  123. package/dist/chunks/{instruction-discovery-xksw6ev0.js → console-access-brv6mkyx.js} +4 -4
  124. package/dist/chunks/{instruction-discovery-bstexjd6.js → console-access-bstexjd6.js} +1 -1
  125. package/dist/chunks/{instruction-discovery-r147690n.js → console-access-bvsx32pr.js} +25 -25
  126. package/dist/chunks/{instruction-discovery-fw5v6aya.js → console-access-bzwyaehh.js} +16 -16
  127. package/dist/chunks/{instruction-discovery-rj7j5fvs.js → console-access-c5zvymhv.js} +4 -4
  128. package/dist/chunks/{instruction-discovery-qt420wez.js → console-access-c7qen1zz.js} +11 -11
  129. package/dist/chunks/{instruction-discovery-7xrr1h9y.js → console-access-cm1e61mx.js} +11 -11
  130. package/dist/chunks/{instruction-discovery-z8dga3gp.js → console-access-cw8qd6jr.js} +16 -16
  131. package/dist/chunks/{instruction-discovery-cwrgdav8.js → console-access-cwrgdav8.js} +2 -2
  132. package/dist/chunks/{instruction-discovery-4084dgj6.js → console-access-d08jr1vs.js} +17 -17
  133. package/dist/chunks/{instruction-discovery-r7r55277.js → console-access-d34c0f98.js} +8 -8
  134. package/dist/chunks/{instruction-discovery-d4v9tmah.js → console-access-d4v9tmah.js} +2 -2
  135. package/dist/chunks/{instruction-discovery-cazsqtbb.js → console-access-d5t3r07z.js} +12 -12
  136. package/dist/chunks/{instruction-discovery-5cr30h4q.js → console-access-d7ghtrxv.js} +8 -8
  137. package/dist/chunks/{instruction-discovery-yk4ram99.js → console-access-d7qcj0s1.js} +3 -3
  138. package/dist/chunks/{instruction-discovery-xy2adanr.js → console-access-d8mebr7j.js} +11 -11
  139. package/dist/chunks/{instruction-discovery-9rqfe4ad.js → console-access-dbatw319.js} +3 -3
  140. package/dist/chunks/{instruction-discovery-8zjkm0at.js → console-access-dbbw9dzx.js} +33 -33
  141. package/dist/chunks/{instruction-discovery-c2je6y50.js → console-access-dc9yh1nj.js} +25 -25
  142. package/dist/chunks/{instruction-discovery-05ww0tct.js → console-access-dcajwrfg.js} +22 -22
  143. package/dist/chunks/{instruction-discovery-w3mjccnh.js → console-access-dksb4998.js} +20 -20
  144. package/dist/chunks/{instruction-discovery-m9hjmvdm.js → console-access-dmtjqkrt.js} +7 -7
  145. package/dist/chunks/{instruction-discovery-0f79bht5.js → console-access-dmwh07z0.js} +5 -5
  146. package/dist/chunks/{instruction-discovery-qwg91r6f.js → console-access-dntrk4bw.js} +51 -51
  147. package/dist/chunks/{instruction-discovery-1tng1z6k.js → console-access-dnv9nt59.js} +15 -15
  148. package/dist/chunks/{instruction-discovery-dt77769w.js → console-access-dt77769w.js} +1 -1
  149. package/dist/chunks/{instruction-discovery-mtx9qk1x.js → console-access-dtqmsaca.js} +30 -30
  150. package/dist/chunks/{instruction-discovery-d1spntys.js → console-access-dyjmcgsb.js} +7 -7
  151. package/dist/chunks/{instruction-discovery-1jqhjz8x.js → console-access-dyycx927.js} +1 -1
  152. package/dist/chunks/{instruction-discovery-qgp5gqjt.js → console-access-e00ypw80.js} +32 -32
  153. package/dist/chunks/{instruction-discovery-wprpberk.js → console-access-e1vmmkh1.js} +27 -27
  154. package/dist/chunks/{instruction-discovery-mh1rreeb.js → console-access-e3bjvj0x.js} +9 -9
  155. package/dist/chunks/{instruction-discovery-3s0pgq88.js → console-access-e5bam4q2.js} +29 -29
  156. package/dist/chunks/{instruction-discovery-8n09hdvs.js → console-access-e71bb87j.js} +8 -8
  157. package/dist/chunks/{instruction-discovery-mge70beb.js → console-access-e9nbs0fg.js} +6 -6
  158. package/dist/chunks/{instruction-discovery-jwh3xyhe.js → console-access-ephqr37y.js} +7 -7
  159. package/dist/chunks/{instruction-discovery-eqw4pqj1.js → console-access-eqw4pqj1.js} +2 -2
  160. package/dist/chunks/{instruction-discovery-2zk860f7.js → console-access-esypk4e8.js} +6 -6
  161. package/dist/chunks/{instruction-discovery-rh0vkr7v.js → console-access-exc53rth.js} +151 -151
  162. package/dist/chunks/{instruction-discovery-hpy856qe.js → console-access-ezd208n0.js} +21 -21
  163. package/dist/chunks/{instruction-discovery-w87p3bvv.js → console-access-f76y97hd.js} +17 -17
  164. package/dist/chunks/{instruction-discovery-fg9p65nk.js → console-access-fg9p65nk.js} +2 -2
  165. package/dist/chunks/{instruction-discovery-5wymkgse.js → console-access-frfd7dhs.js} +17 -17
  166. package/dist/chunks/console-access-fwbnttap.js +26 -0
  167. package/dist/chunks/{instruction-discovery-g4txs7zc.js → console-access-g4txs7zc.js} +4 -4
  168. package/dist/chunks/{instruction-discovery-38aws4xb.js → console-access-g5ajqn12.js} +4 -4
  169. package/dist/chunks/{instruction-discovery-tceawxew.js → console-access-gaak9hc5.js} +14 -14
  170. package/dist/chunks/{instruction-discovery-gbjdnr5j.js → console-access-gbjdnr5j.js} +2 -2
  171. package/dist/chunks/{instruction-discovery-yp2c7qyq.js → console-access-gekbr165.js} +6 -6
  172. package/dist/chunks/{instruction-discovery-xjbsd7zy.js → console-access-gerka9tj.js} +9 -9
  173. package/dist/chunks/{instruction-discovery-a85bkmsn.js → console-access-gff9pfk6.js} +10 -10
  174. package/dist/chunks/{instruction-discovery-ghrv1g9c.js → console-access-ghrv1g9c.js} +1 -1
  175. package/dist/chunks/{instruction-discovery-26wfx3k0.js → console-access-gmemj5zs.js} +4 -4
  176. package/dist/chunks/{instruction-discovery-vmkgnf08.js → console-access-grqdy4zd.js} +3 -3
  177. package/dist/chunks/{instruction-discovery-gxs71cxp.js → console-access-gxs71cxp.js} +1 -1
  178. package/dist/chunks/{instruction-discovery-qgrcdsd3.js → console-access-gyz3qj93.js} +18 -18
  179. package/dist/chunks/{instruction-discovery-rs6b2qby.js → console-access-h2j9sg05.js} +4 -4
  180. package/dist/chunks/{instruction-discovery-hgzwgvze.js → console-access-hgzwgvze.js} +2 -2
  181. package/dist/chunks/{instruction-discovery-6m28zfh6.js → console-access-hkk8p6m2.js} +19 -19
  182. package/dist/chunks/console-access-hkqsfgg0.js +273 -0
  183. package/dist/chunks/{instruction-discovery-cg3fcpn4.js → console-access-hmc1gkc2.js} +6 -6
  184. package/dist/chunks/{instruction-discovery-5k4n1gb3.js → console-access-hn6smzns.js} +12 -12
  185. package/dist/chunks/{instruction-discovery-zapgmn8f.js → console-access-hpszt470.js} +10 -10
  186. package/dist/chunks/{instruction-discovery-z1zwgy4a.js → console-access-hst96p25.js} +10 -10
  187. package/dist/chunks/{instruction-discovery-mbyymhsd.js → console-access-j23maf10.js} +2 -2
  188. package/dist/chunks/{instruction-discovery-j376ae4e.js → console-access-j376ae4e.js} +1 -1
  189. package/dist/chunks/{instruction-discovery-zbng777a.js → console-access-j5k2q35g.js} +5 -5
  190. package/dist/chunks/{instruction-discovery-ze75qvmd.js → console-access-j9nxzz3g.js} +3 -3
  191. package/dist/chunks/{instruction-discovery-m7t615r4.js → console-access-jka91q9b.js} +12 -12
  192. package/dist/chunks/{instruction-discovery-jm70asfg.js → console-access-jm70asfg.js} +1 -1
  193. package/dist/chunks/{instruction-discovery-zded71tf.js → console-access-jtd3nx7d.js} +16 -16
  194. package/dist/chunks/{instruction-discovery-38ebz7bx.js → console-access-jvbdzyph.js} +25 -25
  195. package/dist/chunks/{instruction-discovery-jxd6f16v.js → console-access-jxd6f16v.js} +2 -2
  196. package/dist/chunks/{instruction-discovery-8k8vqbkb.js → console-access-k4mr4bhj.js} +11 -11
  197. package/dist/chunks/{instruction-discovery-npnga1vf.js → console-access-kfgdwvqa.js} +8 -8
  198. package/dist/chunks/{instruction-discovery-rj7jtxy8.js → console-access-kn4zqwcq.js} +3 -3
  199. package/dist/chunks/{instruction-discovery-dee02ybc.js → console-access-kn9egfvk.js} +25 -25
  200. package/dist/chunks/{instruction-discovery-kt3bjfbg.js → console-access-kt3bjfbg.js} +1 -1
  201. package/dist/chunks/{instruction-discovery-kzczzf4v.js → console-access-kzczzf4v.js} +1 -1
  202. package/dist/chunks/{instruction-discovery-m1714858.js → console-access-m1714858.js} +1 -1
  203. package/dist/chunks/console-access-m6cfdtf3.js +16 -0
  204. package/dist/chunks/{instruction-discovery-ax3devvw.js → console-access-m6cqxy11.js} +2 -2
  205. package/dist/chunks/{instruction-discovery-txxmmn21.js → console-access-m7mnrwb4.js} +34 -34
  206. package/dist/chunks/{instruction-discovery-ncmpkv8w.js → console-access-m7s6ca50.js} +22 -22
  207. package/dist/chunks/{instruction-discovery-m9w0rfyh.js → console-access-m9w0rfyh.js} +1 -1
  208. package/dist/chunks/{instruction-discovery-6ahmdr5g.js → console-access-mafjawne.js} +9 -9
  209. package/dist/chunks/{instruction-discovery-22qx8d5d.js → console-access-makqk4p0.js} +11 -11
  210. package/dist/chunks/{instruction-discovery-mb7mbhnz.js → console-access-mb7mbhnz.js} +3 -3
  211. package/dist/chunks/{instruction-discovery-pd89y4vg.js → console-access-mhyfgg0f.js} +8 -8
  212. package/dist/chunks/{instruction-discovery-7mv28461.js → console-access-mrqgz68h.js} +18 -18
  213. package/dist/chunks/{instruction-discovery-0n720z3p.js → console-access-mrshbdnr.js} +6 -6
  214. package/dist/chunks/{instruction-discovery-s1hdwwky.js → console-access-myrn9hzz.js} +29 -29
  215. package/dist/chunks/{instruction-discovery-mrzz8s7h.js → console-access-n06gcgnq.js} +36 -36
  216. package/dist/chunks/{instruction-discovery-n320gsn2.js → console-access-n320gsn2.js} +1 -1
  217. package/dist/chunks/{instruction-discovery-45nqx4xx.js → console-access-n3j33rb6.js} +4 -4
  218. package/dist/chunks/{instruction-discovery-q84v8ast.js → console-access-n490h0n0.js} +17 -17
  219. package/dist/chunks/{instruction-discovery-rzba8b35.js → console-access-n6c28s3t.js} +3 -3
  220. package/dist/chunks/console-access-n881mvrn.js +577 -0
  221. package/dist/chunks/{instruction-discovery-82t5zjg4.js → console-access-naj1ztqj.js} +19 -19
  222. package/dist/chunks/{instruction-discovery-m5brqekz.js → console-access-nd2qx06s.js} +9 -9
  223. package/dist/chunks/{instruction-discovery-pnw5tfaz.js → console-access-ne6efjj0.js} +6 -6
  224. package/dist/chunks/{instruction-discovery-4ygb74tw.js → console-access-neary136.js} +8 -8
  225. package/dist/chunks/{instruction-discovery-j54ey3dk.js → console-access-nrhtst5k.js} +23 -23
  226. package/dist/chunks/{instruction-discovery-kkx9edz0.js → console-access-nrwphf96.js} +1 -1
  227. package/dist/chunks/{instruction-discovery-xwb75rjn.js → console-access-ns420n0m.js} +21 -21
  228. package/dist/chunks/{instruction-discovery-fvdwnf39.js → console-access-nwbwr24c.js} +18 -18
  229. package/dist/chunks/{instruction-discovery-8nvhek60.js → console-access-nx04q3sg.js} +17 -17
  230. package/dist/chunks/{instruction-discovery-y8aqsrqr.js → console-access-nzxxhp8f.js} +40 -40
  231. package/dist/chunks/{instruction-discovery-4dxbz5t2.js → console-access-p0dv86dy.js} +15 -15
  232. package/dist/chunks/{instruction-discovery-3fbvy841.js → console-access-p112r1sm.js} +46 -46
  233. package/dist/chunks/{instruction-discovery-sh1vctrz.js → console-access-p7v9ygj7.js} +3 -3
  234. package/dist/chunks/{instruction-discovery-cnm88yfy.js → console-access-phsfnnr6.js} +8 -8
  235. package/dist/chunks/{instruction-discovery-k0cpattz.js → console-access-pje0v8s4.js} +8 -8
  236. package/dist/chunks/{instruction-discovery-pknna89w.js → console-access-pknna89w.js} +1 -1
  237. package/dist/chunks/{instruction-discovery-6xfxs9wt.js → console-access-pnv204xn.js} +3 -3
  238. package/dist/chunks/{instruction-discovery-npdhee2a.js → console-access-pprmp17x.js} +31 -31
  239. package/dist/chunks/{instruction-discovery-xrwd0eaa.js → console-access-pqaxy2r3.js} +9 -9
  240. package/dist/chunks/{instruction-discovery-j0vpes8p.js → console-access-pqd1cn45.js} +12 -12
  241. package/dist/chunks/{instruction-discovery-gvvr0d1k.js → console-access-prpd82qr.js} +85 -85
  242. package/dist/chunks/{instruction-discovery-ppzye4tc.js → console-access-ptxz824y.js} +26 -26
  243. package/dist/chunks/{instruction-discovery-eryzpwpq.js → console-access-pvdvc745.js} +18 -18
  244. package/dist/chunks/{instruction-discovery-8e35k2dv.js → console-access-pw6384bd.js} +11 -11
  245. package/dist/chunks/{instruction-discovery-1p8dpx3b.js → console-access-q3cvvbew.js} +20 -20
  246. package/dist/chunks/{instruction-discovery-5zhccwhm.js → console-access-q3vm1595.js} +4 -4
  247. package/dist/chunks/{instruction-discovery-q42tzrxa.js → console-access-q42tzrxa.js} +1 -1
  248. package/dist/chunks/{instruction-discovery-q35nk5cz.js → console-access-q5w0t43j.js} +3 -3
  249. package/dist/chunks/{instruction-discovery-bcbg5853.js → console-access-qkqeqkpk.js} +20 -20
  250. package/dist/chunks/{instruction-discovery-szakm7q4.js → console-access-qns96f87.js} +11 -11
  251. package/dist/chunks/{instruction-discovery-41hph88s.js → console-access-qnwgk64f.js} +6 -6
  252. package/dist/chunks/{instruction-discovery-qp7r0hxv.js → console-access-qp7r0hxv.js} +1 -1
  253. package/dist/chunks/{instruction-discovery-1y1mzemz.js → console-access-qqwzamdg.js} +35 -35
  254. package/dist/chunks/{instruction-discovery-wfdx5ztx.js → console-access-qsdghx1p.js} +4 -4
  255. package/dist/chunks/{instruction-discovery-5cwxazss.js → console-access-qzjzxpbh.js} +12 -12
  256. package/dist/chunks/{instruction-discovery-xhkb6x72.js → console-access-r1f8qb7a.js} +16 -16
  257. package/dist/chunks/{instruction-discovery-k3g9bhk6.js → console-access-r2527jg6.js} +28 -28
  258. package/dist/chunks/{instruction-discovery-hgawkv06.js → console-access-r2xstaf7.js} +57 -57
  259. package/dist/chunks/{instruction-discovery-rb9dy4dg.js → console-access-rb9dy4dg.js} +1 -1
  260. package/dist/chunks/{instruction-discovery-wa5jqpkn.js → console-access-rcs0hb49.js} +8 -8
  261. package/dist/chunks/{instruction-discovery-y8x56kgy.js → console-access-rfmjs4hq.js} +25 -25
  262. package/dist/chunks/{instruction-discovery-rgc9cx3e.js → console-access-rgc9cx3e.js} +2 -2
  263. package/dist/chunks/{instruction-discovery-nb92b240.js → console-access-rhtywd3t.js} +48 -48
  264. package/dist/chunks/{instruction-discovery-0azcnvzv.js → console-access-rjmcyenf.js} +31 -31
  265. package/dist/chunks/{instruction-discovery-xn9c2ktn.js → console-access-rm9ajgvd.js} +42 -42
  266. package/dist/chunks/{instruction-discovery-rt5dr6hb.js → console-access-rt5dr6hb.js} +1 -1
  267. package/dist/chunks/{instruction-discovery-trp5xsg0.js → console-access-rvrjm6jd.js} +38 -38
  268. package/dist/chunks/{instruction-discovery-s1ba0vj0.js → console-access-s1ba0vj0.js} +2 -2
  269. package/dist/chunks/{instruction-discovery-tppacz0p.js → console-access-s22dy3a0.js} +15 -15
  270. package/dist/chunks/{instruction-discovery-rsh9mrpq.js → console-access-s2ge5w7w.js} +13 -13
  271. package/dist/chunks/{instruction-discovery-7h22etv1.js → console-access-s818qefp.js} +5 -5
  272. package/dist/chunks/{instruction-discovery-ehgta2nm.js → console-access-s8asb78j.js} +36 -36
  273. package/dist/chunks/{instruction-discovery-sbya78hr.js → console-access-sbya78hr.js} +1 -1
  274. package/dist/chunks/{instruction-discovery-75z8ttbx.js → console-access-smzy4vaf.js} +17 -17
  275. package/dist/chunks/{instruction-discovery-0j7gp832.js → console-access-sqjzf8x2.js} +4 -4
  276. package/dist/chunks/{instruction-discovery-svcy3p9a.js → console-access-svcy3p9a.js} +1 -1
  277. package/dist/chunks/{instruction-discovery-znv1hwjk.js → console-access-t6azh02g.js} +32 -32
  278. package/dist/chunks/{instruction-discovery-5evp2eyr.js → console-access-t9k8dc17.js} +7 -7
  279. package/dist/chunks/{instruction-discovery-bb7q5hvs.js → console-access-ta2xht0h.js} +7 -7
  280. package/dist/chunks/{instruction-discovery-71kmztew.js → console-access-tb69n0x2.js} +15 -15
  281. package/dist/chunks/{instruction-discovery-tbpn7jtk.js → console-access-tbpn7jtk.js} +1 -1
  282. package/dist/chunks/{instruction-discovery-tczq8hjw.js → console-access-tczq8hjw.js} +1 -1
  283. package/dist/chunks/{instruction-discovery-07z6t3m8.js → console-access-teb98hn1.js} +33 -33
  284. package/dist/chunks/{instruction-discovery-awx72zq7.js → console-access-tfbnzh0p.js} +16 -16
  285. package/dist/chunks/{instruction-discovery-ydsespw1.js → console-access-tg1vr1qt.js} +8 -8
  286. package/dist/chunks/{instruction-discovery-vfz1yd30.js → console-access-thrrdxke.js} +12 -12
  287. package/dist/chunks/{instruction-discovery-3nnrz6f6.js → console-access-tmc7xdjs.js} +4 -4
  288. package/dist/chunks/{instruction-discovery-nx1vpfa3.js → console-access-tqvcw06e.js} +23 -23
  289. package/dist/chunks/{instruction-discovery-w6ph90n3.js → console-access-trn5p6e4.js} +4 -4
  290. package/dist/chunks/{instruction-discovery-tvtps2q9.js → console-access-tvtps2q9.js} +1 -1
  291. package/dist/chunks/{instruction-discovery-twssxy5n.js → console-access-twssxy5n.js} +2 -2
  292. package/dist/chunks/{instruction-discovery-bex4xsk5.js → console-access-tx91wa5k.js} +4 -4
  293. package/dist/chunks/{instruction-discovery-qa8wq1bx.js → console-access-tz8eqr11.js} +9 -9
  294. package/dist/chunks/{instruction-discovery-mf63ygpr.js → console-access-v0t96s7a.js} +4 -4
  295. package/dist/chunks/{instruction-discovery-v2r1d0zg.js → console-access-v2r1d0zg.js} +1 -1
  296. package/dist/chunks/{instruction-discovery-s2qbnkbr.js → console-access-v9zdem22.js} +1 -1
  297. package/dist/chunks/{instruction-discovery-3bbmjbhc.js → console-access-vepp55ty.js} +10 -10
  298. package/dist/chunks/{instruction-discovery-vjf35v1f.js → console-access-vjf35v1f.js} +1 -1
  299. package/dist/chunks/{instruction-discovery-15zw0pf4.js → console-access-vrrgz1qg.js} +30 -30
  300. package/dist/chunks/{instruction-discovery-w76xjer3.js → console-access-vsnnaxjq.js} +4 -4
  301. package/dist/chunks/{instruction-discovery-ctmpqb7w.js → console-access-vt4r9rmy.js} +9 -9
  302. package/dist/chunks/{instruction-discovery-yy6p0r3f.js → console-access-vwrger27.js} +3 -3
  303. package/dist/chunks/{instruction-discovery-xhbkw68y.js → console-access-w15zd25f.js} +10 -10
  304. package/dist/chunks/{instruction-discovery-w3wsvvr9.js → console-access-w3wsvvr9.js} +1 -1
  305. package/dist/chunks/{instruction-discovery-x2x4cmk7.js → console-access-w58jdkkk.js} +18 -18
  306. package/dist/chunks/{instruction-discovery-hk297yx1.js → console-access-w9kzdg46.js} +24 -24
  307. package/dist/chunks/{instruction-discovery-wakvkjy4.js → console-access-wakvkjy4.js} +1 -1
  308. package/dist/chunks/{instruction-discovery-wd87259q.js → console-access-wd87259q.js} +1 -1
  309. package/dist/chunks/{instruction-discovery-wegkxhrn.js → console-access-wegkxhrn.js} +2 -2
  310. package/dist/chunks/{instruction-discovery-y4z3prv2.js → console-access-wrya0g69.js} +16 -16
  311. package/dist/chunks/{instruction-discovery-gdpv4h37.js → console-access-wt03ddtm.js} +11 -11
  312. package/dist/chunks/{instruction-discovery-c7cw818c.js → console-access-wt99tj4q.js} +5 -5
  313. package/dist/chunks/{instruction-discovery-vwcz1f45.js → console-access-wvr8xscb.js} +5 -5
  314. package/dist/chunks/{instruction-discovery-w986w4hx.js → console-access-wwxk7600.js} +6 -6
  315. package/dist/chunks/{instruction-discovery-kj9n5bvh.js → console-access-wzfa06mn.js} +4 -4
  316. package/dist/chunks/{instruction-discovery-2898qs3z.js → console-access-x04hzgkb.js} +11 -11
  317. package/dist/chunks/{instruction-discovery-pwjytcs6.js → console-access-x3recckr.js} +17 -17
  318. package/dist/chunks/{instruction-discovery-vzba0y0m.js → console-access-x5kfq3yz.js} +23 -23
  319. package/dist/chunks/{instruction-discovery-ck42qxzz.js → console-access-xbth7ss2.js} +14 -14
  320. package/dist/chunks/{instruction-discovery-7t1wcste.js → console-access-xgn44gwg.js} +85 -56
  321. package/dist/chunks/{instruction-discovery-xxschbft.js → console-access-xjr6c8m4.js} +4 -4
  322. package/dist/chunks/{instruction-discovery-x1yq6p9a.js → console-access-xkds0x2j.js} +20 -20
  323. package/dist/chunks/{instruction-discovery-w1d134qy.js → console-access-xkm32hee.js} +10 -10
  324. package/dist/chunks/{instruction-discovery-bvq8f0kp.js → console-access-xksr325c.js} +24 -24
  325. package/dist/chunks/{instruction-discovery-c6x7d2ts.js → console-access-xmx7xj34.js} +4 -4
  326. package/dist/chunks/{instruction-discovery-nvjede13.js → console-access-xtnrhe13.js} +17 -17
  327. package/dist/chunks/{instruction-discovery-p90c3rke.js → console-access-xv8ebtyd.js} +35 -35
  328. package/dist/chunks/{instruction-discovery-877ex1x8.js → console-access-xvwzx2wf.js} +4 -4
  329. package/dist/chunks/{instruction-discovery-a936ysns.js → console-access-xz9n4yz8.js} +27 -27
  330. package/dist/chunks/{instruction-discovery-8f5znwjq.js → console-access-y0mwm48d.js} +18 -18
  331. package/dist/chunks/{instruction-discovery-qtf35215.js → console-access-y1havdw8.js} +2 -2
  332. package/dist/chunks/{instruction-discovery-7wrg17wp.js → console-access-y5f0vbmm.js} +2 -2
  333. package/dist/chunks/{instruction-discovery-4xwww03f.js → console-access-y77t6fsn.js} +16 -16
  334. package/dist/chunks/{instruction-discovery-yb20nhc3.js → console-access-yb20nhc3.js} +1 -1
  335. package/dist/chunks/{instruction-discovery-ybws1qgk.js → console-access-ybws1qgk.js} +4 -4
  336. package/dist/chunks/{instruction-discovery-10pn4eb5.js → console-access-yepd7x5v.js} +5 -5
  337. package/dist/chunks/{instruction-discovery-aacxd4ty.js → console-access-ykmv08mh.js} +16 -16
  338. package/dist/chunks/{instruction-discovery-yq9kw5cw.js → console-access-ym6yadkh.js} +1 -1
  339. package/dist/chunks/{instruction-discovery-1vkak1f2.js → console-access-yn22anjs.js} +15 -15
  340. package/dist/chunks/{instruction-discovery-yr705xyq.js → console-access-yr705xyq.js} +1 -1
  341. package/dist/chunks/{instruction-discovery-b7nkz392.js → console-access-ys900tws.js} +1 -1
  342. package/dist/chunks/{instruction-discovery-yvtc2x31.js → console-access-yvtc2x31.js} +1 -1
  343. package/dist/chunks/{instruction-discovery-yv3vk3c7.js → console-access-yz8mc9g0.js} +9 -9
  344. package/dist/chunks/{instruction-discovery-hgf1wwv3.js → console-access-z67xtz9a.js} +6 -6
  345. package/dist/chunks/{instruction-discovery-jpg8zcfk.js → console-access-za044aqh.js} +2 -2
  346. package/dist/chunks/{instruction-discovery-m1a9cv8b.js → console-access-zhaqajd3.js} +21 -21
  347. package/dist/chunks/{instruction-discovery-4yntqjxm.js → console-access-zhn9qdqs.js} +25 -25
  348. package/dist/chunks/{instruction-discovery-zpdbqgja.js → console-access-zpdbqgja.js} +1 -1
  349. package/dist/chunks/{instruction-discovery-kab192kh.js → console-access-zt6km58w.js} +3 -3
  350. package/dist/chunks/{instruction-discovery-fw2qyj1f.js → console-access-zyd8fw9q.js} +81 -81
  351. package/dist/codemode/catalog.js +1 -1
  352. package/dist/codemode/execution.js +5 -5
  353. package/dist/codemode/fetch.js +148 -148
  354. package/dist/codemode/instructions.js +11 -11
  355. package/dist/codemode/tool.js +155 -155
  356. package/dist/command.js +94 -94
  357. package/dist/config/discovery.js +95 -95
  358. package/dist/config/integration.js +1 -1
  359. package/dist/config/managed.js +1 -1
  360. package/dist/config/markdown.js +1 -1
  361. package/dist/config/normalize.js +112 -112
  362. package/dist/config/plugin/agent.js +133 -133
  363. package/dist/config/plugin/command.js +240 -240
  364. package/dist/config/plugin/compaction.js +173 -173
  365. package/dist/config/plugin/compatibility.js +153 -153
  366. package/dist/config/plugin/entry-observer.js +1 -1
  367. package/dist/config/plugin/formatter.js +131 -131
  368. package/dist/config/plugin/image.js +130 -130
  369. package/dist/config/plugin/instruction.js +130 -130
  370. package/dist/config/plugin/location-watcher.js +130 -130
  371. package/dist/config/plugin/mcp.js +145 -145
  372. package/dist/config/plugin/policy.js +130 -130
  373. package/dist/config/plugin/provider.js +130 -130
  374. package/dist/config/plugin/reference.js +132 -132
  375. package/dist/config/plugin/shell.js +132 -132
  376. package/dist/config/plugin/skill-file.js +149 -149
  377. package/dist/config/plugin/skill-scan.js +1 -1
  378. package/dist/config/plugin/skill.js +156 -156
  379. package/dist/config/plugin/snapshot.js +130 -130
  380. package/dist/config/plugin/source.js +134 -134
  381. package/dist/config/plugin/tool-output.js +131 -131
  382. package/dist/config/plugin/websearch.js +131 -131
  383. package/dist/config/plugin/worktree.js +132 -132
  384. package/dist/config/variable.js +1 -1
  385. package/dist/config/watch.js +1 -1
  386. package/dist/config.js +133 -133
  387. package/dist/console-access.js +1 -1
  388. package/dist/credential/sql.js +2 -2
  389. package/dist/credential.js +94 -94
  390. package/dist/database/batch.js +1 -1
  391. package/dist/database/database.js +77 -77
  392. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  393. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  394. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  395. package/dist/database/drizzle/index.js +13 -13
  396. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  397. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  398. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  399. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  400. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  401. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  402. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  403. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  404. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  405. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  406. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  407. package/dist/database/drizzle.js +14 -14
  408. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  409. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  410. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  411. package/dist/database/migration/20260225215848_workspace.js +1 -1
  412. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  413. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  414. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  415. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  416. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  417. package/dist/database/migration/20260323234822_events.js +1 -1
  418. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  419. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  420. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  421. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  422. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  423. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  424. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  425. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  426. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  427. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  428. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  429. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  430. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  431. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  432. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  433. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  434. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  435. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  436. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  437. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  438. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  439. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  440. package/dist/database/migration/20260611035744_credential.js +1 -1
  441. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  442. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  443. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  444. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  445. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  446. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  447. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  448. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  449. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  450. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  451. package/dist/database/migration/20260812213948_worktree.js +1 -1
  452. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  453. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  454. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  455. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  456. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  457. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  458. package/dist/database/migration/20261024002554_session_allowance.js +1 -1
  459. package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
  460. package/dist/database/migration/20261025123711_blob.js +1 -1
  461. package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
  462. package/dist/database/migration/20261026223005_schedule.js +1 -1
  463. package/dist/database/migration/20261029002625_session_part.js +1 -1
  464. package/dist/database/migration/20261029073502_session_time_busy.js +1 -1
  465. package/dist/database/migration/20261029165540_schedule_checks.js +1 -1
  466. package/dist/database/migration/20261030054400_job.js +1 -1
  467. package/dist/database/migration.gen.js +60 -60
  468. package/dist/database/migration.js +76 -76
  469. package/dist/database/path.js +2 -2
  470. package/dist/database/schema.gen.js +1 -1
  471. package/dist/database/schema.sql.js +1 -1
  472. package/dist/database/v1-migration.bun.js +98 -98
  473. package/dist/database/v1-migration.js +1 -1
  474. package/dist/effect/app-node-builder.js +441 -441
  475. package/dist/effect/app-node-platform.js +2 -2
  476. package/dist/effect/keyed-mutex.js +1 -1
  477. package/dist/effect/websocket-constructor.js +1 -1
  478. package/dist/environment/driver.js +1 -1
  479. package/dist/environment/environment.js +105 -105
  480. package/dist/environment/exec-defaults.js +2 -2
  481. package/dist/environment/files.js +1 -1
  482. package/dist/environment/index.js +108 -108
  483. package/dist/environment/local.js +2 -2
  484. package/dist/environment/memory.js +2 -2
  485. package/dist/environment/unavailable.js +3 -3
  486. package/dist/event/sql.js +1 -1
  487. package/dist/event-logger.js +81 -81
  488. package/dist/file-access.js +160 -160
  489. package/dist/file-mutation.js +108 -108
  490. package/dist/file-retention.js +1 -1
  491. package/dist/file-write.js +164 -164
  492. package/dist/filesystem/fff.bun.js +2 -2
  493. package/dist/filesystem/fff.js +1 -1
  494. package/dist/filesystem/fff.node.js +2 -2
  495. package/dist/filesystem/fff.workerd.js +2 -2
  496. package/dist/filesystem/file-watch.js +88 -88
  497. package/dist/filesystem/location-watcher-policy.js +6 -6
  498. package/dist/filesystem/location-watcher.js +251 -251
  499. package/dist/filesystem/protected.js +1 -1
  500. package/dist/filesystem/search.js +111 -111
  501. package/dist/filesystem/watcher-binding.js +1 -1
  502. package/dist/filesystem/watcher.js +9 -9
  503. package/dist/filesystem.js +118 -118
  504. package/dist/flag.js +135 -135
  505. package/dist/form.js +91 -91
  506. package/dist/formatter/builtins.js +4 -4
  507. package/dist/formatter.js +100 -100
  508. package/dist/generate.js +118 -118
  509. package/dist/git.js +7 -7
  510. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  511. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  512. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  513. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  514. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  515. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  516. package/dist/github-copilot/copilot-provider.js +17 -17
  517. package/dist/github-copilot/models.js +112 -112
  518. package/dist/github-copilot/openai-compatible-error.js +1 -1
  519. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  520. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  521. package/dist/github-copilot/responses/openai-error.js +1 -1
  522. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  523. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  524. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  525. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  526. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  527. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  528. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  529. package/dist/image/notice.js +3 -3
  530. package/dist/image/photon-normalize.js +1 -1
  531. package/dist/image/photon-worker.js +1 -1
  532. package/dist/image/photon.js +4 -4
  533. package/dist/image.js +6 -6
  534. package/dist/instance/service.js +5 -5
  535. package/dist/instance.js +432 -432
  536. package/dist/instruction-discovery.js +95 -95
  537. package/dist/instructions/builtins.js +100 -100
  538. package/dist/instructions/index.js +3 -3
  539. package/dist/integration/connection.js +1 -1
  540. package/dist/integration.js +88 -88
  541. package/dist/job/list.js +5 -5
  542. package/dist/job/recovery.js +2 -2
  543. package/dist/job/sql.js +2 -2
  544. package/dist/job.js +90 -90
  545. package/dist/kv/sql.js +2 -2
  546. package/dist/kv.js +84 -84
  547. package/dist/location-activity.js +182 -182
  548. package/dist/location-lifecycle.js +153 -153
  549. package/dist/location-service-map.js +99 -99
  550. package/dist/location-services.js +429 -429
  551. package/dist/location.js +100 -100
  552. package/dist/managed-policy.js +3 -3
  553. package/dist/mcp/client.js +158 -158
  554. package/dist/mcp/connection.js +106 -106
  555. package/dist/mcp/index.js +126 -126
  556. package/dist/mcp/instructions.js +189 -189
  557. package/dist/mcp/oauth.js +89 -89
  558. package/dist/mcp/pool.js +112 -112
  559. package/dist/mcp/socket-client.js +1 -1
  560. package/dist/mcp/stdio.js +157 -157
  561. package/dist/mime.js +1 -1
  562. package/dist/modal/models.js +112 -112
  563. package/dist/model-resolver.js +112 -112
  564. package/dist/model-retry.js +1 -1
  565. package/dist/model.js +111 -111
  566. package/dist/models-dev/v1.js +1 -1
  567. package/dist/models-dev.js +115 -115
  568. package/dist/oauth/page.js +1 -1
  569. package/dist/permission/saved.js +91 -91
  570. package/dist/permission/sql.js +5 -5
  571. package/dist/permission.js +154 -154
  572. package/dist/persistent-pty/binary.bun.js +1 -1
  573. package/dist/persistent-pty/daemon.js +1 -1
  574. package/dist/persistent-pty/index.js +99 -99
  575. package/dist/persistent-pty/pty-binding.js +1 -1
  576. package/dist/persistent-pty.js +86 -86
  577. package/dist/plugin/agent.js +87 -87
  578. package/dist/plugin/command.js +119 -119
  579. package/dist/plugin/goal.js +3 -3
  580. package/dist/plugin/hooks.js +5 -5
  581. package/dist/plugin/host.js +244 -244
  582. package/dist/plugin/identity.js +5 -5
  583. package/dist/plugin/instance.js +5 -5
  584. package/dist/plugin/internal.js +408 -408
  585. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  586. package/dist/plugin/models-dev.js +110 -110
  587. package/dist/plugin/module.js +129 -129
  588. package/dist/plugin/optimize.js +2 -2
  589. package/dist/plugin/plan.js +149 -149
  590. package/dist/plugin/promise.js +1 -1
  591. package/dist/plugin/provider/amazon-bedrock.js +106 -106
  592. package/dist/plugin/provider/azure.js +133 -133
  593. package/dist/plugin/provider/cerebras.js +1 -1
  594. package/dist/plugin/provider/chatgpt.js +133 -133
  595. package/dist/plugin/provider/claude-agent/aisdk.js +117 -117
  596. package/dist/plugin/provider/claude-agent/claude/fork.js +2 -2
  597. package/dist/plugin/provider/claude-agent/claude/io.js +4 -4
  598. package/dist/plugin/provider/claude-agent/claude/probe.js +2 -2
  599. package/dist/plugin/provider/claude-agent/claude/query-options.js +4 -4
  600. package/dist/plugin/provider/claude-agent/claude/sdk.js +1 -1
  601. package/dist/plugin/provider/claude-agent/claude/session.js +4 -4
  602. package/dist/plugin/provider/claude-agent/claude/sessions.js +16 -16
  603. package/dist/plugin/provider/claude-agent/claude/status.js +9 -9
  604. package/dist/plugin/provider/claude-agent/index.js +148 -148
  605. package/dist/plugin/provider/claude-agent/instructions.js +112 -112
  606. package/dist/plugin/provider/claude-agent/integration.js +115 -115
  607. package/dist/plugin/provider/claude-agent/language-model/claude-agent-error.js +3 -3
  608. package/dist/plugin/provider/claude-agent/language-model/claude-agent-language-model.js +7 -7
  609. package/dist/plugin/provider/claude-agent/language-model/convert-claude-stream.js +6 -6
  610. package/dist/plugin/provider/claude-agent/language-model/convert-to-claude-message.js +1 -1
  611. package/dist/plugin/provider/claude-agent/language-model/request-kind.js +1 -1
  612. package/dist/plugin/provider/claude-agent/language-model/system-prompt.js +3 -3
  613. package/dist/plugin/provider/claude-agent/language-model/usage.js +3 -3
  614. package/dist/plugin/provider/claude-agent/provider.js +110 -110
  615. package/dist/plugin/provider/claude-agent/session.js +112 -112
  616. package/dist/plugin/provider/claude-agent/sync/catch-up.js +3 -3
  617. package/dist/plugin/provider/claude-agent/sync/checkpoints.js +2 -2
  618. package/dist/plugin/provider/claude-agent/sync/decide.js +2 -2
  619. package/dist/plugin/provider/claude-agent/sync/fingerprint.js +1 -1
  620. package/dist/plugin/provider/claude-agent/sync/record.js +3 -3
  621. package/dist/plugin/provider/claude-agent/tools/hooks.js +3 -3
  622. package/dist/plugin/provider/claude-agent/tools/names.js +1 -1
  623. package/dist/plugin/provider/claude-agent/tools/pending.js +3 -3
  624. package/dist/plugin/provider/claude-agent/tools/result.js +3 -3
  625. package/dist/plugin/provider/claude-agent/tools/server.js +4 -4
  626. package/dist/plugin/provider/cloudflare-ai-gateway.js +130 -130
  627. package/dist/plugin/provider/cloudflare-workers-ai.js +130 -130
  628. package/dist/plugin/provider/configured.js +126 -126
  629. package/dist/plugin/provider/credential-settings.js +88 -88
  630. package/dist/plugin/provider/databricks.js +1 -1
  631. package/dist/plugin/provider/digitalocean.js +109 -109
  632. package/dist/plugin/provider/dynamic.js +2 -2
  633. package/dist/plugin/provider/github-copilot.js +111 -111
  634. package/dist/plugin/provider/gitlab.js +109 -109
  635. package/dist/plugin/provider/google-vertex.js +127 -127
  636. package/dist/plugin/provider/kilo.js +1 -1
  637. package/dist/plugin/provider/llmgateway.js +89 -89
  638. package/dist/plugin/provider/lmstudio.js +140 -140
  639. package/dist/plugin/provider/local.js +137 -137
  640. package/dist/plugin/provider/modal.js +108 -108
  641. package/dist/plugin/provider/neon.js +1 -1
  642. package/dist/plugin/provider/nvidia.js +1 -1
  643. package/dist/plugin/provider/ollama.js +140 -140
  644. package/dist/plugin/provider/openai-context-caps.js +106 -106
  645. package/dist/plugin/provider/openai.js +133 -133
  646. package/dist/plugin/provider/opencode-watches.js +4 -4
  647. package/dist/plugin/provider/opencode.js +161 -161
  648. package/dist/plugin/provider/openrouter.js +104 -104
  649. package/dist/plugin/provider/poe.js +90 -90
  650. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  651. package/dist/plugin/provider/refresh.js +87 -87
  652. package/dist/plugin/provider/sap-ai-core.js +104 -104
  653. package/dist/plugin/provider/sdk-factory.js +1 -1
  654. package/dist/plugin/provider/snowflake-cortex.js +131 -131
  655. package/dist/plugin/provider/vllm.js +138 -138
  656. package/dist/plugin/provider/xai.js +104 -104
  657. package/dist/plugin/provider/zenmux.js +1 -1
  658. package/dist/plugin/provider.js +239 -239
  659. package/dist/plugin/sdk.js +85 -85
  660. package/dist/plugin/service.js +3 -3
  661. package/dist/plugin/skill.js +152 -152
  662. package/dist/plugin/source-directory.js +1 -1
  663. package/dist/plugin/supervisor.js +416 -416
  664. package/dist/plugin/tool-input-repair.js +4 -4
  665. package/dist/plugin/update.js +6 -6
  666. package/dist/plugin/vcs/git.js +99 -99
  667. package/dist/plugin/vcs/hg.js +99 -99
  668. package/dist/plugin/verbosity.js +106 -106
  669. package/dist/plugin/warming.js +130 -130
  670. package/dist/plugin/websearch/exa.js +8 -8
  671. package/dist/plugin/websearch/firecrawl.js +9 -9
  672. package/dist/plugin/websearch/index.js +10 -10
  673. package/dist/plugin/websearch/mcp.js +4 -4
  674. package/dist/plugin/websearch/parallel.js +9 -9
  675. package/dist/plugin/websearch/provider.js +3 -3
  676. package/dist/plugin/websearch/tavily.js +7 -7
  677. package/dist/plugin/websearch/tinyfish.js +7 -7
  678. package/dist/plugin.js +255 -255
  679. package/dist/project/icon.js +5 -5
  680. package/dist/project/schema.js +2 -2
  681. package/dist/project/sql.js +4 -4
  682. package/dist/project.js +93 -93
  683. package/dist/provider.js +110 -110
  684. package/dist/pty/protocol.js +1 -1
  685. package/dist/pty/ticket.js +1 -1
  686. package/dist/pty.js +111 -111
  687. package/dist/reference/instructions.js +101 -101
  688. package/dist/reference.js +103 -103
  689. package/dist/repository-cache.js +93 -93
  690. package/dist/repository.js +1 -1
  691. package/dist/ripgrep/binary.js +2 -2
  692. package/dist/ripgrep.js +111 -111
  693. package/dist/rpc.js +99 -99
  694. package/dist/schedule/check.js +249 -249
  695. package/dist/schedule/sql.js +6 -6
  696. package/dist/schedule.js +263 -263
  697. package/dist/schema.js +1 -1
  698. package/dist/session/affinity.js +3 -3
  699. package/dist/session/background.js +1 -1
  700. package/dist/session/blob.js +132 -132
  701. package/dist/session/command.js +85 -85
  702. package/dist/session/compaction.js +175 -175
  703. package/dist/session/context.js +205 -205
  704. package/dist/session/diff.js +101 -101
  705. package/dist/session/environment.js +5 -5
  706. package/dist/session/error.js +3 -3
  707. package/dist/session/event.js +1 -1
  708. package/dist/session/execution/restart.js +251 -251
  709. package/dist/session/execution.js +171 -171
  710. package/dist/session/generate.js +204 -204
  711. package/dist/session/history.js +139 -139
  712. package/dist/session/inbox.js +150 -150
  713. package/dist/session/info.js +3 -3
  714. package/dist/session/instruction-entry.js +90 -90
  715. package/dist/session/instruction-state.js +8 -8
  716. package/dist/session/instructions.js +144 -144
  717. package/dist/session/message-updater.js +4 -4
  718. package/dist/session/message.js +1 -1
  719. package/dist/session/model-request.js +171 -171
  720. package/dist/session/model-transport.js +9 -9
  721. package/dist/session/move.js +171 -171
  722. package/dist/session/projector.js +146 -146
  723. package/dist/session/prompt.js +151 -151
  724. package/dist/session/recent-text.js +1 -1
  725. package/dist/session/revert.js +142 -142
  726. package/dist/session/run-coordinator.js +3 -3
  727. package/dist/session/runner/index.js +3 -3
  728. package/dist/session/runner/llm.js +258 -258
  729. package/dist/session/runner/max-steps.js +1 -1
  730. package/dist/session/runner/model.js +113 -113
  731. package/dist/session/runner/publish-llm-event.js +153 -153
  732. package/dist/session/runner/retry.js +5 -5
  733. package/dist/session/runner/step.js +166 -166
  734. package/dist/session/runner/to-llm-message.js +140 -140
  735. package/dist/session/schema.js +3 -3
  736. package/dist/session/session.js +188 -188
  737. package/dist/session/shell.js +145 -145
  738. package/dist/session/skill.js +152 -152
  739. package/dist/session/sql.js +5 -5
  740. package/dist/session/stats.js +85 -85
  741. package/dist/session/store.js +145 -145
  742. package/dist/session/stored.js +2 -2
  743. package/dist/session/subagent-completion.js +3 -3
  744. package/dist/session/subagent-job.js +237 -237
  745. package/dist/session/system-prompt.js +3 -3
  746. package/dist/session/title.js +209 -209
  747. package/dist/session/to-session-error.js +152 -152
  748. package/dist/session/transfer.js +242 -242
  749. package/dist/session/usage.js +1 -1
  750. package/dist/session.js +237 -237
  751. package/dist/shared-cache.js +5 -5
  752. package/dist/shell/parse.js +6 -6
  753. package/dist/shell/result.js +1 -1
  754. package/dist/shell/scan.js +1 -1
  755. package/dist/shell/select.js +13 -13
  756. package/dist/shell.js +145 -145
  757. package/dist/skill/discovery.js +6 -6
  758. package/dist/skill/instructions.js +154 -154
  759. package/dist/skill.js +161 -161
  760. package/dist/snapshot.js +106 -106
  761. package/dist/state.js +1 -1
  762. package/dist/tool/html-markdown.js +1 -1
  763. package/dist/tool/http-body.js +1 -1
  764. package/dist/tool/mcp.js +188 -188
  765. package/dist/tool/plugin/artifact.js +236 -236
  766. package/dist/tool/plugin/edit.js +170 -170
  767. package/dist/tool/plugin/file-diff.js +1 -1
  768. package/dist/tool/plugin/glob.js +174 -174
  769. package/dist/tool/plugin/grep.js +173 -173
  770. package/dist/tool/plugin/image-generate.js +247 -247
  771. package/dist/tool/plugin/mcp-resource.js +169 -169
  772. package/dist/tool/plugin/opencode.js +166 -166
  773. package/dist/tool/plugin/patch.js +171 -171
  774. package/dist/tool/plugin/question.js +149 -149
  775. package/dist/tool/plugin/read.js +175 -175
  776. package/dist/tool/plugin/schedule.js +255 -255
  777. package/dist/tool/plugin/shell.js +243 -243
  778. package/dist/tool/plugin/skill.js +160 -160
  779. package/dist/tool/plugin/subagent.js +242 -242
  780. package/dist/tool/plugin/todo.js +156 -156
  781. package/dist/tool/plugin/webfetch.js +158 -158
  782. package/dist/tool/plugin/websearch.js +158 -158
  783. package/dist/tool/plugin/write.js +169 -169
  784. package/dist/tool/read-filesystem.js +118 -118
  785. package/dist/tool/runtime.js +1 -1
  786. package/dist/tool/search.js +109 -109
  787. package/dist/tool-output.js +7 -7
  788. package/dist/tool.js +165 -165
  789. package/dist/types/tool/plugin/read.d.ts +2 -1
  790. package/dist/types/tool/read-filesystem.d.ts +8 -9
  791. package/dist/usage-limits.js +100 -100
  792. package/dist/util/error-summary.js +1 -1
  793. package/dist/util/git-executable.js +3 -3
  794. package/dist/util/lazy.js +1 -1
  795. package/dist/util/slug.js +1 -1
  796. package/dist/util/token.js +1 -1
  797. package/dist/util/which.js +1 -1
  798. package/dist/util/wildcard.js +1 -1
  799. package/dist/v1/config/agent.js +5 -5
  800. package/dist/v1/config/command.js +3 -3
  801. package/dist/v1/config/mcp.js +4 -4
  802. package/dist/v1/config/migrate.js +105 -105
  803. package/dist/v1/config/permission.js +3 -3
  804. package/dist/v1/config/plugin.js +3 -3
  805. package/dist/v1/config/provider-options.js +1 -1
  806. package/dist/v1/config/provider.js +4 -4
  807. package/dist/variant.js +104 -104
  808. package/dist/vcs/patch.js +1 -1
  809. package/dist/vcs.js +100 -100
  810. package/dist/voice.js +99 -99
  811. package/dist/websearch.js +93 -93
  812. package/dist/wellknown/plugin.js +87 -87
  813. package/dist/wellknown.js +92 -92
  814. package/dist/workspace/driver.js +5 -5
  815. package/dist/workspace/sql.js +1 -1
  816. package/dist/workspace.js +87 -87
  817. package/dist/worktree/directory.js +2 -2
  818. package/dist/worktree/git.js +11 -11
  819. package/dist/worktree/sql.js +5 -5
  820. package/dist/worktree/strategies.js +102 -102
  821. package/dist/worktree.js +113 -113
  822. package/package.json +8 -8
  823. package/dist/chunks/instruction-discovery-a610t88q.js +0 -18
  824. package/dist/chunks/instruction-discovery-aqczazaa.js +0 -16
  825. package/dist/chunks/instruction-discovery-gp9b5t1t.js +0 -273
  826. package/dist/chunks/instruction-discovery-tcvn27ta.js +0 -577
  827. package/dist/chunks/instruction-discovery-tze7wbk4.js +0 -26
  828. /package/dist/chunks/{instruction-discovery-0qkdqm5v.js → console-access-0qkdqm5v.js} +0 -0
  829. /package/dist/chunks/{instruction-discovery-0zkw76rk.js → console-access-0zkw76rk.js} +0 -0
  830. /package/dist/chunks/{instruction-discovery-108x4f4w.js → console-access-108x4f4w.js} +0 -0
  831. /package/dist/chunks/{instruction-discovery-17cy0kzp.js → console-access-17cy0kzp.js} +0 -0
  832. /package/dist/chunks/{instruction-discovery-1cnp2v09.js → console-access-1cnp2v09.js} +0 -0
  833. /package/dist/chunks/{instruction-discovery-1kah00gy.js → console-access-1kah00gy.js} +0 -0
  834. /package/dist/chunks/{instruction-discovery-24dcb14g.js → console-access-24dcb14g.js} +0 -0
  835. /package/dist/chunks/{instruction-discovery-2710q6r3.js → console-access-2710q6r3.js} +0 -0
  836. /package/dist/chunks/{instruction-discovery-2bv980vf.js → console-access-2bv980vf.js} +0 -0
  837. /package/dist/chunks/{instruction-discovery-2c3vjs8z.js → console-access-2c3vjs8z.js} +0 -0
  838. /package/dist/chunks/{instruction-discovery-359p4xyc.js → console-access-359p4xyc.js} +0 -0
  839. /package/dist/chunks/{instruction-discovery-3af0jn4w.js → console-access-3af0jn4w.js} +0 -0
  840. /package/dist/chunks/{instruction-discovery-3asan66x.js → console-access-3asan66x.js} +0 -0
  841. /package/dist/chunks/{instruction-discovery-3v8g72cx.js → console-access-3v8g72cx.js} +0 -0
  842. /package/dist/chunks/{instruction-discovery-3wcehsnq.js → console-access-3wcehsnq.js} +0 -0
  843. /package/dist/chunks/{instruction-discovery-43n2bw4t.js → console-access-43n2bw4t.js} +0 -0
  844. /package/dist/chunks/{instruction-discovery-4knz6hnm.js → console-access-4knz6hnm.js} +0 -0
  845. /package/dist/chunks/{instruction-discovery-4qk9sjk2.js → console-access-4qk9sjk2.js} +0 -0
  846. /package/dist/chunks/{instruction-discovery-4y7fprxs.js → console-access-4y7fprxs.js} +0 -0
  847. /package/dist/chunks/{instruction-discovery-53557ph1.js → console-access-53557ph1.js} +0 -0
  848. /package/dist/chunks/{instruction-discovery-550bvhaj.js → console-access-550bvhaj.js} +0 -0
  849. /package/dist/chunks/{instruction-discovery-5w3e23ze.js → console-access-5w3e23ze.js} +0 -0
  850. /package/dist/chunks/{instruction-discovery-6agm2x70.js → console-access-6agm2x70.js} +0 -0
  851. /package/dist/chunks/{instruction-discovery-6prwharc.js → console-access-6prwharc.js} +0 -0
  852. /package/dist/chunks/{instruction-discovery-6q2bdcd1.js → console-access-6q2bdcd1.js} +0 -0
  853. /package/dist/chunks/{instruction-discovery-7akdwqpd.js → console-access-7akdwqpd.js} +0 -0
  854. /package/dist/chunks/{instruction-discovery-7m9af43g.js → console-access-7m9af43g.js} +0 -0
  855. /package/dist/chunks/{instruction-discovery-822emrt2.js → console-access-822emrt2.js} +0 -0
  856. /package/dist/chunks/{instruction-discovery-84wd9syh.js → console-access-84wd9syh.js} +0 -0
  857. /package/dist/chunks/{instruction-discovery-88xbtdfr.js → console-access-88xbtdfr.js} +0 -0
  858. /package/dist/chunks/{instruction-discovery-8n3pysct.js → console-access-8n3pysct.js} +0 -0
  859. /package/dist/chunks/{instruction-discovery-8wj87zfr.js → console-access-8wj87zfr.js} +0 -0
  860. /package/dist/chunks/{instruction-discovery-9a4afbnw.js → console-access-9a4afbnw.js} +0 -0
  861. /package/dist/chunks/{instruction-discovery-9rqn6x4v.js → console-access-9rqn6x4v.js} +0 -0
  862. /package/dist/chunks/{instruction-discovery-af5trqkr.js → console-access-af5trqkr.js} +0 -0
  863. /package/dist/chunks/{instruction-discovery-afrmfg78.js → console-access-afrmfg78.js} +0 -0
  864. /package/dist/chunks/{instruction-discovery-aqzs7mqg.js → console-access-aqzs7mqg.js} +0 -0
  865. /package/dist/chunks/{instruction-discovery-atq7p7m5.js → console-access-atq7p7m5.js} +0 -0
  866. /package/dist/chunks/{instruction-discovery-beh6qq61.js → console-access-beh6qq61.js} +0 -0
  867. /package/dist/chunks/{instruction-discovery-bhmrqjy3.js → console-access-bhmrqjy3.js} +0 -0
  868. /package/dist/chunks/{instruction-discovery-bkyjaxrp.js → console-access-bkyjaxrp.js} +0 -0
  869. /package/dist/chunks/{instruction-discovery-bmr6ed5q.js → console-access-bmr6ed5q.js} +0 -0
  870. /package/dist/chunks/{instruction-discovery-cf4snx6d.js → console-access-cf4snx6d.js} +0 -0
  871. /package/dist/chunks/{instruction-discovery-cqv5kn06.js → console-access-cqv5kn06.js} +0 -0
  872. /package/dist/chunks/{instruction-discovery-cvy3z8tj.js → console-access-cvy3z8tj.js} +0 -0
  873. /package/dist/chunks/{instruction-discovery-d9fn303g.js → console-access-d9fn303g.js} +0 -0
  874. /package/dist/chunks/{instruction-discovery-d9jj8t3e.js → console-access-d9jj8t3e.js} +0 -0
  875. /package/dist/chunks/{instruction-discovery-dap0rakb.js → console-access-dap0rakb.js} +0 -0
  876. /package/dist/chunks/{instruction-discovery-df08tz66.js → console-access-df08tz66.js} +0 -0
  877. /package/dist/chunks/{instruction-discovery-dy18nga0.js → console-access-dy18nga0.js} +0 -0
  878. /package/dist/chunks/{instruction-discovery-e5kj55wp.js → console-access-e5kj55wp.js} +0 -0
  879. /package/dist/chunks/{instruction-discovery-ean2d8b5.js → console-access-ean2d8b5.js} +0 -0
  880. /package/dist/chunks/{instruction-discovery-ec1grn59.js → console-access-ec1grn59.js} +0 -0
  881. /package/dist/chunks/{instruction-discovery-emrn6kk6.js → console-access-emrn6kk6.js} +0 -0
  882. /package/dist/chunks/{instruction-discovery-f0mxakyp.js → console-access-f0mxakyp.js} +0 -0
  883. /package/dist/chunks/{instruction-discovery-f6n9ztr4.js → console-access-f6n9ztr4.js} +0 -0
  884. /package/dist/chunks/{instruction-discovery-faypxj3z.js → console-access-faypxj3z.js} +0 -0
  885. /package/dist/chunks/{instruction-discovery-fd410y7t.js → console-access-fd410y7t.js} +0 -0
  886. /package/dist/chunks/{instruction-discovery-fkpq3x5p.js → console-access-fkpq3x5p.js} +0 -0
  887. /package/dist/chunks/{instruction-discovery-g4wezp1m.js → console-access-g4wezp1m.js} +0 -0
  888. /package/dist/chunks/{instruction-discovery-g86h250q.js → console-access-g86h250q.js} +0 -0
  889. /package/dist/chunks/{instruction-discovery-gebd4c9n.js → console-access-gebd4c9n.js} +0 -0
  890. /package/dist/chunks/{instruction-discovery-gftt206x.js → console-access-gftt206x.js} +0 -0
  891. /package/dist/chunks/{instruction-discovery-hcxmzztb.js → console-access-hcxmzztb.js} +0 -0
  892. /package/dist/chunks/{instruction-discovery-hk9envan.js → console-access-hk9envan.js} +0 -0
  893. /package/dist/chunks/{instruction-discovery-j2ntwpah.js → console-access-j2ntwpah.js} +0 -0
  894. /package/dist/chunks/{instruction-discovery-j5zkgpj8.js → console-access-j5zkgpj8.js} +0 -0
  895. /package/dist/chunks/{instruction-discovery-jjkms2e6.js → console-access-jjkms2e6.js} +0 -0
  896. /package/dist/chunks/{instruction-discovery-jr7sbwjy.js → console-access-jr7sbwjy.js} +0 -0
  897. /package/dist/chunks/{instruction-discovery-jwfs4k6c.js → console-access-jwfs4k6c.js} +0 -0
  898. /package/dist/chunks/{instruction-discovery-jwr30sdr.js → console-access-jwr30sdr.js} +0 -0
  899. /package/dist/chunks/{instruction-discovery-jzg6c2d5.js → console-access-jzg6c2d5.js} +0 -0
  900. /package/dist/chunks/{instruction-discovery-m18g726c.js → console-access-m18g726c.js} +0 -0
  901. /package/dist/chunks/{instruction-discovery-mp448xyj.js → console-access-mp448xyj.js} +0 -0
  902. /package/dist/chunks/{instruction-discovery-msx8hqn2.js → console-access-msx8hqn2.js} +0 -0
  903. /package/dist/chunks/{instruction-discovery-n05xt0ee.js → console-access-n05xt0ee.js} +0 -0
  904. /package/dist/chunks/{instruction-discovery-n3j8tn72.js → console-access-n3j8tn72.js} +0 -0
  905. /package/dist/chunks/{instruction-discovery-nh4v3znn.js → console-access-nh4v3znn.js} +0 -0
  906. /package/dist/chunks/{instruction-discovery-njntx4h6.js → console-access-njntx4h6.js} +0 -0
  907. /package/dist/chunks/{instruction-discovery-p71gwv9c.js → console-access-p71gwv9c.js} +0 -0
  908. /package/dist/chunks/{instruction-discovery-q3sfg36h.js → console-access-q3sfg36h.js} +0 -0
  909. /package/dist/chunks/{instruction-discovery-q74kybfr.js → console-access-q74kybfr.js} +0 -0
  910. /package/dist/chunks/{instruction-discovery-qb87gjwd.js → console-access-qb87gjwd.js} +0 -0
  911. /package/dist/chunks/{instruction-discovery-qfa1cgps.js → console-access-qfa1cgps.js} +0 -0
  912. /package/dist/chunks/{instruction-discovery-qg3g05ea.js → console-access-qg3g05ea.js} +0 -0
  913. /package/dist/chunks/{instruction-discovery-qrg20bc0.js → console-access-qrg20bc0.js} +0 -0
  914. /package/dist/chunks/{instruction-discovery-rcb2kzg1.js → console-access-rcb2kzg1.js} +0 -0
  915. /package/dist/chunks/{instruction-discovery-sdp7kfr6.js → console-access-sdp7kfr6.js} +0 -0
  916. /package/dist/chunks/{instruction-discovery-ssg3fenm.js → console-access-ssg3fenm.js} +0 -0
  917. /package/dist/chunks/{instruction-discovery-syrav9an.js → console-access-syrav9an.js} +0 -0
  918. /package/dist/chunks/{instruction-discovery-t03h4f5z.js → console-access-t03h4f5z.js} +0 -0
  919. /package/dist/chunks/{instruction-discovery-ty7weeps.js → console-access-ty7weeps.js} +0 -0
  920. /package/dist/chunks/{instruction-discovery-ve7vex1e.js → console-access-ve7vex1e.js} +0 -0
  921. /package/dist/chunks/{instruction-discovery-vtarvj67.js → console-access-vtarvj67.js} +0 -0
  922. /package/dist/chunks/{instruction-discovery-w803qqfp.js → console-access-w803qqfp.js} +0 -0
  923. /package/dist/chunks/{instruction-discovery-wc3fc9cn.js → console-access-wc3fc9cn.js} +0 -0
  924. /package/dist/chunks/{instruction-discovery-wer8tq1h.js → console-access-wer8tq1h.js} +0 -0
  925. /package/dist/chunks/{instruction-discovery-wtztk69x.js → console-access-wtztk69x.js} +0 -0
  926. /package/dist/chunks/{instruction-discovery-x0ckcb58.js → console-access-x0ckcb58.js} +0 -0
  927. /package/dist/chunks/{instruction-discovery-x4th4bpe.js → console-access-x4th4bpe.js} +0 -0
  928. /package/dist/chunks/{instruction-discovery-x61499pn.js → console-access-x61499pn.js} +0 -0
  929. /package/dist/chunks/{instruction-discovery-y44na4kk.js → console-access-y44na4kk.js} +0 -0
  930. /package/dist/chunks/{instruction-discovery-y8f7s663.js → console-access-y8f7s663.js} +0 -0
  931. /package/dist/chunks/{instruction-discovery-ygaqb7jw.js → console-access-ygaqb7jw.js} +0 -0
  932. /package/dist/chunks/{instruction-discovery-z0h12gs8.js → console-access-z0h12gs8.js} +0 -0
  933. /package/dist/chunks/{instruction-discovery-z5v4ffb3.js → console-access-z5v4ffb3.js} +0 -0
  934. /package/dist/chunks/{instruction-discovery-z9919s4g.js → console-access-z9919s4g.js} +0 -0
  935. /package/dist/chunks/{instruction-discovery-zxpyjp51.js → console-access-zxpyjp51.js} +0 -0
  936. /package/dist/chunks/{instruction-discovery-zz5vv3aq.js → console-access-zz5vv3aq.js} +0 -0
@@ -2,40 +2,40 @@ import {
2
2
  NonNegativeInt2,
3
3
  PositiveInt2,
4
4
  RelativePath2
5
- } from "./instruction-discovery-z5v4ffb3.js";
5
+ } from "./console-access-z5v4ffb3.js";
6
6
  import {
7
- Service61,
8
- node63
9
- } from "./instruction-discovery-1p8dpx3b.js";
7
+ Service64,
8
+ node65
9
+ } from "./console-access-q3cvvbew.js";
10
10
  import {
11
- Content3
12
- } from "./instruction-discovery-r7fbedde.js";
11
+ Content4
12
+ } from "./console-access-7a1x92tv.js";
13
13
  import {
14
14
  detect2
15
- } from "./instruction-discovery-4pyp9zr9.js";
15
+ } from "./console-access-4pyp9zr9.js";
16
16
  import {
17
17
  __export
18
- } from "./instruction-discovery-9rqn6x4v.js";
18
+ } from "./console-access-9rqn6x4v.js";
19
19
 
20
20
  // src/tool/read-filesystem.ts
21
21
  var exports_read_filesystem = {};
22
22
  __export(exports_read_filesystem, {
23
23
  BinaryFileError: () => BinaryFileError2,
24
+ DirectoryOffsetError: () => DirectoryOffsetError2,
24
25
  FileContent: () => FileContent2,
25
- ListEntry: () => ListEntry3,
26
+ ListEntry: () => ListEntry2,
26
27
  ListPage: () => ListPage2,
27
28
  MAX_MEDIA_INGEST_BYTES: () => MAX_MEDIA_INGEST_BYTES2,
28
29
  MAX_READ_BYTES: () => MAX_READ_BYTES2,
29
30
  MAX_READ_LINES: () => MAX_READ_LINES2,
30
31
  MEDIA_MIMES: () => MEDIA_MIMES2,
31
32
  MediaIngestLimitError: () => MediaIngestLimitError2,
32
- OffsetOutOfRangeError: () => OffsetOutOfRangeError2,
33
33
  PageInput: () => PageInput2,
34
34
  PathKindError: () => PathKindError2,
35
35
  ReadToolFileSystem: () => exports_read_filesystem,
36
- Service: () => Service45,
36
+ Service: () => Service34,
37
37
  TextPage: () => TextPage2,
38
- node: () => node48,
38
+ node: () => node37,
39
39
  read: () => read2
40
40
  });
41
41
  import path from "path";
@@ -47,6 +47,7 @@ var MAX_READ_LINES2 = 2000;
47
47
  var MAX_READ_BYTES2 = 50 * 1024;
48
48
  var MAX_MEDIA_INGEST_BYTES2 = 20 * 1024 * 1024;
49
49
  var FIRST_CHUNK = 256 * 1024;
50
+ var TAIL_LINES = 100;
50
51
  var MAX_LINE_LENGTH = 2000;
51
52
  var TREE_BASE = 6;
52
53
  var MAX_LINE_SUFFIX = `... (line truncated to ${MAX_LINE_LENGTH} chars)`;
@@ -69,12 +70,6 @@ class MediaIngestLimitError2 extends Schema.TaggedError()("ReadTool.MediaIngestL
69
70
  }
70
71
  }
71
72
 
72
- class OffsetOutOfRangeError2 extends Schema.TaggedError()("ReadTool.OffsetOutOfRangeError", { offset: Schema.Number, lines: Schema.Number }) {
73
- get message() {
74
- return `Offset ${this.offset} is out of range for this file (${this.lines} ${this.lines === 1 ? "line" : "lines"})`;
75
- }
76
- }
77
-
78
73
  class PathKindError2 extends Schema.TaggedError()("ReadTool.PathKindError", {
79
74
  resource: Schema.String,
80
75
  expected: Schema.Literals(["a file", "a file or directory"])
@@ -83,13 +78,21 @@ class PathKindError2 extends Schema.TaggedError()("ReadTool.PathKindError", {
83
78
  return `Path is not ${this.expected}: ${this.resource}`;
84
79
  }
85
80
  }
81
+
82
+ class DirectoryOffsetError2 extends Schema.TaggedError()("ReadTool.DirectoryOffsetError", {
83
+ resource: Schema.String
84
+ }) {
85
+ get message() {
86
+ return `A negative offset only works for files, and ${this.resource} is a directory`;
87
+ }
88
+ }
86
89
  var PageInput2 = Schema.Struct({
87
- offset: Schema.optionalKey(NonNegativeInt2),
90
+ offset: Schema.optionalKey(Schema.Int),
88
91
  limit: Schema.optionalKey(NonNegativeInt2)
89
92
  });
90
93
  var FileContent2 = Schema.Struct({
91
94
  type: Schema.Literal("file"),
92
- ...Content3.fields
95
+ ...Content4.fields
93
96
  }).annotate({ identifier: "ReadTool.FileContent" });
94
97
 
95
98
  class TextPage2 extends Schema.Class("ReadTool.TextPage")({
@@ -101,29 +104,31 @@ class TextPage2 extends Schema.Class("ReadTool.TextPage")({
101
104
  next: Schema.optionalKey(PositiveInt2)
102
105
  }) {
103
106
  }
104
- var ListEntry3 = Schema.Struct({
107
+ var ListEntry2 = Schema.Struct({
105
108
  path: RelativePath2,
106
109
  type: Schema.Literals(["file", "directory", "symlink"])
107
110
  }).annotate({ identifier: "ReadTool.ListEntry" });
108
111
 
109
112
  class ListPage2 extends Schema.Class("ReadTool.ListPage")({
110
113
  type: Schema.Literal("list-page"),
111
- entries: Schema.Array(ListEntry3),
114
+ entries: Schema.Array(ListEntry2),
112
115
  truncated: Schema.Boolean,
113
116
  next: Schema.optionalKey(PositiveInt2)
114
117
  }) {
115
118
  }
116
119
 
117
- class Service45 extends Context.Service()("@opencode/ReadToolFileSystem") {
120
+ class Service34 extends Context.Service()("@opencode/ReadToolFileSystem") {
118
121
  }
119
122
  var mimeType = (value) => lookup(value) || "application/octet-stream";
120
123
  var read2 = Effect.fn("ReadTool.read")(function* (files, input, resource, page = {}) {
121
124
  const virtual = resource.startsWith("skill://");
122
- const first = yield* files.read(input, { offset: 0, length: FIRST_CHUNK }).pipe(Effect.catchTag("Environment.WrongKind", (error) => {
125
+ const first = yield* files.read(input, { offset: 0, length: FIRST_CHUNK }).pipe(Effect.catchTag("Environment.WrongKind", (error) => Effect.gen(function* () {
123
126
  if (error.actual !== "directory")
124
- return Effect.fail(new PathKindError2({ resource, expected: "a file or directory" }));
125
- return files.list(input).pipe(Effect.map((entries) => list(entries, page, virtual ? "/" : path.sep)), Effect.catchTag("Environment.WrongKind", () => Effect.fail(new PathKindError2({ resource, expected: "a file or directory" }))));
126
- }));
127
+ return yield* new PathKindError2({ resource, expected: "a file or directory" });
128
+ if (page.offset !== undefined && page.offset < 0)
129
+ return yield* new DirectoryOffsetError2({ resource });
130
+ return yield* files.list(input).pipe(Effect.map((entries) => list(entries, page, virtual ? "/" : path.sep)), Effect.catchTag("Environment.WrongKind", () => Effect.fail(new PathKindError2({ resource, expected: "a file or directory" }))));
131
+ })));
127
132
  if (first instanceof ListPage2)
128
133
  return first;
129
134
  const media = detect2(first.bytes);
@@ -155,12 +160,8 @@ var read2 = Effect.fn("ReadTool.read")(function* (files, input, resource, page =
155
160
  mime: mimeType(input)
156
161
  };
157
162
  }
158
- if (first.bytes.length >= first.info.size) {
159
- const result = textPage(first.bytes, true, page);
160
- if (result === undefined)
161
- return yield* Effect.die("Read page did not settle for a complete first chunk");
162
- return yield* makeTextPage(input, resource, result, first.bytes.subarray(0, result.consumed).includes(0), lineCount(textLeaf(first.bytes).summary.lines, first.bytes.at(-1)));
163
- }
163
+ if (first.bytes.length >= first.info.size)
164
+ return yield* completePage(input, resource, first.bytes, page);
164
165
  const offset = page.offset || 1;
165
166
  const limit = Math.min(page.limit || MAX_READ_LINES2, MAX_READ_LINES2);
166
167
  const leaves = [textLeaf(first.bytes)];
@@ -169,23 +170,26 @@ var read2 = Effect.fn("ReadTool.read")(function* (files, input, resource, page =
169
170
  let ended = false;
170
171
  while (true) {
171
172
  const eof = ended || bytes >= first.info.size;
172
- if (lines >= offset - 1 || eof) {
173
+ const total = lineCount(lines, leaves.at(-1)?.bytes.at(-1));
174
+ if (eof && offset > total) {
175
+ const skipped = Math.max(0, total - Math.min(page.limit || TAIL_LINES, TAIL_LINES));
173
176
  const tree = textTree(leaves);
174
- const start = textOffset(tree, offset - 1);
175
- let position = 0;
176
- const selected = Buffer.concat(leaves.flatMap((leaf) => {
177
- const leafStart = position;
178
- position += leaf.summary.bytes;
179
- if (position <= start)
180
- return [];
181
- return [leaf.bytes.subarray(Math.max(0, start - leafStart))];
182
- }));
183
- const result = textPage(selected, eof, { limit });
177
+ const tail = textPage(textSlice(leaves, Math.max(0, textOffset(tree, skipped) - 1), tree.summary.bytes), true, page);
178
+ if (tail === undefined)
179
+ return yield* Effect.die("Read page did not settle for a complete file");
180
+ return yield* makeTextPage(input, resource, { ...tail, offset: Math.max(0, skipped - 1) + tail.offset }, leaves.some((leaf) => leaf.bytes.includes(0)));
181
+ }
182
+ if (eof || offset > 0 && lines >= offset - 1) {
183
+ const from = offset < 0 ? Math.max(1, total + offset + 1) : offset;
184
+ const tree = textTree(leaves);
185
+ const start = textOffset(tree, from - 1);
186
+ const end = Math.min(tree.summary.bytes, textOffset(tree, from - 1 + limit) + 1);
187
+ const result = textPage(textSlice(leaves, start, end), eof && end === tree.summary.bytes, { limit });
184
188
  if (result !== undefined) {
185
189
  const translated = {
186
190
  ...result,
187
- offset,
188
- ...result.next === undefined ? { next: undefined } : { next: offset + result.next - 1 }
191
+ offset: from,
192
+ ...result.next === undefined ? { next: undefined } : { next: from + result.next - 1 }
189
193
  };
190
194
  const consumed = start + result.consumed;
191
195
  let checked = 0;
@@ -194,7 +198,7 @@ var read2 = Effect.fn("ReadTool.read")(function* (files, input, resource, page =
194
198
  checked += leaf.summary.bytes;
195
199
  return length > 0 && leaf.bytes.subarray(0, length).includes(0);
196
200
  });
197
- return yield* makeTextPage(input, resource, translated, binary, lineCount(lines, leaves.at(-1)?.bytes.at(-1)));
201
+ return yield* makeTextPage(input, resource, translated, binary);
198
202
  }
199
203
  }
200
204
  const next = yield* readFile(files, input, resource, { offset: bytes, length: FIRST_CHUNK });
@@ -209,11 +213,16 @@ var read2 = Effect.fn("ReadTool.read")(function* (files, input, resource, page =
209
213
  }
210
214
  });
211
215
  var readFile = (files, input, resource, range) => files.read(input, range).pipe(Effect.catchTag("Environment.WrongKind", () => Effect.fail(new PathKindError2({ resource, expected: "a file" }))));
212
- var makeTextPage = Effect.fnUntraced(function* (input, resource, result, binary, lines) {
216
+ var completePage = Effect.fnUntraced(function* (input, resource, bytes, page) {
217
+ const total = lineCount(textLeaf(bytes).summary.lines, bytes.at(-1));
218
+ const result = textPage(bytes, true, page.offset !== undefined && page.offset < 0 ? { ...page, offset: Math.max(1, total + page.offset + 1) } : page);
219
+ if (result === undefined)
220
+ return yield* Effect.die("Read page did not settle for a complete file");
221
+ return yield* makeTextPage(input, resource, result, bytes.subarray(0, result.consumed).includes(0));
222
+ });
223
+ var makeTextPage = Effect.fnUntraced(function* (input, resource, result, binary) {
213
224
  if (binary)
214
225
  return yield* new BinaryFileError2({ resource });
215
- if (result.entries.length === 0 && result.offset !== 1)
216
- return yield* new OffsetOutOfRangeError2({ offset: result.offset, lines });
217
226
  return new TextPage2({
218
227
  type: "text-page",
219
228
  content: result.entries.join(`
@@ -228,7 +237,7 @@ var list = (items, page, sep = path.sep) => {
228
237
  const offset = page.offset || 1;
229
238
  const limit = Math.min(page.limit || MAX_READ_LINES2, MAX_READ_LINES2);
230
239
  const visible = items.flatMap((item) => item.type === "other" ? [] : [
231
- ListEntry3.make({
240
+ ListEntry2.make({
232
241
  path: RelativePath2.make(item.name + (item.type === "directory" ? sep : "")),
233
242
  type: item.type
234
243
  })
@@ -252,6 +261,16 @@ var textPage = (bytes, eof, page) => {
252
261
  const available = complete.map((line) => line.endsWith("\r") ? line.slice(0, -1) : line);
253
262
  const entries = [];
254
263
  let size = 0;
264
+ if (eof && offset > Math.max(1, available.length)) {
265
+ for (const value of available.slice(-Math.min(page.limit || TAIL_LINES, TAIL_LINES)).toReversed()) {
266
+ const text = clampLine(value);
267
+ size += Buffer.byteLength(text, "utf-8") + (entries.length > 0 ? 1 : 0);
268
+ if (size > MAX_READ_BYTES2)
269
+ break;
270
+ entries.unshift(text);
271
+ }
272
+ return { entries, offset: available.length - entries.length + 1, next: undefined, consumed: bytes.length };
273
+ }
255
274
  let next;
256
275
  for (const [index, value] of available.slice(offset - 1).entries()) {
257
276
  const line = offset + index;
@@ -321,6 +340,16 @@ var textOffset = (tree, newline) => {
321
340
  const end = nthNewline(node.bytes, remaining);
322
341
  return end === undefined ? tree.summary.bytes : offset + end;
323
342
  };
343
+ var textSlice = (leaves, start, end) => {
344
+ let position = 0;
345
+ return Buffer.concat(leaves.flatMap((leaf) => {
346
+ const leafStart = position;
347
+ position += leaf.summary.bytes;
348
+ if (position <= start || leafStart >= end)
349
+ return [];
350
+ return [leaf.bytes.subarray(Math.max(0, start - leafStart), end - leafStart)];
351
+ }));
352
+ };
324
353
  var nthNewline = (bytes, count) => {
325
354
  let found = 0;
326
355
  for (const [index, byte] of bytes.entries()) {
@@ -331,13 +360,13 @@ var nthNewline = (bytes, count) => {
331
360
  return index + 1;
332
361
  }
333
362
  };
334
- var layer = Layer.effect(Service45, Effect.gen(function* () {
335
- const environment = yield* Service61;
336
- return Service45.of({
363
+ var layer = Layer.effect(Service34, Effect.gen(function* () {
364
+ const environment = yield* Service64;
365
+ return Service34.of({
337
366
  list: environment.files.list,
338
367
  read: (path2, resource, page) => read2(environment.files, path2, resource, page)
339
368
  });
340
369
  }));
341
- var node48 = makeLocationNode({ service: Service45, layer, deps: [node63] });
370
+ var node37 = makeLocationNode({ service: Service34, layer, deps: [node65] });
342
371
 
343
- export { MAX_READ_LINES2, MAX_READ_BYTES2, MAX_MEDIA_INGEST_BYTES2, MEDIA_MIMES2, BinaryFileError2, MediaIngestLimitError2, OffsetOutOfRangeError2, PathKindError2, PageInput2, FileContent2, TextPage2, ListEntry3, ListPage2, Service45, read2, node48, exports_read_filesystem };
372
+ export { MAX_READ_LINES2, MAX_READ_BYTES2, MAX_MEDIA_INGEST_BYTES2, MEDIA_MIMES2, BinaryFileError2, MediaIngestLimitError2, PathKindError2, DirectoryOffsetError2, PageInput2, FileContent2, TextPage2, ListEntry2, ListPage2, Service34, read2, node37, exports_read_filesystem };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  __export
3
- } from "./instruction-discovery-9rqn6x4v.js";
3
+ } from "./console-access-9rqn6x4v.js";
4
4
 
5
5
  // src/plugin/websearch/provider.ts
6
6
  var exports_provider = {};
7
7
  __export(exports_provider, {
8
8
  WebSearchProvider: () => exports_provider,
9
- register: () => register3
9
+ register: () => register2
10
10
  });
11
11
  import { Effect } from "effect";
12
- var register3 = Effect.fn("WebSearchProvider.register")(function* (ctx, provider) {
12
+ var register2 = Effect.fn("WebSearchProvider.register")(function* (ctx, provider) {
13
13
  yield* ctx.integration.transform((editor) => {
14
14
  editor.update(provider.id, (integration) => integration.name = provider.name);
15
15
  editor.method.update({
@@ -34,4 +34,4 @@ var register3 = Effect.fn("WebSearchProvider.register")(function* (ctx, provider
34
34
  });
35
35
  });
36
36
 
37
- export { register3, exports_provider };
37
+ export { register2, exports_provider };
@@ -1,33 +1,33 @@
1
1
  import {
2
- Service80
3
- } from "./instruction-discovery-bq407wpz.js";
2
+ Service75
3
+ } from "./console-access-brtp5cf0.js";
4
4
  import {
5
5
  observe2
6
- } from "./instruction-discovery-tvtps2q9.js";
6
+ } from "./console-access-tvtps2q9.js";
7
7
  import {
8
- Service79
9
- } from "./instruction-discovery-wprpberk.js";
8
+ Service73
9
+ } from "./console-access-e1vmmkh1.js";
10
10
  import {
11
11
  Condition2,
12
- ID4,
12
+ ID5,
13
13
  Outcome3,
14
14
  Request2,
15
15
  Status2,
16
16
  toCreateInput2,
17
17
  When2,
18
- NotFoundError2,
18
+ NotFoundError3,
19
19
  DisabledError2,
20
- Service15
21
- } from "./instruction-discovery-3fbvy841.js";
20
+ Service20
21
+ } from "./console-access-p112r1sm.js";
22
22
  import {
23
23
  __export
24
- } from "./instruction-discovery-9rqn6x4v.js";
24
+ } from "./console-access-9rqn6x4v.js";
25
25
 
26
26
  // src/tool/plugin/schedule.ts
27
27
  var exports_schedule = {};
28
28
  __export(exports_schedule, {
29
29
  IDInput: () => IDInput2,
30
- Plugin: () => Plugin39,
30
+ Plugin: () => Plugin34,
31
31
  ScheduleTools: () => exports_schedule,
32
32
  View: () => View2
33
33
  });
@@ -40,7 +40,7 @@ var schedule_default = 'Manage scheduled prompts for this session.\n\nRequest: $
40
40
 
41
41
  // src/tool/plugin/schedule.ts
42
42
  var View2 = Schema.Struct({
43
- id: ID4,
43
+ id: ID5,
44
44
  name: Schema.String.pipe(optional),
45
45
  when: When2,
46
46
  tz: Schema.String,
@@ -61,19 +61,19 @@ var ListOutput = Schema.Struct({
61
61
  schedules: Schema.Array(View2)
62
62
  });
63
63
  var IDInput2 = Schema.Struct({
64
- id: ID4.annotate({ description: "Schedule id from schedule_list." })
64
+ id: ID5.annotate({ description: "Schedule id from schedule_list." })
65
65
  });
66
- var RemoveOutput = Schema.Struct({ id: ID4, removed: Schema.Boolean });
67
- var Plugin39 = {
66
+ var RemoveOutput = Schema.Struct({ id: ID5, removed: Schema.Boolean });
67
+ var Plugin34 = {
68
68
  id: "opencode.tool.schedule",
69
69
  effect: Effect.fn("ScheduleTools.Plugin")(function* (ctx) {
70
- const config = yield* Service80;
71
- const schedules = yield* Service15;
70
+ const config = yield* Service75;
71
+ const schedules = yield* Service20;
72
72
  const loaded = yield* observe2(config, ctx.event, Effect.andThen(ctx.tool.reload(), ctx.command.reload()));
73
- const flags = yield* Service79;
73
+ const flags = yield* Service73;
74
74
  const enabled = () => flags.resolve(loaded.entries).schedules.enabled;
75
75
  const allowed = (sessionID) => schedules.enabled(sessionID).pipe(Effect.flatMap((on) => on ? Effect.void : Effect.fail(new DisabledError2)));
76
- const owned = (id, sessionID) => allowed(sessionID).pipe(Effect.andThen(schedules.get(id)), Effect.filterOrFail((info) => info.sessionID === sessionID, () => new NotFoundError2({ scheduleID: id })));
76
+ const owned = (id, sessionID) => allowed(sessionID).pipe(Effect.andThen(schedules.get(id)), Effect.filterOrFail((info) => info.sessionID === sessionID, () => new NotFoundError3({ scheduleID: id })));
77
77
  const failure = (error) => new ToolFailure({ message: error.message, error });
78
78
  yield* ctx.tool.transform((editor) => {
79
79
  if (!enabled())
@@ -201,4 +201,4 @@ function toView(info) {
201
201
  };
202
202
  }
203
203
 
204
- export { View2, IDInput2, Plugin39, exports_schedule };
204
+ export { View2, IDInput2, Plugin34, exports_schedule };
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  Service93,
3
3
  node95
4
- } from "./instruction-discovery-n6fjjwma.js";
4
+ } from "./console-access-b9tmr8d0.js";
5
5
  import {
6
6
  Key4,
7
7
  External2,
8
- Service90,
9
- node92
10
- } from "./instruction-discovery-h0aek10s.js";
8
+ Service87,
9
+ node89
10
+ } from "./console-access-81vp2bdd.js";
11
11
  import {
12
12
  changes2,
13
13
  create4
14
- } from "./instruction-discovery-40y6dtc2.js";
14
+ } from "./console-access-40y6dtc2.js";
15
15
  import {
16
16
  key3
17
- } from "./instruction-discovery-n320gsn2.js";
17
+ } from "./console-access-n320gsn2.js";
18
18
  import {
19
19
  validateAnswer2,
20
20
  validateFields2
21
- } from "./instruction-discovery-bcbg5853.js";
21
+ } from "./console-access-qkqeqkpk.js";
22
22
  import {
23
23
  __export
24
- } from "./instruction-discovery-9rqn6x4v.js";
24
+ } from "./console-access-9rqn6x4v.js";
25
25
 
26
26
  // src/integration.ts
27
27
  var exports_integration3 = {};
@@ -114,7 +114,7 @@ var attemptLifetime = Duration.toMillis(Duration.minutes(10));
114
114
  var terminalRetention = Duration.toMillis(Duration.minutes(1));
115
115
  var scrubInterval = Duration.seconds(30);
116
116
  var layer = Layer.effect(Service86, Effect.gen(function* () {
117
- const credentials = yield* Service90;
117
+ const credentials = yield* Service87;
118
118
  const bus = yield* Service93;
119
119
  const processes = yield* AppProcess.Service;
120
120
  const scope = yield* Scope.Scope;
@@ -574,7 +574,7 @@ var answerError = (form, answer, method) => {
574
574
  var node88 = makeLocationNode({
575
575
  service: Service86,
576
576
  layer,
577
- deps: [node92, node95, AppProcess.node]
577
+ deps: [node89, node95, AppProcess.node]
578
578
  });
579
579
 
580
580
  export { ID18, MethodID2, AttemptID2, OAuthMethod2, CommandMethod2, KeyMethod2, ExternalMethod2, EnvMethod2, Method2, Info26, Attempt2, AttemptStatus2, CommandAttempt2, CommandAttemptStatus2, CodeRequiredError2, AuthorizationError2, AttemptNotFoundError2, Ref4, Service86, node88, exports_integration3, Event18 };
@@ -1,32 +1,32 @@
1
1
  import {
2
2
  Service93,
3
3
  node95
4
- } from "./instruction-discovery-n6fjjwma.js";
4
+ } from "./console-access-b9tmr8d0.js";
5
5
  import {
6
6
  environment2
7
- } from "./instruction-discovery-82t5zjg4.js";
7
+ } from "./console-access-naj1ztqj.js";
8
8
  import {
9
9
  makeDaemonTransport2
10
- } from "./instruction-discovery-bhmrqjy3.js";
10
+ } from "./console-access-bhmrqjy3.js";
11
11
  import {
12
12
  __export
13
- } from "./instruction-discovery-9rqn6x4v.js";
13
+ } from "./console-access-9rqn6x4v.js";
14
14
 
15
15
  // src/persistent-pty/index.ts
16
16
  var exports_persistent_pty = {};
17
17
  __export(exports_persistent_pty, {
18
18
  Handoff: () => Handoff2,
19
19
  InvalidCwdError: () => InvalidCwdError2,
20
- NotFoundError: () => NotFoundError4,
21
- Options: () => Options3,
20
+ NotFoundError: () => NotFoundError12,
21
+ Options: () => Options7,
22
22
  PersistentPty: () => exports_persistent_pty,
23
- Service: () => Service28,
23
+ Service: () => Service81,
24
24
  UnavailableError: () => UnavailableError5,
25
25
  UnsupportedError: () => UnsupportedError2,
26
- available: () => available3,
27
- configured: () => configured3,
28
- layer: () => layer13,
29
- node: () => node31
26
+ available: () => available4,
27
+ configured: () => configured10,
28
+ layer: () => layer28,
29
+ node: () => node83
30
30
  });
31
31
  import { stat } from "node:fs/promises";
32
32
  import path from "node:path";
@@ -44,8 +44,8 @@ import { Pty } from "@opencode/schema/pty";
44
44
  import { Global } from "@opencode/util/global";
45
45
  import { resolveBinary } from "#persistent-pty-binary";
46
46
  import { Handoff as Handoff2 } from "@opencode/schema/persistent-pty";
47
- import { available as available3 } from "#persistent-pty-binary";
48
- var Options3 = Schema.Struct({
47
+ import { available as available4 } from "#persistent-pty-binary";
48
+ var Options7 = Schema.Struct({
49
49
  handoff: Schema.optional(Handoff),
50
50
  root: Schema.optional(Schema.String)
51
51
  });
@@ -55,7 +55,7 @@ class UnavailableError5 extends Schema.TaggedError()("PersistentPty.UnavailableE
55
55
  }) {
56
56
  }
57
57
 
58
- class NotFoundError4 extends Schema.TaggedError()("PersistentPty.NotFoundError", {
58
+ class NotFoundError12 extends Schema.TaggedError()("PersistentPty.NotFoundError", {
59
59
  ptyID: Pty.ID
60
60
  }) {
61
61
  }
@@ -71,9 +71,9 @@ class UnsupportedError2 extends Schema.TaggedError()("PersistentPty.UnsupportedE
71
71
  }) {
72
72
  }
73
73
 
74
- class Service28 extends Context.Service()("@opencode/PersistentPty") {
74
+ class Service81 extends Context.Service()("@opencode/PersistentPty") {
75
75
  }
76
- var makeLayer = (options = {}) => Layer.effect(Service28, Effect.gen(function* () {
76
+ var makeLayer = (options = {}) => Layer.effect(Service81, Effect.gen(function* () {
77
77
  const bus = yield* Service93;
78
78
  const global = yield* Global.Service;
79
79
  const context = yield* Effect.context();
@@ -96,7 +96,7 @@ var makeLayer = (options = {}) => Layer.effect(Service28, Effect.gen(function* (
96
96
  const get = Effect.fn("PersistentPty.get")(function* (id) {
97
97
  const found = (yield* list()).find((terminal) => terminal.id === id);
98
98
  if (!found)
99
- return yield* new NotFoundError4({ ptyID: id });
99
+ return yield* new NotFoundError12({ ptyID: id });
100
100
  return found;
101
101
  });
102
102
  const create = Effect.fn("PersistentPty.create")(function* (sessionID, input) {
@@ -244,7 +244,7 @@ var makeLayer = (options = {}) => Layer.effect(Service28, Effect.gen(function* (
244
244
  detach: attachment.detach
245
245
  };
246
246
  });
247
- return Service28.of({
247
+ return Service81.of({
248
248
  list,
249
249
  get,
250
250
  create,
@@ -261,13 +261,13 @@ var makeLayer = (options = {}) => Layer.effect(Service28, Effect.gen(function* (
261
261
  attach
262
262
  });
263
263
  }));
264
- var layer13 = makeLayer();
265
- var configured3 = (options) => makeGlobalNode({
266
- service: Service28,
267
- layer: options === undefined ? layer13 : makeLayer(options),
264
+ var layer28 = makeLayer();
265
+ var configured10 = (options) => makeGlobalNode({
266
+ service: Service81,
267
+ layer: options === undefined ? layer28 : makeLayer(options),
268
268
  deps: [node95, Global.node]
269
269
  });
270
- var node31 = configured3();
270
+ var node83 = configured10();
271
271
  var request = (daemon, value, start = false) => daemon.request(value, start).pipe(Effect.mapError(unavailable));
272
272
  var optionalRequest = (daemon, value) => daemon.requestIfRunning(value).pipe(Effect.mapError(unavailable));
273
273
  var unexpected = (response) => Effect.fail(new UnavailableError5({ message: `unexpected opencode-pty response: ${response.type}` }));
@@ -304,4 +304,4 @@ function fromID(value) {
304
304
  return parsed;
305
305
  }
306
306
 
307
- export { Options3, UnavailableError5, NotFoundError4, InvalidCwdError2, UnsupportedError2, Service28, layer13, configured3, node31, exports_persistent_pty, Handoff2, available3 };
307
+ export { Options7, UnavailableError5, NotFoundError12, InvalidCwdError2, UnsupportedError2, Service81, layer28, configured10, node83, exports_persistent_pty, Handoff2, available4 };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  __export
3
- } from "./instruction-discovery-9rqn6x4v.js";
3
+ } from "./console-access-9rqn6x4v.js";
4
4
 
5
5
  // src/v1/config/command.ts
6
6
  var exports_command5 = {};
7
7
  __export(exports_command5, {
8
8
  ConfigCommandV1: () => exports_command5,
9
- Info: () => Info19
9
+ Info: () => Info21
10
10
  });
11
11
  import { Schema } from "effect";
12
- var Info19 = Schema.Struct({
12
+ var Info21 = Schema.Struct({
13
13
  template: Schema.String,
14
14
  description: Schema.optional(Schema.String),
15
15
  agent: Schema.optional(Schema.String),
@@ -18,4 +18,4 @@ var Info19 = Schema.Struct({
18
18
  subtask: Schema.optional(Schema.Boolean)
19
19
  });
20
20
 
21
- export { Info19, exports_command5 };
21
+ export { Info21, exports_command5 };
@@ -2,24 +2,24 @@ import {
2
2
  ID17,
3
3
  aisdk2,
4
4
  mergeOverlay2
5
- } from "./instruction-discovery-6mx9s162.js";
5
+ } from "./console-access-8j97sx0h.js";
6
6
  import {
7
7
  ID16,
8
8
  VariantID2,
9
9
  Family2,
10
- Info24
11
- } from "./instruction-discovery-y8x56kgy.js";
10
+ Info23
11
+ } from "./console-access-rfmjs4hq.js";
12
12
  import {
13
13
  __export
14
- } from "./instruction-discovery-9rqn6x4v.js";
14
+ } from "./console-access-9rqn6x4v.js";
15
15
 
16
16
  // src/github-copilot/models.ts
17
- var exports_models = {};
18
- __export(exports_models, {
19
- CopilotModels: () => exports_models,
20
- derive: () => derive2,
21
- get: () => get2,
22
- load: () => load4
17
+ var exports_models2 = {};
18
+ __export(exports_models2, {
19
+ CopilotModels: () => exports_models2,
20
+ derive: () => derive3,
21
+ get: () => get3,
22
+ load: () => load5
23
23
  });
24
24
  import { Money } from "@opencode/schema/money";
25
25
  import { Effect, Option, Schema } from "effect";
@@ -68,17 +68,17 @@ var RemoteModel = Schema.Struct({
68
68
  });
69
69
  var Response = Schema.Struct({ data: Schema.Array(Schema.Unknown) });
70
70
  var decodeModel = Schema.decodeUnknownOption(RemoteModel);
71
- function get2(http, baseURL, headers, existing) {
72
- return load4(http, baseURL, headers).pipe(Effect.map((remote) => derive2(baseURL, remote, existing)));
71
+ function get3(http, baseURL, headers, existing) {
72
+ return load5(http, baseURL, headers).pipe(Effect.map((remote) => derive3(baseURL, remote, existing)));
73
73
  }
74
- var load4 = Effect.fn("CopilotModels.load")(function* (http, baseURL, headers) {
74
+ var load5 = Effect.fn("CopilotModels.load")(function* (http, baseURL, headers) {
75
75
  const response = yield* HttpClient.filterStatusOk(http).execute(HttpClientRequest.get(`${baseURL}/models`).pipe(HttpClientRequest.setHeaders(headers))).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(Response)), Effect.timeout("5 seconds"));
76
76
  return new Map(response.data.flatMap((raw) => {
77
77
  const model = Option.getOrUndefined(decodeModel(raw));
78
78
  return model && usable(model) ? [[model.id, model]] : [];
79
79
  }));
80
80
  });
81
- function derive2(baseURL, remote, existing) {
81
+ function derive3(baseURL, remote, existing) {
82
82
  const result = new Map(existing.map((model) => [model.id, model]));
83
83
  for (const [id, model] of result) {
84
84
  const current = remote.get(model.modelID);
@@ -113,8 +113,8 @@ function build(id, remote, baseURL, previous) {
113
113
  const usdPerMillion = prices && prices.batch_size > 0 ? 1e4 / prices.batch_size : 0;
114
114
  const version = remote.version.startsWith(`${remote.id}-`) ? remote.version.slice(remote.id.length + 1) : remote.version;
115
115
  const released = previous?.time.released || Date.parse(version);
116
- return Info24.make({
117
- ...Info24.default(ID17.githubCopilot, id),
116
+ return Info23.make({
117
+ ...Info23.default(ID17.githubCopilot, id),
118
118
  id,
119
119
  modelID: ID16.make(remote.id),
120
120
  providerID: ID17.githubCopilot,
@@ -192,4 +192,4 @@ function variants(remote, messages) {
192
192
  ];
193
193
  }
194
194
 
195
- export { get2, load4, derive2, exports_models };
195
+ export { get3, load5, derive3, exports_models2 };