@opencode-ai/core 0.0.0-dev-18334 → 0.0.0-dev-18338

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 (754) hide show
  1. package/dist/account/sql.js +2 -2
  2. package/dist/agent.js +70 -70
  3. package/dist/aisdk-native.js +3 -3
  4. package/dist/aisdk.js +4 -4
  5. package/dist/app.js +2 -2
  6. package/dist/bus.js +68 -68
  7. package/dist/catalog.js +78 -78
  8. package/dist/chunks/{pty-02dbfq60.js → command-02dbfq60.js} +1 -1
  9. package/dist/chunks/{pty-63k0vevy.js → command-07086x0p.js} +12 -12
  10. package/dist/chunks/{pty-09vaeaer.js → command-0fxyfvd8.js} +3 -3
  11. package/dist/chunks/{pty-0kvmztkf.js → command-0kvmztkf.js} +1 -1
  12. package/dist/chunks/{pty-81mz04qm.js → command-0x9pc4qd.js} +3 -3
  13. package/dist/chunks/{pty-mzcgyw1d.js → command-0xw6stsz.js} +7 -7
  14. package/dist/chunks/{pty-8hx58cse.js → command-0y0kz806.js} +7 -7
  15. package/dist/chunks/{pty-heeswwmn.js → command-13kqh5ym.js} +10 -10
  16. package/dist/chunks/{pty-18pv8fg3.js → command-18pv8fg3.js} +2 -2
  17. package/dist/chunks/{pty-wsb1nxx2.js → command-18v6q0xy.js} +21 -21
  18. package/dist/chunks/{pty-ve0df51m.js → command-1cyx1kjz.js} +4 -4
  19. package/dist/chunks/{pty-mzj6ydvj.js → command-1d8re98f.js} +6 -6
  20. package/dist/chunks/{pty-3tmjw1xx.js → command-1fpz5k78.js} +2 -2
  21. package/dist/chunks/{pty-0jpabrph.js → command-20azrh1e.js} +9 -9
  22. package/dist/chunks/{pty-5nnwbsha.js → command-2326bf9a.js} +5 -5
  23. package/dist/chunks/{pty-4rqp4j7m.js → command-2kc32s9z.js} +7 -7
  24. package/dist/chunks/{pty-2m0hgr65.js → command-2m0hgr65.js} +1 -1
  25. package/dist/chunks/{pty-p26n68ww.js → command-2nbd4tew.js} +13 -13
  26. package/dist/chunks/{pty-2nmyybe0.js → command-2nmyybe0.js} +1 -1
  27. package/dist/chunks/{pty-9dnj3g8a.js → command-2pa0q0m7.js} +10 -10
  28. package/dist/chunks/{pty-8s0m95jw.js → command-2w0edm4d.js} +7 -7
  29. package/dist/chunks/{pty-2wds5nk3.js → command-2wds5nk3.js} +1 -1
  30. package/dist/chunks/{pty-7ev5chdf.js → command-34hf638t.js} +14 -14
  31. package/dist/chunks/{pty-3g8vftxb.js → command-3g8vftxb.js} +2 -2
  32. package/dist/chunks/{pty-3qv8nf0b.js → command-3qv8nf0b.js} +1 -1
  33. package/dist/chunks/{pty-p2559na6.js → command-3smpbccg.js} +3 -3
  34. package/dist/chunks/{pty-3thh6229.js → command-3thh6229.js} +2 -2
  35. package/dist/chunks/{pty-kpag6kfh.js → command-3vanabr6.js} +6 -6
  36. package/dist/chunks/{pty-8t2hdhmm.js → command-3xe1nwck.js} +3 -3
  37. package/dist/chunks/{pty-fd9akh10.js → command-3z201p5v.js} +15 -15
  38. package/dist/chunks/{pty-k60er779.js → command-45f68xg0.js} +10 -10
  39. package/dist/chunks/{pty-b7z6w66n.js → command-4gzs46ms.js} +3 -3
  40. package/dist/chunks/{pty-frysc0nn.js → command-4pmhaw5y.js} +9 -9
  41. package/dist/chunks/{pty-41e94bne.js → command-4pr43xfg.js} +14 -14
  42. package/dist/chunks/{pty-4s2xwh5d.js → command-4s2xwh5d.js} +3 -3
  43. package/dist/chunks/{pty-4zzdwbaz.js → command-4zzdwbaz.js} +2 -2
  44. package/dist/chunks/{pty-50jxp3hw.js → command-50jxp3hw.js} +1 -1
  45. package/dist/chunks/{pty-dapbg9ce.js → command-5530a4sj.js} +9 -9
  46. package/dist/chunks/{pty-57tzwnz4.js → command-57tzwnz4.js} +1 -1
  47. package/dist/chunks/{pty-58xdvehb.js → command-58xdvehb.js} +1 -1
  48. package/dist/chunks/{pty-5cdnkd94.js → command-5cdnkd94.js} +3 -3
  49. package/dist/chunks/{pty-02jh672z.js → command-5cn2as5p.js} +27 -27
  50. package/dist/chunks/{pty-k4h7rtgr.js → command-5ej4w4re.js} +7 -7
  51. package/dist/chunks/{pty-5fe026tx.js → command-5fe026tx.js} +3 -3
  52. package/dist/chunks/{pty-9xz132x0.js → command-5n4z7hw9.js} +29 -29
  53. package/dist/chunks/{pty-5rs65q6p.js → command-5rs65q6p.js} +1 -1
  54. package/dist/chunks/{pty-5vcssjzn.js → command-5vcssjzn.js} +1 -1
  55. package/dist/chunks/{pty-ezzbbpt3.js → command-5vt8h2zx.js} +13 -13
  56. package/dist/chunks/{pty-5z4zwtb4.js → command-5z4zwtb4.js} +2 -2
  57. package/dist/chunks/{pty-6272rtjg.js → command-6272rtjg.js} +1 -1
  58. package/dist/chunks/{pty-5y71y6aq.js → command-635kctt6.js} +6 -6
  59. package/dist/chunks/{pty-kwaxwgcd.js → command-68sn9976.js} +7 -7
  60. package/dist/chunks/{pty-5n0e25rx.js → command-6azbvp0j.js} +8 -8
  61. package/dist/chunks/{pty-z42p5vhz.js → command-6d08482p.js} +5 -5
  62. package/dist/chunks/{pty-h1kxvktj.js → command-6h3szv9d.js} +10 -10
  63. package/dist/chunks/{pty-sxp8nh0s.js → command-6jzrxqp8.js} +3 -3
  64. package/dist/chunks/{pty-6ky7rqk7.js → command-6ky7rqk7.js} +1 -1
  65. package/dist/chunks/{pty-6wkzvma0.js → command-6wkzvma0.js} +2 -2
  66. package/dist/chunks/{pty-jpw0c2hb.js → command-71b0nhr9.js} +2 -2
  67. package/dist/chunks/{pty-75h1hfe2.js → command-75h1hfe2.js} +2 -2
  68. package/dist/chunks/{pty-hchrdr4t.js → command-762h6w2y.js} +4 -4
  69. package/dist/chunks/{pty-0e43scmx.js → command-7b0tjb0r.js} +8 -8
  70. package/dist/chunks/{pty-7gqqz1s8.js → command-7gqqz1s8.js} +1 -1
  71. package/dist/chunks/{pty-7khw64yh.js → command-7khw64yh.js} +1 -1
  72. package/dist/chunks/{pty-7mrpdsq5.js → command-7mrpdsq5.js} +1 -1
  73. package/dist/chunks/{pty-9gthvhr1.js → command-7s3hdjsx.js} +8 -8
  74. package/dist/chunks/{pty-cb10vk7s.js → command-7sd2gfph.js} +11 -11
  75. package/dist/chunks/{pty-7thnevmq.js → command-7thnevmq.js} +2 -2
  76. package/dist/chunks/{pty-wxw93tt2.js → command-7v7j7gdn.js} +4 -4
  77. package/dist/chunks/{pty-7wcmqxrc.js → command-7wcmqxrc.js} +1 -1
  78. package/dist/chunks/{pty-9yrp1ad7.js → command-852qbg4y.js} +3 -3
  79. package/dist/chunks/{pty-zrn8d1yv.js → command-876e45a6.js} +11 -11
  80. package/dist/chunks/{pty-88jbfw8z.js → command-88jbfw8z.js} +2 -2
  81. package/dist/chunks/{pty-4jcspr7g.js → command-8by23dpn.js} +5 -5
  82. package/dist/chunks/{pty-gjy076rh.js → command-8h79yynz.js} +8 -8
  83. package/dist/chunks/{pty-8pngjawd.js → command-8pngjawd.js} +2 -2
  84. package/dist/chunks/{pty-c0wpjb9x.js → command-8vnat5be.js} +3 -3
  85. package/dist/chunks/{pty-mzh6z5a7.js → command-8x6f1wbp.js} +5 -5
  86. package/dist/chunks/{pty-th5k7hy4.js → command-8zxaej49.js} +3 -3
  87. package/dist/chunks/{pty-999qd968.js → command-999qd968.js} +1 -1
  88. package/dist/chunks/{pty-9f0rnpkn.js → command-9f0rnpkn.js} +1 -1
  89. package/dist/chunks/{pty-tepwy0cv.js → command-9k2vxwft.js} +3 -3
  90. package/dist/chunks/{pty-75bh2x5p.js → command-9prfjntx.js} +15 -15
  91. package/dist/chunks/{pty-4tc9kn3c.js → command-9sk2hxbj.js} +24 -24
  92. package/dist/chunks/{pty-a09abg6q.js → command-a09abg6q.js} +2 -2
  93. package/dist/chunks/{pty-59sg178t.js → command-a42fyn66.js} +4 -4
  94. package/dist/chunks/{pty-ggww5s4h.js → command-agsxfmys.js} +12 -12
  95. package/dist/chunks/{pty-0kx9g65f.js → command-aqb2brhr.js} +3 -3
  96. package/dist/chunks/{pty-qy7mm8w3.js → command-atdsxjyb.js} +7 -7
  97. package/dist/chunks/{pty-awg5d31a.js → command-awg5d31a.js} +1 -1
  98. package/dist/chunks/{pty-vq4bsz4p.js → command-awg90ga5.js} +90 -90
  99. package/dist/chunks/{pty-f5p36mn1.js → command-b1cpagj2.js} +3 -3
  100. package/dist/chunks/{pty-hhx769z4.js → command-b2znypa8.js} +6 -6
  101. package/dist/chunks/{pty-xc25jqxj.js → command-b52613qw.js} +3 -3
  102. package/dist/chunks/{pty-bh1wr8rq.js → command-bh1wr8rq.js} +2 -2
  103. package/dist/chunks/{pty-bmknfyv0.js → command-bmknfyv0.js} +2 -2
  104. package/dist/chunks/{pty-c9ts76et.js → command-bsxnqn9w.js} +3 -3
  105. package/dist/chunks/{pty-byab506k.js → command-byab506k.js} +1 -1
  106. package/dist/chunks/{pty-c4wcb9vc.js → command-c4wcb9vc.js} +2 -2
  107. package/dist/chunks/{pty-4pb49s5g.js → command-cc3ec8j0.js} +4 -4
  108. package/dist/chunks/{pty-vvw8wy47.js → command-cds8qqzh.js} +4 -4
  109. package/dist/chunks/{pty-csrx180a.js → command-csrx180a.js} +3 -3
  110. package/dist/chunks/{pty-d2gk9vpf.js → command-d2gk9vpf.js} +2 -2
  111. package/dist/chunks/{pty-d4ax61k3.js → command-d4ax61k3.js} +2 -2
  112. package/dist/chunks/{pty-4v3afprt.js → command-dchkjjs1.js} +6 -6
  113. package/dist/chunks/{pty-dhphtf1x.js → command-dhphtf1x.js} +1 -1
  114. package/dist/chunks/{pty-gb6y46qa.js → command-dtt78e9g.js} +7 -7
  115. package/dist/chunks/{pty-e1z9a0ts.js → command-e1z9a0ts.js} +2 -2
  116. package/dist/chunks/{pty-8v9vyqap.js → command-e24kf4q9.js} +7 -7
  117. package/dist/chunks/{pty-ec8vrfw5.js → command-ec8vrfw5.js} +1 -1
  118. package/dist/chunks/{pty-njhebxnk.js → command-eg9w23bg.js} +1 -1
  119. package/dist/chunks/{pty-enpg66yn.js → command-enpg66yn.js} +1 -1
  120. package/dist/chunks/{pty-f6c1t9rd.js → command-ep16agv5.js} +4 -4
  121. package/dist/chunks/{pty-k8fd3zhv.js → command-esf92hfb.js} +3 -3
  122. package/dist/chunks/{pty-0b0bqs4b.js → command-eskxxab2.js} +4 -4
  123. package/dist/chunks/{pty-ztjk4rav.js → command-f11jbhcb.js} +6 -6
  124. package/dist/chunks/{pty-ctzszweb.js → command-f45448df.js} +6 -6
  125. package/dist/chunks/{pty-j0a8c2ah.js → command-f4hn113j.js} +3 -3
  126. package/dist/chunks/{pty-f7q7a28y.js → command-f7q7a28y.js} +4 -4
  127. package/dist/chunks/{pty-f9wt0tjw.js → command-f9wt0tjw.js} +2 -2
  128. package/dist/chunks/{pty-fb7nfzf2.js → command-fb7nfzf2.js} +3 -3
  129. package/dist/chunks/{pty-8vd6pef0.js → command-fdafgy0p.js} +4 -4
  130. package/dist/chunks/{pty-fgyjabww.js → command-fgyjabww.js} +2 -2
  131. package/dist/chunks/{pty-gvb5fjaj.js → command-fr2dm94j.js} +4 -4
  132. package/dist/chunks/{pty-hey25ktd.js → command-fthn4xft.js} +2 -2
  133. package/dist/chunks/{pty-agqwgkz2.js → command-fyy436k1.js} +6 -6
  134. package/dist/chunks/{pty-v5r4ssgv.js → command-g2p7nacw.js} +147 -147
  135. package/dist/chunks/{pty-83e2qdb8.js → command-g6p65dha.js} +4 -4
  136. package/dist/chunks/{pty-gcay93cp.js → command-gcay93cp.js} +1 -1
  137. package/dist/chunks/{pty-gd2xppx8.js → command-gd2xppx8.js} +1 -1
  138. package/dist/chunks/{pty-scwsmnvy.js → command-gpeygqd6.js} +15 -15
  139. package/dist/chunks/{pty-gpybhmhb.js → command-gpybhmhb.js} +3 -3
  140. package/dist/chunks/{pty-k3z8bqpp.js → command-gwcdyecz.js} +3 -3
  141. package/dist/chunks/{pty-h12kt9pa.js → command-h12kt9pa.js} +2 -2
  142. package/dist/chunks/{pty-fxq037mg.js → command-h2afcd1x.js} +9 -9
  143. package/dist/chunks/{pty-mkaeg0rc.js → command-h3kcef9b.js} +8 -8
  144. package/dist/chunks/{pty-5vbqbv2r.js → command-h4nnfjrk.js} +59 -59
  145. package/dist/chunks/{pty-h94zdhz8.js → command-h94zdhz8.js} +2 -2
  146. package/dist/chunks/{pty-hp6rpdnc.js → command-hp6rpdnc.js} +1 -1
  147. package/dist/chunks/{pty-hqh8yks9.js → command-hqh8yks9.js} +3 -3
  148. package/dist/chunks/{pty-j2rwtkhe.js → command-j2rwtkhe.js} +4 -4
  149. package/dist/chunks/{pty-9bzgvrrs.js → command-j9qxmp1z.js} +8 -8
  150. package/dist/chunks/{pty-bc1jme2z.js → command-jcpbs0he.js} +2 -2
  151. package/dist/chunks/{pty-mr7hz5nx.js → command-jd3gn2jc.js} +8 -8
  152. package/dist/chunks/{pty-1rwfe3w7.js → command-jthqd831.js} +6 -6
  153. package/dist/chunks/{pty-jkx2v3a9.js → command-jxka5pmd.js} +3 -3
  154. package/dist/chunks/{pty-k42t1tha.js → command-k42t1tha.js} +2 -2
  155. package/dist/chunks/{pty-3eyrwrpy.js → command-kaxbcgz2.js} +4 -4
  156. package/dist/chunks/{pty-kg1345f7.js → command-kg1345f7.js} +1 -1
  157. package/dist/chunks/{pty-gry11svd.js → command-kj7y1q6w.js} +7 -7
  158. package/dist/chunks/{pty-kp1t5rcy.js → command-kp1t5rcy.js} +1 -1
  159. package/dist/chunks/{pty-krsqcmnj.js → command-krsqcmnj.js} +1 -1
  160. package/dist/chunks/{pty-2bh65m2v.js → command-m33naph7.js} +4 -4
  161. package/dist/chunks/{pty-m55whf0h.js → command-m55whf0h.js} +2 -2
  162. package/dist/chunks/{pty-aa3706nc.js → command-m5ptvz2y.js} +15 -15
  163. package/dist/chunks/{pty-y0k2k5v2.js → command-m6yhz9m5.js} +8 -8
  164. package/dist/chunks/{pty-y369bt6x.js → command-m7hzz66e.js} +5 -5
  165. package/dist/chunks/command-mb0mcgky.js +341 -0
  166. package/dist/chunks/{pty-mf0hyk7z.js → command-mf0hyk7z.js} +1 -1
  167. package/dist/chunks/{pty-g8qafzk6.js → command-mgrmrfyf.js} +7 -7
  168. package/dist/chunks/{pty-mh28new4.js → command-mh28new4.js} +2 -2
  169. package/dist/chunks/{pty-gzya93qj.js → command-mkegcr90.js} +3 -3
  170. package/dist/chunks/{pty-mnb85w6b.js → command-mnb85w6b.js} +2 -2
  171. package/dist/chunks/{pty-zgsy1s8j.js → command-mpyzw49z.js} +4 -4
  172. package/dist/chunks/{pty-bycv9049.js → command-mt1mc0tc.js} +82 -82
  173. package/dist/chunks/{pty-mxvw03gv.js → command-mxvw03gv.js} +1 -1
  174. package/dist/chunks/{pty-sst1754h.js → command-n00ksz6g.js} +7 -7
  175. package/dist/chunks/{pty-nesb2rcz.js → command-nesb2rcz.js} +2 -2
  176. package/dist/chunks/{pty-nr76rjj3.js → command-nr76rjj3.js} +2 -2
  177. package/dist/chunks/{pty-nzrjycs5.js → command-nzrjycs5.js} +1 -1
  178. package/dist/chunks/{pty-tm1k0b1t.js → command-p3cfaqcp.js} +10 -10
  179. package/dist/chunks/{pty-6q0m15b3.js → command-p8fr6x1v.js} +2 -2
  180. package/dist/chunks/{pty-5t6ev4f9.js → command-pmh5ez6x.js} +56 -56
  181. package/dist/chunks/{pty-pq4b4pqk.js → command-pq4b4pqk.js} +2 -2
  182. package/dist/chunks/{pty-njwvsg8m.js → command-pqtjdh5w.js} +12 -12
  183. package/dist/chunks/{pty-5ev5dm41.js → command-pxgcm67z.js} +10 -10
  184. package/dist/chunks/{pty-90ajpsyk.js → command-q2tqyfpq.js} +2 -2
  185. package/dist/chunks/{pty-q9b4qnv8.js → command-q9b4qnv8.js} +2 -2
  186. package/dist/chunks/{pty-qe0d689s.js → command-qe0d689s.js} +2 -2
  187. package/dist/chunks/{pty-yqza15cy.js → command-qevy6d6w.js} +36 -36
  188. package/dist/chunks/{pty-m62ssds6.js → command-qg4njq5q.js} +2 -2
  189. package/dist/chunks/{pty-0s07mtq1.js → command-qnx7s8px.js} +5 -5
  190. package/dist/chunks/{pty-x5g53fnr.js → command-qznv994b.js} +6 -6
  191. package/dist/chunks/{pty-r13w8t0w.js → command-r13w8t0w.js} +2 -2
  192. package/dist/chunks/{pty-r3k9abhd.js → command-r3k9abhd.js} +2 -2
  193. package/dist/chunks/{pty-rahat93a.js → command-rahat93a.js} +1 -1
  194. package/dist/chunks/{pty-rameyvmv.js → command-rameyvmv.js} +1 -1
  195. package/dist/chunks/{pty-rbnp2c85.js → command-rbnp2c85.js} +3 -3
  196. package/dist/chunks/{pty-rfbm65k8.js → command-rfbm65k8.js} +1 -1
  197. package/dist/chunks/{pty-s33fw6zm.js → command-s33fw6zm.js} +1 -1
  198. package/dist/chunks/{pty-bv58wyct.js → command-sdxjmp8q.js} +5 -5
  199. package/dist/chunks/{pty-se1aqaya.js → command-se1aqaya.js} +3 -3
  200. package/dist/chunks/{pty-smpeg8c9.js → command-smpeg8c9.js} +2 -2
  201. package/dist/chunks/{pty-sw84ckhj.js → command-sw84ckhj.js} +1 -1
  202. package/dist/chunks/{pty-t14kykx1.js → command-t14kykx1.js} +1 -1
  203. package/dist/chunks/{pty-tcptxgyq.js → command-tcptxgyq.js} +1 -1
  204. package/dist/chunks/{pty-qf57kmn8.js → command-tejwhz1j.js} +4 -4
  205. package/dist/chunks/{pty-34f5fj0z.js → command-tfxbd1jy.js} +8 -8
  206. package/dist/chunks/{pty-tgbb2ckq.js → command-tgbb2ckq.js} +2 -2
  207. package/dist/chunks/{pty-thstd87d.js → command-thstd87d.js} +1 -1
  208. package/dist/chunks/{pty-yd4t93pc.js → command-tzn4tdda.js} +4 -4
  209. package/dist/chunks/{pty-v2wshkax.js → command-v2wshkax.js} +1 -1
  210. package/dist/chunks/{pty-x31hnj33.js → command-v7tem4pa.js} +3 -3
  211. package/dist/chunks/{pty-v80zsxnb.js → command-v80zsxnb.js} +1 -1
  212. package/dist/chunks/{pty-v972xay6.js → command-v972xay6.js} +1 -1
  213. package/dist/chunks/{pty-v9bfv94f.js → command-v9bfv94f.js} +1 -1
  214. package/dist/chunks/{pty-aj9m13cz.js → command-va9v8x4k.js} +4 -4
  215. package/dist/chunks/{pty-vcwr2vpf.js → command-vcwr2vpf.js} +1 -1
  216. package/dist/chunks/{pty-cbp4tzfr.js → command-vcy7g1ry.js} +4 -4
  217. package/dist/chunks/{pty-qgedfe15.js → command-vhx6n6s7.js} +3 -3
  218. package/dist/chunks/{pty-vqbmgfq1.js → command-vqbmgfq1.js} +3 -3
  219. package/dist/chunks/{pty-3c3xz5w2.js → command-vrkzsqt1.js} +4 -4
  220. package/dist/chunks/{pty-vycjsnjm.js → command-vycjsnjm.js} +2 -2
  221. package/dist/chunks/{pty-vz89hfgr.js → command-vz89hfgr.js} +1 -1
  222. package/dist/chunks/{pty-3e611gqc.js → command-w9ch4qnj.js} +5 -5
  223. package/dist/chunks/{pty-wbkt8qpj.js → command-wbkt8qpj.js} +1 -1
  224. package/dist/chunks/{pty-21d46bda.js → command-wcwptmnn.js} +3 -3
  225. package/dist/chunks/{pty-wd268jeg.js → command-wd268jeg.js} +1 -1
  226. package/dist/chunks/{pty-whk0g8cz.js → command-whk0g8cz.js} +4 -4
  227. package/dist/chunks/{pty-wmxdh12w.js → command-wmxdh12w.js} +1 -1
  228. package/dist/chunks/{pty-wps8gh8n.js → command-wps8gh8n.js} +2 -2
  229. package/dist/chunks/{pty-p97a0mey.js → command-wq1hz9k5.js} +6 -6
  230. package/dist/chunks/{pty-n57pjc8k.js → command-wyak2t21.js} +3 -3
  231. package/dist/chunks/{pty-f0mp5ybc.js → command-x29w0fqx.js} +7 -7
  232. package/dist/chunks/{pty-vsp0ywmz.js → command-x4fsxj3w.js} +2 -2
  233. package/dist/chunks/{pty-x89rah0x.js → command-x89rah0x.js} +1 -1
  234. package/dist/chunks/{pty-xczfw7dq.js → command-xczfw7dq.js} +1 -1
  235. package/dist/chunks/{pty-xgv25zxy.js → command-xgv25zxy.js} +1 -1
  236. package/dist/chunks/{pty-yhqh92qf.js → command-xpd5ajfw.js} +13 -13
  237. package/dist/chunks/{pty-j0z5ak8k.js → command-xwash6kg.js} +41 -41
  238. package/dist/chunks/{pty-xwftk1fd.js → command-xwftk1fd.js} +2 -2
  239. package/dist/chunks/{pty-051n8qej.js → command-xx1crn9e.js} +14 -14
  240. package/dist/chunks/{pty-xxpvz42q.js → command-xxpvz42q.js} +3 -3
  241. package/dist/chunks/{pty-y0x38cee.js → command-y0x38cee.js} +1 -1
  242. package/dist/chunks/{pty-y198y2ra.js → command-y198y2ra.js} +1 -1
  243. package/dist/chunks/{pty-36b64kw5.js → command-y25c5dv9.js} +9 -9
  244. package/dist/chunks/{pty-72qw6s34.js → command-y2g3vveh.js} +7 -7
  245. package/dist/chunks/{pty-y67x6rf6.js → command-y67x6rf6.js} +1 -1
  246. package/dist/chunks/{pty-y980s7ka.js → command-y980s7ka.js} +3 -3
  247. package/dist/chunks/{pty-b2ykb7j7.js → command-yb07q8fy.js} +3 -3
  248. package/dist/chunks/{pty-ybhfpy64.js → command-ybhfpy64.js} +2 -2
  249. package/dist/chunks/{pty-vfaqc6pt.js → command-ybzkfmmh.js} +8 -8
  250. package/dist/chunks/{pty-yc2vxtaa.js → command-yc2vxtaa.js} +2 -2
  251. package/dist/chunks/{pty-yf0knd5z.js → command-yf0knd5z.js} +2 -2
  252. package/dist/chunks/{pty-ygy0xbqa.js → command-ygy0xbqa.js} +3 -3
  253. package/dist/chunks/{pty-d5c7vh5e.js → command-yk40qyxj.js} +5 -5
  254. package/dist/chunks/{pty-wpb53h8k.js → command-yz756q4w.js} +12 -12
  255. package/dist/chunks/{pty-fqex1cwa.js → command-z290dmzw.js} +10 -10
  256. package/dist/chunks/{pty-q3856v5v.js → command-z5eaewt6.js} +3 -3
  257. package/dist/chunks/{pty-w7xyqxnp.js → command-z5pbwkhm.js} +5 -5
  258. package/dist/chunks/{pty-61y22362.js → command-z8ebwbdj.js} +11 -11
  259. package/dist/chunks/{pty-zbqqnp0n.js → command-zbqqnp0n.js} +1 -1
  260. package/dist/chunks/{pty-zdkg1k91.js → command-zdkg1k91.js} +1 -1
  261. package/dist/chunks/{pty-hh9129p6.js → command-zkcd3d6b.js} +2 -2
  262. package/dist/chunks/{pty-k3ng8j0p.js → command-zv8cn6h8.js} +5 -5
  263. package/dist/chunks/{pty-shs983jy.js → command-zx1kt9ts.js} +11 -11
  264. package/dist/chunks/{pty-zxcy6vhn.js → command-zxcy6vhn.js} +1 -1
  265. package/dist/chunks/{pty-zxe9jjhn.js → command-zxe9jjhn.js} +2 -2
  266. package/dist/codemode/catalog.js +2 -2
  267. package/dist/codemode/instructions.js +4 -4
  268. package/dist/codemode/tool.js +3 -3
  269. package/dist/command.js +70 -70
  270. package/dist/config/markdown.js +2 -2
  271. package/dist/config/normalize.js +20 -20
  272. package/dist/config/plugin/agent.js +135 -135
  273. package/dist/config/plugin/command.js +118 -118
  274. package/dist/config/plugin/compaction.js +170 -170
  275. package/dist/config/plugin/entry-observer.js +114 -114
  276. package/dist/config/plugin/formatter.js +119 -119
  277. package/dist/config/plugin/image.js +130 -130
  278. package/dist/config/plugin/instruction.js +90 -90
  279. package/dist/config/plugin/location-watcher.js +117 -117
  280. package/dist/config/plugin/mcp.js +127 -127
  281. package/dist/config/plugin/policy.js +116 -116
  282. package/dist/config/plugin/provider.js +115 -115
  283. package/dist/config/plugin/reference.js +119 -119
  284. package/dist/config/plugin/shell.js +118 -118
  285. package/dist/config/plugin/skill-file.js +108 -108
  286. package/dist/config/plugin/skill.js +138 -138
  287. package/dist/config/plugin/snapshot.js +117 -117
  288. package/dist/config/plugin/source.js +114 -114
  289. package/dist/config/plugin/tool-output.js +119 -119
  290. package/dist/config/plugin/websearch.js +115 -115
  291. package/dist/config/variable.js +4 -4
  292. package/dist/config.js +113 -113
  293. package/dist/credential/sql.js +3 -3
  294. package/dist/credential.js +71 -71
  295. package/dist/database/database.js +65 -65
  296. package/dist/database/drizzle/effect-sqlite/driver.js +13 -13
  297. package/dist/database/drizzle/effect-sqlite/index.js +13 -13
  298. package/dist/database/drizzle/effect-sqlite/session.js +12 -12
  299. package/dist/database/drizzle/index.js +14 -14
  300. package/dist/database/drizzle/internal/drizzle-utils.js +2 -2
  301. package/dist/database/drizzle/sqlite-core/effect/count.js +2 -2
  302. package/dist/database/drizzle/sqlite-core/effect/db.js +10 -10
  303. package/dist/database/drizzle/sqlite-core/effect/delete.js +3 -3
  304. package/dist/database/drizzle/sqlite-core/effect/index.js +18 -18
  305. package/dist/database/drizzle/sqlite-core/effect/insert.js +3 -3
  306. package/dist/database/drizzle/sqlite-core/effect/query.js +2 -2
  307. package/dist/database/drizzle/sqlite-core/effect/raw.js +2 -2
  308. package/dist/database/drizzle/sqlite-core/effect/select.js +3 -3
  309. package/dist/database/drizzle/sqlite-core/effect/session.js +11 -11
  310. package/dist/database/drizzle/sqlite-core/effect/update.js +3 -3
  311. package/dist/database/drizzle.js +15 -15
  312. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +2 -2
  313. package/dist/database/migration/20260211171708_add_project_commands.js +2 -2
  314. package/dist/database/migration/20260213144116_wakeful_the_professor.js +2 -2
  315. package/dist/database/migration/20260225215848_workspace.js +2 -2
  316. package/dist/database/migration/20260227213759_add_session_workspace_id.js +2 -2
  317. package/dist/database/migration/20260228203230_blue_harpoon.js +2 -2
  318. package/dist/database/migration/20260303231226_add_workspace_fields.js +2 -2
  319. package/dist/database/migration/20260309230000_move_org_to_state.js +2 -2
  320. package/dist/database/migration/20260312043431_session_message_cursor.js +2 -2
  321. package/dist/database/migration/20260323234822_events.js +2 -2
  322. package/dist/database/migration/20260410174513_workspace-name.js +2 -2
  323. package/dist/database/migration/20260413175956_chief_energizer.js +2 -2
  324. package/dist/database/migration/20260423070820_add_icon_url_override.js +2 -2
  325. package/dist/database/migration/20260427172553_slow_nightmare.js +2 -2
  326. package/dist/database/migration/20260428004200_add_session_path.js +2 -2
  327. package/dist/database/migration/20260501142318_next_venus.js +2 -2
  328. package/dist/database/migration/20260504145000_add_sync_owner.js +2 -2
  329. package/dist/database/migration/20260507164347_add_workspace_time.js +2 -2
  330. package/dist/database/migration/20260510033149_session_usage.js +2 -2
  331. package/dist/database/migration/20260511000411_data_migration_state.js +2 -2
  332. package/dist/database/migration/20260511173437_session-metadata.js +2 -2
  333. package/dist/database/migration/20260601010001_normalize_storage_paths.js +2 -2
  334. package/dist/database/migration/20260601202201_amazing_prowler.js +2 -2
  335. package/dist/database/migration/20260602002951_lowly_union_jack.js +2 -2
  336. package/dist/database/migration/20260602182828_add_project_directories.js +2 -2
  337. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +2 -2
  338. package/dist/database/migration/20260603040000_session_message_projection_order.js +2 -2
  339. package/dist/database/migration/20260603141458_session_input_inbox.js +2 -2
  340. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +2 -2
  341. package/dist/database/migration/20260604172448_event_sourced_session_input.js +2 -2
  342. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +2 -2
  343. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +2 -2
  344. package/dist/database/migration/20260611035744_credential.js +2 -2
  345. package/dist/database/migration/20260611192811_lush_chimera.js +2 -2
  346. package/dist/database/migration/20260612174303_project_dir_strategy.js +2 -2
  347. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +2 -2
  348. package/dist/database/migration/20260622170816_reset_v2_session_state.js +2 -2
  349. package/dist/database/migration/20260622202450_simplify_session_input.js +2 -2
  350. package/dist/database/migration/20260804233008_loose_psylocke.js +2 -2
  351. package/dist/database/migration/20260805200742_import_legacy_credentials.js +2 -2
  352. package/dist/database/migration/20260808023530_workspace_domain.js +2 -2
  353. package/dist/database/migration/20260811161259_execution_claim_attempts.js +2 -2
  354. package/dist/database/migration/20260812181746_session_inbox.js +2 -2
  355. package/dist/database/migration/20260812213948_worktree.js +2 -2
  356. package/dist/database/migration/20260819222447_session_viewed_state.js +2 -2
  357. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +2 -2
  358. package/dist/database/migration.gen.js +48 -48
  359. package/dist/database/migration.js +50 -50
  360. package/dist/database/path.js +3 -3
  361. package/dist/database/schema.gen.js +2 -2
  362. package/dist/database/schema.sql.js +2 -2
  363. package/dist/database/sqlite.bun.js +2 -2
  364. package/dist/database/sqlite.js +2 -2
  365. package/dist/database/sqlite.node.js +2 -2
  366. package/dist/database/sqlite.workerd.js +2 -2
  367. package/dist/database/v1-migration.bun.js +77 -77
  368. package/dist/database/v1-migration.js +2 -2
  369. package/dist/database/v1-migration.noop.js +1 -1
  370. package/dist/effect/app-node-builder.js +327 -327
  371. package/dist/effect/app-node-platform.js +3 -3
  372. package/dist/effect/keyed-mutex.js +2 -2
  373. package/dist/effect/websocket-constructor.js +2 -2
  374. package/dist/environment/driver.js +1 -1
  375. package/dist/environment/environment.js +91 -91
  376. package/dist/environment/exec-defaults.js +3 -3
  377. package/dist/environment/files.js +2 -2
  378. package/dist/environment/index.js +93 -93
  379. package/dist/environment/local.js +3 -3
  380. package/dist/environment/memory.js +3 -3
  381. package/dist/environment/unavailable.js +1 -1
  382. package/dist/event/sql.js +2 -2
  383. package/dist/event-logger.js +68 -68
  384. package/dist/file-mutation.js +92 -92
  385. package/dist/file-retention.js +2 -2
  386. package/dist/file.js +2 -2
  387. package/dist/filesystem/fff.bun.js +2 -2
  388. package/dist/filesystem/fff.js +2 -2
  389. package/dist/filesystem/fff.node.js +2 -2
  390. package/dist/filesystem/fff.workerd.js +2 -2
  391. package/dist/filesystem/ignore.js +1 -1
  392. package/dist/filesystem/location-watcher-policy.js +3 -3
  393. package/dist/filesystem/location-watcher.js +306 -306
  394. package/dist/filesystem/protected.js +2 -2
  395. package/dist/filesystem/search.js +96 -96
  396. package/dist/filesystem/watcher-binding.js +2 -2
  397. package/dist/filesystem/watcher.js +4 -4
  398. package/dist/filesystem.js +96 -96
  399. package/dist/form.js +69 -69
  400. package/dist/formatter/builtins.js +3 -3
  401. package/dist/formatter.js +85 -85
  402. package/dist/generate.js +84 -84
  403. package/dist/git.js +5 -5
  404. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +2 -2
  405. package/dist/github-copilot/chat/get-response-metadata.js +2 -2
  406. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +2 -2
  407. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +8 -8
  408. package/dist/github-copilot/chat/openai-compatible-chat-options.js +2 -2
  409. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +2 -2
  410. package/dist/github-copilot/copilot-provider.js +20 -20
  411. package/dist/github-copilot/models.js +4 -4
  412. package/dist/github-copilot/openai-compatible-error.js +2 -2
  413. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +2 -2
  414. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +2 -2
  415. package/dist/github-copilot/responses/openai-error.js +2 -2
  416. package/dist/github-copilot/responses/openai-responses-language-model.js +11 -11
  417. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +7 -7
  418. package/dist/github-copilot/responses/tool/code-interpreter.js +2 -2
  419. package/dist/github-copilot/responses/tool/file-search.js +2 -2
  420. package/dist/github-copilot/responses/tool/image-generation.js +2 -2
  421. package/dist/github-copilot/responses/tool/web-search-preview.js +2 -2
  422. package/dist/github-copilot/responses/tool/web-search.js +2 -2
  423. package/dist/id/id.js +2 -2
  424. package/dist/image/photon-wasm.bun.js +1 -1
  425. package/dist/image/photon-wasm.node.js +1 -1
  426. package/dist/image/photon-wasm.workerd.js +1 -1
  427. package/dist/image/photon.js +98 -98
  428. package/dist/image.js +98 -98
  429. package/dist/instruction-discovery.js +72 -72
  430. package/dist/instructions/builtins.js +86 -86
  431. package/dist/instructions/index.js +2 -2
  432. package/dist/integration/connection.js +2 -2
  433. package/dist/integration.js +75 -75
  434. package/dist/job.js +72 -72
  435. package/dist/kv/sql.js +3 -3
  436. package/dist/kv.js +68 -68
  437. package/dist/location-activity.js +85 -85
  438. package/dist/location-mutation.js +84 -84
  439. package/dist/location-service-map.js +84 -84
  440. package/dist/location-services.js +327 -327
  441. package/dist/location.js +83 -83
  442. package/dist/mcp/client.js +96 -93
  443. package/dist/mcp/index.js +98 -98
  444. package/dist/mcp/instructions.js +128 -128
  445. package/dist/mcp/oauth.js +2 -2
  446. package/dist/mcp/stdio.js +92 -92
  447. package/dist/mime.js +2 -2
  448. package/dist/model-resolver.js +81 -81
  449. package/dist/model.js +3 -3
  450. package/dist/models-dev.js +75 -75
  451. package/dist/oauth/page.js +2 -2
  452. package/dist/permission/saved.js +84 -84
  453. package/dist/permission/sql.js +6 -6
  454. package/dist/permission.js +105 -105
  455. package/dist/persistent-pty/binary.bun.js +2 -2
  456. package/dist/persistent-pty/binary.node.js +1 -1
  457. package/dist/persistent-pty/binary.workerd.js +1 -1
  458. package/dist/persistent-pty/daemon.js +2 -2
  459. package/dist/persistent-pty/index.js +70 -70
  460. package/dist/persistent-pty/pty-binding.js +2 -2
  461. package/dist/persistent-pty.js +70 -70
  462. package/dist/plugin/agent.js +106 -106
  463. package/dist/plugin/command.js +99 -99
  464. package/dist/plugin/hooks.js +3 -3
  465. package/dist/plugin/host.js +170 -170
  466. package/dist/plugin/internal.js +300 -300
  467. package/dist/plugin/mcp-codemode-exclusion.js +2 -2
  468. package/dist/plugin/models-dev.js +76 -76
  469. package/dist/plugin/module.js +3 -3
  470. package/dist/plugin/plan.js +106 -106
  471. package/dist/plugin/promise.js +2 -2
  472. package/dist/plugin/provider/alibaba.js +3 -3
  473. package/dist/plugin/provider/amazon-bedrock.js +3 -3
  474. package/dist/plugin/provider/anthropic.js +3 -3
  475. package/dist/plugin/provider/azure.js +121 -121
  476. package/dist/plugin/provider/cerebras.js +3 -3
  477. package/dist/plugin/provider/cloudflare-ai-gateway.js +122 -122
  478. package/dist/plugin/provider/cloudflare-workers-ai.js +122 -122
  479. package/dist/plugin/provider/cohere.js +3 -3
  480. package/dist/plugin/provider/configured.js +119 -119
  481. package/dist/plugin/provider/dynamic.js +2 -2
  482. package/dist/plugin/provider/factory.js +2 -2
  483. package/dist/plugin/provider/gateway.js +3 -3
  484. package/dist/plugin/provider/github-copilot.js +82 -82
  485. package/dist/plugin/provider/gitlab.js +4 -4
  486. package/dist/plugin/provider/google-vertex.js +3 -3
  487. package/dist/plugin/provider/kilo.js +3 -3
  488. package/dist/plugin/provider/llmgateway.js +77 -77
  489. package/dist/plugin/provider/lmstudio.js +114 -114
  490. package/dist/plugin/provider/mistral.js +3 -3
  491. package/dist/plugin/provider/nvidia.js +3 -3
  492. package/dist/plugin/provider/ollama.js +114 -114
  493. package/dist/plugin/provider/openai-compatible.js +2 -2
  494. package/dist/plugin/provider/openai.js +79 -79
  495. package/dist/plugin/provider/opencode.js +93 -93
  496. package/dist/plugin/provider/openrouter.js +4 -4
  497. package/dist/plugin/provider/perplexity.js +3 -3
  498. package/dist/plugin/provider/sap-ai-core.js +3 -3
  499. package/dist/plugin/provider/snowflake-cortex.js +3 -3
  500. package/dist/plugin/provider/venice.js +3 -3
  501. package/dist/plugin/provider/vercel.js +3 -3
  502. package/dist/plugin/provider/vllm.js +114 -114
  503. package/dist/plugin/provider/xai.js +78 -78
  504. package/dist/plugin/provider/zenmux.js +3 -3
  505. package/dist/plugin/provider.js +157 -157
  506. package/dist/plugin/runtime.js +158 -158
  507. package/dist/plugin/sdk.js +69 -69
  508. package/dist/plugin/skill.js +136 -136
  509. package/dist/plugin/source-directory.js +2 -2
  510. package/dist/plugin/supervisor-service.js +2 -2
  511. package/dist/plugin/supervisor.js +305 -305
  512. package/dist/plugin/system-prompt.js +2 -2
  513. package/dist/plugin/variant.js +4 -4
  514. package/dist/plugin/vcs/git.js +85 -85
  515. package/dist/plugin/vcs/hg.js +85 -85
  516. package/dist/plugin/warming.js +115 -115
  517. package/dist/plugin/websearch/exa.js +4 -4
  518. package/dist/plugin/websearch/firecrawl.js +5 -5
  519. package/dist/plugin/websearch/index.js +9 -9
  520. package/dist/plugin/websearch/mcp.js +3 -3
  521. package/dist/plugin/websearch/parallel.js +5 -5
  522. package/dist/plugin/websearch/tavily.js +3 -3
  523. package/dist/plugin.js +171 -171
  524. package/dist/project/markers.js +74 -74
  525. package/dist/project/schema.js +3 -3
  526. package/dist/project/sql.js +5 -5
  527. package/dist/project.js +82 -82
  528. package/dist/provider.js +2 -2
  529. package/dist/pty/protocol.js +1 -1
  530. package/dist/pty/pty.bun.js +1 -1
  531. package/dist/pty/pty.node.js +1 -1
  532. package/dist/pty/pty.workerd.js +1 -1
  533. package/dist/pty/schema.js +2 -2
  534. package/dist/pty/ticket.js +70 -70
  535. package/dist/pty.js +89 -89
  536. package/dist/reference/instructions.js +77 -77
  537. package/dist/reference.js +75 -75
  538. package/dist/repository-cache.js +7 -7
  539. package/dist/repository.js +2 -2
  540. package/dist/ripgrep/binary.js +3 -3
  541. package/dist/ripgrep.js +94 -94
  542. package/dist/schema.js +2 -2
  543. package/dist/session/compaction.js +142 -142
  544. package/dist/session/context.js +312 -312
  545. package/dist/session/environment.js +3 -3
  546. package/dist/session/error.js +4 -4
  547. package/dist/session/event.js +2 -2
  548. package/dist/session/execution/restart.js +158 -158
  549. package/dist/session/execution.js +125 -125
  550. package/dist/session/generate-node.js +313 -313
  551. package/dist/session/generate.js +2 -2
  552. package/dist/session/history.js +77 -77
  553. package/dist/session/inbox.js +77 -77
  554. package/dist/session/info.js +92 -92
  555. package/dist/session/instruction-entry.js +73 -73
  556. package/dist/session/instruction-state.js +10 -10
  557. package/dist/session/instructions.js +101 -101
  558. package/dist/session/message-updater.js +4 -4
  559. package/dist/session/message.js +2 -2
  560. package/dist/session/model-request.js +138 -138
  561. package/dist/session/model-transport.js +5 -5
  562. package/dist/session/projector.js +90 -90
  563. package/dist/session/prompt-cache-diagnostics.js +2 -2
  564. package/dist/session/revert.js +90 -90
  565. package/dist/session/run-coordinator.js +2 -2
  566. package/dist/session/runner/index.js +84 -84
  567. package/dist/session/runner/llm.js +319 -319
  568. package/dist/session/runner/max-steps.js +2 -2
  569. package/dist/session/runner/model.js +83 -83
  570. package/dist/session/runner/publish-llm-event.js +4 -4
  571. package/dist/session/runner/retry.js +72 -72
  572. package/dist/session/runner/step.js +147 -147
  573. package/dist/session/runner/to-llm-message.js +2 -2
  574. package/dist/session/schema.js +2 -2
  575. package/dist/session/sql.js +6 -6
  576. package/dist/session/stats.js +71 -71
  577. package/dist/session/store.js +100 -100
  578. package/dist/session/system-prompt.js +2 -2
  579. package/dist/session/title.js +140 -140
  580. package/dist/session/to-session-error.js +116 -116
  581. package/dist/session/transfer.js +159 -159
  582. package/dist/session/usage.js +2 -2
  583. package/dist/session.js +156 -156
  584. package/dist/shell/parse.js +9 -6
  585. package/dist/shell/parser-wasm.bun.js +1 -1
  586. package/dist/shell/parser-wasm.node.js +1 -1
  587. package/dist/shell/parser-wasm.workerd.js +1 -1
  588. package/dist/shell/scan.js +1084 -365
  589. package/dist/shell/select.js +4 -4
  590. package/dist/shell.js +99 -99
  591. package/dist/skill/discovery.js +3 -3
  592. package/dist/skill/instructions.js +107 -107
  593. package/dist/skill.js +106 -106
  594. package/dist/snapshot.js +85 -85
  595. package/dist/state.js +2 -2
  596. package/dist/tool/html-markdown.js +2 -2
  597. package/dist/tool/http-body.js +2 -2
  598. package/dist/tool/mcp.js +127 -127
  599. package/dist/tool/plugin/edit.js +115 -115
  600. package/dist/tool/plugin/file-diff.js +2 -2
  601. package/dist/tool/plugin/glob.js +117 -117
  602. package/dist/tool/plugin/grep.js +117 -117
  603. package/dist/tool/plugin/patch.js +115 -115
  604. package/dist/tool/plugin/question.js +107 -107
  605. package/dist/tool/plugin/read.js +120 -120
  606. package/dist/tool/plugin/shell.js +186 -186
  607. package/dist/tool/plugin/skill.js +107 -107
  608. package/dist/tool/plugin/subagent.js +183 -183
  609. package/dist/tool/plugin/webfetch.js +108 -108
  610. package/dist/tool/plugin/websearch.js +110 -110
  611. package/dist/tool/plugin/write.js +115 -115
  612. package/dist/tool/read-filesystem.js +98 -98
  613. package/dist/tool/runtime.js +2 -2
  614. package/dist/tool-output.js +5 -5
  615. package/dist/tool.js +120 -120
  616. package/dist/types/shell/parse.d.ts +8 -6
  617. package/dist/types/shell/scan.d.ts +6 -3
  618. package/dist/util/array.js +1 -1
  619. package/dist/util/error.js +2 -2
  620. package/dist/util/identifier.js +1 -1
  621. package/dist/util/iife.js +2 -2
  622. package/dist/util/lazy.js +2 -2
  623. package/dist/util/process-lock-ffi.bun.js +1 -1
  624. package/dist/util/process-lock-ffi.node.js +1 -1
  625. package/dist/util/process-lock-ffi.workerd.js +1 -1
  626. package/dist/util/process-lock.js +1 -1
  627. package/dist/util/slug.js +2 -2
  628. package/dist/util/token.js +2 -2
  629. package/dist/util/which.js +2 -2
  630. package/dist/util/wildcard.js +2 -2
  631. package/dist/v1/config/agent.js +4 -4
  632. package/dist/v1/config/attachment.js +3 -3
  633. package/dist/v1/config/command.js +2 -2
  634. package/dist/v1/config/config.js +15 -15
  635. package/dist/v1/config/error.js +3 -3
  636. package/dist/v1/config/formatter.js +2 -2
  637. package/dist/v1/config/layout.js +2 -2
  638. package/dist/v1/config/lsp.js +2 -2
  639. package/dist/v1/config/mcp.js +3 -3
  640. package/dist/v1/config/migrate.js +19 -19
  641. package/dist/v1/config/permission.js +2 -2
  642. package/dist/v1/config/plugin.js +2 -2
  643. package/dist/v1/config/provider-options.js +2 -2
  644. package/dist/v1/config/provider.js +3 -3
  645. package/dist/v1/config/server.js +3 -3
  646. package/dist/v1/config/skills.js +2 -2
  647. package/dist/v1/permission.js +1 -1
  648. package/dist/vcs/patch.js +2 -2
  649. package/dist/vcs.js +86 -86
  650. package/dist/websearch.js +73 -73
  651. package/dist/wellknown/plugin.js +73 -73
  652. package/dist/wellknown.js +72 -72
  653. package/dist/workspace/driver.js +2 -2
  654. package/dist/workspace/sql.js +2 -2
  655. package/dist/workspace.js +69 -69
  656. package/dist/worktree/directory.js +3 -3
  657. package/dist/worktree/git.js +7 -7
  658. package/dist/worktree/sql.js +6 -6
  659. package/dist/worktree.js +87 -87
  660. package/package.json +8 -8
  661. package/dist/chunks/pty-nv9gjhyw.js +0 -712
  662. /package/dist/chunks/{pty-0cgt0xh2.js → command-0cgt0xh2.js} +0 -0
  663. /package/dist/chunks/{pty-0f48qthw.js → command-0f48qthw.js} +0 -0
  664. /package/dist/chunks/{pty-0zz82cjq.js → command-0zz82cjq.js} +0 -0
  665. /package/dist/chunks/{pty-1fb7bmpf.js → command-1fb7bmpf.js} +0 -0
  666. /package/dist/chunks/{pty-1wcz8fvj.js → command-1wcz8fvj.js} +0 -0
  667. /package/dist/chunks/{pty-29n7vfk2.js → command-29n7vfk2.js} +0 -0
  668. /package/dist/chunks/{pty-2qdx6zz3.js → command-2qdx6zz3.js} +0 -0
  669. /package/dist/chunks/{pty-2xb0r1c6.js → command-2xb0r1c6.js} +0 -0
  670. /package/dist/chunks/{pty-39ktntah.js → command-39ktntah.js} +0 -0
  671. /package/dist/chunks/{pty-3g3rpp2x.js → command-3g3rpp2x.js} +0 -0
  672. /package/dist/chunks/{pty-3q6gbwmd.js → command-3q6gbwmd.js} +0 -0
  673. /package/dist/chunks/{pty-3w3ybtfd.js → command-3w3ybtfd.js} +0 -0
  674. /package/dist/chunks/{pty-47ty4mvs.js → command-47ty4mvs.js} +0 -0
  675. /package/dist/chunks/{pty-4b2tz2m9.js → command-4b2tz2m9.js} +0 -0
  676. /package/dist/chunks/{pty-5a5ch9ts.js → command-5a5ch9ts.js} +0 -0
  677. /package/dist/chunks/{pty-5va1yh78.js → command-5va1yh78.js} +0 -0
  678. /package/dist/chunks/{pty-61ek4hj9.js → command-61ek4hj9.js} +0 -0
  679. /package/dist/chunks/{pty-69qrqpw0.js → command-69qrqpw0.js} +0 -0
  680. /package/dist/chunks/{pty-6zqxzw0a.js → command-6zqxzw0a.js} +0 -0
  681. /package/dist/chunks/{pty-7n9qwqk4.js → command-7n9qwqk4.js} +0 -0
  682. /package/dist/chunks/{pty-8nn8kqcn.js → command-8nn8kqcn.js} +0 -0
  683. /package/dist/chunks/{pty-8rpfd2h6.js → command-8rpfd2h6.js} +0 -0
  684. /package/dist/chunks/{pty-8sj3ajy5.js → command-8sj3ajy5.js} +0 -0
  685. /package/dist/chunks/{pty-8w9tzfz1.js → command-8w9tzfz1.js} +0 -0
  686. /package/dist/chunks/{pty-906y0b6d.js → command-906y0b6d.js} +0 -0
  687. /package/dist/chunks/{pty-9dct5xhx.js → command-9dct5xhx.js} +0 -0
  688. /package/dist/chunks/{pty-9sdtsapf.js → command-9sdtsapf.js} +0 -0
  689. /package/dist/chunks/{pty-a02svayp.js → command-a02svayp.js} +0 -0
  690. /package/dist/chunks/{pty-a83yvq99.js → command-a83yvq99.js} +0 -0
  691. /package/dist/chunks/{pty-ayevdmef.js → command-ayevdmef.js} +0 -0
  692. /package/dist/chunks/{pty-b02txbh8.js → command-b02txbh8.js} +0 -0
  693. /package/dist/chunks/{pty-bbqs2y60.js → command-bbqs2y60.js} +0 -0
  694. /package/dist/chunks/{pty-bjwj8hwv.js → command-bjwj8hwv.js} +0 -0
  695. /package/dist/chunks/{pty-brsh5f65.js → command-brsh5f65.js} +0 -0
  696. /package/dist/chunks/{pty-bxdhjb3y.js → command-bxdhjb3y.js} +0 -0
  697. /package/dist/chunks/{pty-c77ad0vh.js → command-c77ad0vh.js} +0 -0
  698. /package/dist/chunks/{pty-ck5pgha0.js → command-ck5pgha0.js} +0 -0
  699. /package/dist/chunks/{pty-cm67rqy2.js → command-cm67rqy2.js} +0 -0
  700. /package/dist/chunks/{pty-df3v2q6j.js → command-df3v2q6j.js} +0 -0
  701. /package/dist/chunks/{pty-dhcq6c44.js → command-dhcq6c44.js} +0 -0
  702. /package/dist/chunks/{pty-dht5baf0.js → command-dht5baf0.js} +0 -0
  703. /package/dist/chunks/{pty-dkmkay92.js → command-dkmkay92.js} +0 -0
  704. /package/dist/chunks/{pty-drean1vx.js → command-drean1vx.js} +0 -0
  705. /package/dist/chunks/{pty-ehj9csmv.js → command-ehj9csmv.js} +0 -0
  706. /package/dist/chunks/{pty-em6xpscd.js → command-em6xpscd.js} +0 -0
  707. /package/dist/chunks/{pty-emmqknsm.js → command-emmqknsm.js} +0 -0
  708. /package/dist/chunks/{pty-ezs3tagn.js → command-ezs3tagn.js} +0 -0
  709. /package/dist/chunks/{pty-f14r7hfz.js → command-f14r7hfz.js} +0 -0
  710. /package/dist/chunks/{pty-f4cp4g4a.js → command-f4cp4g4a.js} +0 -0
  711. /package/dist/chunks/{pty-faypg4r1.js → command-faypg4r1.js} +0 -0
  712. /package/dist/chunks/{pty-fgbfdq62.js → command-fgbfdq62.js} +0 -0
  713. /package/dist/chunks/{pty-gd5xeqc2.js → command-gd5xeqc2.js} +0 -0
  714. /package/dist/chunks/{pty-ghm4673n.js → command-ghm4673n.js} +0 -0
  715. /package/dist/chunks/{pty-ghwjy7my.js → command-ghwjy7my.js} +0 -0
  716. /package/dist/chunks/{pty-gqn2zsfg.js → command-gqn2zsfg.js} +0 -0
  717. /package/dist/chunks/{pty-gy500k2r.js → command-gy500k2r.js} +0 -0
  718. /package/dist/chunks/{pty-h846wrk2.js → command-h846wrk2.js} +0 -0
  719. /package/dist/chunks/{pty-hzeg9cfr.js → command-hzeg9cfr.js} +0 -0
  720. /package/dist/chunks/{pty-j07kk359.js → command-j07kk359.js} +0 -0
  721. /package/dist/chunks/{pty-jve7t217.js → command-jve7t217.js} +0 -0
  722. /package/dist/chunks/{pty-k3e42drn.js → command-k3e42drn.js} +0 -0
  723. /package/dist/chunks/{pty-k8b45nas.js → command-k8b45nas.js} +0 -0
  724. /package/dist/chunks/{pty-kcacmy5c.js → command-kcacmy5c.js} +0 -0
  725. /package/dist/chunks/{pty-kpdbz7gn.js → command-kpdbz7gn.js} +0 -0
  726. /package/dist/chunks/{pty-kxy11nzk.js → command-kxy11nzk.js} +0 -0
  727. /package/dist/chunks/{pty-kyyqvx4s.js → command-kyyqvx4s.js} +0 -0
  728. /package/dist/chunks/{pty-m8cbvarh.js → command-m8cbvarh.js} +0 -0
  729. /package/dist/chunks/{pty-ma60vzgv.js → command-ma60vzgv.js} +0 -0
  730. /package/dist/chunks/{pty-n3m50c2t.js → command-n3m50c2t.js} +0 -0
  731. /package/dist/chunks/{pty-nkm1m8dz.js → command-nkm1m8dz.js} +0 -0
  732. /package/dist/chunks/{pty-nsc0c3zb.js → command-nsc0c3zb.js} +0 -0
  733. /package/dist/chunks/{pty-qaarhjrp.js → command-qaarhjrp.js} +0 -0
  734. /package/dist/chunks/{pty-qc167nrn.js → command-qc167nrn.js} +0 -0
  735. /package/dist/chunks/{pty-qp95y4jb.js → command-qp95y4jb.js} +0 -0
  736. /package/dist/chunks/{pty-r8f4w671.js → command-r8f4w671.js} +0 -0
  737. /package/dist/chunks/{pty-rdfev9jy.js → command-rdfev9jy.js} +0 -0
  738. /package/dist/chunks/{pty-rvfvac9x.js → command-rvfvac9x.js} +0 -0
  739. /package/dist/chunks/{pty-s7whb9gt.js → command-s7whb9gt.js} +0 -0
  740. /package/dist/chunks/{pty-se76j685.js → command-se76j685.js} +0 -0
  741. /package/dist/chunks/{pty-sem2g21k.js → command-sem2g21k.js} +0 -0
  742. /package/dist/chunks/{pty-sp575ygv.js → command-sp575ygv.js} +0 -0
  743. /package/dist/chunks/{pty-tmb1f636.js → command-tmb1f636.js} +0 -0
  744. /package/dist/chunks/{pty-ttxf0gsy.js → command-ttxf0gsy.js} +0 -0
  745. /package/dist/chunks/{pty-tvmhrvfj.js → command-tvmhrvfj.js} +0 -0
  746. /package/dist/chunks/{pty-v2adqbbe.js → command-v2adqbbe.js} +0 -0
  747. /package/dist/chunks/{pty-wj4sxzqa.js → command-wj4sxzqa.js} +0 -0
  748. /package/dist/chunks/{pty-wwntjmk1.js → command-wwntjmk1.js} +0 -0
  749. /package/dist/chunks/{pty-wyqjaaa5.js → command-wyqjaaa5.js} +0 -0
  750. /package/dist/chunks/{pty-x4q807cx.js → command-x4q807cx.js} +0 -0
  751. /package/dist/chunks/{pty-xt0068v8.js → command-xt0068v8.js} +0 -0
  752. /package/dist/chunks/{pty-yrqrg4vp.js → command-yrqrg4vp.js} +0 -0
  753. /package/dist/chunks/{pty-z47nswr2.js → command-z47nswr2.js} +0 -0
  754. /package/dist/chunks/{pty-zsf8rs93.js → command-zsf8rs93.js} +0 -0
