@poe-platform/safe-bash 0.1.803 → 0.1.804
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/README.md +56 -31
- package/dist/image-ast/ast.d.ts +1 -0
- package/dist/image-ast/browser/ast.d.ts +1 -0
- package/dist/image-ast/browser/codecs/jpeg.d.ts +2 -2
- package/dist/image-ast/codecs/jpeg.d.ts +2 -2
- package/dist/image-ast/index.browser.js +692 -8364
- package/dist/image-ast/index.js +692 -8364
- package/dist/mp4-ast/codecs.d.ts +7 -2
- package/dist/safe-bash/chunks/{chunk-CHYGPFVM.js → chunk-22SX3F2R.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-FBUCWVTE.js → chunk-2IVBJTBD.js} +1 -1
- package/dist/safe-bash/chunks/chunk-2POETUMB.js +190 -0
- package/dist/safe-bash/chunks/{chunk-XVOSKJE2.js → chunk-47D7WBJK.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-VKNVHEX3.js → chunk-4ESI236Y.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-74GHTNJA.js → chunk-4KTMKD5W.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-55YJASTN.js → chunk-4T53AERN.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-DQP3VHSB.js → chunk-5XIFJVOO.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-5OHX7C2V.js → chunk-62BOHHJT.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-HZAMGT5I.js → chunk-67WIFM3N.js} +17 -6
- package/dist/safe-bash/chunks/{chunk-4D4N7IU2.js → chunk-6LNFRPW5.js} +2 -2
- package/dist/safe-bash/chunks/{chunk-6O77NL2S.js → chunk-6SMICPI3.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-4BSJLKNM.js → chunk-7O76UFQD.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-PNBBUWSM.js → chunk-AW5KIT6V.js} +3488 -39
- package/dist/safe-bash/chunks/{chunk-JMMEIDPF.js → chunk-B2Z73HTZ.js} +52 -28
- package/dist/safe-bash/chunks/chunk-B3ZMOJVM.js +319 -0
- package/dist/safe-bash/chunks/{chunk-7ZBU7KYV.js → chunk-CFAWS3O4.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-I5HZ4FGE.js → chunk-CL2FCTTO.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-2LSAMQER.js → chunk-CTXNARJH.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-TFIBK2GI.js → chunk-D5Q7NFWI.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-OQRVVGR6.js → chunk-DSOOVZ6Q.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-VTH3MLDU.js → chunk-DUTAG6ZD.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-XAQMU6OY.js → chunk-EE5YGFIZ.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-FZE4HW6G.js → chunk-EJOYT2ME.js} +1 -1
- package/dist/safe-bash/chunks/chunk-FAAIR6EJ.js +887 -0
- package/dist/safe-bash/chunks/{chunk-OV6IHKO6.js → chunk-FOB2FZR4.js} +2 -2
- package/dist/safe-bash/chunks/chunk-G6V4RRSQ.js +14 -0
- package/dist/safe-bash/chunks/{chunk-UTBUUFDM.js → chunk-GGQAGQXQ.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-K6VCD7IY.js → chunk-HIIYIJ5G.js} +2 -4
- package/dist/safe-bash/chunks/{chunk-VBTDHOWC.js → chunk-IOHH2GTI.js} +4 -3
- package/dist/safe-bash/chunks/{chunk-CTVWDACF.js → chunk-IQW34XQT.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-HZ7BWKQ3.js → chunk-IS572AAT.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-AUSNDQTJ.js → chunk-JPSUHHOA.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-ZVD5IS4V.js → chunk-KBZ4UB2O.js} +2 -2
- package/dist/safe-bash/chunks/{chunk-AM5ESLPH.js → chunk-KU5CVWKA.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-RYFQ3LZG.js → chunk-LPOVNKNB.js} +173 -153
- package/dist/safe-bash/chunks/{chunk-46Z5E5EV.js → chunk-MBOC3LZ4.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-6PAVEFT3.js → chunk-N4BQFD3P.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-CS4MNM6I.js → chunk-NGKCVNWS.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-7R5BDCG7.js → chunk-OHML2BEU.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-C5OWC2TL.js → chunk-OQ3AGYCZ.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-B7TAL7S5.js → chunk-PTAEWLSE.js} +0 -2
- package/dist/safe-bash/chunks/{chunk-LVOBFF4D.js → chunk-Q4FNLOTI.js} +1 -1
- package/dist/safe-bash/chunks/chunk-Q5XO3NAS.js +1036 -0
- package/dist/safe-bash/chunks/{chunk-GEG3BWGE.js → chunk-RHFRJIWQ.js} +1 -1
- package/dist/safe-bash/chunks/chunk-RUR6J33T.js +11 -0
- package/dist/safe-bash/chunks/{chunk-EEEWOYEG.js → chunk-S4RFUUXO.js} +839 -24
- package/dist/safe-bash/chunks/{chunk-RRR7AQ24.js → chunk-SD2ISU5L.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-3NDIFSNM.js → chunk-SUJ3NTMH.js} +3 -3
- package/dist/safe-bash/chunks/{chunk-R3NAKOED.js → chunk-SZRUU5HS.js} +2 -2
- package/dist/safe-bash/chunks/{chunk-PH63PLPZ.js → chunk-TC3F4UFF.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-3R3AANOR.js → chunk-TCKYOLUE.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-D3ANYGMC.js → chunk-UV4X32QU.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-E7OYNDGL.js → chunk-V7QT2RWC.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-B7PIL77G.js → chunk-W2IYOVHK.js} +804 -1195
- package/dist/safe-bash/chunks/{chunk-3HQU4OJO.js → chunk-XNGVOSGI.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-J42RIHHJ.js → chunk-XQWCQSRN.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-A7XEHALN.js → chunk-Y7FW6GLT.js} +6 -6
- package/dist/safe-bash/chunks/{chunk-QGUV42T5.js → chunk-YL3GBUG4.js} +1 -1
- package/dist/safe-bash/chunks/chunk-YOXUCJER.js +389 -0
- package/dist/safe-bash/chunks/{chunk-HBCN24ZA.js → chunk-Z2AAYYJN.js} +2 -2
- package/dist/safe-bash/chunks/chunk-ZKYKJCZZ.js +30 -0
- package/dist/safe-bash/chunks/core-IE3AFIDX.js +85806 -0
- package/dist/safe-bash/chunks/{ffmpeg-WTC3TEFI.js → ffmpeg-YANDK6HU.js} +2 -2
- package/dist/safe-bash/chunks/{gh-6WU6PXL4.js → gh-4MBJ2S5V.js} +2 -2
- package/dist/safe-bash/chunks/{git-EFZIGJW4.js → git-2QONJNRQ.js} +2 -2
- package/dist/safe-bash/chunks/{imagemagick-EIEYGWPF.js → imagemagick-JLEHGYSN.js} +2 -2
- package/dist/safe-bash/chunks/{mmdc-ROQJT5HQ.js → mmdc-6LD7A6ND.js} +2 -2
- package/dist/safe-bash/chunks/{pdfimages-DW7LWXFI.js → pdfimages-RSHL7LOP.js} +2 -2
- package/dist/safe-bash/chunks/{pdfinfo-TIP6XLUQ.js → pdfinfo-L3SGWPNG.js} +2 -2
- package/dist/safe-bash/chunks/{pdftk-DMG22ITZ.js → pdftk-LFBJNU5A.js} +2 -2
- package/dist/safe-bash/chunks/{pdftoppm-WNDYR72T.js → pdftoppm-NXXFUIHG.js} +2 -2
- package/dist/safe-bash/chunks/{pdftotext-5IPZ4NI7.js → pdftotext-4IHNWT6F.js} +2 -2
- package/dist/safe-bash/chunks/{qpdf-TTX2DIUA.js → qpdf-ZEIREV63.js} +2 -2
- package/dist/safe-bash/chunks/read-builtin-A4QKAT45.js +9 -0
- package/dist/safe-bash/chunks/{sips-XYS46JPJ.js → sips-D5YBG2V3.js} +2 -2
- package/dist/safe-bash/chunks/{soffice-TU73E5KL.js → soffice-RAJU3JUT.js} +2 -2
- package/dist/safe-bash/chunks/source-files-3XWRRHFA.js +7 -0
- package/dist/safe-bash/chunks/{wkhtmltopdf-FSZ2CHGE.js → wkhtmltopdf-7UE4FORZ.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-7KWZXKY6.js → chunk-26RTBV2I.js} +1 -0
- package/dist/safe-bash/command-chunks/{chunk-AQJ2ROJO.js → chunk-2WYNMZR2.js} +10 -8
- package/dist/safe-bash/command-chunks/{chunk-BDSMROQZ.js → chunk-36GFRF2N.js} +2 -1
- package/dist/safe-bash/command-chunks/{chunk-GC5TJZOF.js → chunk-3VIA2IA7.js} +114 -31
- package/dist/safe-bash/command-chunks/{chunk-NKFYQSES.js → chunk-4CTI3ZTX.js} +1 -0
- package/dist/safe-bash/command-chunks/{chunk-WH627NJL.js → chunk-4MYP2FX4.js} +2 -1
- package/dist/safe-bash/command-chunks/{chunk-ZDN7MJE6.js → chunk-4R5ADJM5.js} +11 -1
- package/dist/safe-bash/command-chunks/{chunk-P2N33UMN.js → chunk-5MIKM54M.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-DB453IE6.js → chunk-6FZQUOSJ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-PICVQ6B5.js → chunk-6GKYHPJG.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-7K6JYKPJ.js → chunk-6M2ELGEN.js} +17 -15
- package/dist/safe-bash/command-chunks/{chunk-PXEIT2O4.js → chunk-6UR7V3ET.js} +8 -1
- package/dist/safe-bash/command-chunks/{chunk-6KJ3LPI2.js → chunk-6XBS5B46.js} +26 -3
- package/dist/safe-bash/command-chunks/{chunk-5PWJG2UK.js → chunk-6YXLZX7L.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-EK6YNAXT.js → chunk-753YOR54.js} +31 -5
- package/dist/safe-bash/command-chunks/{chunk-RMWQAAO5.js → chunk-7IR4NRNE.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-FZTK4MFI.js → chunk-7NM73SVK.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-NXEQ3ESQ.js → chunk-7QD5YY4F.js} +6 -11
- package/dist/safe-bash/command-chunks/{chunk-EMPU65ZK.js → chunk-A5LBSJGH.js} +1 -0
- package/dist/safe-bash/command-chunks/{chunk-4FEVBOL5.js → chunk-ARZMP2L2.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-NKIELG7Y.js → chunk-BAKFZ477.js} +40 -19
- package/dist/safe-bash/command-chunks/{chunk-QRRYN2KO.js → chunk-BC7BK6R6.js} +0 -2424
- package/dist/safe-bash/command-chunks/{chunk-CQHP3I66.js → chunk-BOEOJS2Q.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-XS72HTMA.js → chunk-BWGGLYEB.js} +5 -22
- package/dist/safe-bash/command-chunks/{chunk-PMBFZXTK.js → chunk-C5ZZKP7V.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-LHIOAFWW.js → chunk-C7SEB6WU.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-XPT2UGBF.js → chunk-CHJKFRT7.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-TIOCQVUQ.js → chunk-CON26Q2O.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-E55UKBIE.js → chunk-DBAT3IK2.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-Z45N42QC.js → chunk-DPAYAVMS.js} +15 -1
- package/dist/safe-bash/command-chunks/chunk-DS3NXVUM.js +368 -0
- package/dist/safe-bash/command-chunks/{chunk-5ZMZ573Q.js → chunk-DSJ3VRL3.js} +16 -4
- package/dist/safe-bash/command-chunks/{chunk-K2GDEMEU.js → chunk-EFRCFWVR.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-DZCY63VJ.js → chunk-EV6HIJ5H.js} +6 -5
- package/dist/safe-bash/command-chunks/{chunk-JDYXY44P.js → chunk-FJURV46Y.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-TZZ4WUKH.js → chunk-FZAWGKSE.js} +6 -4
- package/dist/safe-bash/command-chunks/{chunk-YHFXOX6U.js → chunk-GOCFQ6XV.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-QVOS4YXL.js → chunk-HH5O7DJI.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-3HHCU5YU.js → chunk-HK7F5SDC.js} +13 -0
- package/dist/safe-bash/command-chunks/{chunk-JNZ3CVAE.js → chunk-HQBXIZC7.js} +8 -3
- package/dist/safe-bash/command-chunks/{chunk-V4K2JDYU.js → chunk-I63DBZXZ.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-WNE7FPVR.js → chunk-I64TLTIW.js} +24 -16
- package/dist/safe-bash/command-chunks/{chunk-GFC2NTDG.js → chunk-ICANWOXH.js} +5 -29
- package/dist/safe-bash/command-chunks/{chunk-SQRQW3CT.js → chunk-IJ6LGLXM.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-TGSNCQSR.js → chunk-JT4RYCA6.js} +1771 -1663
- package/dist/safe-bash/command-chunks/{chunk-II77KPZN.js → chunk-JWW6FYBN.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-ZYXH3B66.js → chunk-LCJWKTCJ.js} +250 -203
- package/dist/safe-bash/command-chunks/chunk-LU4HBPP2.js +97 -0
- package/dist/safe-bash/command-chunks/{chunk-XJXU3VVH.js → chunk-LWOE65OE.js} +20 -5
- package/dist/safe-bash/command-chunks/{chunk-GMIHJYDG.js → chunk-M32HFSX7.js} +22 -6
- package/dist/safe-bash/command-chunks/{chunk-YG4EPFWC.js → chunk-M3NINRDU.js} +2880 -172
- package/dist/safe-bash/command-chunks/chunk-MQREDAL6.js +164 -0
- package/dist/safe-bash/command-chunks/{chunk-LWS62ISU.js → chunk-N6DIASO2.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-NGL7YK7O.js +188 -0
- package/dist/safe-bash/command-chunks/{chunk-EARHPPPJ.js → chunk-NJYHWKIL.js} +39 -9
- package/dist/safe-bash/command-chunks/{chunk-6JSIFWYT.js → chunk-OJQRSCBP.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-OQU6UT6X.js → chunk-OV3XREFN.js} +11 -0
- package/dist/safe-bash/command-chunks/{chunk-MIXBO6U7.js → chunk-PTZLF456.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-ALDC4XP4.js → chunk-QILLRNES.js} +34 -10
- package/dist/safe-bash/command-chunks/{chunk-L22T3H7L.js → chunk-QR25JLKO.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-NASVPT6F.js → chunk-R7C4MGZ5.js} +17 -224
- package/dist/safe-bash/command-chunks/{chunk-LCF3OB7P.js → chunk-RBME3JEH.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-2KG2QLJE.js → chunk-RFWGYT7G.js} +3 -0
- package/dist/safe-bash/command-chunks/{chunk-5TBUOBDE.js → chunk-RZMVRT26.js} +27 -13
- package/dist/safe-bash/command-chunks/chunk-TFR6B3WB.js +44 -0
- package/dist/safe-bash/command-chunks/chunk-TOH3OF3O.js +179 -0
- package/dist/safe-bash/command-chunks/chunk-TT4DAFBT.js +13621 -0
- package/dist/safe-bash/command-chunks/{chunk-LWSBAWLT.js → chunk-TXI64OAG.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-GIRNFXP3.js → chunk-TZRI7BJZ.js} +45 -15
- package/dist/safe-bash/command-chunks/{chunk-QOKBZFFD.js → chunk-U3MMODA5.js} +2 -7
- package/dist/safe-bash/command-chunks/{chunk-ZYHTWNAE.js → chunk-UAW423ZL.js} +11 -11
- package/dist/safe-bash/command-chunks/{chunk-C5YYCQHW.js → chunk-UXEEUGOV.js} +222 -12
- package/dist/safe-bash/command-chunks/{chunk-GY3BWK7K.js → chunk-VOZPMJRX.js} +87 -80
- package/dist/safe-bash/command-chunks/{chunk-ILX2NOLF.js → chunk-WPANOB4A.js} +20 -20
- package/dist/safe-bash/command-chunks/{chunk-Y2WBSJG6.js → chunk-X4QZQI5Q.js} +65 -64
- package/dist/safe-bash/command-chunks/{chunk-HDCNKOIX.js → chunk-XGI57GCN.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-5UBXNSFZ.js → chunk-XUCU7QQT.js} +1281 -1278
- package/dist/safe-bash/command-chunks/chunk-Y22VXJBD.js +296 -0
- package/dist/safe-bash/command-chunks/{chunk-WVHONVZ4.js → chunk-YMFUUPDX.js} +5 -3
- package/dist/safe-bash/command-chunks/{chunk-IR2BY7EL.js → chunk-YYGIBXFZ.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-MSFXC3OC.js → chunk-Z4FO6OHE.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-WWIBP2ET.js → chunk-Z5ZZVDUD.js} +143 -22
- package/dist/safe-bash/command-chunks/{chunk-LOICUCHG.js → chunk-ZHN3QDCI.js} +1 -1
- package/dist/safe-bash/commands/alias/index.d.ts +2 -0
- package/dist/safe-bash/commands/alias/index.js +2 -0
- package/dist/safe-bash/commands/apply-patch/index.browser.js +2 -3
- package/dist/safe-bash/commands/apply-patch/index.d.ts +0 -1
- package/dist/safe-bash/commands/apply-patch/index.js +0 -1
- package/dist/safe-bash/commands/archive/index.browser.js +2 -3
- package/dist/safe-bash/commands/archive/index.d.ts +0 -1
- package/dist/safe-bash/commands/archive/index.js +0 -1
- package/dist/safe-bash/commands/bytes/index.js +2 -1
- package/dist/safe-bash/commands/chmod/index.browser.js +1 -1
- package/dist/safe-bash/commands/column/index.browser.js +2 -3
- package/dist/safe-bash/commands/column/index.d.ts +0 -1
- package/dist/safe-bash/commands/column/index.js +0 -1
- package/dist/safe-bash/commands/copy-source.js +1 -0
- package/dist/safe-bash/commands/csplit/index.browser.js +2 -2
- package/dist/safe-bash/commands/csvkit/index.browser.js +72 -0
- package/dist/safe-bash/commands/csvkit/index.d.ts +0 -5
- package/dist/safe-bash/commands/csvkit/index.js +0 -50
- package/dist/safe-bash/commands/docx/index.browser.js +5 -7
- package/dist/safe-bash/commands/du/index.browser.js +2 -3
- package/dist/safe-bash/commands/du/index.d.ts +0 -1
- package/dist/safe-bash/commands/du/index.js +0 -1
- package/dist/safe-bash/commands/expr/index.browser.js +2 -3
- package/dist/safe-bash/commands/expr/index.d.ts +0 -1
- package/dist/safe-bash/commands/expr/index.js +0 -1
- package/dist/safe-bash/commands/factor/index.browser.js +2 -2
- package/dist/safe-bash/commands/file/index.browser.js +2 -3
- package/dist/safe-bash/commands/file/index.d.ts +0 -1
- package/dist/safe-bash/commands/file/index.js +0 -1
- package/dist/safe-bash/commands/filesystem.js +1 -1
- package/dist/safe-bash/commands/getopt/index.browser.js +2 -2
- package/dist/safe-bash/commands/grep-aliases/index.browser.js +3 -3
- package/dist/safe-bash/commands/hexdump/index.browser.js +2 -2
- package/dist/safe-bash/commands/html-to-markdown/index.browser.js +2 -3
- package/dist/safe-bash/commands/html-to-markdown/index.d.ts +0 -1
- package/dist/safe-bash/commands/html-to-markdown/index.js +0 -1
- package/dist/safe-bash/commands/htmlq/index.d.ts +1 -5
- package/dist/safe-bash/commands/htmlq/index.js +1 -143
- package/dist/safe-bash/commands/iconv/index.browser.js +2 -2
- package/dist/safe-bash/commands/line-endings/index.browser.js +2 -2
- package/dist/safe-bash/commands/llm/index.browser.js +2 -2
- package/dist/safe-bash/commands/llm/providers/index.browser.js +1 -1
- package/dist/safe-bash/commands/mdq/index.browser.js +3 -3
- package/dist/safe-bash/commands/media/index.browser.js +4 -16314
- package/dist/safe-bash/commands/media/index.d.ts +1 -5
- package/dist/safe-bash/commands/media/index.js +1 -3
- package/dist/safe-bash/commands/media/plugin.d.ts +1 -18
- package/dist/safe-bash/commands/media/plugin.js +1 -90
- package/dist/safe-bash/commands/media/remote.d.ts +1 -63
- package/dist/safe-bash/commands/media/remote.js +1 -405
- package/dist/safe-bash/commands/media/settings.d.ts +1 -4
- package/dist/safe-bash/commands/media/settings.js +1 -26
- package/dist/safe-bash/commands/metadata/index.browser.js +3 -4
- package/dist/safe-bash/commands/metadata/index.d.ts +0 -1
- package/dist/safe-bash/commands/metadata/index.js +2 -2
- package/dist/safe-bash/commands/mktemp/index.browser.js +1 -1
- package/dist/safe-bash/commands/network/curl.js +1 -3
- package/dist/safe-bash/commands/network/index.browser.js +3 -4
- package/dist/safe-bash/commands/network/public.d.ts +0 -1
- package/dist/safe-bash/commands/network/public.js +0 -1
- package/dist/safe-bash/commands/network/transport.js +2 -1
- package/dist/safe-bash/commands/network/wget.js +1 -3
- package/dist/safe-bash/commands/node/browser.d.ts +0 -1
- package/dist/safe-bash/commands/node/browser.js +0 -1
- package/dist/safe-bash/commands/node/default-runtime.d.ts +3 -0
- package/dist/safe-bash/commands/node/default-runtime.js +15 -0
- package/dist/safe-bash/commands/node/index.browser.js +7 -8
- package/dist/safe-bash/commands/node/index.js +3 -3
- package/dist/safe-bash/commands/node/path.js +1 -1
- package/dist/safe-bash/commands/node/preload.d.ts +1 -1
- package/dist/safe-bash/commands/node/preload.js +4 -1
- package/dist/safe-bash/commands/node/quickjs.d.ts +2 -0
- package/dist/safe-bash/commands/node/quickjs.js +2 -0
- package/dist/safe-bash/commands/node/safejs.js +26 -12
- package/dist/safe-bash/commands/op/index.browser.js +2 -3
- package/dist/safe-bash/commands/op/index.d.ts +0 -11
- package/dist/safe-bash/commands/op/index.js +0 -84
- package/dist/safe-bash/commands/pandoc/index.browser.js +44 -0
- package/dist/safe-bash/commands/pandoc/index.d.ts +0 -1
- package/dist/safe-bash/commands/pandoc/index.js +0 -1
- package/dist/safe-bash/commands/pr/index.browser.js +2 -2
- package/dist/safe-bash/commands/python/docker-runner.js +4 -3
- package/dist/safe-bash/commands/python/docker.d.ts +1 -0
- package/dist/safe-bash/commands/python/docker.js +5 -2
- package/dist/safe-bash/commands/python/index.browser.js +17 -13
- package/dist/safe-bash/commands/python/index.d.ts +2 -1
- package/dist/safe-bash/commands/python/index.js +10 -8
- package/dist/safe-bash/commands/python/llm-capability.js +65 -2
- package/dist/safe-bash/commands/python/llm-dependencies.d.ts +27 -0
- package/dist/safe-bash/commands/python/llm-dependencies.js +66 -0
- package/dist/safe-bash/commands/python/llm-module.js +6 -4
- package/dist/safe-bash/commands/python/llm-reference-module.d.ts +3 -0
- package/dist/safe-bash/commands/python/llm-reference-module.js +690 -0
- package/dist/safe-bash/commands/python/worker.browser.js +2 -3
- package/dist/safe-bash/commands/python/worker.d.ts +0 -1
- package/dist/safe-bash/commands/python/worker.js +0 -1
- package/dist/safe-bash/commands/regex-execution/ere/transport/wire-engine.d.ts +1 -1
- package/dist/safe-bash/commands/regex-execution/ere/transport/wire-engine.js +3 -3
- package/dist/safe-bash/commands/regex-execution/public.browser.js +7 -7
- package/dist/safe-bash/commands/safejs/options.js +5 -1
- package/dist/safe-bash/commands/safejs/runtime.d.ts +1 -0
- package/dist/safe-bash/commands/safejs/runtime.js +1 -1
- package/dist/safe-bash/commands/split/index.browser.js +2 -3
- package/dist/safe-bash/commands/split/index.d.ts +0 -1
- package/dist/safe-bash/commands/split/index.js +0 -1
- package/dist/safe-bash/commands/ssconvert/index.browser.js +98 -0
- package/dist/safe-bash/commands/stat/index.browser.js +1 -1
- package/dist/safe-bash/commands/stream-format/index.browser.js +3 -4
- package/dist/safe-bash/commands/stream-format/index.d.ts +0 -1
- package/dist/safe-bash/commands/stream-format/index.js +0 -1
- package/dist/safe-bash/commands/stream-inspection/index.browser.js +3 -4
- package/dist/safe-bash/commands/stream-inspection/index.d.ts +0 -1
- package/dist/safe-bash/commands/stream-inspection/index.js +0 -1
- package/dist/safe-bash/commands/streams.js +2 -1
- package/dist/safe-bash/commands/table-text/index.browser.js +3 -4
- package/dist/safe-bash/commands/table-text/index.d.ts +0 -1
- package/dist/safe-bash/commands/table-text/index.js +0 -1
- package/dist/safe-bash/commands/text.js +28 -24
- package/dist/safe-bash/commands/time-env/index.browser.js +3 -4
- package/dist/safe-bash/commands/time-env/index.d.ts +0 -1
- package/dist/safe-bash/commands/time-env/index.js +0 -1
- package/dist/safe-bash/commands/tree/index.browser.js +2 -3
- package/dist/safe-bash/commands/tree/index.d.ts +0 -1
- package/dist/safe-bash/commands/tree/index.js +0 -1
- package/dist/safe-bash/commands/tsort/index.browser.js +2 -2
- package/dist/safe-bash/commands/unalias/index.d.ts +2 -0
- package/dist/safe-bash/commands/unalias/index.js +2 -0
- package/dist/safe-bash/commands/xml/index.browser.js +2 -2
- package/dist/safe-bash/commands/yq/index.browser.js +2 -2
- package/dist/safe-bash/core.browser.js +2 -2
- package/dist/safe-bash/core.d.ts +7 -1
- package/dist/safe-bash/core.js +7 -1
- package/dist/safe-bash/execution-runtime.js +2 -1
- package/dist/safe-bash/fs/s3/http/index.d.ts +2 -2
- package/dist/safe-bash/fs/s3/http/index.js +1 -1
- package/dist/safe-bash/full-core.browser.js +283 -945
- package/dist/safe-bash/internal/op/types.d.ts +1 -0
- package/dist/safe-bash/jobs.browser.js +5 -5
- package/dist/safe-bash/lazy-optional.d.ts +3 -3
- package/dist/safe-bash/lazy-optional.js +1 -1
- package/dist/safe-bash/opt-in/commands/cmp/index.js +7 -6
- package/dist/safe-bash/opt-in/commands/dd/index.js +1 -1
- package/dist/safe-bash/opt-in/commands/dd/io.js +51 -5
- package/dist/safe-bash/opt-in/commands/truncate/index.js +2 -2
- package/dist/safe-bash/opt-in/commands/yq/native-work.js +2 -0
- package/dist/safe-bash/opt-in/optional/commands/shuf/input.js +2 -1
- package/dist/safe-bash/opt-in/optional/commands/shuf/shuf.js +4 -2
- package/dist/safe-bash/opt-in/optional.d.ts +1 -1
- package/dist/safe-bash/opt-in/optional.js +1 -1
- package/dist/safe-bash/opt-in/shell/extensions/read/index.js +2 -344
- package/dist/safe-bash/optional-host.browser.js +23 -18
- package/dist/safe-bash/optional-host.d.ts +1 -0
- package/dist/safe-bash/optional-host.js +1 -0
- package/dist/safe-bash/playwright/controller.js +41 -3
- package/dist/safe-bash/playwright/native-storage-targets.js +4 -2
- package/dist/safe-bash/plugins/base.d.ts +1 -1
- package/dist/safe-bash/plugins/base.js +3 -3
- package/dist/safe-bash/plugins/composition.d.ts +5 -2
- package/dist/safe-bash/plugins/composition.js +10 -7
- package/dist/safe-bash/plugins/index.browser.js +44 -41
- package/dist/safe-bash/plugins/index.js +3 -2
- package/dist/safe-bash/plugins/portable-commands.d.ts +3 -0
- package/dist/safe-bash/plugins/portable-commands.js +31 -0
- package/dist/safe-bash/registry-entry.browser.js +41 -42
- package/dist/safe-bash/search.browser.js +32 -33
- package/dist/safe-bash/shell/arithmetic.js +19 -6
- package/dist/safe-bash/shell/arrays/state.js +1 -1
- package/dist/safe-bash/shell/arrays/syntax.js +4 -3
- package/dist/safe-bash/shell/index.d.ts +0 -1
- package/dist/safe-bash/shell/index.js +0 -1
- package/dist/safe-bash/shell/parser.d.ts +2 -2
- package/dist/safe-bash/shell/parser.js +268 -64
- package/dist/safe-bash/shell/read-builtin.d.ts +3 -0
- package/dist/safe-bash/shell/read-builtin.js +344 -0
- package/dist/safe-bash/shell/runtime.d.ts +21 -4
- package/dist/safe-bash/shell/runtime.js +373 -412
- package/dist/safe-bash/shell/session-state.js +25 -0
- package/dist/safe-bash/shell/shell.js +76 -154
- package/dist/safe-bash/shell/tilde-expansion.d.ts +1 -1
- package/dist/safe-bash/shell/tilde-expansion.js +2 -2
- package/dist/safe-bash/shell/types.d.ts +5 -0
- package/dist/safe-bash/shell/value-state.js +1 -1
- package/dist/safe-bash/shell-entry.browser.js +32 -33
- package/dist/safe-bash/trap.browser.js +4 -4
- package/dist/safe-bash/yq-browser/index.js +1 -1
- package/dist/safe-bash-calendar-engine/time-env/calendar.d.ts +1 -1
- package/dist/safe-bash-calendar-engine/time-env/calendar.js +1 -1
- package/dist/safe-bash-calendar-engine/time-env/format.js +1 -1
- package/dist/safe-bash-command-alias/index.d.ts +13 -0
- package/dist/safe-bash-command-alias/index.js +88 -0
- package/dist/safe-bash-command-apply-patch/apply.js +3 -3
- package/dist/safe-bash-command-apply-patch/index.js +3 -3
- package/dist/safe-bash-command-apply-patch/matcher.js +1 -1
- package/dist/safe-bash-command-apply-patch/parser.js +1 -1
- package/dist/safe-bash-command-awk/awk-pipes.js +2 -2
- package/dist/safe-bash-command-awk/awk-reader.js +1 -1
- package/dist/safe-bash-command-awk/awk-runtime.js +3 -3
- package/dist/safe-bash-command-awk/awk.js +5 -5
- package/dist/safe-bash-command-awk/index.js +5 -5
- package/dist/safe-bash-command-bc/index.js +206 -60
- package/dist/safe-bash-command-cmp/index.js +7 -6
- package/dist/safe-bash-command-column/column.js +3 -3
- package/dist/safe-bash-command-column/index.js +3 -3
- package/dist/safe-bash-command-column/layout.js +2 -2
- package/dist/safe-bash-command-csvkit/index.d.ts +1 -0
- package/dist/safe-bash-command-csvkit/index.js +1505 -7
- package/dist/safe-bash-command-csvkit/sync-support.js +2 -7
- package/dist/safe-bash-command-curl/curl.js +1 -1
- package/dist/safe-bash-command-curl/index.js +1 -1
- package/dist/safe-bash-command-date/date.js +1 -1
- package/dist/safe-bash-command-date/index.js +1 -1
- package/dist/safe-bash-command-dd/index.js +1 -1
- package/dist/safe-bash-command-dd/io.js +51 -5
- package/dist/safe-bash-command-diff/diff.js +1 -1
- package/dist/safe-bash-command-diff/index.js +1 -1
- package/dist/safe-bash-command-diff3/index.js +10 -13
- package/dist/safe-bash-command-exiftool/index.js +278 -50
- package/dist/safe-bash-command-exiftool/registry.d.ts +4 -2
- package/dist/safe-bash-command-factor/command.js +2 -2
- package/dist/safe-bash-command-factor/index.js +2 -2
- package/dist/safe-bash-command-fd/arguments.d.ts +2 -0
- package/dist/safe-bash-command-fd/index.js +42 -12
- package/dist/safe-bash-command-ffmpeg/index.js +356 -66
- package/dist/safe-bash-command-find/find-format.d.ts +3 -0
- package/dist/safe-bash-command-find/find-format.js +1 -1
- package/dist/safe-bash-command-find/find.js +2 -2
- package/dist/safe-bash-command-find/index.js +2 -2
- package/dist/safe-bash-command-fmt/index.js +1 -4
- package/dist/safe-bash-command-fold/engine.d.ts +1 -1
- package/dist/safe-bash-command-fold/family.js +2 -2
- package/dist/safe-bash-command-fold/index.js +1 -1
- package/dist/safe-bash-command-hexdump/command.js +2 -2
- package/dist/safe-bash-command-hexdump/index.js +2 -2
- package/dist/safe-bash-command-html-to-markdown/entities.js +1 -1
- package/dist/safe-bash-command-html-to-markdown/index.js +4 -4
- package/dist/safe-bash-command-html-to-markdown/input.js +3 -3
- package/dist/safe-bash-command-html-to-markdown/parser.js +2 -2
- package/dist/safe-bash-command-html-to-markdown/render.js +3 -3
- package/dist/safe-bash-command-htmlq/contracts.d.ts +5 -2
- package/dist/safe-bash-command-htmlq/index.d.ts +2 -1
- package/dist/safe-bash-command-htmlq/index.js +175 -49
- package/dist/safe-bash-command-htmlq/sync.d.ts +1 -0
- package/dist/safe-bash-command-imagemagick/index.js +56 -6
- package/dist/safe-bash-command-install/arguments.d.ts +27 -0
- package/dist/safe-bash-command-install/arguments.js +224 -0
- package/dist/safe-bash-command-install/index.d.ts +7 -0
- package/dist/safe-bash-command-install/index.js +942 -0
- package/dist/safe-bash-command-install/mode.d.ts +6 -0
- package/dist/safe-bash-command-install/mode.js +71 -0
- package/dist/safe-bash-command-install/options.d.ts +40 -0
- package/dist/safe-bash-command-install/options.js +27 -0
- package/dist/safe-bash-command-jq/index.js +1 -1
- package/dist/safe-bash-command-jq/jq.js +1 -1
- package/dist/safe-bash-command-less/index.js +37 -61
- package/dist/safe-bash-command-llm/command.js +1 -1
- package/dist/safe-bash-command-llm/elevenlabs.js +2 -2
- package/dist/safe-bash-command-llm/index.js +4 -4
- package/dist/safe-bash-command-llm/openai.js +2 -2
- package/dist/safe-bash-command-llm/providers/elevenlabs.js +2 -2
- package/dist/safe-bash-command-llm/providers/index.js +3 -3
- package/dist/safe-bash-command-llm/providers/openai.js +2 -2
- package/dist/safe-bash-command-llm/providers/shared.js +1 -1
- package/dist/{safe-bash-mcp → safe-bash-command-mcp}/index.browser.d.ts +463 -46
- package/dist/safe-bash-command-mcp/index.browser.js +19308 -0
- package/dist/{safe-bash-mcp → safe-bash-command-mcp}/index.d.ts +15 -6
- package/dist/{safe-bash-mcp → safe-bash-command-mcp}/index.js +2804 -2771
- package/dist/safe-bash-command-media/LICENSE +21 -0
- package/dist/safe-bash-command-media/index.d.ts +6 -0
- package/dist/safe-bash-command-media/index.js +30 -0
- package/dist/safe-bash-command-media/plugin.d.ts +18 -0
- package/dist/safe-bash-command-media/plugin.js +11 -0
- package/dist/safe-bash-command-media/remote.d.ts +63 -0
- package/dist/safe-bash-command-media/remote.js +11 -0
- package/dist/safe-bash-command-media/settings.d.ts +4 -0
- package/dist/safe-bash-command-media/settings.js +41 -0
- package/dist/safe-bash-command-mktemp/command.js +1 -1
- package/dist/safe-bash-command-mktemp/index.js +1 -1
- package/dist/safe-bash-command-mmdc/arguments.d.ts +1 -0
- package/dist/safe-bash-command-mmdc/command.d.ts +2 -0
- package/dist/safe-bash-command-mmdc/contracts.d.ts +8 -1
- package/dist/safe-bash-command-mmdc/index.js +359 -7
- package/dist/safe-bash-command-nl/index.js +1 -1
- package/dist/safe-bash-command-nl/nl.js +1 -1
- package/dist/safe-bash-command-node/LICENSE +21 -0
- package/dist/safe-bash-command-node/index.d.ts +17 -0
- package/dist/safe-bash-command-node/index.js +328 -0
- package/dist/safe-bash-command-numfmt/index.js +1 -0
- package/dist/safe-bash-command-od/index.js +10 -6
- package/dist/safe-bash-command-op/index.js +39 -32
- package/dist/safe-bash-command-op/types.d.ts +1 -0
- package/dist/safe-bash-command-pandoc/command.js +3 -3
- package/dist/safe-bash-command-pandoc/index.d.ts +1 -0
- package/dist/safe-bash-command-pandoc/index.js +5 -3
- package/dist/safe-bash-command-pandoc/sync.d.ts +1 -0
- package/dist/safe-bash-command-patch/index.js +4 -4
- package/dist/safe-bash-command-patch/patch.js +4 -4
- package/dist/safe-bash-command-pdfimages/index.js +1 -1
- package/dist/safe-bash-command-pdfinfo/index.js +30 -5
- package/dist/safe-bash-command-pdftk/index.js +21 -23
- package/dist/safe-bash-command-pdftoppm/index.js +17 -4
- package/dist/safe-bash-command-pdftotext/index.js +11 -14
- package/dist/safe-bash-command-qpdf/index.d.ts +1 -0
- package/dist/safe-bash-command-qpdf/index.js +9 -6
- package/dist/safe-bash-command-rg/index.js +1 -1
- package/dist/safe-bash-command-rg/rg-command.js +1 -1
- package/dist/safe-bash-command-sed/index.js +1 -1
- package/dist/safe-bash-command-sed/sed.js +1 -1
- package/dist/safe-bash-command-shuf/input.d.ts +2 -2
- package/dist/safe-bash-command-shuf/input.js +2 -1
- package/dist/safe-bash-command-shuf/shuf.js +4 -2
- package/dist/safe-bash-command-sips/index.js +2 -2
- package/dist/safe-bash-command-soffice/index.js +97 -12
- package/dist/safe-bash-command-sponge/index.js +4 -1
- package/dist/safe-bash-command-sqlite3/engine.d.ts +1 -0
- package/dist/safe-bash-command-sqlite3/index.js +510 -70
- package/dist/safe-bash-command-ssconvert/formats/xlsx.js +2 -2
- package/dist/safe-bash-command-ssconvert/index.js +44 -22
- package/dist/safe-bash-command-stat/command.js +1 -1
- package/dist/safe-bash-command-stat/index.js +1 -1
- package/dist/safe-bash-command-tar/create.d.ts +1 -0
- package/dist/safe-bash-command-tar/create.js +2 -2
- package/dist/safe-bash-command-tar/extract.js +2 -2
- package/dist/safe-bash-command-tar/index.js +4 -4
- package/dist/safe-bash-command-tar/modes.js +4 -4
- package/dist/safe-bash-command-tar/options.js +1 -1
- package/dist/safe-bash-command-truncate/index.js +2 -2
- package/dist/safe-bash-command-tsort/command.js +2 -2
- package/dist/safe-bash-command-tsort/index.js +2 -2
- package/dist/safe-bash-command-unalias/index.d.ts +12 -0
- package/dist/safe-bash-command-unalias/index.js +67 -0
- package/dist/safe-bash-command-unrtf/index.js +26 -4
- package/dist/safe-bash-command-xan/argv.d.ts +1 -1
- package/dist/safe-bash-command-xan/argv.js +2 -2
- package/dist/safe-bash-command-xan/budget.d.ts +0 -1
- package/dist/safe-bash-command-xan/budget.js +1 -1
- package/dist/safe-bash-command-xan/commands.js +6 -6
- package/dist/safe-bash-command-xan/csv.js +2 -2
- package/dist/safe-bash-command-xan/index.js +8 -9
- package/dist/safe-bash-command-xan/io.js +4 -4
- package/dist/safe-bash-command-xan/options.js +1 -1
- package/dist/safe-bash-command-xan/selector.js +2 -2
- package/dist/safe-bash-command-xmllint/index.js +45 -23
- package/dist/safe-bash-command-xxd/index.js +41 -10
- package/dist/safe-bash-command-yq/accounting.js +1 -1
- package/dist/safe-bash-command-yq/index.js +3 -2
- package/dist/safe-bash-command-yq/native-work.js +2 -0
- package/dist/safe-bash-command-yq/parser.js +2 -2
- package/dist/safe-bash-command-yq/query.js +5 -5
- package/dist/safe-bash-command-yq/toml.js +2 -2
- package/dist/safe-bash-command-zip/index.js +3 -3
- package/dist/safe-bash-compression-engine/bounded-codec.js +2 -2
- package/dist/safe-bash-compression-engine/codec-loader.js +1 -1
- package/dist/safe-bash-compression-engine/files.js +5 -5
- package/dist/safe-bash-compression-engine/index.js +4 -4
- package/dist/safe-bash-compression-engine/operand.js +5 -5
- package/dist/safe-bash-compression-engine/stream.js +4 -4
- package/dist/safe-bash-compression-engine/zstd-decode.js +3 -3
- package/dist/safe-bash-contracts/command.js +3 -3
- package/dist/safe-bash-contracts/default-executor.js +2 -2
- package/dist/safe-bash-contracts/diagnostics.js +3 -3
- package/dist/safe-bash-contracts/escaping.js +6 -6
- package/dist/safe-bash-contracts/filesystem-descriptor.js +3 -3
- package/dist/safe-bash-contracts/filesystem-output.js +5 -5
- package/dist/safe-bash-contracts/http.d.ts +7 -0
- package/dist/safe-bash-contracts/index.js +8 -8
- package/dist/safe-bash-contracts/io.js +2 -2
- package/dist/safe-bash-contracts/output.js +3 -3
- package/dist/safe-bash-contracts/runtime-control.d.ts +2 -2
- package/dist/safe-bash-contracts/runtime-control.js +4 -2
- package/dist/safe-bash-contracts/signals.d.ts +2 -0
- package/dist/safe-bash-contracts/signals.js +3 -1
- package/dist/safe-bash-contracts/yield.js +1 -1
- package/dist/safe-bash-csv-engine/index.d.ts +2 -1
- package/dist/safe-bash-csv-engine/index.js +21 -15
- package/dist/safe-bash-io-engine/commands/search/requirements.js +2 -2
- package/dist/safe-bash-io-engine/commands/text-programs/shared.js +6 -6
- package/dist/safe-bash-io-engine/internal.js +1 -1
- package/dist/safe-bash-io-engine/shell/pattern.js +38 -18
- package/dist/safe-bash-line-ending-engine/convert.js +9 -204
- package/dist/safe-bash-line-ending-engine/encoding.js +9 -42
- package/dist/safe-bash-line-ending-engine/index.js +48 -0
- package/dist/safe-bash-line-ending-engine/info.js +9 -90
- package/dist/safe-bash-line-ending-engine/internal.js +15 -160
- package/dist/safe-bash-line-ending-engine/io.js +12 -289
- package/dist/safe-bash-line-ending-engine/stage.js +10 -160
- package/dist/safe-bash-markdown-engine/index.js +3 -3
- package/dist/safe-bash-network-engine/args.d.ts +6 -0
- package/dist/safe-bash-network-engine/args.js +4 -2
- package/dist/safe-bash-network-engine/body.js +1 -1
- package/dist/safe-bash-network-engine/fetch-transport.js +3 -1
- package/dist/safe-bash-network-engine/index.js +3 -1
- package/dist/safe-bash-network-engine/input.js +2 -2
- package/dist/safe-bash-network-engine/platform-portable.js +3 -1
- package/dist/safe-bash-query-engine/dates.d.ts +1 -1
- package/dist/safe-bash-query-engine/dates.js +1 -1
- package/dist/safe-bash-query-engine/index.js +6 -6
- package/dist/safe-bash-query-engine/interpreter.js +4 -4
- package/dist/safe-bash-query-engine/parser.js +1 -1
- package/dist/safe-bash-query-engine/query-core.js +6 -6
- package/dist/safe-bash-regex-engine/execution/bounded-provider.js +10 -0
- package/dist/safe-bash-regex-engine/index.js +1 -1
- package/dist/safe-bash-regex-engine/text/regex.d.ts +1 -1
- package/dist/safe-bash-regex-engine/text/regex.js +1 -1
- package/dist/safe-bash-search-engine/ergonomic-regex.d.ts +1 -0
- package/dist/safe-bash-search-engine/ergonomic-regex.js +1 -1
- package/dist/safe-bash-search-engine/grep.js +16 -9
- package/dist/safe-bash-search-engine/matcher.d.ts +2 -2
- package/dist/safe-bash-search-engine/matcher.js +12 -8
- package/dist/safe-bash-search-engine/shared.js +1 -1
- package/dist/safe-bash-search-engine/walk.js +13 -1
- package/dist/safe-bash-text-stream-engine/stream-format/shared.d.ts +1 -1
- package/dist/safe-bash-text-stream-engine/stream-format/shared.js +2 -1
- package/dist/safe-bash-xml-engine/document.js +3 -3
- package/dist/safe-bash-xml-engine/evaluate.js +2 -2
- package/dist/safe-bash-xml-engine/index.js +4 -4
- package/dist/safe-bash-xml-engine/io.js +7 -2
- package/dist/safe-bash-xml-engine/limits.d.ts +0 -2
- package/dist/safe-bash-xml-engine/limits.js +1 -1
- package/dist/safe-bash-xml-engine/query.js +3 -3
- package/dist/safe-bash-zip-engine/index.js +3 -3
- package/dist/safe-bash-zip-engine/zip/repair.js +3 -3
- package/dist/safe-bash-zip-engine/zip/safety.js +1 -1
- package/dist/safe-bash-zip-engine/zip/sfx.js +3 -3
- package/dist/safe-bash-zip-engine/zip/volumes.js +1 -1
- package/dist/safe-bash-zip-engine/zip-format.js +3 -3
- package/dist/safe-playwright-cloudflare/browser-socket-closure.js +18 -3
- package/dist/safe-playwright-cloudflare/shell-browser-resource.js +1 -1
- package/dist/xlsx-ast/xlsx.js +6 -5
- package/package.json +86 -98
- package/dist/media-cli/bytes.d.ts +0 -8
- package/dist/media-cli/bytes.js +0 -40
- package/dist/media-cli/concat.d.ts +0 -30
- package/dist/media-cli/concat.js +0 -197
- package/dist/media-cli/content.js +0 -66
- package/dist/media-cli/dependency-grammars.d.ts +0 -12
- package/dist/media-cli/dependency-grammars.js +0 -557
- package/dist/media-cli/discover.js +0 -286
- package/dist/media-cli/engine.js +0 -190
- package/dist/media-cli/filename-expression.js +0 -147
- package/dist/media-cli/filesystem.js +0 -35
- package/dist/media-cli/frontend-contract.js +0 -8
- package/dist/media-cli/frontend-issues.d.ts +0 -6
- package/dist/media-cli/frontend-issues.js +0 -9
- package/dist/media-cli/imagemagick-operand.d.ts +0 -42
- package/dist/media-cli/imagemagick-operand.js +0 -229
- package/dist/media-cli/imagemagick-references.d.ts +0 -7
- package/dist/media-cli/imagemagick-references.js +0 -42
- package/dist/media-cli/imagemagick.generated.js +0 -3254
- package/dist/media-cli/imagemagick.js +0 -615
- package/dist/media-cli/index.js +0 -12
- package/dist/media-cli/mvg.d.ts +0 -10
- package/dist/media-cli/mvg.js +0 -102
- package/dist/media-cli/network.js +0 -78
- package/dist/media-cli/options.generated.js +0 -3312
- package/dist/media-cli/preset.d.ts +0 -11
- package/dist/media-cli/preset.js +0 -57
- package/dist/media-cli/resolution-path.d.ts +0 -23
- package/dist/media-cli/resolution-path.js +0 -217
- package/dist/media-cli/resolver.js +0 -494
- package/dist/media-cli/resources.d.ts +0 -16
- package/dist/media-cli/resources.js +0 -187
- package/dist/media-cli/shim.js +0 -52
- package/dist/media-cli/tee.d.ts +0 -6
- package/dist/media-cli/tee.js +0 -38
- package/dist/office-package/zip-sync.js +0 -111
- package/dist/remote-execution/binary.js +0 -178
- package/dist/remote-execution/callback-result.js +0 -26
- package/dist/remote-execution/canonical-capabilities.d.ts +0 -5
- package/dist/remote-execution/canonical-capabilities.js +0 -45
- package/dist/remote-execution/canonical-metadata.d.ts +0 -4
- package/dist/remote-execution/canonical-metadata.js +0 -32
- package/dist/remote-execution/client.js +0 -824
- package/dist/remote-execution/deployment.js +0 -131
- package/dist/remote-execution/descriptors.js +0 -267
- package/dist/remote-execution/effects.js +0 -357
- package/dist/remote-execution/endpoint.js +0 -224
- package/dist/remote-execution/files.js +0 -291
- package/dist/remote-execution/hosting-operation.js +0 -26
- package/dist/remote-execution/hosting-request.d.ts +0 -4
- package/dist/remote-execution/hosting-request.js +0 -12
- package/dist/remote-execution/hosting-stream.d.ts +0 -8
- package/dist/remote-execution/hosting-stream.js +0 -64
- package/dist/remote-execution/index.js +0 -18
- package/dist/remote-execution/invocation-admission.d.ts +0 -3
- package/dist/remote-execution/invocation-admission.js +0 -17
- package/dist/remote-execution/job-binding.js +0 -1269
- package/dist/remote-execution/materializations.js +0 -284
- package/dist/remote-execution/modal-driver.js +0 -90
- package/dist/remote-execution/native-result.d.ts +0 -3
- package/dist/remote-execution/native-result.js +0 -16
- package/dist/remote-execution/output-freshness.d.ts +0 -4
- package/dist/remote-execution/output-freshness.js +0 -19
- package/dist/remote-execution/output-retrieval.js +0 -474
- package/dist/remote-execution/process-http.js +0 -607
- package/dist/remote-execution/process.js +0 -577
- package/dist/remote-execution/protocol.js +0 -208
- package/dist/remote-execution/relay.js +0 -91
- package/dist/remote-execution/rest-driver.js +0 -93
- package/dist/remote-execution/upload-descriptor.js +0 -201
- package/dist/remote-execution/upload-protocol.js +0 -62
- package/dist/remote-execution/uploads.js +0 -324
- package/dist/remote-execution/wire-json.d.ts +0 -4
- package/dist/remote-execution/wire-json.js +0 -44
- package/dist/remote-execution/wire-validation.js +0 -131
- package/dist/remote-execution/wire.generated.js +0 -4224
- package/dist/safe-bash/chunks/chunk-GDYNCWRV.js +0 -161
- package/dist/safe-bash/chunks/chunk-IWDICZVK.js +0 -20
- package/dist/safe-bash/chunks/chunk-MHMMRCYC.js +0 -3464
- package/dist/safe-bash/chunks/chunk-UE5KZDEK.js +0 -77
- package/dist/safe-bash/chunks/csvkit-TACDU7FC.js +0 -1618
- package/dist/safe-bash/chunks/implementation-MLFHUQ5M.js +0 -133
- package/dist/safe-bash/commands/csvkit/sync.js +0 -1639
- package/dist/safe-bash/commands/node/unconfigured.d.ts +0 -3
- package/dist/safe-bash/commands/node/unconfigured.js +0 -10
- package/dist/safe-bash/commands/pandoc/implementation.d.ts +0 -8
- package/dist/safe-bash/commands/pandoc/implementation.js +0 -94
- package/dist/safe-bash-mcp/index.browser.js +0 -9167
- package/dist/safe-bash/command-chunks/{chunk-ZRRBXU3M.js → chunk-GIN5GUDP.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-LAOM65EE.js → chunk-IEO4XVN6.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-BXCXRYVU.js → chunk-JNANXVJV.js} +0 -0
- package/dist/safe-bash/command-chunks/{chunk-364TMWBT.js → chunk-MWREVL44.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-464RVBGB.js → chunk-Q5TDKFHK.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-AJR3AQYA.js → chunk-UKX3LZHR.js} +0 -0
- package/dist/safe-bash/command-chunks/{chunk-XIIBTGC5.js → chunk-XPXEQKRW.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-FDBUV4HJ.js → chunk-Y4HGTG3E.js} +3 -3
- /package/dist/{safe-bash/commands/csvkit → safe-bash-command-csvkit}/sync.d.ts +0 -0
|
@@ -23,8 +23,6 @@ var FORBIDDEN_FLAGS = /* @__PURE__ */ new Set([
|
|
|
23
23
|
"--puppeteerConfigFile",
|
|
24
24
|
"-C",
|
|
25
25
|
"--cssFile",
|
|
26
|
-
"-f",
|
|
27
|
-
"--pdfFit",
|
|
28
26
|
"--iconPacks",
|
|
29
27
|
"--iconPacksNamesAndUrls"
|
|
30
28
|
]);
|
|
@@ -82,6 +80,7 @@ function parseMmdcArguments(argv) {
|
|
|
82
80
|
let backgroundColor;
|
|
83
81
|
let configFile;
|
|
84
82
|
let quiet = false;
|
|
83
|
+
let pdfFit = false;
|
|
85
84
|
let help = false;
|
|
86
85
|
let version = false;
|
|
87
86
|
let i = 0;
|
|
@@ -102,12 +101,20 @@ function parseMmdcArguments(argv) {
|
|
|
102
101
|
i++;
|
|
103
102
|
continue;
|
|
104
103
|
}
|
|
104
|
+
if (arg === "-f" || arg === "--pdfFit") {
|
|
105
|
+
pdfFit = true;
|
|
106
|
+
i++;
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
105
109
|
let flag = arg;
|
|
106
110
|
let inlineVal;
|
|
107
111
|
const eqIdx = arg.indexOf("=");
|
|
108
112
|
if (arg.startsWith("--") && eqIdx > 2) {
|
|
109
113
|
flag = arg.slice(0, eqIdx);
|
|
110
114
|
inlineVal = arg.slice(eqIdx + 1);
|
|
115
|
+
} else if (arg.length > 2 && arg.startsWith("-") && "ioetwHsbcI".includes(arg[1])) {
|
|
116
|
+
flag = arg.slice(0, 2);
|
|
117
|
+
inlineVal = arg.slice(2);
|
|
111
118
|
}
|
|
112
119
|
if (FORBIDDEN_FLAGS.has(flag)) {
|
|
113
120
|
throw new MermaidError(
|
|
@@ -190,7 +197,8 @@ function parseMmdcArguments(argv) {
|
|
|
190
197
|
svgId,
|
|
191
198
|
backgroundColor,
|
|
192
199
|
configFile,
|
|
193
|
-
quiet
|
|
200
|
+
quiet,
|
|
201
|
+
pdfFit
|
|
194
202
|
};
|
|
195
203
|
}
|
|
196
204
|
if (version) {
|
|
@@ -206,13 +214,15 @@ function parseMmdcArguments(argv) {
|
|
|
206
214
|
svgId,
|
|
207
215
|
backgroundColor,
|
|
208
216
|
configFile,
|
|
209
|
-
quiet
|
|
217
|
+
quiet,
|
|
218
|
+
pdfFit
|
|
210
219
|
};
|
|
211
220
|
}
|
|
212
221
|
if (input !== void 0 && input.trim().length === 0 || output !== void 0 && output.trim().length === 0) {
|
|
213
222
|
throw new MermaidError("E_ARGUMENT", "Input and output paths must not be empty");
|
|
214
223
|
}
|
|
215
224
|
input ??= "-";
|
|
225
|
+
if (input === "/dev/stdin") input = "-";
|
|
216
226
|
output ??= `${input === "-" ? "out" : input}.${explicitFormat ?? "svg"}`;
|
|
217
227
|
if (output === "/dev/stdout") output = "-";
|
|
218
228
|
const outputFormat = inferFormatFromPath(output, explicitFormat);
|
|
@@ -228,7 +238,8 @@ function parseMmdcArguments(argv) {
|
|
|
228
238
|
svgId,
|
|
229
239
|
backgroundColor,
|
|
230
240
|
configFile,
|
|
231
|
-
quiet
|
|
241
|
+
quiet,
|
|
242
|
+
pdfFit
|
|
232
243
|
};
|
|
233
244
|
}
|
|
234
245
|
var MMDC_VERSION = "0.0.1";
|
|
@@ -238,7 +249,7 @@ var MMDC_HELP_TEXT = [
|
|
|
238
249
|
"Render Mermaid diagrams (flowchart, sequence, state, class, ER, pie) to SVG, PNG, or PDF.",
|
|
239
250
|
"",
|
|
240
251
|
"Options:",
|
|
241
|
-
" -i, --input <path|-> Input Mermaid file (default: stdin)",
|
|
252
|
+
" -i, --input <path|-> Input Mermaid file or /dev/stdin (default: stdin)",
|
|
242
253
|
" -o, --output <path|-> Output file or '-' for stdout (default: input + .svg, or out.svg)",
|
|
243
254
|
" -e, --outputFormat <format> Explicit format: svg, png, pdf (inferred from -o when omitted)",
|
|
244
255
|
" -t, --theme <theme> default, forest, dark, neutral, base, light",
|
|
@@ -248,6 +259,7 @@ var MMDC_HELP_TEXT = [
|
|
|
248
259
|
" -b, --backgroundColor <color> Canvas color (default: white; CSS names, hex, rgb/rgba, transparent)",
|
|
249
260
|
" -c, --configFile <path> JSON configuration file for theme and layout spacing",
|
|
250
261
|
" -I, --svgId <id> ID of the root SVG element",
|
|
262
|
+
" -f, --pdfFit Fit PDF page to the rendered viewport (already the default)",
|
|
251
263
|
" -q, --quiet Suppress non-fatal status messages",
|
|
252
264
|
" -h, --help Display this help message and exit",
|
|
253
265
|
" -V, --version Display version information and exit",
|
|
@@ -285,6 +297,12 @@ async function runWork(work, signal) {
|
|
|
285
297
|
// packages/safe-bash-command-mmdc/src/parser.ts
|
|
286
298
|
init_buffer();
|
|
287
299
|
|
|
300
|
+
// packages/safe-bash-command-mmdc/src/parsers/journey.ts
|
|
301
|
+
init_buffer();
|
|
302
|
+
|
|
303
|
+
// packages/safe-bash-command-mmdc/src/parsers/core-document.ts
|
|
304
|
+
init_buffer();
|
|
305
|
+
|
|
288
306
|
// packages/safe-bash-command-mmdc/src/scanner.ts
|
|
289
307
|
init_buffer();
|
|
290
308
|
import { parseDocument } from "../safe-bash/bundled-yaml/index.js";
|
|
@@ -558,6 +576,260 @@ function parseSourceConfig(source) {
|
|
|
558
576
|
return value;
|
|
559
577
|
}
|
|
560
578
|
|
|
579
|
+
// packages/safe-bash-command-mmdc/src/parsers/core-document.ts
|
|
580
|
+
var CoreDocument = class {
|
|
581
|
+
constructor(family, budget) {
|
|
582
|
+
this.family = family;
|
|
583
|
+
this.budget = budget;
|
|
584
|
+
}
|
|
585
|
+
family;
|
|
586
|
+
budget;
|
|
587
|
+
nodes = [];
|
|
588
|
+
edges = [];
|
|
589
|
+
groups = [];
|
|
590
|
+
ids = /* @__PURE__ */ new Set();
|
|
591
|
+
title;
|
|
592
|
+
groupId;
|
|
593
|
+
node(label, statement, shape = "rounded", id = `${this.family}_${this.nodes.length}`) {
|
|
594
|
+
if (this.ids.has(id)) throw new MermaidError("E_SYNTAX", `Duplicate node '${id}'`, { span: statement });
|
|
595
|
+
this.budget.chargeNodes(1);
|
|
596
|
+
this.budget.chargeWork(statement.text.length);
|
|
597
|
+
this.ids.add(id);
|
|
598
|
+
this.nodes.push({ id, label: checkSafeLabelText(label, this.budget, statement), shape, groupId: this.groupId, span: statement });
|
|
599
|
+
return id;
|
|
600
|
+
}
|
|
601
|
+
edge(from, to, arrow = true) {
|
|
602
|
+
this.budget.chargeEdges(1);
|
|
603
|
+
this.edges.push({ id: `edge_${this.edges.length}`, from, to, lineStyle: "solid", startMarker: "none", endMarker: arrow ? "arrow" : "none" });
|
|
604
|
+
}
|
|
605
|
+
heading(statement) {
|
|
606
|
+
const text = statement.text;
|
|
607
|
+
if (text.startsWith("title ")) {
|
|
608
|
+
this.title = checkSafeLabelText(text.slice(6).trim(), this.budget, statement);
|
|
609
|
+
return true;
|
|
610
|
+
}
|
|
611
|
+
if (text.startsWith("section ")) {
|
|
612
|
+
this.budget.chargeNodes(1);
|
|
613
|
+
this.groupId = `section_${this.groups.length}`;
|
|
614
|
+
this.groups.push({ id: this.groupId, label: checkSafeLabelText(text.slice(8).trim(), this.budget, statement), kind: "subgraph", span: statement });
|
|
615
|
+
return true;
|
|
616
|
+
}
|
|
617
|
+
return false;
|
|
618
|
+
}
|
|
619
|
+
finish(direction = "LR") {
|
|
620
|
+
if (!this.nodes.length) throw new MermaidError("E_SYNTAX", `${this.family} requires data`);
|
|
621
|
+
return { family: this.family, direction, title: this.title, nodes: this.nodes, edges: this.edges, groups: this.groups, notes: [] };
|
|
622
|
+
}
|
|
623
|
+
};
|
|
624
|
+
|
|
625
|
+
// packages/safe-bash-command-mmdc/src/parsers/journey.ts
|
|
626
|
+
function* parseJourney(statements, budget) {
|
|
627
|
+
const document = new CoreDocument("journey", budget);
|
|
628
|
+
let previous;
|
|
629
|
+
for (const statement of statements.slice(1)) {
|
|
630
|
+
yield;
|
|
631
|
+
if (document.heading(statement)) continue;
|
|
632
|
+
const [task, rawScore, actors, ...extra] = statement.text.split(":").map((part) => part.trim());
|
|
633
|
+
const score = Number(rawScore);
|
|
634
|
+
if (!task || !rawScore || !Number.isInteger(score) || score < 1 || score > 5 || extra.length) throw new MermaidError("E_SYNTAX", "Journey tasks require a score from 1 to 5", { span: statement });
|
|
635
|
+
const id = document.node(`${task}
|
|
636
|
+
Score: ${score}/5${actors ? `
|
|
637
|
+
${actors}` : ""}`, statement);
|
|
638
|
+
if (previous) document.edge(previous, id);
|
|
639
|
+
previous = id;
|
|
640
|
+
}
|
|
641
|
+
return document.finish();
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
// packages/safe-bash-command-mmdc/src/parsers/gitGraph.ts
|
|
645
|
+
init_buffer();
|
|
646
|
+
function words(text) {
|
|
647
|
+
const result = [];
|
|
648
|
+
let start = 0;
|
|
649
|
+
let quote = "";
|
|
650
|
+
for (let i = 0; i <= text.length; i++) {
|
|
651
|
+
const ch = text[i] ?? " ";
|
|
652
|
+
if (quote) {
|
|
653
|
+
if (ch === quote && text[i - 1] !== "\\") quote = "";
|
|
654
|
+
} else if (ch === '"' || ch === "'") quote = ch;
|
|
655
|
+
else if (isAsciiWhitespace(ch)) {
|
|
656
|
+
if (i > start) result.push(unquoteText(text.slice(start, i)));
|
|
657
|
+
start = i + 1;
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
return result;
|
|
661
|
+
}
|
|
662
|
+
function* parseGitGraph(statements, budget) {
|
|
663
|
+
const document = new CoreDocument("gitGraph", budget);
|
|
664
|
+
const branches = /* @__PURE__ */ new Map([["main", void 0]]);
|
|
665
|
+
let current = "main";
|
|
666
|
+
const header = statements[0].text.slice("gitGraph".length).trim();
|
|
667
|
+
const direction = header === "TB:" || header === "TB" ? "TD" : header === "BT:" || header === "BT" ? "BT" : "LR";
|
|
668
|
+
if (!["", ":", "LR", "LR:", "TB", "TB:", "BT", "BT:"].includes(header)) throw new MermaidError("E_SYNTAX", "Invalid gitGraph direction");
|
|
669
|
+
for (const statement of statements.slice(1)) {
|
|
670
|
+
yield;
|
|
671
|
+
const [command, ...args] = words(statement.text);
|
|
672
|
+
const named = /* @__PURE__ */ Object.create(null);
|
|
673
|
+
const positional = [];
|
|
674
|
+
for (let i = 0; i < args.length; i++) {
|
|
675
|
+
const arg = args[i];
|
|
676
|
+
if (arg.endsWith(":")) {
|
|
677
|
+
const value = args[++i];
|
|
678
|
+
if (value === void 0) throw new MermaidError("E_SYNTAX", "Missing gitGraph attribute value", { span: statement });
|
|
679
|
+
named[arg.slice(0, -1)] = value;
|
|
680
|
+
} else positional.push(arg);
|
|
681
|
+
}
|
|
682
|
+
const target = positional[0];
|
|
683
|
+
if (command === "branch") {
|
|
684
|
+
if (!target || branches.has(target) || positional.length !== 1 || Object.keys(named).some((key) => key !== "order")) throw new MermaidError("E_SYNTAX", "Invalid or duplicate branch", { span: statement });
|
|
685
|
+
budget.chargeNodes(1);
|
|
686
|
+
branches.set(target, branches.get(current));
|
|
687
|
+
current = target;
|
|
688
|
+
continue;
|
|
689
|
+
}
|
|
690
|
+
if (command === "checkout" || command === "switch") {
|
|
691
|
+
if (!target || !branches.has(target) || args.length !== 1) throw new MermaidError("E_SYNTAX", "Unknown checkout branch", { span: statement });
|
|
692
|
+
current = target;
|
|
693
|
+
continue;
|
|
694
|
+
}
|
|
695
|
+
if (command !== "commit" && command !== "merge" && command !== "cherry-pick") throw new MermaidError("E_UNSUPPORTED", `Unsupported gitGraph command '${command}'`, { span: statement });
|
|
696
|
+
if (Object.keys(named).some((key) => !["id", "tag", "type", "parent"].includes(key))) throw new MermaidError("E_SYNTAX", "Unknown commit attribute", { span: statement });
|
|
697
|
+
if (named.type && !["NORMAL", "REVERSE", "HIGHLIGHT"].includes(named.type)) throw new MermaidError("E_SYNTAX", "Invalid commit type", { span: statement });
|
|
698
|
+
if (command === "commit" && positional.length || command === "merge" && positional.length !== 1 || command === "cherry-pick" && positional.length) throw new MermaidError("E_SYNTAX", "Invalid commit arguments", { span: statement });
|
|
699
|
+
const parent = branches.get(current);
|
|
700
|
+
const other = command === "merge" ? branches.get(target) : command === "cherry-pick" ? named.id : void 0;
|
|
701
|
+
if (command !== "commit" && (!other || other === parent || command === "cherry-pick" && !document.ids.has(other))) throw new MermaidError("E_SYNTAX", "Invalid merge or cherry-pick target", { span: statement });
|
|
702
|
+
const id = command === "cherry-pick" ? `cherry_${document.nodes.length}` : named.id ?? `commit_${document.nodes.length}`;
|
|
703
|
+
const label = `${current}
|
|
704
|
+
${id}${command === "cherry-pick" ? `
|
|
705
|
+
cherry-pick ${other}` : ""}${named.tag ? `
|
|
706
|
+
${named.tag}` : ""}${named.type && named.type !== "NORMAL" ? `
|
|
707
|
+
${named.type}` : ""}`;
|
|
708
|
+
document.node(label, statement, "circle", id);
|
|
709
|
+
if (parent) document.edge(parent, id);
|
|
710
|
+
if (other) document.edge(other, id);
|
|
711
|
+
branches.set(current, id);
|
|
712
|
+
}
|
|
713
|
+
return document.finish(direction);
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
// packages/safe-bash-command-mmdc/src/parsers/timeline.ts
|
|
717
|
+
init_buffer();
|
|
718
|
+
function* parseTimeline(statements, budget) {
|
|
719
|
+
const document = new CoreDocument("timeline", budget);
|
|
720
|
+
let previous;
|
|
721
|
+
for (const statement of statements.slice(1)) {
|
|
722
|
+
yield;
|
|
723
|
+
if (document.heading(statement)) continue;
|
|
724
|
+
const [period, ...events] = statement.text.split(":").map((part) => part.trim());
|
|
725
|
+
if (!period) {
|
|
726
|
+
if (!previous || !events.length || events.some((event) => !event)) throw new MermaidError("E_SYNTAX", "Timeline event requires a period", { span: statement });
|
|
727
|
+
const last = document.nodes.at(-1);
|
|
728
|
+
const label = checkSafeLabelText([last.label, ...events].join("\n"), budget, statement);
|
|
729
|
+
document.nodes[document.nodes.length - 1] = { ...last, label };
|
|
730
|
+
continue;
|
|
731
|
+
}
|
|
732
|
+
if (events.some((event) => !event)) throw new MermaidError("E_SYNTAX", "Empty timeline event", { span: statement });
|
|
733
|
+
const id = document.node([period, ...events].join("\n"), statement);
|
|
734
|
+
if (previous) document.edge(previous, id);
|
|
735
|
+
previous = id;
|
|
736
|
+
}
|
|
737
|
+
return document.finish();
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
// packages/safe-bash-command-mmdc/src/parsers/gantt.ts
|
|
741
|
+
init_buffer();
|
|
742
|
+
var day = 864e5;
|
|
743
|
+
function dateValue(raw) {
|
|
744
|
+
const parts = raw.split("-");
|
|
745
|
+
if (parts.length !== 3 || parts[0].length !== 4 || parts[1].length !== 2 || parts[2].length !== 2) return void 0;
|
|
746
|
+
if (parts.some((part) => [...part].some((ch) => ch < "0" || ch > "9"))) return void 0;
|
|
747
|
+
const [year, month, date] = parts.map(Number);
|
|
748
|
+
const value = (/* @__PURE__ */ new Date(`${raw}T00:00:00Z`)).getTime();
|
|
749
|
+
const parsed = new Date(value);
|
|
750
|
+
return Number.isFinite(value) && parsed.getUTCFullYear() === year && parsed.getUTCMonth() + 1 === month && parsed.getUTCDate() === date ? value : void 0;
|
|
751
|
+
}
|
|
752
|
+
function duration(raw) {
|
|
753
|
+
const units = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: day, w: 7 * day };
|
|
754
|
+
let index = 0;
|
|
755
|
+
while (index < raw.length && (raw[index] >= "0" && raw[index] <= "9" || raw[index] === ".")) index++;
|
|
756
|
+
const unit = units[raw.slice(index)];
|
|
757
|
+
if (!index || !unit) return void 0;
|
|
758
|
+
const value = Number(raw.slice(0, index)) * unit;
|
|
759
|
+
return Number.isFinite(value) && value >= 0 ? value : void 0;
|
|
760
|
+
}
|
|
761
|
+
function* parseGantt(statements, budget) {
|
|
762
|
+
const document = new CoreDocument("gantt", budget);
|
|
763
|
+
const tasks = [];
|
|
764
|
+
const byId = /* @__PURE__ */ new Map();
|
|
765
|
+
for (const statement of statements.slice(1)) {
|
|
766
|
+
yield;
|
|
767
|
+
if (document.heading(statement)) continue;
|
|
768
|
+
if (statement.text.startsWith("dateFormat ")) {
|
|
769
|
+
if (statement.text.slice(11).trim() !== "YYYY-MM-DD") throw new MermaidError("E_UNSUPPORTED", "Gantt dateFormat supports YYYY-MM-DD", { span: statement });
|
|
770
|
+
continue;
|
|
771
|
+
}
|
|
772
|
+
const colon = statement.text.indexOf(":");
|
|
773
|
+
if (colon < 1) throw new MermaidError("E_SYNTAX", "Gantt task requires a label and schedule", { span: statement });
|
|
774
|
+
const label = statement.text.slice(0, colon).trim();
|
|
775
|
+
const fields = statement.text.slice(colon + 1).split(",").map((value) => value.trim());
|
|
776
|
+
const tags = [];
|
|
777
|
+
while (["done", "active", "crit", "milestone"].includes(fields[0])) tags.push(fields.shift());
|
|
778
|
+
let id;
|
|
779
|
+
if (fields.length === 3 || fields.length === 2 && dateValue(fields[0]) === void 0 && !fields[0].startsWith("after ")) id = fields.shift();
|
|
780
|
+
if (fields.length < 1 || fields.length > 2 || fields.some((field) => !field)) throw new MermaidError("E_SYNTAX", "Invalid Gantt schedule", { span: statement });
|
|
781
|
+
let start;
|
|
782
|
+
if (fields.length === 2) {
|
|
783
|
+
const raw = fields.shift();
|
|
784
|
+
if (raw.startsWith("after ")) {
|
|
785
|
+
const dependencies = raw.slice(6).split(" ").filter(Boolean);
|
|
786
|
+
if (!dependencies.length || dependencies.some((dependency) => !byId.has(dependency))) throw new MermaidError("E_SYNTAX", "Unknown Gantt dependency", { span: statement });
|
|
787
|
+
start = Math.max(...dependencies.map((dependency) => byId.get(dependency).end));
|
|
788
|
+
} else start = dateValue(raw);
|
|
789
|
+
} else start = tasks.at(-1)?.end;
|
|
790
|
+
const rawEnd = fields[0];
|
|
791
|
+
const length = duration(rawEnd);
|
|
792
|
+
const end = length === void 0 ? dateValue(rawEnd) : start === void 0 ? void 0 : start + length;
|
|
793
|
+
if (start === void 0 || end === void 0 || end < start || !Number.isFinite(end) || Math.abs(end) > 864e13) throw new MermaidError("E_SYNTAX", "Gantt requires valid dates, dependencies, and nonnegative durations", { span: statement });
|
|
794
|
+
const nodeId = document.node(label, statement, "rect", id);
|
|
795
|
+
const task = { id: nodeId, start, end, milestone: tags.includes("milestone"), status: tags.join(", ") || void 0 };
|
|
796
|
+
tasks.push(task);
|
|
797
|
+
byId.set(nodeId, task);
|
|
798
|
+
}
|
|
799
|
+
return { ...document.finish(), tasks };
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
// packages/safe-bash-command-mmdc/src/parsers/mindmap.ts
|
|
803
|
+
init_buffer();
|
|
804
|
+
function* parseMindmap(statements, budget) {
|
|
805
|
+
const document = new CoreDocument("mindmap", budget);
|
|
806
|
+
const parents = [];
|
|
807
|
+
const shapes = [["((", "))", "circle"], ["{{", "}}", "hexagon"], ["[", "]", "rect"], ["(", ")", "rounded"], [")", "(", "rounded"]];
|
|
808
|
+
for (const statement of statements.slice(1)) {
|
|
809
|
+
yield;
|
|
810
|
+
let label = statement.text;
|
|
811
|
+
let id;
|
|
812
|
+
let shape = "rounded";
|
|
813
|
+
if (label.startsWith("::")) throw new MermaidError("E_UNSUPPORTED", "Mindmap icons and CSS classes are unsupported", { span: statement });
|
|
814
|
+
for (const [open, close, candidate] of shapes) {
|
|
815
|
+
const index = label.indexOf(open);
|
|
816
|
+
if (index < 0) continue;
|
|
817
|
+
if (!label.endsWith(close)) throw new MermaidError("E_SYNTAX", "Unclosed mindmap shape", { span: statement });
|
|
818
|
+
id = label.slice(0, index).trim() || void 0;
|
|
819
|
+
label = unquoteText(label.slice(index + open.length, -close.length));
|
|
820
|
+
shape = candidate;
|
|
821
|
+
break;
|
|
822
|
+
}
|
|
823
|
+
if (!label) throw new MermaidError("E_SYNTAX", "Empty mindmap node", { span: statement });
|
|
824
|
+
while (parents.length && parents.at(-1).column >= statement.column) parents.pop();
|
|
825
|
+
if (document.nodes.length && !parents.length) throw new MermaidError("E_SYNTAX", "Mindmap must have one indented root", { span: statement });
|
|
826
|
+
const node = document.node(label, statement, shape, id);
|
|
827
|
+
if (parents.length) document.edge(parents.at(-1).id, node, false);
|
|
828
|
+
parents.push({ column: statement.column, id: node });
|
|
829
|
+
}
|
|
830
|
+
return document.finish();
|
|
831
|
+
}
|
|
832
|
+
|
|
561
833
|
// packages/safe-bash-command-mmdc/src/parsers/flowchart.ts
|
|
562
834
|
init_buffer();
|
|
563
835
|
|
|
@@ -2625,6 +2897,11 @@ function* parseMermaidSteps(source, options) {
|
|
|
2625
2897
|
if (headWord === "erDiagram") {
|
|
2626
2898
|
return complete(yield* parseErDiagramSteps(statements, budget));
|
|
2627
2899
|
}
|
|
2900
|
+
if (headWord === "mindmap") return complete(yield* parseMindmap(statements, budget));
|
|
2901
|
+
if (headWord === "gantt") return complete(yield* parseGantt(statements, budget));
|
|
2902
|
+
if (headWord === "timeline") return complete(yield* parseTimeline(statements, budget));
|
|
2903
|
+
if (headWord === "gitGraph") return complete(yield* parseGitGraph(statements, budget));
|
|
2904
|
+
if (headWord === "journey") return complete(yield* parseJourney(statements, budget));
|
|
2628
2905
|
if (headWord === "pie") return complete(parsePie(statements, budget));
|
|
2629
2906
|
throw new MermaidError(
|
|
2630
2907
|
"E_UNSUPPORTED",
|
|
@@ -2646,6 +2923,9 @@ function parseMermaid(source, options) {
|
|
|
2646
2923
|
// packages/safe-bash-command-mmdc/src/layout.ts
|
|
2647
2924
|
init_buffer();
|
|
2648
2925
|
|
|
2926
|
+
// packages/safe-bash-command-mmdc/src/layout/gantt.ts
|
|
2927
|
+
init_buffer();
|
|
2928
|
+
|
|
2649
2929
|
// packages/safe-bash-command-mmdc/src/text.ts
|
|
2650
2930
|
init_buffer();
|
|
2651
2931
|
|
|
@@ -3113,6 +3393,76 @@ function measureTextBlock(rawText, options) {
|
|
|
3113
3393
|
};
|
|
3114
3394
|
}
|
|
3115
3395
|
|
|
3396
|
+
// packages/safe-bash-command-mmdc/src/layout/gantt.ts
|
|
3397
|
+
function* layoutGantt(document, options) {
|
|
3398
|
+
const budget = options?.budget ?? new MermaidBudget(admitMermaidLimits(options?.limits), options?.signal);
|
|
3399
|
+
const { tokens: theme, backgroundColor } = resolveMermaidTheme(options);
|
|
3400
|
+
const padding = options?.padding ?? theme.padding;
|
|
3401
|
+
const tasks = document.tasks;
|
|
3402
|
+
let start = Infinity, end = -Infinity, labelWidth = 120;
|
|
3403
|
+
for (const task of tasks) {
|
|
3404
|
+
yield;
|
|
3405
|
+
budget.chargeWork(1);
|
|
3406
|
+
start = Math.min(start, task.start);
|
|
3407
|
+
end = Math.max(end, task.end);
|
|
3408
|
+
}
|
|
3409
|
+
const labels = new Map(document.nodes.map((node) => [node.id, node]));
|
|
3410
|
+
const groups = new Map(document.groups.map((group) => [group.id, group.label]));
|
|
3411
|
+
for (const node of document.nodes) {
|
|
3412
|
+
yield;
|
|
3413
|
+
budget.chargeWork(node.label.length);
|
|
3414
|
+
labelWidth = Math.max(labelWidth, measureLineWidth(node.label, 13, "ui", 400) + 16);
|
|
3415
|
+
}
|
|
3416
|
+
const plotX = padding + labelWidth + 32;
|
|
3417
|
+
const plotWidth = 600;
|
|
3418
|
+
const width = plotX + plotWidth + padding + 8;
|
|
3419
|
+
const nodes = [];
|
|
3420
|
+
const addText = (id, text, x, y2, available, align = "left") => {
|
|
3421
|
+
nodes.push({
|
|
3422
|
+
id,
|
|
3423
|
+
shape: "rect",
|
|
3424
|
+
x,
|
|
3425
|
+
y: y2,
|
|
3426
|
+
width: available,
|
|
3427
|
+
height: 24,
|
|
3428
|
+
rx: 0,
|
|
3429
|
+
fill: "transparent",
|
|
3430
|
+
stroke: "transparent",
|
|
3431
|
+
strokeWidth: 0,
|
|
3432
|
+
shadow: false,
|
|
3433
|
+
dividers: [],
|
|
3434
|
+
badges: [],
|
|
3435
|
+
lines: [{ text, width: measureLineWidth(text, 13, "ui", 400), x: align === "left" ? x : align === "right" ? x + available : x + available / 2, y: y2 + 17, color: theme.text, fontSize: 13, fontWeight: 400, fontFamily: "ui", align }]
|
|
3436
|
+
});
|
|
3437
|
+
};
|
|
3438
|
+
const timeLabel = (time) => new Date(time).toISOString().slice(0, end - start < 864e5 ? 19 : 10);
|
|
3439
|
+
addText("gantt_start", timeLabel(start), plotX, padding, plotWidth / 2 - 16);
|
|
3440
|
+
addText("gantt_end", timeLabel(end), plotX + plotWidth / 2 + 16, padding, plotWidth / 2 - 16, "right");
|
|
3441
|
+
let y = padding + 48;
|
|
3442
|
+
let previousGroup;
|
|
3443
|
+
for (const task of tasks) {
|
|
3444
|
+
yield;
|
|
3445
|
+
budget.chargeWork(1);
|
|
3446
|
+
const node = labels.get(task.id);
|
|
3447
|
+
if (node.groupId && node.groupId !== previousGroup) {
|
|
3448
|
+
addText(`heading_${node.groupId}`, groups.get(node.groupId), padding, y, width - padding * 2);
|
|
3449
|
+
y += 48;
|
|
3450
|
+
}
|
|
3451
|
+
previousGroup = node.groupId;
|
|
3452
|
+
addText(`label_${task.id}`, node.label, padding, y, labelWidth);
|
|
3453
|
+
const span = Math.max(1, end - start);
|
|
3454
|
+
const x = plotX + (task.start - start) / span * plotWidth;
|
|
3455
|
+
const barWidth = task.milestone ? 16 : Math.max(1, (task.end - task.start) / span * plotWidth);
|
|
3456
|
+
const fill = task.status?.includes("crit") ? "#dc2626" : task.status?.includes("done") ? "#64748b" : theme.accent;
|
|
3457
|
+
nodes.push({ id: task.id, shape: task.milestone ? "diamond" : "rect", x: task.milestone ? x - 8 : x, y, width: barWidth, height: 24, rx: 3, fill, stroke: theme.border, strokeWidth: 1, shadow: false, dividers: [], badges: [], lines: [] });
|
|
3458
|
+
const schedule = `${timeLabel(task.start)} \u2192 ${timeLabel(task.end)}${task.status ? ` \xB7 ${task.status}` : ""}`;
|
|
3459
|
+
addText(`schedule_${task.id}`, schedule, plotX, y + 48, plotWidth);
|
|
3460
|
+
y += 96;
|
|
3461
|
+
}
|
|
3462
|
+
const height = y + padding;
|
|
3463
|
+
return { family: "gantt", direction: "LR", width, height, viewBox: { x: 0, y: 0, width, height }, naturalBounds: { width, height }, padding, theme, backgroundColor, title: document.title, nodes, groups: [], edges: [], notes: [], lifelines: [], activations: [] };
|
|
3464
|
+
}
|
|
3465
|
+
|
|
3116
3466
|
// packages/safe-bash-command-mmdc/src/layout/graph.ts
|
|
3117
3467
|
init_buffer();
|
|
3118
3468
|
|
|
@@ -6423,7 +6773,7 @@ function* layoutMermaidSteps(document, options) {
|
|
|
6423
6773
|
throw new MermaidError("E_ARGUMENT", `Viewport ${dimension} must be a positive integer`);
|
|
6424
6774
|
}
|
|
6425
6775
|
}
|
|
6426
|
-
let scene = document.family === "pie" ? layoutPie(document, options) : document.family === "sequence" ? yield* layoutSequenceDocumentSteps(document, options) : yield* layoutGraphDocumentSteps(document, options);
|
|
6776
|
+
let scene = document.family === "gantt" ? yield* layoutGantt(document, options) : document.family === "pie" ? layoutPie(document, options) : document.family === "sequence" ? yield* layoutSequenceDocumentSteps(document, options) : yield* layoutGraphDocumentSteps(document, options);
|
|
6427
6777
|
if (document.title && document.family !== "pie") {
|
|
6428
6778
|
const textWidth = measureLineWidth(document.title, 16, "ui", 600);
|
|
6429
6779
|
const width2 = Math.max(scene.width, textWidth + scene.padding * 2);
|
|
@@ -8699,6 +9049,7 @@ async function runMmdc(context, options = {}) {
|
|
|
8699
9049
|
"backgroundColor",
|
|
8700
9050
|
"configFile",
|
|
8701
9051
|
"quiet",
|
|
9052
|
+
"pdfFit",
|
|
8702
9053
|
"help",
|
|
8703
9054
|
"version",
|
|
8704
9055
|
"svgId",
|
|
@@ -8717,6 +9068,7 @@ async function runMmdc(context, options = {}) {
|
|
|
8717
9068
|
if (options.help) argv.push("--help");
|
|
8718
9069
|
if (options.version) argv.push("--version");
|
|
8719
9070
|
if (options.quiet) argv.push("--quiet");
|
|
9071
|
+
if (options.pdfFit) argv.push("--pdfFit");
|
|
8720
9072
|
if (options.input !== void 0) argv.push("-i", options.input);
|
|
8721
9073
|
if (options.output !== void 0) argv.push("-o", options.output);
|
|
8722
9074
|
if (options.outputFormat !== void 0) argv.push("-e", options.outputFormat);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Poe Platform
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CommandDefinition } from "../safe-bash-contracts/command.js";
|
|
2
|
+
import type { VirtualShellPlugin } from "../safe-bash-contracts/plugin.js";
|
|
3
|
+
export interface NodeLimits {
|
|
4
|
+
memoryBytes: number;
|
|
5
|
+
sourceBytes: number;
|
|
6
|
+
outputBytes: number;
|
|
7
|
+
fileBytes: number;
|
|
8
|
+
operations: number;
|
|
9
|
+
timeoutMs: number;
|
|
10
|
+
}
|
|
11
|
+
export interface NodeCommandsOptions {
|
|
12
|
+
readonly limits?: Partial<NodeLimits>;
|
|
13
|
+
readonly replace?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function createNodeCommand(options?: NodeCommandsOptions): CommandDefinition;
|
|
16
|
+
export declare function createNodeCommands(options?: NodeCommandsOptions): readonly CommandDefinition[];
|
|
17
|
+
export declare function nodeCommands(options?: NodeCommandsOptions): VirtualShellPlugin;
|