just-bash 2.15.0-executor.0 → 3.0.0
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.
- package/CHANGELOG.md +43 -0
- package/README.md +38 -2
- package/dist/Bash.d.ts +23 -82
- package/dist/bin/chunks/awk2-CKPJ75GN.js +2 -0
- package/dist/bin/chunks/base64-I3CXGD2Q.js +2 -0
- package/dist/bin/chunks/bash-UYSJL7VA.js +2 -0
- package/dist/bin/chunks/cat-3TMJDECR.js +2 -0
- package/dist/bin/chunks/chunk-24DJ4XAS.js +18 -0
- package/dist/bin/chunks/{chunk-DOXYBGNA.js → chunk-2ACK45YF.js} +4 -4
- package/dist/bin/chunks/chunk-2GZSSMV3.js +14 -0
- package/dist/bin/chunks/{chunk-WXMBDX4P.js → chunk-2TMMAY52.js} +7 -7
- package/dist/bin/chunks/chunk-575DV2PL.js +9 -0
- package/dist/bin/chunks/chunk-5DFR7VRU.js +13 -0
- package/dist/bin/chunks/chunk-63XSH3IT.js +2 -0
- package/dist/bin/{shell/chunks/chunk-N43DJTSI.js → chunks/chunk-6CW6ATOU.js} +1 -1
- package/dist/bin/chunks/chunk-6NYAJMTL.js +14 -0
- package/dist/bin/chunks/chunk-6ZKYK7PO.js +63 -0
- package/dist/bin/chunks/chunk-7FOU5QKD.js +11 -0
- package/dist/bin/chunks/chunk-7RSTZI3G.js +9 -0
- package/dist/bin/chunks/{chunk-SGA7Y45Z.js → chunk-A65XLABI.js} +5 -5
- package/dist/bin/chunks/{chunk-YLE2OYY6.js → chunk-A6CAHGYF.js} +1 -1
- package/dist/bin/{shell/chunks/chunk-XKPFI566.js → chunks/chunk-AM6HJVBI.js} +17 -17
- package/dist/bin/chunks/chunk-AQBEVPZP.js +6 -0
- package/dist/bin/chunks/chunk-AX3QU3MP.js +6 -0
- package/dist/bin/chunks/chunk-B4CUXR3Q.js +33 -0
- package/dist/bin/chunks/{chunk-NLBRLRWD.js → chunk-B5DAHNDY.js} +1 -1
- package/dist/bin/chunks/chunk-BEWZWAXH.js +8 -0
- package/dist/bin/{shell/chunks/chunk-SE4C7FJY.js → chunks/chunk-C6FRS5UB.js} +13 -13
- package/dist/bin/chunks/chunk-CUYKY2BK.js +5 -0
- package/dist/bin/chunks/chunk-D3JRD3JF.js +36 -0
- package/dist/bin/chunks/chunk-D6DORGK7.js +16 -0
- package/dist/bin/chunks/{chunk-SXB55JOI.js → chunk-DH7TPGPX.js} +1 -1
- package/dist/bin/chunks/chunk-FU7JHPYW.js +9 -0
- package/dist/bin/chunks/chunk-G36D7WFF.js +6 -0
- package/dist/bin/chunks/chunk-GQQLQPZG.js +7 -0
- package/dist/bin/chunks/chunk-HIVPP3AM.js +17 -0
- package/dist/bin/{shell/chunks/chunk-NAX7MTAR.js → chunks/chunk-I3X57RP5.js} +6 -6
- package/dist/bin/chunks/chunk-IZ3AT2KX.js +19 -0
- package/dist/bin/chunks/chunk-KHOBXZFG.js +12 -0
- package/dist/bin/chunks/chunk-KMFPV7SR.js +6 -0
- package/dist/bin/chunks/chunk-KX2PR2HV.js +16 -0
- package/dist/bin/chunks/{chunk-54G6AE72.js → chunk-LCJRVV55.js} +1 -1
- package/dist/bin/chunks/chunk-M33SULGQ.js +9 -0
- package/dist/bin/chunks/{chunk-3Y32LPNT.js → chunk-M3T6XOXC.js} +1 -1
- package/dist/bin/chunks/chunk-MWKPB24E.js +11 -0
- package/dist/bin/chunks/chunk-NN2DBOAZ.js +5 -0
- package/dist/bin/chunks/{chunk-RMQC3GS7.js → chunk-NOGXKS2G.js} +23 -23
- package/dist/bin/chunks/chunk-NTW6IA45.js +2 -0
- package/dist/bin/{shell/chunks/chunk-7BORMNPQ.js → chunks/chunk-NWG67HAQ.js} +1 -1
- package/dist/bin/chunks/{chunk-A3HQTYHR.js → chunk-P43NQKUN.js} +1 -1
- package/dist/bin/chunks/chunk-PHZPFNDZ.js +287 -0
- package/dist/bin/chunks/chunk-RX22J4AC.js +14 -0
- package/dist/bin/chunks/chunk-S7KZBLGH.js +3 -0
- package/dist/bin/{shell/chunks/chunk-ZO5PSLKR.js → chunks/chunk-SDOJRQF5.js} +1 -1
- package/dist/bin/chunks/chunk-UFJFAFSS.js +28 -0
- package/dist/bin/chunks/chunk-UMYJNWPA.js +140 -0
- package/dist/bin/chunks/chunk-UO7ZJYDM.js +11 -0
- package/dist/bin/chunks/{chunk-THNL3XFF.js → chunk-VECTAALH.js} +1 -1
- package/dist/bin/chunks/chunk-VRU3NTQB.js +3 -0
- package/dist/bin/chunks/chunk-WJ3HZK2S.js +5 -0
- package/dist/bin/chunks/chunk-WLBA7L7U.js +23 -0
- package/dist/bin/{shell/chunks/chunk-SXRVLCZ4.js → chunks/chunk-WRYJHXRE.js} +1 -1
- package/dist/bin/chunks/chunk-XZEAAOBW.js +8 -0
- package/dist/bin/{shell/chunks/chunk-SDLWFYVT.js → chunks/chunk-YMQY74O7.js} +13 -13
- package/dist/bin/chunks/chunk-ZNMFCOTS.js +10 -0
- package/dist/bin/chunks/{chunk-GOJZHH3L.js → chunk-ZO3PBKJB.js} +3 -3
- package/dist/bin/chunks/column-MTXKQLJH.js +2 -0
- package/dist/bin/chunks/comm-YZHVF2XN.js +2 -0
- package/dist/bin/chunks/{curl-SRTMGOVV.js → curl-2DCNBIKJ.js} +8 -8
- package/dist/bin/chunks/cut-MWPHE25M.js +2 -0
- package/dist/bin/chunks/diff-EINZHDTZ.js +2 -0
- package/dist/bin/chunks/env-NK55NKL6.js +2 -0
- package/dist/bin/chunks/expand-47QQBMM5.js +2 -0
- package/dist/bin/{shell/chunks/expansion-2RO5M3QC.js → chunks/expansion-H3VFC532.js} +1 -1
- package/dist/bin/chunks/{expr-4CJYC4LY.js → expr-VPJ77DR7.js} +1 -1
- package/dist/bin/{shell/chunks/file-D5YKS5NV.js → chunks/file-MMSHRWCJ.js} +1 -1
- package/dist/bin/chunks/find-O2KKT6KZ.js +2 -0
- package/dist/bin/chunks/flag-coverage-FHFMNAV6.js +2 -0
- package/dist/bin/chunks/fold-QC27S46O.js +2 -0
- package/dist/bin/chunks/grep-3X5B47DW.js +2 -0
- package/dist/bin/chunks/gzip-VYBZGPTA.js +2 -0
- package/dist/bin/chunks/head-BM7J6BEI.js +2 -0
- package/dist/bin/chunks/html-to-markdown-G2FXKDLR.js +2 -0
- package/dist/bin/chunks/join-5J5VA3I7.js +2 -0
- package/dist/bin/chunks/jq-HYQ3KMGL.js +2 -0
- package/dist/bin/chunks/js-exec-LZPKIZ5V.js +97 -0
- package/dist/bin/chunks/js-exec-worker.js +27 -185
- package/dist/bin/chunks/{ls-G2PXHSNX.js → ls-WONXDVOX.js} +1 -1
- package/dist/bin/chunks/md5sum-GVZ66MRR.js +2 -0
- package/dist/bin/chunks/nl-XLPXDHHK.js +2 -0
- package/dist/bin/chunks/od-CRBL7ZML.js +2 -0
- package/dist/bin/chunks/paste-7MEIW3PG.js +2 -0
- package/dist/bin/chunks/{printf-P3QVL4IO.js → printf-NA7DYZBO.js} +1 -1
- package/dist/bin/chunks/python3-BBQ4SVHU.js +12 -0
- package/dist/bin/chunks/rev-6LTZEDBA.js +2 -0
- package/dist/bin/chunks/rg-UPQTBQZR.js +2 -0
- package/dist/bin/chunks/sed-OKEUW2KT.js +2 -0
- package/dist/bin/chunks/sha1sum-HFI2SRA4.js +2 -0
- package/dist/bin/chunks/sha256sum-N44D3OCP.js +2 -0
- package/dist/bin/chunks/sort-ES3NRFJA.js +2 -0
- package/dist/bin/chunks/split-QFBCCUR5.js +2 -0
- package/dist/bin/chunks/sqlite3-V4SEWTIR.js +2 -0
- package/dist/bin/chunks/sqlite3-worker.js +1728 -0
- package/dist/bin/chunks/strings-YGI6HF5M.js +2 -0
- package/dist/bin/chunks/tac-HWXFWOGO.js +2 -0
- package/dist/bin/chunks/tail-YX6MELZ5.js +2 -0
- package/dist/bin/chunks/tar-UO62YC6N.js +2 -0
- package/dist/bin/chunks/tee-XKJM7HV7.js +2 -0
- package/dist/bin/chunks/time-RPVNTV72.js +2 -0
- package/dist/bin/chunks/timeout-4QMASFQG.js +2 -0
- package/dist/bin/chunks/tr-A6IXSBQX.js +2 -0
- package/dist/bin/chunks/unexpand-UCJETXUX.js +2 -0
- package/dist/bin/chunks/uniq-2KXDTNDX.js +2 -0
- package/dist/bin/chunks/wc-KTXPMRYY.js +2 -0
- package/dist/bin/chunks/worker.js +28 -9
- package/dist/bin/chunks/xan-IHA7IHBM.js +2 -0
- package/dist/bin/chunks/xan-view-JFFJAU35.js +2 -0
- package/dist/bin/chunks/xargs-EWL5DXR3.js +2 -0
- package/dist/bin/chunks/yq-LDGFI4EM.js +2 -0
- package/dist/bin/just-bash.js +292 -292
- package/dist/bin/shell/chunks/awk2-CKPJ75GN.js +2 -0
- package/dist/bin/shell/chunks/base64-I3CXGD2Q.js +2 -0
- package/dist/bin/shell/chunks/bash-UYSJL7VA.js +2 -0
- package/dist/bin/shell/chunks/cat-3TMJDECR.js +2 -0
- package/dist/bin/shell/chunks/chunk-24DJ4XAS.js +18 -0
- package/dist/bin/shell/chunks/{chunk-DOXYBGNA.js → chunk-2ACK45YF.js} +4 -4
- package/dist/bin/shell/chunks/chunk-2GZSSMV3.js +14 -0
- package/dist/bin/shell/chunks/{chunk-WXMBDX4P.js → chunk-2TMMAY52.js} +7 -7
- package/dist/bin/shell/chunks/chunk-575DV2PL.js +9 -0
- package/dist/bin/shell/chunks/chunk-5DFR7VRU.js +13 -0
- package/dist/bin/shell/chunks/chunk-63XSH3IT.js +2 -0
- package/dist/bin/{chunks/chunk-N43DJTSI.js → shell/chunks/chunk-6CW6ATOU.js} +1 -1
- package/dist/bin/shell/chunks/chunk-6NYAJMTL.js +14 -0
- package/dist/bin/shell/chunks/chunk-6ZKYK7PO.js +63 -0
- package/dist/bin/shell/chunks/chunk-7FOU5QKD.js +11 -0
- package/dist/bin/shell/chunks/chunk-7RSTZI3G.js +9 -0
- package/dist/bin/shell/chunks/{chunk-SGA7Y45Z.js → chunk-A65XLABI.js} +5 -5
- package/dist/bin/shell/chunks/{chunk-YLE2OYY6.js → chunk-A6CAHGYF.js} +1 -1
- package/dist/bin/{chunks/chunk-XKPFI566.js → shell/chunks/chunk-AM6HJVBI.js} +17 -17
- package/dist/bin/shell/chunks/chunk-AQBEVPZP.js +6 -0
- package/dist/bin/shell/chunks/chunk-AX3QU3MP.js +6 -0
- package/dist/bin/shell/chunks/chunk-B4CUXR3Q.js +33 -0
- package/dist/bin/shell/chunks/{chunk-NLBRLRWD.js → chunk-B5DAHNDY.js} +1 -1
- package/dist/bin/shell/chunks/chunk-BEWZWAXH.js +8 -0
- package/dist/bin/{chunks/chunk-SE4C7FJY.js → shell/chunks/chunk-C6FRS5UB.js} +13 -13
- package/dist/bin/shell/chunks/chunk-CUYKY2BK.js +5 -0
- package/dist/bin/shell/chunks/chunk-D3JRD3JF.js +36 -0
- package/dist/bin/shell/chunks/chunk-D6DORGK7.js +16 -0
- package/dist/bin/shell/chunks/{chunk-SXB55JOI.js → chunk-DH7TPGPX.js} +1 -1
- package/dist/bin/shell/chunks/chunk-FU7JHPYW.js +9 -0
- package/dist/bin/shell/chunks/chunk-G36D7WFF.js +6 -0
- package/dist/bin/shell/chunks/chunk-GQQLQPZG.js +7 -0
- package/dist/bin/shell/chunks/chunk-HIVPP3AM.js +17 -0
- package/dist/bin/{chunks/chunk-NAX7MTAR.js → shell/chunks/chunk-I3X57RP5.js} +6 -6
- package/dist/bin/shell/chunks/chunk-IZ3AT2KX.js +19 -0
- package/dist/bin/shell/chunks/chunk-KHOBXZFG.js +12 -0
- package/dist/bin/shell/chunks/chunk-KMFPV7SR.js +6 -0
- package/dist/bin/shell/chunks/chunk-KX2PR2HV.js +16 -0
- package/dist/bin/shell/chunks/{chunk-54G6AE72.js → chunk-LCJRVV55.js} +1 -1
- package/dist/bin/shell/chunks/chunk-M33SULGQ.js +9 -0
- package/dist/bin/shell/chunks/{chunk-3Y32LPNT.js → chunk-M3T6XOXC.js} +1 -1
- package/dist/bin/shell/chunks/chunk-MWKPB24E.js +11 -0
- package/dist/bin/shell/chunks/chunk-NN2DBOAZ.js +5 -0
- package/dist/bin/shell/chunks/{chunk-RMQC3GS7.js → chunk-NOGXKS2G.js} +23 -23
- package/dist/bin/shell/chunks/chunk-NTW6IA45.js +2 -0
- package/dist/bin/{chunks/chunk-7BORMNPQ.js → shell/chunks/chunk-NWG67HAQ.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-A3HQTYHR.js → chunk-P43NQKUN.js} +1 -1
- package/dist/bin/shell/chunks/chunk-PHZPFNDZ.js +287 -0
- package/dist/bin/shell/chunks/chunk-RX22J4AC.js +14 -0
- package/dist/bin/shell/chunks/chunk-S7KZBLGH.js +3 -0
- package/dist/bin/{chunks/chunk-ZO5PSLKR.js → shell/chunks/chunk-SDOJRQF5.js} +1 -1
- package/dist/bin/shell/chunks/chunk-UFJFAFSS.js +28 -0
- package/dist/bin/shell/chunks/chunk-UMYJNWPA.js +140 -0
- package/dist/bin/shell/chunks/chunk-UO7ZJYDM.js +11 -0
- package/dist/bin/shell/chunks/{chunk-THNL3XFF.js → chunk-VECTAALH.js} +1 -1
- package/dist/bin/shell/chunks/chunk-VRU3NTQB.js +3 -0
- package/dist/bin/shell/chunks/chunk-WJ3HZK2S.js +5 -0
- package/dist/bin/shell/chunks/chunk-WLBA7L7U.js +23 -0
- package/dist/bin/{chunks/chunk-SXRVLCZ4.js → shell/chunks/chunk-WRYJHXRE.js} +1 -1
- package/dist/bin/shell/chunks/chunk-XZEAAOBW.js +8 -0
- package/dist/bin/{chunks/chunk-SDLWFYVT.js → shell/chunks/chunk-YMQY74O7.js} +13 -13
- package/dist/bin/shell/chunks/chunk-ZNMFCOTS.js +10 -0
- package/dist/bin/shell/chunks/{chunk-GOJZHH3L.js → chunk-ZO3PBKJB.js} +3 -3
- package/dist/bin/shell/chunks/column-MTXKQLJH.js +2 -0
- package/dist/bin/shell/chunks/comm-YZHVF2XN.js +2 -0
- package/dist/bin/shell/chunks/{curl-SRTMGOVV.js → curl-2DCNBIKJ.js} +8 -8
- package/dist/bin/shell/chunks/cut-MWPHE25M.js +2 -0
- package/dist/bin/shell/chunks/diff-EINZHDTZ.js +2 -0
- package/dist/bin/shell/chunks/env-NK55NKL6.js +2 -0
- package/dist/bin/shell/chunks/expand-47QQBMM5.js +2 -0
- package/dist/bin/{chunks/expansion-2RO5M3QC.js → shell/chunks/expansion-H3VFC532.js} +1 -1
- package/dist/bin/shell/chunks/{expr-4CJYC4LY.js → expr-VPJ77DR7.js} +1 -1
- package/dist/bin/{chunks/file-D5YKS5NV.js → shell/chunks/file-MMSHRWCJ.js} +1 -1
- package/dist/bin/shell/chunks/find-O2KKT6KZ.js +2 -0
- package/dist/bin/shell/chunks/flag-coverage-FHFMNAV6.js +2 -0
- package/dist/bin/shell/chunks/fold-QC27S46O.js +2 -0
- package/dist/bin/shell/chunks/grep-3X5B47DW.js +2 -0
- package/dist/bin/shell/chunks/gzip-VYBZGPTA.js +2 -0
- package/dist/bin/shell/chunks/head-BM7J6BEI.js +2 -0
- package/dist/bin/shell/chunks/html-to-markdown-G2FXKDLR.js +2 -0
- package/dist/bin/shell/chunks/join-5J5VA3I7.js +2 -0
- package/dist/bin/shell/chunks/jq-HYQ3KMGL.js +2 -0
- package/dist/bin/shell/chunks/js-exec-LZPKIZ5V.js +97 -0
- package/dist/bin/shell/chunks/{ls-G2PXHSNX.js → ls-WONXDVOX.js} +1 -1
- package/dist/bin/shell/chunks/md5sum-GVZ66MRR.js +2 -0
- package/dist/bin/shell/chunks/nl-XLPXDHHK.js +2 -0
- package/dist/bin/shell/chunks/od-CRBL7ZML.js +2 -0
- package/dist/bin/shell/chunks/paste-7MEIW3PG.js +2 -0
- package/dist/bin/shell/chunks/{printf-P3QVL4IO.js → printf-NA7DYZBO.js} +1 -1
- package/dist/bin/shell/chunks/python3-BBQ4SVHU.js +12 -0
- package/dist/bin/shell/chunks/rev-6LTZEDBA.js +2 -0
- package/dist/bin/shell/chunks/rg-UPQTBQZR.js +2 -0
- package/dist/bin/shell/chunks/sed-OKEUW2KT.js +2 -0
- package/dist/bin/shell/chunks/sha1sum-HFI2SRA4.js +2 -0
- package/dist/bin/shell/chunks/sha256sum-N44D3OCP.js +2 -0
- package/dist/bin/shell/chunks/sort-ES3NRFJA.js +2 -0
- package/dist/bin/shell/chunks/split-QFBCCUR5.js +2 -0
- package/dist/bin/shell/chunks/sqlite3-V4SEWTIR.js +2 -0
- package/dist/bin/shell/chunks/strings-YGI6HF5M.js +2 -0
- package/dist/bin/shell/chunks/tac-HWXFWOGO.js +2 -0
- package/dist/bin/shell/chunks/tail-YX6MELZ5.js +2 -0
- package/dist/bin/shell/chunks/tar-UO62YC6N.js +2 -0
- package/dist/bin/shell/chunks/tee-XKJM7HV7.js +2 -0
- package/dist/bin/shell/chunks/time-RPVNTV72.js +2 -0
- package/dist/bin/shell/chunks/timeout-4QMASFQG.js +2 -0
- package/dist/bin/shell/chunks/tr-A6IXSBQX.js +2 -0
- package/dist/bin/shell/chunks/unexpand-UCJETXUX.js +2 -0
- package/dist/bin/shell/chunks/uniq-2KXDTNDX.js +2 -0
- package/dist/bin/shell/chunks/wc-KTXPMRYY.js +2 -0
- package/dist/bin/shell/chunks/xan-IHA7IHBM.js +2 -0
- package/dist/bin/shell/chunks/xan-view-JFFJAU35.js +2 -0
- package/dist/bin/shell/chunks/xargs-EWL5DXR3.js +2 -0
- package/dist/bin/shell/chunks/yq-LDGFI4EM.js +2 -0
- package/dist/bin/shell/shell.js +274 -274
- package/dist/browser.d.ts +1 -0
- package/dist/bundle/browser.js +676 -674
- package/dist/bundle/chunks/awk2-RXRC54TM.js +1 -0
- package/dist/bundle/chunks/base64-FJOOBRMC.js +1 -0
- package/dist/bundle/chunks/bash-4WLDO24C.js +1 -0
- package/dist/bundle/chunks/cat-VQEWZT5O.js +1 -0
- package/dist/bundle/chunks/chunk-2TRDZQLB.js +17 -0
- package/dist/bundle/chunks/chunk-5DI2YNX7.js +10 -0
- package/dist/bundle/chunks/chunk-6N5CMDSQ.js +9 -0
- package/dist/bundle/chunks/{chunk-F23WWYKW.js → chunk-7P5JCWX5.js} +5 -5
- package/dist/bundle/chunks/chunk-7RIQPKJE.js +2 -0
- package/dist/bundle/chunks/{chunk-APT7OOP2.js → chunk-7ZUB672J.js} +1 -1
- package/dist/bundle/chunks/chunk-AH77CRWX.js +1 -0
- package/dist/bundle/chunks/{chunk-YNYSPYQ5.js → chunk-B74TABJS.js} +13 -13
- package/dist/bundle/chunks/{chunk-QJ7O6ZN3.js → chunk-BAXBSHE5.js} +3 -3
- package/dist/bundle/chunks/{chunk-FEIOJCZD.js → chunk-BGSUD5R5.js} +1 -1
- package/dist/bundle/chunks/chunk-CHRGJY5U.js +10 -0
- package/dist/bundle/chunks/chunk-CYJSRRNG.js +4 -0
- package/dist/bundle/chunks/chunk-CZYXTGMR.js +139 -0
- package/dist/bundle/chunks/{chunk-OL3S66CO.js → chunk-DFS4EHCX.js} +23 -23
- package/dist/bundle/chunks/chunk-DIB23V32.js +8 -0
- package/dist/bundle/chunks/chunk-DMJSDIQO.js +6 -0
- package/dist/bundle/chunks/chunk-DRGAV7ST.js +11 -0
- package/dist/bundle/chunks/chunk-DZCB42NK.js +2 -0
- package/dist/bundle/chunks/{chunk-DCAAORBQ.js → chunk-EIUAYBIC.js} +1 -1
- package/dist/bundle/chunks/chunk-G22IYMH5.js +16 -0
- package/dist/bundle/chunks/chunk-GFPLGF6W.js +5 -0
- package/dist/bundle/chunks/chunk-HCKS7PTH.js +10 -0
- package/dist/bundle/chunks/{chunk-5V6VZH6T.js → chunk-HKY7IG73.js} +1 -1
- package/dist/bundle/chunks/chunk-HL6NGDO2.js +22 -0
- package/dist/bundle/chunks/chunk-IIJDG7QW.js +13 -0
- package/dist/bundle/chunks/{chunk-Z6LRHWXI.js → chunk-JKZMQVSS.js} +7 -7
- package/dist/bundle/chunks/chunk-JMNW4NXI.js +8 -0
- package/dist/bundle/chunks/{chunk-LPQPILI2.js → chunk-K6LIBGJA.js} +1 -1
- package/dist/bundle/chunks/chunk-KBZ5NVXE.js +5 -0
- package/dist/bundle/chunks/chunk-KK2SFKTN.js +13 -0
- package/dist/bundle/chunks/{chunk-BBXLRYSX.js → chunk-KRBPSX3W.js} +1 -1
- package/dist/bundle/chunks/{chunk-LTZRCH7N.js → chunk-LBUR6QMO.js} +1 -1
- package/dist/bundle/chunks/chunk-MBDW4C5R.js +8 -0
- package/dist/bundle/chunks/chunk-MIV7TH6W.js +32 -0
- package/dist/bundle/chunks/chunk-MOLNCDQJ.js +5 -0
- package/dist/bundle/chunks/chunk-NUY2ZGZL.js +286 -0
- package/dist/bundle/chunks/chunk-OYFKMNOH.js +4 -0
- package/dist/bundle/chunks/{chunk-62RKD26F.js → chunk-Q7DN34BC.js} +6 -6
- package/dist/bundle/chunks/chunk-R6VWJ2ZL.js +1 -0
- package/dist/bundle/chunks/chunk-RGAX6VXO.js +6 -0
- package/dist/bundle/chunks/chunk-RHD3NWJY.js +15 -0
- package/dist/bundle/chunks/chunk-S7CS4O3M.js +5 -0
- package/dist/bundle/chunks/chunk-SFQDTSOG.js +8 -0
- package/dist/bundle/chunks/{chunk-J642UCRS.js → chunk-SNN4IESC.js} +1 -1
- package/dist/bundle/chunks/{chunk-64BAICW3.js → chunk-T6RP4YO5.js} +1 -1
- package/dist/bundle/chunks/chunk-TWHVX65V.js +4 -0
- package/dist/bundle/chunks/chunk-U2ATS66X.js +4 -0
- package/dist/bundle/chunks/chunk-UGMTY5A7.js +15 -0
- package/dist/bundle/chunks/chunk-UKBVVIW7.js +62 -0
- package/dist/bundle/chunks/chunk-USP7VSKV.js +12 -0
- package/dist/bundle/chunks/{chunk-OARHFVLG.js → chunk-UTKQPLMD.js} +13 -13
- package/dist/bundle/chunks/{chunk-YFG2CMIF.js → chunk-V5MWI2OL.js} +1 -1
- package/dist/bundle/chunks/{chunk-XKQRETAK.js → chunk-WEZK5ELQ.js} +1 -1
- package/dist/bundle/chunks/{chunk-YTNYSM6T.js → chunk-WURK7XMI.js} +4 -4
- package/dist/bundle/chunks/chunk-WZG5CB4V.js +7 -0
- package/dist/bundle/chunks/chunk-XUZRLD2X.js +35 -0
- package/dist/bundle/chunks/chunk-YDILEREV.js +7 -0
- package/dist/bundle/chunks/chunk-YXVMSFJA.js +13 -0
- package/dist/bundle/chunks/column-DCCLCHUR.js +1 -0
- package/dist/bundle/chunks/comm-AXP77KC4.js +1 -0
- package/dist/bundle/chunks/{curl-COE4TZE6.js → curl-47BFPSFW.js} +8 -8
- package/dist/bundle/chunks/cut-RBX7IXC7.js +1 -0
- package/dist/bundle/chunks/diff-AYXX5MI5.js +1 -0
- package/dist/bundle/chunks/env-GBSZDQLS.js +1 -0
- package/dist/bundle/chunks/expand-UMGRCDTC.js +1 -0
- package/dist/bundle/chunks/{expansion-ENLSRCXJ.js → expansion-VBDYWVZR.js} +1 -1
- package/dist/bundle/chunks/{expr-5T3UU5KE.js → expr-YYCVMXE3.js} +1 -1
- package/dist/bundle/chunks/{file-ZIGAJ4YS.js → file-IGDTDPLG.js} +1 -1
- package/dist/bundle/chunks/find-DH2ALKQS.js +1 -0
- package/dist/bundle/chunks/flag-coverage-WZWBNOJT.js +1 -0
- package/dist/bundle/chunks/fold-V23GDLZD.js +1 -0
- package/dist/bundle/chunks/grep-7CE2SS3X.js +1 -0
- package/dist/bundle/chunks/gzip-EVI6YRMT.js +1 -0
- package/dist/bundle/chunks/head-FG33BE3W.js +1 -0
- package/dist/bundle/chunks/html-to-markdown-AQHC3PHD.js +1 -0
- package/dist/bundle/chunks/join-TLHD7S7W.js +1 -0
- package/dist/bundle/chunks/jq-OKCSVTHN.js +1 -0
- package/dist/bundle/chunks/js-exec-2U7NEXAP.js +96 -0
- package/dist/bundle/chunks/js-exec-worker.js +27 -185
- package/dist/bundle/chunks/md5sum-XMCB7L5Z.js +1 -0
- package/dist/bundle/chunks/nl-LBU6FPPF.js +1 -0
- package/dist/bundle/chunks/od-O6TPXWVX.js +1 -0
- package/dist/bundle/chunks/paste-HIF3YKHC.js +1 -0
- package/dist/bundle/chunks/python3-ZR6W2FR3.js +11 -0
- package/dist/bundle/chunks/rev-SKETTPXH.js +1 -0
- package/dist/bundle/chunks/rg-GMXITNCP.js +1 -0
- package/dist/bundle/chunks/sed-YRQXQDMQ.js +1 -0
- package/dist/bundle/chunks/sha1sum-ZHNS7PS4.js +1 -0
- package/dist/bundle/chunks/sha256sum-YWE2HB65.js +1 -0
- package/dist/bundle/chunks/sort-5KALNK6P.js +1 -0
- package/dist/bundle/chunks/split-4CXZNBGE.js +1 -0
- package/dist/bundle/chunks/sqlite3-FXN2MHWU.js +1 -0
- package/dist/bundle/chunks/sqlite3-worker.js +1728 -0
- package/dist/bundle/chunks/strings-7VYWRFIZ.js +1 -0
- package/dist/bundle/chunks/tac-74F3WHUM.js +1 -0
- package/dist/bundle/chunks/tail-EDLAF4WW.js +1 -0
- package/dist/bundle/chunks/tar-RKYTUGDT.js +1 -0
- package/dist/bundle/chunks/tee-DUMXETDQ.js +1 -0
- package/dist/bundle/chunks/time-U22WPHDM.js +1 -0
- package/dist/bundle/chunks/timeout-PWE4AOYD.js +1 -0
- package/dist/bundle/chunks/tr-2QSZN4JB.js +1 -0
- package/dist/bundle/chunks/unexpand-ZTD2RXS2.js +1 -0
- package/dist/bundle/chunks/uniq-DCP6SV3B.js +1 -0
- package/dist/bundle/chunks/wc-J6YO4AFR.js +1 -0
- package/dist/bundle/chunks/worker.js +28 -9
- package/dist/bundle/chunks/xan-74G4ZYYZ.js +1 -0
- package/dist/bundle/chunks/xan-view-FLG5O7II.js +1 -0
- package/dist/bundle/chunks/xargs-LB2QOP6N.js +1 -0
- package/dist/bundle/chunks/yq-4NJ2P5VT.js +1 -0
- package/dist/bundle/index.cjs +983 -981
- package/dist/bundle/index.js +271 -271
- package/dist/commands/js-exec/{worker.d.ts → js-exec-worker.d.ts} +4 -10
- package/dist/commands/js-exec/js-exec.d.ts +1 -19
- package/dist/commands/search-engine/matcher.d.ts +6 -0
- package/dist/commands/search-engine/regex.d.ts +13 -0
- package/dist/commands/sqlite3/sqlite3.d.ts +1 -0
- package/dist/commands/sqlite3/worker.js +1728 -0
- package/dist/commands/tar/bzip2-compress.d.ts +17 -0
- package/dist/commands/worker-bridge/sync-backend.d.ts +2 -1
- package/dist/encoding.d.ts +115 -0
- package/dist/fs/in-memory-fs/in-memory-fs.d.ts +2 -0
- package/dist/fs/interface.d.ts +23 -1
- package/dist/fs/mountable-fs/mountable-fs.d.ts +2 -0
- package/dist/fs/overlay-fs/overlay-fs.d.ts +2 -0
- package/dist/fs/read-write-fs/read-write-fs.d.ts +2 -0
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/interpreter/interpreter.d.ts +2 -2
- package/dist/interpreter/types.d.ts +3 -3
- package/dist/network/dns-pin.d.ts +43 -0
- package/dist/network/types.d.ts +2 -1
- package/dist/types.d.ts +48 -10
- package/dist/utils/file-reader.d.ts +12 -5
- package/package.json +36 -40
- package/vendor/cpython-emscripten/python.wasm +0 -0
- package/dist/bin/chunks/awk2-VTJMI54B.js +0 -2
- package/dist/bin/chunks/base64-43M2R3GA.js +0 -2
- package/dist/bin/chunks/bash-6ZHZ6BX7.js +0 -2
- package/dist/bin/chunks/cat-XZIJZXKP.js +0 -2
- package/dist/bin/chunks/chunk-26NO42TF.js +0 -14
- package/dist/bin/chunks/chunk-5G2VOPPJ.js +0 -7
- package/dist/bin/chunks/chunk-5WFYIUU2.js +0 -3
- package/dist/bin/chunks/chunk-AAW7UMPO.js +0 -9
- package/dist/bin/chunks/chunk-B3RU2PUI.js +0 -140
- package/dist/bin/chunks/chunk-CGE2EHYP.js +0 -5
- package/dist/bin/chunks/chunk-CM4532DS.js +0 -36
- package/dist/bin/chunks/chunk-CQG2HEAL.js +0 -5
- package/dist/bin/chunks/chunk-EUXCM6C4.js +0 -12
- package/dist/bin/chunks/chunk-F3LGZXLQ.js +0 -9
- package/dist/bin/chunks/chunk-FA2CHD73.js +0 -16
- package/dist/bin/chunks/chunk-FLPVVSN5.js +0 -5
- package/dist/bin/chunks/chunk-FSZWFMB4.js +0 -16
- package/dist/bin/chunks/chunk-G43H2WGH.js +0 -17
- package/dist/bin/chunks/chunk-GO6FXSC4.js +0 -6
- package/dist/bin/chunks/chunk-GZHFXDDO.js +0 -10
- package/dist/bin/chunks/chunk-HJEHIH4P.js +0 -33
- package/dist/bin/chunks/chunk-JQBC3FXE.js +0 -8
- package/dist/bin/chunks/chunk-L2JBII6Z.js +0 -287
- package/dist/bin/chunks/chunk-LGJM5YFT.js +0 -17
- package/dist/bin/chunks/chunk-LMK6G2HH.js +0 -8
- package/dist/bin/chunks/chunk-MNMRGJJM.js +0 -11
- package/dist/bin/chunks/chunk-MRP4ZCD7.js +0 -6
- package/dist/bin/chunks/chunk-MXVNCVD6.js +0 -30
- package/dist/bin/chunks/chunk-MY5PY2PL.js +0 -2
- package/dist/bin/chunks/chunk-N5OTVT4F.js +0 -23
- package/dist/bin/chunks/chunk-OBI37ZY4.js +0 -9
- package/dist/bin/chunks/chunk-P6GNZPVW.js +0 -19
- package/dist/bin/chunks/chunk-RJSAGJQJ.js +0 -11
- package/dist/bin/chunks/chunk-ROJPSS6N.js +0 -3
- package/dist/bin/chunks/chunk-S7OHMN3F.js +0 -6
- package/dist/bin/chunks/chunk-VHUYNUT7.js +0 -13
- package/dist/bin/chunks/chunk-WS6P4H4S.js +0 -63
- package/dist/bin/chunks/chunk-WWZVR5NN.js +0 -6
- package/dist/bin/chunks/chunk-YEKSVVRC.js +0 -11
- package/dist/bin/chunks/chunk-YFPDB4PH.js +0 -9
- package/dist/bin/chunks/chunk-ZA4HUKJ3.js +0 -13
- package/dist/bin/chunks/chunk-ZKC5HQYO.js +0 -14
- package/dist/bin/chunks/column-XGV32UPN.js +0 -2
- package/dist/bin/chunks/comm-R3F3Z5DX.js +0 -2
- package/dist/bin/chunks/cut-5EY2XPXX.js +0 -2
- package/dist/bin/chunks/diff-LE7GMFZD.js +0 -2
- package/dist/bin/chunks/env-NTPN5QYM.js +0 -2
- package/dist/bin/chunks/expand-26XPP5KB.js +0 -2
- package/dist/bin/chunks/find-GAYRV4IF.js +0 -2
- package/dist/bin/chunks/flag-coverage-LBMWMYOO.js +0 -2
- package/dist/bin/chunks/fold-XSVNTAWH.js +0 -2
- package/dist/bin/chunks/grep-OZJTRD4D.js +0 -2
- package/dist/bin/chunks/gzip-LHOO65AN.js +0 -2
- package/dist/bin/chunks/head-YMNRW3F3.js +0 -2
- package/dist/bin/chunks/html-to-markdown-WVZA3MCP.js +0 -2
- package/dist/bin/chunks/join-Y4Q5WVVE.js +0 -2
- package/dist/bin/chunks/jq-FIV5Q5T4.js +0 -2
- package/dist/bin/chunks/js-exec-6UJKEL4G.js +0 -97
- package/dist/bin/chunks/md5sum-NCLXV2S3.js +0 -2
- package/dist/bin/chunks/nl-XH3L75DR.js +0 -2
- package/dist/bin/chunks/od-52FBC34W.js +0 -2
- package/dist/bin/chunks/paste-3UVLMQ2K.js +0 -2
- package/dist/bin/chunks/python3-QOJU2POC.js +0 -12
- package/dist/bin/chunks/rev-UHEPS2UL.js +0 -2
- package/dist/bin/chunks/rg-C6KMBFNG.js +0 -2
- package/dist/bin/chunks/sed-HALRQZKY.js +0 -2
- package/dist/bin/chunks/sha1sum-BHNJ5ALF.js +0 -2
- package/dist/bin/chunks/sha256sum-HJJ3NJ5L.js +0 -2
- package/dist/bin/chunks/sort-7GENYU2I.js +0 -2
- package/dist/bin/chunks/split-YWV64TJH.js +0 -2
- package/dist/bin/chunks/sqlite3-CVNFMP3Z.js +0 -2
- package/dist/bin/chunks/strings-XXKZCWY5.js +0 -2
- package/dist/bin/chunks/tac-T42SKDDI.js +0 -2
- package/dist/bin/chunks/tail-V537TDFR.js +0 -2
- package/dist/bin/chunks/tar-TOWX2TDU.js +0 -2
- package/dist/bin/chunks/tee-HK2SYCAR.js +0 -2
- package/dist/bin/chunks/time-5R4QWCYF.js +0 -2
- package/dist/bin/chunks/timeout-Z24MNWOP.js +0 -2
- package/dist/bin/chunks/tr-4FPGAEVB.js +0 -2
- package/dist/bin/chunks/unexpand-OYZ7KOYR.js +0 -2
- package/dist/bin/chunks/uniq-TMSAIZM3.js +0 -2
- package/dist/bin/chunks/wc-ZIV3TFVG.js +0 -2
- package/dist/bin/chunks/xan-MOZFJGMY.js +0 -2
- package/dist/bin/chunks/xan-view-5SZBYPLG.js +0 -2
- package/dist/bin/chunks/xargs-SCYIFXOW.js +0 -2
- package/dist/bin/chunks/yq-Q47JUWL6.js +0 -2
- package/dist/bin/shell/chunks/awk2-VTJMI54B.js +0 -2
- package/dist/bin/shell/chunks/base64-43M2R3GA.js +0 -2
- package/dist/bin/shell/chunks/bash-6ZHZ6BX7.js +0 -2
- package/dist/bin/shell/chunks/cat-XZIJZXKP.js +0 -2
- package/dist/bin/shell/chunks/chunk-26NO42TF.js +0 -14
- package/dist/bin/shell/chunks/chunk-5G2VOPPJ.js +0 -7
- package/dist/bin/shell/chunks/chunk-5WFYIUU2.js +0 -3
- package/dist/bin/shell/chunks/chunk-AAW7UMPO.js +0 -9
- package/dist/bin/shell/chunks/chunk-B3RU2PUI.js +0 -140
- package/dist/bin/shell/chunks/chunk-CGE2EHYP.js +0 -5
- package/dist/bin/shell/chunks/chunk-CM4532DS.js +0 -36
- package/dist/bin/shell/chunks/chunk-CQG2HEAL.js +0 -5
- package/dist/bin/shell/chunks/chunk-D64U2VGQ.js +0 -2
- package/dist/bin/shell/chunks/chunk-EUXCM6C4.js +0 -12
- package/dist/bin/shell/chunks/chunk-F3LGZXLQ.js +0 -9
- package/dist/bin/shell/chunks/chunk-FA2CHD73.js +0 -16
- package/dist/bin/shell/chunks/chunk-FLPVVSN5.js +0 -5
- package/dist/bin/shell/chunks/chunk-FSZWFMB4.js +0 -16
- package/dist/bin/shell/chunks/chunk-G43H2WGH.js +0 -17
- package/dist/bin/shell/chunks/chunk-GO6FXSC4.js +0 -6
- package/dist/bin/shell/chunks/chunk-GZHFXDDO.js +0 -10
- package/dist/bin/shell/chunks/chunk-HJEHIH4P.js +0 -33
- package/dist/bin/shell/chunks/chunk-JQBC3FXE.js +0 -8
- package/dist/bin/shell/chunks/chunk-L2JBII6Z.js +0 -287
- package/dist/bin/shell/chunks/chunk-LGJM5YFT.js +0 -17
- package/dist/bin/shell/chunks/chunk-LMK6G2HH.js +0 -8
- package/dist/bin/shell/chunks/chunk-MNMRGJJM.js +0 -11
- package/dist/bin/shell/chunks/chunk-MRP4ZCD7.js +0 -6
- package/dist/bin/shell/chunks/chunk-MXVNCVD6.js +0 -30
- package/dist/bin/shell/chunks/chunk-N5OTVT4F.js +0 -23
- package/dist/bin/shell/chunks/chunk-OBI37ZY4.js +0 -9
- package/dist/bin/shell/chunks/chunk-P6GNZPVW.js +0 -19
- package/dist/bin/shell/chunks/chunk-RJSAGJQJ.js +0 -11
- package/dist/bin/shell/chunks/chunk-ROJPSS6N.js +0 -3
- package/dist/bin/shell/chunks/chunk-S7OHMN3F.js +0 -6
- package/dist/bin/shell/chunks/chunk-VHUYNUT7.js +0 -13
- package/dist/bin/shell/chunks/chunk-WS6P4H4S.js +0 -63
- package/dist/bin/shell/chunks/chunk-WWZVR5NN.js +0 -6
- package/dist/bin/shell/chunks/chunk-YEKSVVRC.js +0 -11
- package/dist/bin/shell/chunks/chunk-YFPDB4PH.js +0 -9
- package/dist/bin/shell/chunks/chunk-ZA4HUKJ3.js +0 -13
- package/dist/bin/shell/chunks/chunk-ZKC5HQYO.js +0 -14
- package/dist/bin/shell/chunks/column-XGV32UPN.js +0 -2
- package/dist/bin/shell/chunks/comm-R3F3Z5DX.js +0 -2
- package/dist/bin/shell/chunks/cut-5EY2XPXX.js +0 -2
- package/dist/bin/shell/chunks/diff-LE7GMFZD.js +0 -2
- package/dist/bin/shell/chunks/env-NTPN5QYM.js +0 -2
- package/dist/bin/shell/chunks/expand-26XPP5KB.js +0 -2
- package/dist/bin/shell/chunks/find-GAYRV4IF.js +0 -2
- package/dist/bin/shell/chunks/flag-coverage-LBMWMYOO.js +0 -2
- package/dist/bin/shell/chunks/fold-XSVNTAWH.js +0 -2
- package/dist/bin/shell/chunks/grep-OZJTRD4D.js +0 -2
- package/dist/bin/shell/chunks/gzip-LHOO65AN.js +0 -2
- package/dist/bin/shell/chunks/head-YMNRW3F3.js +0 -2
- package/dist/bin/shell/chunks/html-to-markdown-WVZA3MCP.js +0 -2
- package/dist/bin/shell/chunks/join-Y4Q5WVVE.js +0 -2
- package/dist/bin/shell/chunks/jq-FIV5Q5T4.js +0 -2
- package/dist/bin/shell/chunks/js-exec-H26D5H6V.js +0 -97
- package/dist/bin/shell/chunks/md5sum-NCLXV2S3.js +0 -2
- package/dist/bin/shell/chunks/nl-XH3L75DR.js +0 -2
- package/dist/bin/shell/chunks/od-52FBC34W.js +0 -2
- package/dist/bin/shell/chunks/paste-3UVLMQ2K.js +0 -2
- package/dist/bin/shell/chunks/python3-O4VTP6TD.js +0 -12
- package/dist/bin/shell/chunks/rev-UHEPS2UL.js +0 -2
- package/dist/bin/shell/chunks/rg-C6KMBFNG.js +0 -2
- package/dist/bin/shell/chunks/sed-HALRQZKY.js +0 -2
- package/dist/bin/shell/chunks/sha1sum-BHNJ5ALF.js +0 -2
- package/dist/bin/shell/chunks/sha256sum-HJJ3NJ5L.js +0 -2
- package/dist/bin/shell/chunks/sort-7GENYU2I.js +0 -2
- package/dist/bin/shell/chunks/split-YWV64TJH.js +0 -2
- package/dist/bin/shell/chunks/sqlite3-CVNFMP3Z.js +0 -2
- package/dist/bin/shell/chunks/strings-XXKZCWY5.js +0 -2
- package/dist/bin/shell/chunks/tac-T42SKDDI.js +0 -2
- package/dist/bin/shell/chunks/tail-V537TDFR.js +0 -2
- package/dist/bin/shell/chunks/tar-TOWX2TDU.js +0 -2
- package/dist/bin/shell/chunks/tee-HK2SYCAR.js +0 -2
- package/dist/bin/shell/chunks/time-5R4QWCYF.js +0 -2
- package/dist/bin/shell/chunks/timeout-Z24MNWOP.js +0 -2
- package/dist/bin/shell/chunks/tr-4FPGAEVB.js +0 -2
- package/dist/bin/shell/chunks/unexpand-OYZ7KOYR.js +0 -2
- package/dist/bin/shell/chunks/uniq-TMSAIZM3.js +0 -2
- package/dist/bin/shell/chunks/wc-ZIV3TFVG.js +0 -2
- package/dist/bin/shell/chunks/xan-MOZFJGMY.js +0 -2
- package/dist/bin/shell/chunks/xan-view-5SZBYPLG.js +0 -2
- package/dist/bin/shell/chunks/xargs-SCYIFXOW.js +0 -2
- package/dist/bin/shell/chunks/yq-Q47JUWL6.js +0 -2
- package/dist/bundle/chunks/awk2-POPGKRAI.js +0 -1
- package/dist/bundle/chunks/base64-4YMZCVJ5.js +0 -1
- package/dist/bundle/chunks/bash-IJWYRKFO.js +0 -1
- package/dist/bundle/chunks/cat-RDUMLXKC.js +0 -1
- package/dist/bundle/chunks/chunk-55VFSPNA.js +0 -2
- package/dist/bundle/chunks/chunk-7L36YK2X.js +0 -2
- package/dist/bundle/chunks/chunk-A7ICOL4V.js +0 -13
- package/dist/bundle/chunks/chunk-B6O2PIY4.js +0 -10
- package/dist/bundle/chunks/chunk-CR5AFCPT.js +0 -22
- package/dist/bundle/chunks/chunk-D4J545R4.js +0 -11
- package/dist/bundle/chunks/chunk-D6CWQ5DW.js +0 -5
- package/dist/bundle/chunks/chunk-EIZGF4BS.js +0 -8
- package/dist/bundle/chunks/chunk-F55TLFGB.js +0 -9
- package/dist/bundle/chunks/chunk-GXVXFKBA.js +0 -5
- package/dist/bundle/chunks/chunk-HDQ56CKY.js +0 -15
- package/dist/bundle/chunks/chunk-HWBSOZZR.js +0 -35
- package/dist/bundle/chunks/chunk-JVPRLUMK.js +0 -7
- package/dist/bundle/chunks/chunk-KMEYNNUA.js +0 -15
- package/dist/bundle/chunks/chunk-LWEGUNWT.js +0 -7
- package/dist/bundle/chunks/chunk-MDLLFABN.js +0 -4
- package/dist/bundle/chunks/chunk-MHTUABJP.js +0 -8
- package/dist/bundle/chunks/chunk-MYE6AGBJ.js +0 -16
- package/dist/bundle/chunks/chunk-NAERJDUW.js +0 -8
- package/dist/bundle/chunks/chunk-NYQYO467.js +0 -32
- package/dist/bundle/chunks/chunk-PP6PSHAB.js +0 -4
- package/dist/bundle/chunks/chunk-PYSFUGCK.js +0 -10
- package/dist/bundle/chunks/chunk-QCDB2VPH.js +0 -6
- package/dist/bundle/chunks/chunk-SDNKECQQ.js +0 -5
- package/dist/bundle/chunks/chunk-TLSUDHID.js +0 -6
- package/dist/bundle/chunks/chunk-TOMNU26N.js +0 -4
- package/dist/bundle/chunks/chunk-TXBZCHCQ.js +0 -5
- package/dist/bundle/chunks/chunk-UNYNJIFU.js +0 -139
- package/dist/bundle/chunks/chunk-VJFXDYWH.js +0 -10
- package/dist/bundle/chunks/chunk-VLGZJRPG.js +0 -16
- package/dist/bundle/chunks/chunk-VYOJP4TV.js +0 -13
- package/dist/bundle/chunks/chunk-WKFATFPP.js +0 -4
- package/dist/bundle/chunks/chunk-XHM67O4N.js +0 -1
- package/dist/bundle/chunks/chunk-XORM457F.js +0 -286
- package/dist/bundle/chunks/chunk-YCFVLTST.js +0 -12
- package/dist/bundle/chunks/chunk-YS3AZT3J.js +0 -8
- package/dist/bundle/chunks/chunk-Z7JVV2SM.js +0 -12
- package/dist/bundle/chunks/chunk-ZXL7TQLN.js +0 -62
- package/dist/bundle/chunks/column-WLPMMSTS.js +0 -1
- package/dist/bundle/chunks/comm-5SLSESQG.js +0 -1
- package/dist/bundle/chunks/cut-OPC3VAGB.js +0 -1
- package/dist/bundle/chunks/diff-HJF2MPDN.js +0 -1
- package/dist/bundle/chunks/env-5EPCWSXR.js +0 -1
- package/dist/bundle/chunks/expand-DTNXU4LQ.js +0 -1
- package/dist/bundle/chunks/find-TPUOAIUQ.js +0 -1
- package/dist/bundle/chunks/flag-coverage-LMTH7T5F.js +0 -1
- package/dist/bundle/chunks/fold-LDSORVYE.js +0 -1
- package/dist/bundle/chunks/grep-3AIAIJVR.js +0 -1
- package/dist/bundle/chunks/gzip-AQXSGOVS.js +0 -1
- package/dist/bundle/chunks/head-HT2B6D2J.js +0 -1
- package/dist/bundle/chunks/html-to-markdown-TFCECAGV.js +0 -1
- package/dist/bundle/chunks/join-GG2LDHE5.js +0 -1
- package/dist/bundle/chunks/jq-ODXZBPLY.js +0 -1
- package/dist/bundle/chunks/js-exec-OOPTBRNB.js +0 -96
- package/dist/bundle/chunks/md5sum-INMIK4DX.js +0 -1
- package/dist/bundle/chunks/nl-U5YJDM32.js +0 -1
- package/dist/bundle/chunks/od-VJEF2UR5.js +0 -1
- package/dist/bundle/chunks/paste-7N6AFSDS.js +0 -1
- package/dist/bundle/chunks/python3-5F2XPEW4.js +0 -11
- package/dist/bundle/chunks/rev-XOSYPP45.js +0 -1
- package/dist/bundle/chunks/rg-FOQSCCX3.js +0 -1
- package/dist/bundle/chunks/sed-VFTTATXJ.js +0 -1
- package/dist/bundle/chunks/sha1sum-VJPNLNU6.js +0 -1
- package/dist/bundle/chunks/sha256sum-PI32XWXY.js +0 -1
- package/dist/bundle/chunks/sort-DCNRDA7U.js +0 -1
- package/dist/bundle/chunks/split-SITCSYCZ.js +0 -1
- package/dist/bundle/chunks/sqlite3-56UMWEY3.js +0 -1
- package/dist/bundle/chunks/strings-7PLOGTPD.js +0 -1
- package/dist/bundle/chunks/tac-SJGXQ4T2.js +0 -1
- package/dist/bundle/chunks/tail-S5ULNTJU.js +0 -1
- package/dist/bundle/chunks/tar-232RCEFK.js +0 -1
- package/dist/bundle/chunks/tee-O7VXZDCO.js +0 -1
- package/dist/bundle/chunks/time-DEUO3QV2.js +0 -1
- package/dist/bundle/chunks/timeout-VRKMCG72.js +0 -1
- package/dist/bundle/chunks/tr-2HXZRDSW.js +0 -1
- package/dist/bundle/chunks/unexpand-RGTMIGZM.js +0 -1
- package/dist/bundle/chunks/uniq-SUNANL47.js +0 -1
- package/dist/bundle/chunks/wc-TQB3VNOX.js +0 -1
- package/dist/bundle/chunks/xan-BXDXYEIB.js +0 -1
- package/dist/bundle/chunks/xan-view-ECQUO7AJ.js +0 -1
- package/dist/bundle/chunks/xargs-I6EZUCYF.js +0 -1
- package/dist/bundle/chunks/yq-MJMAR36V.js +0 -1
- package/dist/commands/js-exec/executor-adapter.d.ts +0 -66
- package/dist/executor-init.d.ts +0 -10
- package/vendor/executor/executor-sdk-bundle.d.mts +0 -18
- package/vendor/executor/executor-sdk-bundle.mjs +0 -972
- /package/dist/bin/chunks/{chunk-QSDVMMYI.js → chunk-4CFAYBLV.js} +0 -0
- /package/dist/bin/chunks/{chunk-ND23BJUM.js → chunk-LCDPWJBA.js} +0 -0
- /package/dist/bin/shell/chunks/{chunk-QSDVMMYI.js → chunk-4CFAYBLV.js} +0 -0
- /package/dist/bin/shell/chunks/{chunk-ND23BJUM.js → chunk-LCDPWJBA.js} +0 -0
- /package/dist/bundle/chunks/{chunk-SYMJJMQ4.js → chunk-PXTK5WE2.js} +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure JavaScript bzip2 compressor.
|
|
3
|
+
*
|
|
4
|
+
* Implements the bzip2 compression algorithm (public domain, Julian Seward 1996).
|
|
5
|
+
* Pipeline: RLE1 → BWT → MTF → RLE2 (RUNA/RUNB) → Huffman → bitstream output.
|
|
6
|
+
*
|
|
7
|
+
* This exists because no permissively-licensed JS bzip2 compressor is available
|
|
8
|
+
* on npm. Decompression uses the MIT-licensed `seek-bzip` package instead.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Compress data using bzip2 algorithm.
|
|
12
|
+
* @param data - Input data to compress
|
|
13
|
+
* @param blockSizeLevel - Block size level 1-9 (x 100KB), default 9
|
|
14
|
+
* @param maxSize - Maximum input size in bytes (default 10MB)
|
|
15
|
+
* @returns Compressed bzip2 data
|
|
16
|
+
*/
|
|
17
|
+
export declare function bzip2Compress(data: Uint8Array, blockSizeLevel?: number, maxSize?: number): Uint8Array;
|
|
@@ -57,6 +57,7 @@ export declare class SyncBackend {
|
|
|
57
57
|
statusText: string;
|
|
58
58
|
headers: Record<string, string>;
|
|
59
59
|
body: string;
|
|
60
|
+
bodyBase64: string;
|
|
60
61
|
url: string;
|
|
61
62
|
};
|
|
62
63
|
/**
|
|
@@ -78,7 +79,7 @@ export declare class SyncBackend {
|
|
|
78
79
|
exitCode: number;
|
|
79
80
|
};
|
|
80
81
|
/**
|
|
81
|
-
* Invoke a tool through the main thread's
|
|
82
|
+
* Invoke a tool through the main thread's invokeTool hook.
|
|
82
83
|
* Returns the JSON-serialized result.
|
|
83
84
|
*/
|
|
84
85
|
invokeTool(path: string, argsJson: string): string;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Byte/text boundary types for the shell pipeline.
|
|
3
|
+
*
|
|
4
|
+
* Shell pipes carry bytes, not text. Internally we represent a byte buffer as
|
|
5
|
+
* a JS string where `s.charCodeAt(i)` is the i-th byte (0–255), the same
|
|
6
|
+
* convention as `Buffer.from(s, "latin1")`. That's a space-cheap byte buffer,
|
|
7
|
+
* but the type system can't tell it apart from a real `string`, and command
|
|
8
|
+
* authors keep writing `ctx.stdin.split(...)` / `RegExp.test(ctx.stdin)` /
|
|
9
|
+
* `JSON.parse(ctx.stdin)` over data that is actually UTF-8 packed in latin1.
|
|
10
|
+
* The result is silent mojibake — every multibyte codepoint gets misread as
|
|
11
|
+
* several latin1 chars, then re-encoded as UTF-8 on the way out.
|
|
12
|
+
*
|
|
13
|
+
* `ByteString` is opaque (deliberately not assignable to/from `string`) so
|
|
14
|
+
* you cannot accidentally call string methods on it. The only ways out are
|
|
15
|
+
* `latin1FromBytes` (passthrough — stay byte-clean) and `decodeBytesToUtf8`
|
|
16
|
+
* (decode — process as text). Pick one explicitly per call site.
|
|
17
|
+
*/
|
|
18
|
+
declare const __byteString: unique symbol;
|
|
19
|
+
export interface ByteString {
|
|
20
|
+
readonly [__byteString]: true;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Tag a latin1 byte buffer (each char = one byte) as a `ByteString`. Use at
|
|
24
|
+
* the pipeline edge: `cmdCtx.stdin = unsafeBytesFromLatin1(prevStdout)`.
|
|
25
|
+
* Avoid inside command implementations.
|
|
26
|
+
*/
|
|
27
|
+
export declare function unsafeBytesFromLatin1(s: string): ByteString;
|
|
28
|
+
/**
|
|
29
|
+
* Reveal the underlying latin1 byte buffer. Use when a command intentionally
|
|
30
|
+
* forwards bytes unchanged (cat, head, tee, base64 -d, gzip, ...). Calling
|
|
31
|
+
* regex / parse / `.length-as-chars` on the result re-introduces the
|
|
32
|
+
* mojibake bug — if you need text, use `decodeBytesToUtf8` instead.
|
|
33
|
+
*/
|
|
34
|
+
export declare function latin1FromBytes(b: ByteString): string;
|
|
35
|
+
/**
|
|
36
|
+
* Decode a `ByteString` as UTF-8. Use when a command interprets stdin as
|
|
37
|
+
* text (jq, sed, grep, awk, ...). Returns proper Unicode where multibyte
|
|
38
|
+
* codepoints occupy a single JS char, so regex and parsers work correctly.
|
|
39
|
+
*
|
|
40
|
+
* Falls back to the raw latin1 view if the bytes are not valid UTF-8 (e.g.
|
|
41
|
+
* a binary stream piped into grep). Callers that want hard failure on
|
|
42
|
+
* invalid UTF-8 should encode + decode manually with `{ fatal: true }`.
|
|
43
|
+
*/
|
|
44
|
+
export declare function decodeBytesToUtf8(b: ByteString): string;
|
|
45
|
+
/**
|
|
46
|
+
* UTF-8 encode `s` (treating every char as a Unicode codepoint) into a
|
|
47
|
+
* `ByteString`. Use at sites that *know* their input is decoded Unicode
|
|
48
|
+
* text and need to emit it back as bytes — typically the inverse of an
|
|
49
|
+
* earlier `decodeBytesToUtf8` call inside the same command.
|
|
50
|
+
*/
|
|
51
|
+
export declare function encodeUtf8ToBytes(s: string): ByteString;
|
|
52
|
+
/** The empty `ByteString`. */
|
|
53
|
+
export declare const EMPTY_BYTES: ByteString;
|
|
54
|
+
/**
|
|
55
|
+
* Convert a `Uint8Array` to a `ByteString`. Each byte becomes one char.
|
|
56
|
+
* The reverse is `Uint8Array.from(latin1FromBytes(b), (c) => c.charCodeAt(0))`.
|
|
57
|
+
*/
|
|
58
|
+
export declare function bytesFromUint8Array(buf: Uint8Array): ByteString;
|
|
59
|
+
/**
|
|
60
|
+
* Read a file's raw bytes from any `IFileSystem`. Prefers the optional
|
|
61
|
+
* {@link IFileSystem.readFileBytes} method (built-in filesystems implement
|
|
62
|
+
* it natively), falling back to {@link IFileSystem.readFileBuffer} +
|
|
63
|
+
* conversion for external/custom filesystems written before
|
|
64
|
+
* `readFileBytes` existed. Use this from internal commands instead of
|
|
65
|
+
* calling `fs.readFileBytes` directly so user-supplied filesystems keep
|
|
66
|
+
* working.
|
|
67
|
+
*/
|
|
68
|
+
export declare function readBytesFrom(fs: {
|
|
69
|
+
readFileBytes?(path: string): Promise<ByteString>;
|
|
70
|
+
readFileBuffer(path: string): Promise<Uint8Array>;
|
|
71
|
+
}, path: string): Promise<ByteString>;
|
|
72
|
+
/** Either-or shape of a command's `stdout`. */
|
|
73
|
+
export type OutputKind = "text" | "bytes";
|
|
74
|
+
/**
|
|
75
|
+
* Read the explicit shape of a command's stdout. Falls back to the legacy
|
|
76
|
+
* `stdoutEncoding === "binary"` flag for results produced before the
|
|
77
|
+
* `stdoutKind` field existed; defaults to `"text"` otherwise.
|
|
78
|
+
*/
|
|
79
|
+
export declare function stdoutKind(result: {
|
|
80
|
+
stdoutKind?: OutputKind;
|
|
81
|
+
stdoutEncoding?: "binary";
|
|
82
|
+
}): OutputKind;
|
|
83
|
+
/**
|
|
84
|
+
* Coerce a command's stdout to a `ByteString` for the byte-shaped pipe.
|
|
85
|
+
* Text gets UTF-8 encoded once (codepoints → bytes); bytes pass through.
|
|
86
|
+
*/
|
|
87
|
+
export declare function stdoutAsBytes(result: {
|
|
88
|
+
stdout: string;
|
|
89
|
+
stdoutKind?: OutputKind;
|
|
90
|
+
stdoutEncoding?: "binary";
|
|
91
|
+
}): ByteString;
|
|
92
|
+
/**
|
|
93
|
+
* Build an `ExecResult`-shaped object whose stdout is decoded text. Sets
|
|
94
|
+
* `stdoutKind: "text"` so the pipe knows to UTF-8 encode it on handoff
|
|
95
|
+
* and redirects know to write it as UTF-8. Use for command authors that
|
|
96
|
+
* decode their input and emit Unicode text — they no longer have to
|
|
97
|
+
* manually re-encode for downstream byte consumers.
|
|
98
|
+
*/
|
|
99
|
+
export declare function textOutput(data: string): {
|
|
100
|
+
stdout: string;
|
|
101
|
+
stdoutKind: "text";
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Build an `ExecResult`-shaped object whose stdout is a latin1 byte view.
|
|
105
|
+
* Sets both `stdoutKind: "bytes"` (new contract) and `stdoutEncoding:
|
|
106
|
+
* "binary"` (legacy alias) so older code paths keep working through the
|
|
107
|
+
* migration. Use for command authors that emit raw bytes (cat, gzip,
|
|
108
|
+
* tar, base64 -d, ...).
|
|
109
|
+
*/
|
|
110
|
+
export declare function bytesOutput(data: ByteString): {
|
|
111
|
+
stdout: string;
|
|
112
|
+
stdoutKind: "bytes";
|
|
113
|
+
stdoutEncoding: "binary";
|
|
114
|
+
};
|
|
115
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ByteString } from "../../encoding.js";
|
|
1
2
|
import type { BufferEncoding, CpOptions, DirectoryEntry, DirentEntry, FileContent, FileEntry, FsEntry, FsStat, IFileSystem, InitialFiles, LazyFileEntry, MkdirOptions, ReadFileOptions, RmOptions, SymlinkEntry, WriteFileOptions } from "../interface.js";
|
|
2
3
|
export type { BufferEncoding, FileContent, FileEntry, LazyFileEntry, DirectoryEntry, SymlinkEntry, FsEntry, FsStat, IFileSystem, };
|
|
3
4
|
export interface FsData {
|
|
@@ -25,6 +26,7 @@ export declare class InMemoryFs implements IFileSystem {
|
|
|
25
26
|
*/
|
|
26
27
|
private materializeLazy;
|
|
27
28
|
readFile(path: string, options?: ReadFileOptions | BufferEncoding): Promise<string>;
|
|
29
|
+
readFileBytes(path: string): Promise<ByteString>;
|
|
28
30
|
readFileBuffer(path: string): Promise<Uint8Array>;
|
|
29
31
|
writeFile(path: string, content: FileContent, options?: WriteFileOptions | BufferEncoding): Promise<void>;
|
|
30
32
|
appendFile(path: string, content: FileContent, options?: WriteFileOptions | BufferEncoding): Promise<void>;
|
package/dist/fs/interface.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ByteString } from "../encoding.js";
|
|
1
2
|
/**
|
|
2
3
|
* Supported buffer encodings
|
|
3
4
|
*/
|
|
@@ -94,10 +95,31 @@ export interface CpOptions {
|
|
|
94
95
|
*/
|
|
95
96
|
export interface IFileSystem {
|
|
96
97
|
/**
|
|
97
|
-
* Read the contents of a file as
|
|
98
|
+
* Read the contents of a file as decoded text. Default encoding is utf8;
|
|
99
|
+
* pass an explicit text encoding (`"ascii"`, etc.) to override.
|
|
100
|
+
*
|
|
101
|
+
* For raw bytes (encoding `"binary"` / `"latin1"`), use {@link readFileBytes}
|
|
102
|
+
* — the opaque return type forces callers to decide whether to forward
|
|
103
|
+
* bytes unchanged or decode as text.
|
|
104
|
+
*
|
|
98
105
|
* @throws Error if file doesn't exist or is a directory
|
|
99
106
|
*/
|
|
100
107
|
readFile(path: string, options?: ReadFileOptions | BufferEncoding): Promise<string>;
|
|
108
|
+
/**
|
|
109
|
+
* Read the raw bytes of a file as a {@link ByteString} (latin1-shaped: each
|
|
110
|
+
* char = one byte). Use when the bytes will be piped onward unchanged or
|
|
111
|
+
* explicitly decoded with `decodeBytesToUtf8` — never call string methods
|
|
112
|
+
* on the result, that's the bug class this type prevents.
|
|
113
|
+
*
|
|
114
|
+
* Optional for backwards compatibility with external `IFileSystem`
|
|
115
|
+
* implementations written before this method existed; built-in
|
|
116
|
+
* filesystems all implement it. Internal callers must route through the
|
|
117
|
+
* `readBytesFrom(fs, path)` helper, which falls back to `readFileBuffer`
|
|
118
|
+
* when this method is missing.
|
|
119
|
+
*
|
|
120
|
+
* @throws Error if file doesn't exist or is a directory
|
|
121
|
+
*/
|
|
122
|
+
readFileBytes?(path: string): Promise<ByteString>;
|
|
101
123
|
/**
|
|
102
124
|
* Read the contents of a file as a Uint8Array (binary)
|
|
103
125
|
* @throws Error if file doesn't exist or is a directory
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ByteString } from "../../encoding.js";
|
|
1
2
|
import type { BufferEncoding, CpOptions, FileContent, FsStat, IFileSystem, MkdirOptions, ReadFileOptions, RmOptions, WriteFileOptions } from "../interface.js";
|
|
2
3
|
/**
|
|
3
4
|
* Configuration for a mount point
|
|
@@ -80,6 +81,7 @@ export declare class MountableFs implements IFileSystem {
|
|
|
80
81
|
*/
|
|
81
82
|
private getChildMountPoints;
|
|
82
83
|
readFile(path: string, options?: ReadFileOptions | BufferEncoding): Promise<string>;
|
|
84
|
+
readFileBytes(path: string): Promise<ByteString>;
|
|
83
85
|
readFileBuffer(path: string): Promise<Uint8Array>;
|
|
84
86
|
writeFile(path: string, content: FileContent, options?: WriteFileOptions | BufferEncoding): Promise<void>;
|
|
85
87
|
appendFile(path: string, content: FileContent, options?: WriteFileOptions | BufferEncoding): Promise<void>;
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* canonical path for I/O (closing the TOCTOU gap). New methods must use these
|
|
11
11
|
* gates — never access the real FS directly.
|
|
12
12
|
*/
|
|
13
|
+
import { type ByteString } from "../../encoding.js";
|
|
13
14
|
import { type FileContent } from "../encoding.js";
|
|
14
15
|
import type { CpOptions, DirentEntry, FsStat, IFileSystem, MkdirOptions, ReadFileOptions, RmOptions, WriteFileOptions } from "../interface.js";
|
|
15
16
|
export interface OverlayFsOptions {
|
|
@@ -106,6 +107,7 @@ export declare class OverlayFs implements IFileSystem {
|
|
|
106
107
|
*/
|
|
107
108
|
private existsInOverlay;
|
|
108
109
|
readFile(path: string, options?: ReadFileOptions | BufferEncoding): Promise<string>;
|
|
110
|
+
readFileBytes(path: string): Promise<ByteString>;
|
|
109
111
|
readFileBuffer(path: string, seen?: Set<string>): Promise<Uint8Array>;
|
|
110
112
|
writeFile(path: string, content: FileContent, options?: WriteFileOptions | BufferEncoding): Promise<void>;
|
|
111
113
|
appendFile(path: string, content: FileContent, options?: WriteFileOptions | BufferEncoding): Promise<void>;
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* are allowed, targets are validated and transformed to stay within root.
|
|
11
11
|
* New methods must use these gates — never access the real FS directly.
|
|
12
12
|
*/
|
|
13
|
+
import { type ByteString } from "../../encoding.js";
|
|
13
14
|
import { type FileContent } from "../encoding.js";
|
|
14
15
|
import type { CpOptions, DirentEntry, FsStat, IFileSystem, MkdirOptions, ReadFileOptions, RmOptions, WriteFileOptions } from "../interface.js";
|
|
15
16
|
export interface ReadWriteFsOptions {
|
|
@@ -56,6 +57,7 @@ export declare class ReadWriteFs implements IFileSystem {
|
|
|
56
57
|
*/
|
|
57
58
|
private toRealPath;
|
|
58
59
|
readFile(path: string, options?: ReadFileOptions | BufferEncoding): Promise<string>;
|
|
60
|
+
readFileBytes(path: string): Promise<ByteString>;
|
|
59
61
|
readFileBuffer(path: string): Promise<Uint8Array>;
|
|
60
62
|
writeFile(path: string, content: FileContent, options?: WriteFileOptions | BufferEncoding): Promise<void>;
|
|
61
63
|
appendFile(path: string, content: FileContent, options?: WriteFileOptions | BufferEncoding): Promise<void>;
|
package/dist/index.d.cts
CHANGED
|
@@ -5,6 +5,8 @@ export type { AllCommandName, CommandName, JavaScriptCommandName, NetworkCommand
|
|
|
5
5
|
export { getCommandNames, getJavaScriptCommandNames, getNetworkCommandNames, getPythonCommandNames, } from "./commands/registry.js";
|
|
6
6
|
export type { CustomCommand, LazyCommand } from "./custom-commands.js";
|
|
7
7
|
export { defineCommand } from "./custom-commands.js";
|
|
8
|
+
export type { ByteString, OutputKind } from "./encoding.js";
|
|
9
|
+
export { bytesOutput, decodeBytesToUtf8, EMPTY_BYTES, encodeUtf8ToBytes, latin1FromBytes, stdoutAsBytes, stdoutKind, textOutput, unsafeBytesFromLatin1, } from "./encoding.js";
|
|
8
10
|
export { InMemoryFs } from "./fs/in-memory-fs/index.js";
|
|
9
11
|
export type { BufferEncoding, CpOptions, DirectoryEntry, FileContent, FileEntry, FileInit, FileSystemFactory, FsEntry, FsStat, InitialFiles, LazyFileEntry, LazyFileProvider, MkdirOptions, RmOptions, SymlinkEntry, } from "./fs/interface.js";
|
|
10
12
|
export { MountableFs, type MountableFsOptions, type MountConfig, } from "./fs/mountable-fs/index.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export type { AllCommandName, CommandName, JavaScriptCommandName, NetworkCommand
|
|
|
5
5
|
export { getCommandNames, getJavaScriptCommandNames, getNetworkCommandNames, getPythonCommandNames, } from "./commands/registry.js";
|
|
6
6
|
export type { CustomCommand, LazyCommand } from "./custom-commands.js";
|
|
7
7
|
export { defineCommand } from "./custom-commands.js";
|
|
8
|
+
export type { ByteString, OutputKind } from "./encoding.js";
|
|
9
|
+
export { bytesOutput, decodeBytesToUtf8, EMPTY_BYTES, encodeUtf8ToBytes, latin1FromBytes, stdoutAsBytes, stdoutKind, textOutput, unsafeBytesFromLatin1, } from "./encoding.js";
|
|
8
10
|
export { InMemoryFs } from "./fs/in-memory-fs/index.js";
|
|
9
11
|
export type { BufferEncoding, CpOptions, DirectoryEntry, FileContent, FileEntry, FileInit, FileSystemFactory, FsEntry, FsStat, InitialFiles, LazyFileEntry, LazyFileProvider, MkdirOptions, RmOptions, SymlinkEntry, } from "./fs/interface.js";
|
|
10
12
|
export { MountableFs, type MountableFsOptions, type MountConfig, } from "./fs/mountable-fs/index.js";
|
|
@@ -41,8 +41,8 @@ export interface InterpreterOptions {
|
|
|
41
41
|
requireDefenseContext?: boolean;
|
|
42
42
|
/** Bootstrap JavaScript code for js-exec */
|
|
43
43
|
jsBootstrapCode?: string;
|
|
44
|
-
/** Tool invoker for
|
|
45
|
-
|
|
44
|
+
/** Tool invoker hook for js-exec's `tools` proxy */
|
|
45
|
+
invokeTool?: (path: string, argsJson: string) => Promise<string>;
|
|
46
46
|
}
|
|
47
47
|
export declare class Interpreter {
|
|
48
48
|
private ctx;
|
|
@@ -342,8 +342,8 @@ export interface InterpreterContext {
|
|
|
342
342
|
*/
|
|
343
343
|
jsBootstrapCode?: string;
|
|
344
344
|
/**
|
|
345
|
-
* Tool invoker
|
|
346
|
-
*
|
|
345
|
+
* Tool invoker hook. When present, js-exec sets up a `tools` proxy that
|
|
346
|
+
* routes calls through this callback.
|
|
347
347
|
*/
|
|
348
|
-
|
|
348
|
+
invokeTool?: (path: string, argsJson: string) => Promise<string>;
|
|
349
349
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pin DNS resolution for the actual fetch to the IPs that were validated
|
|
3
|
+
* by the preflight private-range check, defeating DNS rebinding.
|
|
4
|
+
*
|
|
5
|
+
* How it works:
|
|
6
|
+
* - `dns.lookup` is monkey-patched once globally to consult an
|
|
7
|
+
* AsyncLocalStorage store. When called inside a `pinDns(...)` async
|
|
8
|
+
* context for the same hostname, it returns the pre-validated address
|
|
9
|
+
* without performing any network DNS query.
|
|
10
|
+
* - Calls outside any pinning context (or for a different hostname)
|
|
11
|
+
* are delegated to the original `dns.lookup`.
|
|
12
|
+
*
|
|
13
|
+
* Why `dns.lookup` and not `dns.promises.lookup`:
|
|
14
|
+
* - Node's `net.connect`/`tls.connect` (used by undici under `globalThis.fetch`)
|
|
15
|
+
* reads `dns.lookup` at call time and uses the callback form.
|
|
16
|
+
* - We do not patch the promises form because it's not on the connect path.
|
|
17
|
+
*
|
|
18
|
+
* Browser builds: this module is imported transitively from `fetch.ts`
|
|
19
|
+
* (re-exported via `just-bash/browser`). `node:dns` is aliased to a
|
|
20
|
+
* stub by the browser build, but `node:async_hooks` cannot be aliased
|
|
21
|
+
* via a static import. We therefore lazy-load both via `require()`
|
|
22
|
+
* inside an `IS_BROWSER === false` guard so esbuild can dead-code
|
|
23
|
+
* eliminate the Node-only path. In the browser the exported `pinDns`
|
|
24
|
+
* is a passthrough that just runs the callback (the preflight that
|
|
25
|
+
* would have produced a `PinnedAddress` always throws first because
|
|
26
|
+
* `node:dns` is unavailable, so the passthrough is unreachable).
|
|
27
|
+
*/
|
|
28
|
+
export interface PinnedAddress {
|
|
29
|
+
hostname: string;
|
|
30
|
+
address: string;
|
|
31
|
+
family: 4 | 6;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Run `fn` with `dns.lookup` for `pinned.hostname` resolving to
|
|
35
|
+
* `pinned.address`/`pinned.family`. Resolutions for other hostnames
|
|
36
|
+
* pass through to the original `dns.lookup`.
|
|
37
|
+
*/
|
|
38
|
+
export declare function pinDns<T>(pinned: PinnedAddress, fn: () => Promise<T>): Promise<T>;
|
|
39
|
+
/**
|
|
40
|
+
* @internal Exposed for tests to verify the patched dns.lookup behaves
|
|
41
|
+
* correctly inside and outside a pinning context.
|
|
42
|
+
*/
|
|
43
|
+
export declare function _ensureDnsHookInstalled(): void;
|
package/dist/network/types.d.ts
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ByteString } from "./encoding.js";
|
|
1
2
|
import type { IFileSystem } from "./fs/interface.js";
|
|
2
3
|
import type { ExecutionLimits } from "./limits.js";
|
|
3
4
|
import type { SecureFetch } from "./network/index.js";
|
|
@@ -15,10 +16,25 @@ export interface ExecResult {
|
|
|
15
16
|
/** The final environment variables after execution (only set by BashEnv.exec) */
|
|
16
17
|
env?: Record<string, string>;
|
|
17
18
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
19
|
+
* Explicit metadata for what shape `stdout` is in. The pipeline + redirect
|
|
20
|
+
* layers consult this instead of guessing from string contents:
|
|
21
|
+
*
|
|
22
|
+
* - `"text"`: `stdout` is JS Unicode text. The pipeline UTF-8 encodes it
|
|
23
|
+
* before handing it to the next command's stdin; redirects write it
|
|
24
|
+
* as UTF-8.
|
|
25
|
+
* - `"bytes"`: `stdout` is a latin1-shaped byte buffer (each char = one
|
|
26
|
+
* byte). The pipeline forwards the bytes verbatim; redirects write
|
|
27
|
+
* them as binary.
|
|
28
|
+
*
|
|
29
|
+
* Producers should set this via `textOutput()` / `bytesOutput()` from
|
|
30
|
+
* `encoding.ts` rather than poking the raw flag. Absent values fall back
|
|
31
|
+
* to the legacy `stdoutEncoding` heuristic for back-compat with older
|
|
32
|
+
* commands that haven't been migrated yet.
|
|
33
|
+
*/
|
|
34
|
+
stdoutKind?: "text" | "bytes";
|
|
35
|
+
/**
|
|
36
|
+
* Legacy alias for `stdoutKind: "bytes"`. Older commands set this to
|
|
37
|
+
* `"binary"` to mark binary output. New code should prefer `stdoutKind`.
|
|
22
38
|
*/
|
|
23
39
|
stdoutEncoding?: "binary";
|
|
24
40
|
}
|
|
@@ -47,6 +63,17 @@ export interface CommandExecOptions {
|
|
|
47
63
|
* Optional - if not provided, stdin will be empty.
|
|
48
64
|
*/
|
|
49
65
|
stdin?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Shape of {@link stdin}:
|
|
68
|
+
* - `"text"` (default): JS Unicode text. UTF-8 encoded into bytes
|
|
69
|
+
* before reaching the subcommand, so byte consumers (`wc -c`,
|
|
70
|
+
* `base64`, `md5sum`) inside the script see real UTF-8 bytes.
|
|
71
|
+
* - `"bytes"`: a latin1-shaped byte buffer (each char = one byte,
|
|
72
|
+
* e.g. from `Buffer.from(...).toString("latin1")`). Forwarded
|
|
73
|
+
* verbatim — useful for piping raw binary into commands like
|
|
74
|
+
* `gzip -d`.
|
|
75
|
+
*/
|
|
76
|
+
stdinKind?: "text" | "bytes";
|
|
50
77
|
/**
|
|
51
78
|
* Abort signal for cooperative cancellation.
|
|
52
79
|
* When aborted, the interpreter stops executing at the next statement boundary.
|
|
@@ -106,8 +133,19 @@ export interface CommandContext {
|
|
|
106
133
|
* In bash, only exported variables are passed to child processes.
|
|
107
134
|
*/
|
|
108
135
|
exportedEnv?: Record<string, string>;
|
|
109
|
-
/**
|
|
110
|
-
|
|
136
|
+
/**
|
|
137
|
+
* Standard input as a byte buffer. Opaque on purpose — see `encoding.ts`.
|
|
138
|
+
*
|
|
139
|
+
* Pipelines carry bytes (a previous command's stdout becomes this stdin).
|
|
140
|
+
* Choose a conversion at the use site:
|
|
141
|
+
* - `latin1FromBytes(ctx.stdin)` to forward bytes unchanged (cat, head,
|
|
142
|
+
* tee, base64 -d, gzip, ...).
|
|
143
|
+
* - `decodeBytesToUtf8(ctx.stdin)` to interpret as UTF-8 text (jq, sed,
|
|
144
|
+
* grep, awk, parsers, code execution, char-position math, ...).
|
|
145
|
+
* Mixing the two — calling string methods on a latin1 byte buffer that
|
|
146
|
+
* actually holds UTF-8 — is the bug class this type prevents.
|
|
147
|
+
*/
|
|
148
|
+
stdin: ByteString;
|
|
111
149
|
/**
|
|
112
150
|
* Execution limits configuration.
|
|
113
151
|
* Available when running commands via BashEnv interpreter.
|
|
@@ -183,11 +221,11 @@ export interface CommandContext {
|
|
|
183
221
|
*/
|
|
184
222
|
jsBootstrapCode?: string;
|
|
185
223
|
/**
|
|
186
|
-
* Tool invoker
|
|
187
|
-
*
|
|
188
|
-
*
|
|
224
|
+
* Tool invoker hook. When present, js-exec sets up a `tools` proxy that
|
|
225
|
+
* routes calls through this callback. Receives `(path, argsJson)` and
|
|
226
|
+
* returns a JSON result string.
|
|
189
227
|
*/
|
|
190
|
-
|
|
228
|
+
invokeTool?: (path: string, argsJson: string) => Promise<string>;
|
|
191
229
|
}
|
|
192
230
|
export interface Command {
|
|
193
231
|
name: string;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Provides common patterns for reading from files or stdin,
|
|
5
5
|
* including parallel batch reading for performance.
|
|
6
6
|
*/
|
|
7
|
+
import { type ByteString } from "../encoding.js";
|
|
7
8
|
import type { CommandContext, ExecResult } from "../types.js";
|
|
8
9
|
export interface ReadFilesOptions {
|
|
9
10
|
/** Command name for error messages */
|
|
@@ -18,8 +19,12 @@ export interface ReadFilesOptions {
|
|
|
18
19
|
export interface FileContent {
|
|
19
20
|
/** File name (or "-" for stdin, or "" if stdin with no files) */
|
|
20
21
|
filename: string;
|
|
21
|
-
/**
|
|
22
|
-
|
|
22
|
+
/**
|
|
23
|
+
* File content as a byte buffer (latin1-shaped). Decode with
|
|
24
|
+
* `decodeBytesToUtf8` before regex/parsing/char-position math; pass through
|
|
25
|
+
* `latin1FromBytes` if forwarding bytes unchanged.
|
|
26
|
+
*/
|
|
27
|
+
content: ByteString;
|
|
23
28
|
}
|
|
24
29
|
export interface ReadFilesResult {
|
|
25
30
|
/** Successfully read files */
|
|
@@ -46,21 +51,23 @@ export interface ReadFilesResult {
|
|
|
46
51
|
*/
|
|
47
52
|
export declare function readFiles(ctx: CommandContext, files: string[], options: ReadFilesOptions): Promise<ReadFilesResult>;
|
|
48
53
|
/**
|
|
49
|
-
* Read and concatenate all files into a single
|
|
54
|
+
* Read and concatenate all files into a single byte buffer.
|
|
50
55
|
*
|
|
51
56
|
* Useful for commands like sort and uniq that process all input together.
|
|
57
|
+
* Callers must `decodeBytesToUtf8` (text processing) or `latin1FromBytes`
|
|
58
|
+
* (byte passthrough) before using the content.
|
|
52
59
|
*
|
|
53
60
|
* @example
|
|
54
61
|
* const result = await readAndConcat(ctx, files, { cmdName: "sort" });
|
|
55
62
|
* if (!result.ok) return result.error;
|
|
56
|
-
* const lines = result.content.split("\n");
|
|
63
|
+
* const lines = decodeBytesToUtf8(result.content).split("\n");
|
|
57
64
|
*/
|
|
58
65
|
export declare function readAndConcat(ctx: CommandContext, files: string[], options: {
|
|
59
66
|
cmdName: string;
|
|
60
67
|
allowStdinMarker?: boolean;
|
|
61
68
|
}): Promise<{
|
|
62
69
|
ok: true;
|
|
63
|
-
content:
|
|
70
|
+
content: ByteString;
|
|
64
71
|
} | {
|
|
65
72
|
ok: false;
|
|
66
73
|
error: ExecResult;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "just-bash",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "A simulated bash environment with virtual filesystem",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"dist/*.d.cts",
|
|
38
38
|
"dist/ast/*.d.ts",
|
|
39
39
|
"dist/commands/**/*.d.ts",
|
|
40
|
+
"dist/commands/sqlite3/worker.js",
|
|
40
41
|
"dist/fs/**/*.d.ts",
|
|
41
42
|
"dist/interpreter/**/*.d.ts",
|
|
42
43
|
"dist/network/**/*.d.ts",
|
|
@@ -44,8 +45,8 @@
|
|
|
44
45
|
"dist/sandbox/*.d.ts",
|
|
45
46
|
"dist/utils/*.d.ts",
|
|
46
47
|
"vendor/cpython-emscripten/",
|
|
47
|
-
"vendor/executor/",
|
|
48
48
|
"README.md",
|
|
49
|
+
"CHANGELOG.md",
|
|
49
50
|
"dist/AGENTS.md"
|
|
50
51
|
],
|
|
51
52
|
"bin": {
|
|
@@ -55,43 +56,10 @@
|
|
|
55
56
|
"publishConfig": {
|
|
56
57
|
"access": "public"
|
|
57
58
|
},
|
|
58
|
-
"scripts": {
|
|
59
|
-
"build": "rm -rf dist && tsc && pnpm build:lib && pnpm build:lib:cjs && pnpm build:browser && pnpm build:cli && pnpm build:shell && pnpm build:worker && pnpm build:clean && cp dist/index.d.ts dist/index.d.cts && sed '1,/^-->/d' AGENTS.npm.md > dist/AGENTS.md",
|
|
60
|
-
"build:clean": "find dist -name '*.test.js' -delete && find dist -name '*.test.d.ts' -delete",
|
|
61
|
-
"build:worker": "esbuild src/commands/python3/worker.ts --bundle --platform=node --format=esm --outfile=src/commands/python3/worker.js --external:../../../vendor/cpython-emscripten/* && cp src/commands/python3/worker.js dist/commands/python3/worker.js && mkdir -p dist/bin/chunks && cp src/commands/python3/worker.js dist/bin/chunks/worker.js && mkdir -p dist/bundle/chunks && cp src/commands/python3/worker.js dist/bundle/chunks/worker.js && esbuild src/commands/js-exec/worker.ts --bundle --platform=node --format=esm --outfile=src/commands/js-exec/worker.js --external:quickjs-emscripten && cp src/commands/js-exec/worker.js dist/commands/js-exec/worker.js && cp src/commands/js-exec/worker.js dist/bin/chunks/js-exec-worker.js && cp src/commands/js-exec/worker.js dist/bundle/chunks/js-exec-worker.js",
|
|
62
|
-
"build:lib": "esbuild dist/index.js --bundle --splitting --platform=node --format=esm --minify --outdir=dist/bundle --chunk-names=chunks/[name]-[hash] --external:diff --external:minimatch --external:sprintf-js --external:turndown --external:sql.js --external:quickjs-emscripten --external:@mongodb-js/zstd --external:node-liblzma --external:compressjs --external:effect --external:@effect/platform --external:@effect/platform-node --external:../vendor/executor/*",
|
|
63
|
-
"build:lib:cjs": "esbuild dist/index.js --bundle --platform=node --format=cjs --minify --outfile=dist/bundle/index.cjs --external:diff --external:minimatch --external:sprintf-js --external:turndown --external:sql.js --external:quickjs-emscripten --external:@mongodb-js/zstd --external:node-liblzma --external:compressjs --external:effect --external:@effect/platform --external:@effect/platform-node --external:../vendor/executor/*",
|
|
64
|
-
"build:browser": "esbuild dist/browser.js --bundle --platform=browser --format=esm --minify --outfile=dist/bundle/browser.js --external:diff --external:minimatch --external:sprintf-js --external:turndown --external:node:zlib --external:@mongodb-js/zstd --external:node-liblzma --external:compressjs --define:__BROWSER__=true --alias:node:dns=./src/shims/browser-unsupported.js",
|
|
65
|
-
"build:cli": "esbuild dist/cli/just-bash.js --bundle --splitting --platform=node --format=esm --minify --outdir=dist/bin --entry-names=[name] --chunk-names=chunks/[name]-[hash] --banner:js='#!/usr/bin/env node' --external:sql.js --external:quickjs-emscripten --external:@mongodb-js/zstd --external:node-liblzma --external:compressjs --external:effect --external:@effect/platform --external:@effect/platform-node --external:../vendor/executor/*",
|
|
66
|
-
"build:shell": "esbuild dist/cli/shell.js --bundle --splitting --platform=node --format=esm --minify --outdir=dist/bin/shell --entry-names=[name] --chunk-names=chunks/[name]-[hash] --banner:js='#!/usr/bin/env node' --external:sql.js --external:quickjs-emscripten --external:@mongodb-js/zstd --external:node-liblzma --external:compressjs",
|
|
67
|
-
"prepublishOnly": "pnpm validate",
|
|
68
|
-
"validate": "pnpm lint && pnpm knip && pnpm typecheck && pnpm build && pnpm check:worker-sync && pnpm test:run && pnpm test:wasm && pnpm test:dist && pnpm test:examples",
|
|
69
|
-
"test:examples": "cd examples/cjs-consumer && pnpm install --no-frozen-lockfile && npx tsc --noEmit",
|
|
70
|
-
"typecheck": "tsc --noEmit",
|
|
71
|
-
"lint": "biome check . && pnpm lint:banned",
|
|
72
|
-
"check:worker-sync": "node scripts/check-worker-sync.js",
|
|
73
|
-
"lint:banned": "node scripts/check-banned-patterns.js",
|
|
74
|
-
"lint:fix": "biome check --write .",
|
|
75
|
-
"knip": "knip",
|
|
76
|
-
"test": "vitest",
|
|
77
|
-
"test:run": "vitest run --exclude src/security/fuzzing/ --exclude src/commands/python3/ --exclude src/commands/sqlite3/ --exclude src/commands/js-exec/ --exclude src/agent-examples/python-scripting.test.ts",
|
|
78
|
-
"test:dist": "vitest run src/cli/just-bash.bundle.test.ts",
|
|
79
|
-
"test:unit": "vitest run --config vitest.unit.config.ts",
|
|
80
|
-
"test:wasm": "vitest run --config vitest.wasm.config.ts",
|
|
81
|
-
"test:comparison": "vitest run --config vitest.comparison.config.ts",
|
|
82
|
-
"test:comparison:record": "RECORD_FIXTURES=1 vitest run --config vitest.comparison.config.ts",
|
|
83
|
-
"test:coverage": "vitest run --coverage",
|
|
84
|
-
"test:coverage:unit": "vitest run --config vitest.unit.config.ts --coverage",
|
|
85
|
-
"test:fuzz": "vitest run src/security/fuzzing/",
|
|
86
|
-
"test:fuzz:long": "FUZZ_RUNS=10000 vitest run src/security/fuzzing/",
|
|
87
|
-
"shell": "npx tsx src/cli/shell.ts",
|
|
88
|
-
"dev:exec": "npx tsx src/cli/exec.ts"
|
|
89
|
-
},
|
|
90
59
|
"keywords": [],
|
|
91
60
|
"author": "Malte and Claude",
|
|
92
61
|
"license": "Apache-2.0",
|
|
93
62
|
"devDependencies": {
|
|
94
|
-
"@biomejs/biome": "^2.3.10",
|
|
95
63
|
"@types/ini": "^4.1.1",
|
|
96
64
|
"@types/node": "^25.0.3",
|
|
97
65
|
"@types/papaparse": "^5.5.2",
|
|
@@ -106,10 +74,9 @@
|
|
|
106
74
|
"vitest": "^4.0.16"
|
|
107
75
|
},
|
|
108
76
|
"dependencies": {
|
|
109
|
-
"
|
|
77
|
+
"seek-bzip": "^2.0.0",
|
|
110
78
|
"diff": "^8.0.2",
|
|
111
|
-
"
|
|
112
|
-
"fast-xml-parser": "^5.3.3",
|
|
79
|
+
"fast-xml-parser": "^5.7.3",
|
|
113
80
|
"file-type": "^21.2.0",
|
|
114
81
|
"ini": "^6.0.0",
|
|
115
82
|
"minimatch": "^10.1.1",
|
|
@@ -127,5 +94,34 @@
|
|
|
127
94
|
"@mongodb-js/zstd": "^7.0.0",
|
|
128
95
|
"node-liblzma": "^2.0.3"
|
|
129
96
|
},
|
|
130
|
-
"
|
|
131
|
-
|
|
97
|
+
"scripts": {
|
|
98
|
+
"build": "rm -rf dist && tsc && pnpm build:lib && pnpm build:lib:cjs && pnpm build:browser && pnpm build:cli && pnpm build:shell && pnpm build:worker && pnpm build:clean && cp dist/index.d.ts dist/index.d.cts && sed '1,/^-->/d' AGENTS.npm.md > dist/AGENTS.md",
|
|
99
|
+
"build:clean": "find dist -name '*.test.js' -delete && find dist -name '*.test.d.ts' -delete",
|
|
100
|
+
"build:worker": "esbuild src/commands/python3/worker.ts --bundle --platform=node --format=esm --outfile=src/commands/python3/worker.js --external:../../../vendor/cpython-emscripten/* && cp src/commands/python3/worker.js dist/commands/python3/worker.js && mkdir -p dist/bin/chunks && cp src/commands/python3/worker.js dist/bin/chunks/worker.js && mkdir -p dist/bundle/chunks && cp src/commands/python3/worker.js dist/bundle/chunks/worker.js && esbuild src/commands/js-exec/js-exec-worker.ts --bundle --platform=node --format=esm --outfile=src/commands/js-exec/js-exec-worker.js --external:quickjs-emscripten && cp src/commands/js-exec/js-exec-worker.js dist/commands/js-exec/js-exec-worker.js && cp src/commands/js-exec/js-exec-worker.js dist/bin/chunks/js-exec-worker.js && cp src/commands/js-exec/js-exec-worker.js dist/bundle/chunks/js-exec-worker.js && esbuild src/commands/sqlite3/worker.ts --bundle --platform=node --format=esm --outfile=src/commands/sqlite3/worker.js --external:sql.js && mkdir -p dist/commands/sqlite3 && cp src/commands/sqlite3/worker.js dist/commands/sqlite3/worker.js && cp src/commands/sqlite3/worker.js dist/bin/chunks/sqlite3-worker.js && cp src/commands/sqlite3/worker.js dist/bundle/chunks/sqlite3-worker.js",
|
|
101
|
+
"build:lib": "esbuild dist/index.js --bundle --splitting --platform=node --format=esm --minify --outdir=dist/bundle --chunk-names=chunks/[name]-[hash] --external:diff --external:minimatch --external:sprintf-js --external:turndown --external:sql.js --external:quickjs-emscripten --external:@mongodb-js/zstd --external:node-liblzma --external:seek-bzip",
|
|
102
|
+
"build:lib:cjs": "esbuild dist/index.js --bundle --platform=node --format=cjs --minify --outfile=dist/bundle/index.cjs --external:diff --external:minimatch --external:sprintf-js --external:turndown --external:sql.js --external:quickjs-emscripten --external:@mongodb-js/zstd --external:node-liblzma --external:seek-bzip",
|
|
103
|
+
"build:browser": "esbuild dist/browser.js --bundle --platform=browser --format=esm --minify --outfile=dist/bundle/browser.js --external:diff --external:minimatch --external:sprintf-js --external:turndown --external:node:zlib --external:@mongodb-js/zstd --external:node-liblzma --external:seek-bzip --define:__BROWSER__=true --alias:node:dns=./src/shims/browser-unsupported.js",
|
|
104
|
+
"build:cli": "esbuild dist/cli/just-bash.js --bundle --splitting --platform=node --format=esm --minify --outdir=dist/bin --entry-names=[name] --chunk-names=chunks/[name]-[hash] --banner:js='#!/usr/bin/env node' --external:sql.js --external:quickjs-emscripten --external:@mongodb-js/zstd --external:node-liblzma --external:seek-bzip",
|
|
105
|
+
"build:shell": "esbuild dist/cli/shell.js --bundle --splitting --platform=node --format=esm --minify --outdir=dist/bin/shell --entry-names=[name] --chunk-names=chunks/[name]-[hash] --banner:js='#!/usr/bin/env node' --external:sql.js --external:quickjs-emscripten --external:@mongodb-js/zstd --external:node-liblzma --external:seek-bzip",
|
|
106
|
+
"validate": "pnpm lint && pnpm knip && pnpm typecheck && pnpm build && pnpm check:worker-sync && pnpm test:run && pnpm test:wasm && pnpm test:dist",
|
|
107
|
+
"typecheck": "tsc --noEmit",
|
|
108
|
+
"lint": "pnpm lint:banned",
|
|
109
|
+
"check:worker-sync": "node scripts/check-worker-sync.js",
|
|
110
|
+
"lint:banned": "node scripts/check-banned-patterns.js",
|
|
111
|
+
"lint:fix": "pnpm --workspace-root lint:fix",
|
|
112
|
+
"knip": "knip",
|
|
113
|
+
"test": "vitest",
|
|
114
|
+
"test:run": "vitest run --exclude src/security/fuzzing/ --exclude src/commands/python3/ --exclude src/commands/sqlite3/ --exclude src/commands/js-exec/ --exclude src/agent-examples/python-scripting.test.ts",
|
|
115
|
+
"test:dist": "vitest run src/cli/just-bash.bundle.test.ts",
|
|
116
|
+
"test:unit": "vitest run --config vitest.unit.config.ts",
|
|
117
|
+
"test:wasm": "vitest run --config vitest.wasm.config.ts",
|
|
118
|
+
"test:comparison": "vitest run --config vitest.comparison.config.ts",
|
|
119
|
+
"test:comparison:record": "RECORD_FIXTURES=1 vitest run --config vitest.comparison.config.ts",
|
|
120
|
+
"test:coverage": "vitest run --coverage",
|
|
121
|
+
"test:coverage:unit": "vitest run --config vitest.unit.config.ts --coverage",
|
|
122
|
+
"test:fuzz": "vitest run src/security/fuzzing/",
|
|
123
|
+
"test:fuzz:long": "FUZZ_RUNS=10000 vitest run src/security/fuzzing/",
|
|
124
|
+
"shell": "npx tsx src/cli/shell.ts",
|
|
125
|
+
"dev:exec": "npx tsx src/cli/exec.ts"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
File without changes
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{a,b}from"./chunk-SDLWFYVT.js";import"./chunk-4PRVMER6.js";import"./chunk-MO4RPBN2.js";import"./chunk-YU6OGPZR.js";import"./chunk-SE4C7FJY.js";import"./chunk-6KZRLMG3.js";import"./chunk-GTNBSMZR.js";import"./chunk-KGOUQS5A.js";export{a as awkCommand2,b as flagsForFuzzing};
|