@@ -0,0 +1,341 @@
1
+ import {
2
+ exports_select
3
+ } from "./command-csrx180a.js";
4
+ import {
5
+ exports_wildcard
6
+ } from "./command-y67x6rf6.js";
7
+ import {
8
+ __export,
9
+ __require
10
+ } from "./command-rvfvac9x.js";
11
+
12
+ // src/shell/parse.ts
13
+ var exports_parse = {};
14
+ __export(exports_parse, {
15
+ scanPortable: () => scanPortable,
16
+ scan: () => scan,
17
+ ShellParse: () => exports_parse
18
+ });
19
+ import { Effect } from "effect";
20
+ import { fileURLToPath } from "url";
21
+ import os from "os";
22
+ import path from "path";
23
+ import { shellParserWasm } from "#shell-parser-wasm";
24
+ var CWD = new Set(["cd", "chdir", "popd", "pushd", "push-location", "set-location"]);
25
+ var POWERSHELL_PATH_FLAGS = new Set(["-literalpath", "-path"]);
26
+ var ARITY = {
27
+ cat: 1,
28
+ cd: 1,
29
+ chmod: 1,
30
+ chown: 1,
31
+ cp: 1,
32
+ echo: 1,
33
+ env: 1,
34
+ export: 1,
35
+ grep: 1,
36
+ kill: 1,
37
+ killall: 1,
38
+ ln: 1,
39
+ ls: 1,
40
+ mkdir: 1,
41
+ mv: 1,
42
+ ps: 1,
43
+ pwd: 1,
44
+ rm: 1,
45
+ rmdir: 1,
46
+ sleep: 1,
47
+ source: 1,
48
+ tail: 1,
49
+ touch: 1,
50
+ unset: 1,
51
+ which: 1,
52
+ aws: 3,
53
+ az: 3,
54
+ bazel: 2,
55
+ brew: 2,
56
+ bun: 2,
57
+ "bun run": 3,
58
+ "bun x": 3,
59
+ cargo: 2,
60
+ "cargo add": 3,
61
+ "cargo run": 3,
62
+ cdk: 2,
63
+ cf: 2,
64
+ cmake: 2,
65
+ composer: 2,
66
+ consul: 2,
67
+ "consul kv": 3,
68
+ crictl: 2,
69
+ deno: 2,
70
+ "deno task": 3,
71
+ doctl: 3,
72
+ docker: 2,
73
+ "docker builder": 3,
74
+ "docker compose": 3,
75
+ "docker container": 3,
76
+ "docker image": 3,
77
+ "docker network": 3,
78
+ "docker volume": 3,
79
+ eksctl: 2,
80
+ "eksctl create": 3,
81
+ firebase: 2,
82
+ flyctl: 2,
83
+ gcloud: 3,
84
+ gh: 3,
85
+ git: 2,
86
+ "git config": 3,
87
+ "git remote": 3,
88
+ "git stash": 3,
89
+ go: 2,
90
+ gradle: 2,
91
+ helm: 2,
92
+ heroku: 2,
93
+ hugo: 2,
94
+ ip: 2,
95
+ "ip addr": 3,
96
+ "ip link": 3,
97
+ "ip netns": 3,
98
+ "ip route": 3,
99
+ kind: 2,
100
+ "kind create": 3,
101
+ kubectl: 2,
102
+ "kubectl kustomize": 3,
103
+ "kubectl rollout": 3,
104
+ kustomize: 2,
105
+ make: 2,
106
+ mc: 2,
107
+ "mc admin": 3,
108
+ minikube: 2,
109
+ mongosh: 2,
110
+ mysql: 2,
111
+ mvn: 2,
112
+ ng: 2,
113
+ npm: 2,
114
+ "npm exec": 3,
115
+ "npm init": 3,
116
+ "npm run": 3,
117
+ "npm view": 3,
118
+ npx: 2,
119
+ nvm: 2,
120
+ nx: 2,
121
+ openssl: 2,
122
+ "openssl req": 3,
123
+ "openssl x509": 3,
124
+ pip: 2,
125
+ pipenv: 2,
126
+ pnpm: 2,
127
+ "pnpm dlx": 3,
128
+ "pnpm exec": 3,
129
+ "pnpm run": 3,
130
+ poetry: 2,
131
+ podman: 2,
132
+ "podman container": 3,
133
+ "podman image": 3,
134
+ psql: 2,
135
+ pulumi: 2,
136
+ "pulumi stack": 3,
137
+ python: 2,
138
+ pyenv: 2,
139
+ rake: 2,
140
+ rbenv: 2,
141
+ "redis-cli": 2,
142
+ rustup: 2,
143
+ serverless: 2,
144
+ sfdx: 3,
145
+ skaffold: 2,
146
+ sls: 2,
147
+ sst: 2,
148
+ swift: 2,
149
+ systemctl: 2,
150
+ terraform: 2,
151
+ "terraform workspace": 3,
152
+ tmux: 2,
153
+ turbo: 2,
154
+ ufw: 2,
155
+ vault: 2,
156
+ "vault auth": 3,
157
+ "vault kv": 3,
158
+ vercel: 2,
159
+ volta: 2,
160
+ wp: 2,
161
+ yarn: 2,
162
+ "yarn dlx": 3,
163
+ "yarn run": 3
164
+ };
165
+ var PREFIX_LENGTH = Math.max(...Object.values(ARITY));
166
+ var scan = Effect.fnUntraced(function* (command, shell, cwd, options) {
167
+ if (options?.portable)
168
+ return yield* scanPortable(command, shell, cwd);
169
+ return yield* scanLegacy(command, shell, cwd);
170
+ });
171
+ var scanLegacy = Effect.fnUntraced(function* (command, shell, cwd) {
172
+ const parsers = yield* Effect.promise(load);
173
+ const powershell = exports_select.ps(shell);
174
+ const tree = (powershell ? parsers.ps : parsers.bash).parse(command);
175
+ if (!tree)
176
+ return yield* Effect.fail(new Error("Failed to parse shell command"));
177
+ return yield* Effect.acquireUseRelease(Effect.succeed(tree), (tree2) => Effect.sync(() => tree2.rootNode.descendantsOfType("command").reduce((result, node) => {
178
+ if (!node)
179
+ return result;
180
+ const command2 = parts(node);
181
+ const tokens = command2.map((part) => part.text);
182
+ if (tokens.length === 0)
183
+ return result;
184
+ const name = powershell ? tokens[0].toLowerCase() : tokens[0];
185
+ if (CWD.has(name)) {
186
+ result.directories.push(...directoryArgs(command2, powershell, cwd, shell));
187
+ return result;
188
+ }
189
+ result.commands.push({
190
+ resource: (node.parent?.type === "redirected_statement" ? node.parent.text : node.text).trim(),
191
+ save: `${prefix(tokens).join(" ")} *`
192
+ });
193
+ return result;
194
+ }, { commands: [], directories: [] })), (tree2) => Effect.sync(() => tree2.delete()));
195
+ });
196
+ var scanPortable = Effect.fnUntraced(function* (command, shell, cwd) {
197
+ const { ShellScan } = yield* Effect.tryPromise({
198
+ try: () => import("../shell/scan.js"),
199
+ catch: (cause) => new Error(`Portable shell scanner failed to load: ${cause}`, { cause })
200
+ });
201
+ const powershell = exports_select.ps(shell);
202
+ const result = powershell ? ShellScan.scanPowerShell(command) : ShellScan.scan(command);
203
+ if (result.kind === "opaque")
204
+ return yield* Effect.fail(new Error(`Portable shell scanner cannot analyze command: ${result.reason}`));
205
+ const output = { commands: [], directories: [] };
206
+ for (const item of result.commands) {
207
+ if (item.declaration)
208
+ continue;
209
+ const words = item.redirectWordCount === undefined ? item.rawWords : item.rawWords.slice(0, item.redirectWordCount);
210
+ if (powershell && item.statementHead && /^foreach(?:-|$)/i.test(words[0] ?? ""))
211
+ continue;
212
+ const name = powershell ? words[0]?.toLowerCase() : words[0];
213
+ if (CWD.has(name)) {
214
+ output.directories.push(...directoryArgs(words.flatMap((text) => {
215
+ const parameter = powershell ? /^(-(?:literalpath|path)):(.*)$/i.exec(text) : undefined;
216
+ if (parameter)
217
+ return [
218
+ { type: "command_parameter", text: parameter[1] },
219
+ { type: "word", text: parameter[2] }
220
+ ];
221
+ return [{ type: powershell && text.startsWith("-") ? "command_parameter" : "word", text }];
222
+ }), powershell, cwd, shell));
223
+ continue;
224
+ }
225
+ const selected = prefix(words.slice(0, PREFIX_LENGTH));
226
+ const conventional = `${selected.join(" ")} *`;
227
+ const end = item.wordEnds?.[selected.length - 1];
228
+ const save = !powershell || end === undefined || exports_wildcard.match(item.resource, conventional) ? conventional : (() => {
229
+ const boundary = item.wordEnds?.find((value) => value >= end && (value >= item.resource.length || /\s/.test(item.resource[value]))) ?? end;
230
+ const separator = /^\s+(?:`(?:\r\n|\r|\n)\s*)?/.exec(item.resource.slice(boundary))?.[0];
231
+ return `${item.resource.slice(0, boundary)}${separator ?? " "}*`;
232
+ })();
233
+ output.commands.push({
234
+ resource: item.resource,
235
+ save
236
+ });
237
+ }
238
+ return output;
239
+ });
240
+ function parts(node) {
241
+ return Array.from({ length: node.childCount }).flatMap((_, index) => {
242
+ const child = node.child(index);
243
+ if (!child)
244
+ return [];
245
+ if (child.type === "command_elements")
246
+ return Array.from({ length: child.childCount }).flatMap((_2, itemIndex) => {
247
+ const item = child.child(itemIndex);
248
+ if (!item || item.type === "command_argument_sep" || item.type === "redirection")
249
+ return [];
250
+ return [{ type: item.type, text: item.text }];
251
+ });
252
+ if (!["command_name", "command_name_expr", "word", "string", "raw_string", "concatenation"].includes(child.type))
253
+ return [];
254
+ return [{ type: child.type, text: child.text }];
255
+ });
256
+ }
257
+ function directoryArgs(command, powershell, cwd, shell) {
258
+ if (!powershell)
259
+ return command.slice(1).filter((part) => !part.text.startsWith("-")).map((part) => directoryArgument(part.text, powershell, cwd, shell)).filter((part) => part !== undefined);
260
+ const directories = [];
261
+ let path2 = false;
262
+ for (const part of command.slice(1)) {
263
+ if (path2) {
264
+ const value2 = directoryArgument(part.text, powershell, cwd, shell);
265
+ if (value2)
266
+ directories.push(value2);
267
+ path2 = false;
268
+ continue;
269
+ }
270
+ if (part.type === "command_parameter") {
271
+ path2 = POWERSHELL_PATH_FLAGS.has(part.text.toLowerCase());
272
+ continue;
273
+ }
274
+ const value = directoryArgument(part.text, powershell, cwd, shell);
275
+ if (value)
276
+ directories.push(value);
277
+ }
278
+ return directories;
279
+ }
280
+ function directoryArgument(value, powershell, cwd, shell) {
281
+ const quote = value[0];
282
+ const text = (quote === '"' || quote === "'") && value.at(-1) === quote ? value.slice(1, -1) : value;
283
+ if (!powershell)
284
+ return expandKnownDirectory(text);
285
+ return expandKnownDirectory(text.replace(/\$\{env:([^}]+)\}/gi, (_, key) => environment(key) ?? "").replace(/\$env:([A-Za-z_][A-Za-z0-9_]*)/gi, (_, key) => environment(key) ?? "").replace(/\$(HOME|PWD|PSHOME)(?=$|[\\/])/gi, (_, key) => {
286
+ if (key.toUpperCase() === "HOME")
287
+ return os.homedir();
288
+ if (key.toUpperCase() === "PWD")
289
+ return cwd;
290
+ return path.dirname(shell);
291
+ }));
292
+ }
293
+ function expandKnownDirectory(value) {
294
+ if (value.includes("$") || value.includes("`") || value.startsWith("("))
295
+ return;
296
+ if (value === "~")
297
+ return os.homedir();
298
+ if (value.startsWith("~/") || value.startsWith("~\\"))
299
+ return path.join(os.homedir(), value.slice(2));
300
+ return value;
301
+ }
302
+ function environment(key) {
303
+ if (process.platform !== "win32")
304
+ return process.env[key];
305
+ const name = Object.keys(process.env).find((item) => item.toLowerCase() === key.toLowerCase());
306
+ return name ? process.env[name] : undefined;
307
+ }
308
+ function prefix(tokens) {
309
+ for (let length = tokens.length;length > 0; length--) {
310
+ const arity = ARITY[tokens.slice(0, length).join(" ")];
311
+ if (arity !== undefined)
312
+ return tokens.slice(0, arity);
313
+ }
314
+ return tokens.slice(0, 1);
315
+ }
316
+ function resolve(asset) {
317
+ if (asset.startsWith("file://"))
318
+ return fileURLToPath(asset);
319
+ if (path.isAbsolute(asset))
320
+ return asset;
321
+ return fileURLToPath(new URL(asset, import.meta.url));
322
+ }
323
+ var load = (() => {
324
+ let loading;
325
+ return () => loading ??= initialize();
326
+ })();
327
+ async function initialize() {
328
+ const { Parser, Language } = await import("web-tree-sitter");
329
+ await Parser.init({ locateFile: () => resolve(shellParserWasm.runtime) });
330
+ const [bashLanguage, psLanguage] = await Promise.all([
331
+ Language.load(resolve(shellParserWasm.bash)),
332
+ Language.load(resolve(shellParserWasm.powershell))
333
+ ]);
334
+ const bash = new Parser;
335
+ bash.setLanguage(bashLanguage);
336
+ const ps = new Parser;
337
+ ps.setLanguage(psLanguage);
338
+ return { bash, ps };
339
+ }
340
+
341
+ export { scan, scanPortable, exports_parse };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Timestamps
3
- } from "./pty-sem2g21k.js";
3
+ } from "./command-sem2g21k.js";
4
4
 
5
5
  // src/credential/sql.ts
6
6
  import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
@@ -1,18 +1,18 @@
1
- import {
2
- configuredSettings
3
- } from "./pty-9yrp1ad7.js";
4
1
  import {
5
2
  iife
6
- } from "./pty-ehj9csmv.js";
3
+ } from "./command-ehj9csmv.js";
4
+ import {
5
+ configuredSettings
6
+ } from "./command-852qbg4y.js";
7
7
  import {
8
8
  exports_app
9
- } from "./pty-50jxp3hw.js";
9
+ } from "./command-50jxp3hw.js";
10
10
  import {
11
11
  exports_provider
12
- } from "./pty-krsqcmnj.js";
12
+ } from "./command-krsqcmnj.js";
13
13
  import {
14
14
  __require
15
- } from "./pty-rvfvac9x.js";
15
+ } from "./command-rvfvac9x.js";
16
16
 
17
17
  // src/plugin/provider/cloudflare-ai-gateway.ts
18
18
  import os from "os";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  ProjectTable
3
- } from "./pty-88jbfw8z.js";
3
+ } from "./command-88jbfw8z.js";
4
4
  import {
5
5
  absoluteColumn
6
- } from "./pty-zbqqnp0n.js";
6
+ } from "./command-zbqqnp0n.js";
7
7
 
8
8
  // src/worktree/sql.ts
9
9
  import { integer, primaryKey, sqliteTable, text } from "drizzle-orm/sqlite-core";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  exports_kv
3
- } from "./pty-jkx2v3a9.js";
3
+ } from "./command-jxka5pmd.js";
4
4
  import {
5
5
  exports_bus
6
- } from "./pty-wxw93tt2.js";
6
+ } from "./command-7v7j7gdn.js";
7
7
  import {
8
8
  __export
9
- } from "./pty-rvfvac9x.js";
9
+ } from "./command-rvfvac9x.js";
10
10
 
11
11
  // src/wellknown.ts
12
12
  var exports_wellknown = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AbsolutePath
3
- } from "./pty-j07kk359.js";
3
+ } from "./command-j07kk359.js";
4
4
  import {
5
5
  __export
6
- } from "./pty-rvfvac9x.js";
6
+ } from "./command-rvfvac9x.js";
7
7
 
8
8
  // src/worktree/directory.ts
9
9
  var exports_directory = {};
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  exports_entry_observer
3
- } from "./pty-kp1t5rcy.js";
3
+ } from "./command-kp1t5rcy.js";
4
4
  import {
5
5
  exports_config
6
- } from "./pty-p26n68ww.js";
6
+ } from "./command-2nbd4tew.js";
7
7
  import {
8
8
  exports_image
9
- } from "./pty-3tmjw1xx.js";
9
+ } from "./command-1fpz5k78.js";
10
10
  import {
11
11
  __export
12
- } from "./pty-rvfvac9x.js";
12
+ } from "./command-rvfvac9x.js";
13
13
 
14
14
  // src/config/plugin/image.ts
15
15
  var exports_image2 = {};
@@ -1,148 +1,148 @@
1
1
  import {
2
2
  exports_llm
3
- } from "./pty-02jh672z.js";
4
- import {
5
- exports_title
6
- } from "./pty-scwsmnvy.js";
3
+ } from "./command-5cn2as5p.js";
7
4
  import {
8
5
  exports_generate_node
9
- } from "./pty-5n0e25rx.js";
6
+ } from "./command-6azbvp0j.js";
10
7
  import {
11
- exports_location_watcher
12
- } from "./pty-8hx58cse.js";
8
+ exports_title
9
+ } from "./command-gpeygqd6.js";
13
10
  import {
14
- exports_supervisor
15
- } from "./pty-heeswwmn.js";
11
+ exports_instructions as exports_instructions3
12
+ } from "./command-6jzrxqp8.js";
16
13
  import {
17
- exports_instructions
18
- } from "./pty-4jcspr7g.js";
14
+ exports_instructions as exports_instructions2
15
+ } from "./command-2326bf9a.js";
16
+ import {
17
+ exports_location_watcher
18
+ } from "./command-0y0kz806.js";
19
19
  import {
20
20
  exports_builtins
21
- } from "./pty-0kx9g65f.js";
21
+ } from "./command-aqb2brhr.js";
22
22
  import {
23
- exports_instructions as exports_instructions3
24
- } from "./pty-sxp8nh0s.js";
23
+ exports_supervisor
24
+ } from "./command-13kqh5ym.js";
25
25
  import {
26
26
  exports_read_filesystem
27
- } from "./pty-sst1754h.js";
27
+ } from "./command-n00ksz6g.js";
28
28
  import {
29
- exports_mcp as exports_mcp2
30
- } from "./pty-z42p5vhz.js";
29
+ exports_instructions
30
+ } from "./command-8by23dpn.js";
31
31
  import {
32
32
  exports_compaction
33
- } from "./pty-75bh2x5p.js";
34
- import {
35
- exports_instructions as exports_instructions2
36
- } from "./pty-5nnwbsha.js";
33
+ } from "./command-9prfjntx.js";
37
34
  import {
38
- exports_worktree
39
- } from "./pty-njwvsg8m.js";
35
+ exports_mcp as exports_mcp2
36
+ } from "./command-6d08482p.js";
40
37
  import {
41
38
  exports_tool_output
42
- } from "./pty-f7q7a28y.js";
39
+ } from "./command-f7q7a28y.js";
43
40
  import {
44
41
  exports_plugin
45
- } from "./pty-yqza15cy.js";
42
+ } from "./command-qevy6d6w.js";
46
43
  import {
47
44
  exports_mcp
48
- } from "./pty-zrn8d1yv.js";
49
- import {
50
- exports_generate
51
- } from "./pty-f5p36mn1.js";
45
+ } from "./command-876e45a6.js";
52
46
  import {
53
47
  exports_instruction_entry
54
- } from "./pty-gvb5fjaj.js";
48
+ } from "./command-fr2dm94j.js";
55
49
  import {
56
50
  exports_model_transport
57
- } from "./pty-d4ax61k3.js";
51
+ } from "./command-d4ax61k3.js";
58
52
  import {
59
53
  exports_model
60
- } from "./pty-y0k2k5v2.js";
54
+ } from "./command-m6yhz9m5.js";
61
55
  import {
62
- exports_model_resolver
63
- } from "./pty-36b64kw5.js";
56
+ exports_worktree
57
+ } from "./command-pqtjdh5w.js";
64
58
  import {
65
- exports_skill
66
- } from "./pty-3c3xz5w2.js";
59
+ exports_websearch
60
+ } from "./command-va9v8x4k.js";
61
+ import {
62
+ exports_generate
63
+ } from "./command-b1cpagj2.js";
64
+ import {
65
+ exports_pty
66
+ } from "./command-f45448df.js";
67
67
  import {
68
68
  exports_snapshot
69
- } from "./pty-kwaxwgcd.js";
69
+ } from "./command-68sn9976.js";
70
70
  import {
71
- exports_command
72
- } from "./pty-k8fd3zhv.js";
71
+ exports_instruction_discovery
72
+ } from "./command-x29w0fqx.js";
73
+ import {
74
+ exports_skill
75
+ } from "./command-vrkzsqt1.js";
73
76
  import {
74
77
  exports_shell
75
- } from "./pty-cb10vk7s.js";
78
+ } from "./command-7sd2gfph.js";
76
79
  import {
77
- exports_aisdk
78
- } from "./pty-yc2vxtaa.js";
80
+ exports_select
81
+ } from "./command-csrx180a.js";
79
82
  import {
80
83
  exports_file_mutation
81
- } from "./pty-b2ykb7j7.js";
84
+ } from "./command-yb07q8fy.js";
82
85
  import {
83
86
  exports_config
84
- } from "./pty-p26n68ww.js";
87
+ } from "./command-2nbd4tew.js";
85
88
  import {
86
89
  exports_tool
87
- } from "./pty-x5g53fnr.js";
90
+ } from "./command-qznv994b.js";
88
91
  import {
89
92
  exports_permission
90
- } from "./pty-7ev5chdf.js";
91
- import {
92
- exports_websearch
93
- } from "./pty-aj9m13cz.js";
94
- import {
95
- exports_reference
96
- } from "./pty-9gthvhr1.js";
97
- import {
98
- exports_formatter
99
- } from "./pty-w7xyqxnp.js";
100
- import {
101
- exports_instruction_discovery
102
- } from "./pty-f0mp5ybc.js";
93
+ } from "./command-34hf638t.js";
103
94
  import {
104
95
  exports_agent
105
- } from "./pty-j0a8c2ah.js";
96
+ } from "./command-f4hn113j.js";
106
97
  import {
107
- exports_location_mutation
108
- } from "./pty-mzh6z5a7.js";
109
- import {
110
- exports_location_service_map
111
- } from "./pty-zdkg1k91.js";
98
+ exports_vcs
99
+ } from "./command-y2g3vveh.js";
112
100
  import {
113
101
  exports_image
114
- } from "./pty-3tmjw1xx.js";
102
+ } from "./command-1fpz5k78.js";
115
103
  import {
116
104
  exports_filesystem,
117
105
  exports_search
118
- } from "./pty-y369bt6x.js";
106
+ } from "./command-m7hzz66e.js";
119
107
  import {
120
108
  exports_environment1 as exports_environment
121
- } from "./pty-dapbg9ce.js";
122
- import {
123
- exports_pty
124
- } from "./pty-ctzszweb.js";
125
- import {
126
- exports_select
127
- } from "./pty-csrx180a.js";
109
+ } from "./command-5530a4sj.js";
128
110
  import {
129
- exports_vcs
130
- } from "./pty-72qw6s34.js";
111
+ exports_formatter
112
+ } from "./command-z5pbwkhm.js";
131
113
  import {
132
- exports_location
133
- } from "./pty-vsp0ywmz.js";
114
+ exports_model_resolver
115
+ } from "./command-y25c5dv9.js";
134
116
  import {
135
- AbsolutePath
136
- } from "./pty-j07kk359.js";
117
+ exports_aisdk
118
+ } from "./command-yc2vxtaa.js";
137
119
  import {
138
120
  exports_catalog
139
- } from "./pty-kpag6kfh.js";
121
+ } from "./command-3vanabr6.js";
140
122
  import {
141
123
  exports_integration
142
- } from "./pty-bv58wyct.js";
124
+ } from "./command-sdxjmp8q.js";
143
125
  import {
144
126
  exports_form
145
- } from "./pty-jpw0c2hb.js";
127
+ } from "./command-71b0nhr9.js";
128
+ import {
129
+ exports_command
130
+ } from "./command-esf92hfb.js";
131
+ import {
132
+ exports_location_service_map
133
+ } from "./command-zdkg1k91.js";
134
+ import {
135
+ exports_reference
136
+ } from "./command-7s3hdjsx.js";
137
+ import {
138
+ exports_location_mutation
139
+ } from "./command-8x6f1wbp.js";
140
+ import {
141
+ exports_location
142
+ } from "./command-x4fsxj3w.js";
143
+ import {
144
+ AbsolutePath
145
+ } from "./command-j07kk359.js";
146
146
 
147
147
  // src/location-services.ts
148
148
  import { Duration, Effect, Layer, LayerMap } from "effect";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __require
3
- } from "./pty-rvfvac9x.js";
3
+ } from "./command-rvfvac9x.js";
4
4
 
5
5
  // src/plugin/provider/openai-compatible.ts
6
6
  import { Effect } from "effect";