@poe-platform/safe-bash 0.1.817 → 0.1.819
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/dist/image-ast/index.js +2 -2
- package/dist/mp4-ast/index.d.ts +2 -1
- package/dist/mp4-ast/mp4-metadata-source.d.ts +10 -0
- package/dist/mp4-ast/mp4-packets-source.d.ts +8 -1
- package/dist/mp4-ast/types.d.ts +21 -3
- package/dist/office-xml/retained-xml-document.d.ts +2 -2
- package/dist/pdf-ast/ast.d.ts +2 -0
- package/dist/pdf-ast/content/evaluator.d.ts +7 -0
- package/dist/pdf-ast/content/retained-evaluator.d.ts +2 -2
- package/dist/pdf-ast/content/retained-page.d.ts +2 -2
- package/dist/pdf-ast/cos/compact-number.d.ts +19 -0
- package/dist/pdf-ast/cos/mutable-object-store.d.ts +2 -1
- package/dist/pdf-ast/cos/retained-node-writer.d.ts +9 -0
- package/dist/pdf-ast/cos/text-store.d.ts +27 -0
- package/dist/pdf-ast/edit/retained-bookmarks.d.ts +2 -2
- package/dist/pdf-ast/edit/retained-info-updates.d.ts +3 -3
- package/dist/pdf-ast/edit/retained-merge-outlines.d.ts +43 -0
- package/dist/pdf-ast/edit/retained-page-copy.d.ts +2 -0
- package/dist/pdf-ast/extract/html-text-stream.d.ts +14 -0
- package/dist/pdf-ast/extract/logical-text-stream.d.ts +14 -0
- package/dist/pdf-ast/extract/raw-text-index.d.ts +18 -4
- package/dist/pdf-ast/extract/retained-color.d.ts +6 -6
- package/dist/pdf-ast/extract/retained-decoded-image.d.ts +2 -2
- package/dist/pdf-ast/extract/stored-text-glyphs.d.ts +8 -0
- package/dist/pdf-ast/fonts/retained.d.ts +2 -2
- package/dist/pdf-ast/image.d.ts +2 -0
- package/dist/pdf-ast/image.js +19 -0
- package/dist/pdf-ast/index.d.ts +6 -0
- package/dist/pdf-ast/index.js +270 -66852
- package/dist/pdf-ast/render/postscript.d.ts +6 -0
- package/dist/pdf-ast/render/raster.d.ts +21 -1
- package/dist/pdf-ast/retained-document.d.ts +23 -95
- package/dist/pdf-ast/retained-reader.d.ts +113 -0
- package/dist/safe-bash/ast-grep.js +1 -1
- package/dist/safe-bash/audio-ast.js +1 -1
- package/dist/safe-bash/byte-encoding.js +1 -1
- package/dist/safe-bash/chunks/{chunk-HD6DWOAC.js → chunk-67QE3JLU.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-HPQE675Q.js → chunk-ESH5MDQR.js} +1 -1
- package/dist/safe-bash/chunks/chunk-HNT2MR4W.js +45 -0
- package/dist/safe-bash/chunks/{chunk-SXSEF5E2.js → chunk-IRJS54AA.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-AXGI5JVL.js → chunk-NAETSXBW.js} +2 -2
- package/dist/safe-bash/chunks/{chunk-WW7QPLH2.js → chunk-PSD2RSOS.js} +2 -1
- package/dist/safe-bash/chunks/{chunk-FQRI5AS5.js → chunk-VF3Q2V3E.js} +1 -1
- package/dist/safe-bash/chunks/{pdfinfo-KQIQEDOF.js → pdfinfo-G7BGZXBN.js} +2 -12
- package/dist/safe-bash/command-chunks/biff-AYJZR2YV-YFF3BK43.js +5741 -0
- package/dist/safe-bash/command-chunks/{chunk-FEBTT5NH.js → chunk-22D6Q6SW.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-ALD53QFL.js → chunk-2C4QMQQD.js} +42 -12
- package/dist/safe-bash/command-chunks/{chunk-ZHHALBM7.js → chunk-2E53ZL5D.js} +11 -9
- package/dist/safe-bash/command-chunks/{chunk-EJ4UP7DA.js → chunk-2ESK2YIE.js} +27 -5
- package/dist/safe-bash/command-chunks/{chunk-CKA7ZROU.js → chunk-2GU2UU2Z.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-L2VLASZ4.js → chunk-2GUI3ZKE.js} +3 -3
- package/dist/safe-bash/command-chunks/chunk-2H6RJPCQ.js +721 -0
- package/dist/safe-bash/command-chunks/{chunk-DRHONH2C.js → chunk-2IGH6JIP.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-QDV2NIFR.js → chunk-2TMTGVJR.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-MQE77MEQ.js → chunk-2V6EUWE3.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-BIJW6QWB.js → chunk-2VSNIHIW.js} +21 -21
- package/dist/safe-bash/command-chunks/{chunk-FSG6UC2N.js → chunk-2XR7B6DY.js} +420 -167
- package/dist/safe-bash/command-chunks/{chunk-EY3UE26F.js → chunk-2YC6MWQB.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-NLCUQD7Y.js → chunk-3DID6MQY.js} +21 -11
- package/dist/safe-bash/command-chunks/{chunk-5VO534FR.js → chunk-3K5FCRUG.js} +1 -0
- package/dist/safe-bash/command-chunks/{chunk-BSTABZIK.js → chunk-3LMUKOP2.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-XBWD6SI3.js → chunk-3MFYCMQU.js} +37 -37
- package/dist/safe-bash/command-chunks/chunk-3PO534WJ.js +37 -0
- package/dist/safe-bash/command-chunks/{chunk-UFLMOU3B.js → chunk-3RDEX4AF.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-DOVWHVHI.js → chunk-3TXPZLFI.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-TID5TSQW.js → chunk-42OQIFPW.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-UJYXSLM6.js → chunk-45QE6QRR.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-LMLBQSAM.js → chunk-4HJEZGYN.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-5QXRIZSS.js → chunk-4Q3HP33O.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-EBX5RKKT.js → chunk-4XYGJB24.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-NDALIHKK.js → chunk-4ZQYBCB2.js} +22 -22
- package/dist/safe-bash/command-chunks/{chunk-OFONWWEZ.js → chunk-5IHJWBDR.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-TG2RVQLP.js → chunk-5KWEZV5H.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-UYZ6EFZE.js → chunk-5P5SF75H.js} +83 -34
- package/dist/safe-bash/command-chunks/{chunk-P462JTNT.js → chunk-5PJ6VT2O.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-SICTBSLW.js → chunk-5QR4LTAK.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-ARE267HR.js → chunk-5XIJYTQU.js} +7 -7
- package/dist/safe-bash/command-chunks/chunk-63WEASJ7.js +137 -0
- package/dist/safe-bash/command-chunks/{chunk-3K5CVXUV.js → chunk-64L57DEI.js} +19 -19
- package/dist/safe-bash/command-chunks/{chunk-2ALHVXEM.js → chunk-6EK76ERE.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-4772DJKS.js → chunk-6GCK2KSL.js} +61 -26
- package/dist/safe-bash/command-chunks/{chunk-T5OQ53XS.js → chunk-6IID5HTY.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-ABL2DPJI.js → chunk-6PDXNY3T.js} +13 -13
- package/dist/safe-bash/command-chunks/{chunk-X42MJT2J.js → chunk-6RE4MZYM.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-AF2IO57Q.js → chunk-6REH56FL.js} +14 -140
- package/dist/safe-bash/command-chunks/{chunk-XFIDOCYH.js → chunk-6ZHNKHQQ.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-6JGICYHP.js → chunk-75OUKYCM.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-POGVOCOB.js → chunk-772WNCU6.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-3DWFXESW.js → chunk-7GJJDM2F.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-XVEI4HZL.js → chunk-7JTJQKIV.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-WIW3KDBS.js → chunk-7NFICYRU.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-3ZVK2OAY.js → chunk-A4GYNM2E.js} +6 -5
- package/dist/safe-bash/command-chunks/chunk-AC4FFCRL.js +3820 -0
- package/dist/safe-bash/command-chunks/{chunk-SQBWAFUI.js → chunk-ADN7BU5X.js} +58 -26
- package/dist/safe-bash/command-chunks/{chunk-FHQOFEQK.js → chunk-AEHEOKI2.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-BZRWZ6GO.js → chunk-AH3ZEPAN.js} +12 -9
- package/dist/safe-bash/command-chunks/{chunk-3MUFXGA2.js → chunk-AR65HNNX.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-VNNNVT4C.js → chunk-ARA57PMC.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-3VGQTLO6.js → chunk-AXUHORS3.js} +4 -4
- package/dist/safe-bash/command-chunks/chunk-B6NAEWHC.js +53 -0
- package/dist/safe-bash/command-chunks/{chunk-2ZWRW6UQ.js → chunk-B74LVFAN.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-E4TF5W6O.js → chunk-BBOYR6LV.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-ZM7HMBAJ.js → chunk-BDGNKRY4.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-KDBU5Q2N.js → chunk-BFOVQUTF.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-GNT3SCF3.js → chunk-BOMCPF7N.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-ZNCPIZCN.js → chunk-BSLXS4PE.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-N6TG44VG.js → chunk-BTDSUATE.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-VZJRFHMZ.js → chunk-BXDNFBKZ.js} +26 -2
- package/dist/safe-bash/command-chunks/chunk-BZLLQWRK.js +296 -0
- package/dist/safe-bash/command-chunks/{chunk-YXR4JE4U.js → chunk-C3FERGHU.js} +4 -4
- package/dist/safe-bash/command-chunks/chunk-C5SLY3RB.js +279 -0
- package/dist/safe-bash/command-chunks/{chunk-5O45KGW5.js → chunk-C5VUJOUQ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-T4SEQU66.js → chunk-CI6KHUFK.js} +5 -5
- package/dist/safe-bash/command-chunks/chunk-CJIFJ45R.js +203 -0
- package/dist/safe-bash/command-chunks/{chunk-OTEHQQU7.js → chunk-CKQ5SXOO.js} +8 -59
- package/dist/safe-bash/command-chunks/{chunk-LJ3UYESS.js → chunk-CP5EO5TT.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-TY7JXEWI.js → chunk-CPCXE2TM.js} +13 -13
- package/dist/safe-bash/command-chunks/{chunk-VVWHFNHD.js → chunk-CXOAMPOV.js} +420 -28
- package/dist/safe-bash/command-chunks/{chunk-57PK2QFX.js → chunk-D3WMD32B.js} +16 -16
- package/dist/safe-bash/command-chunks/{chunk-LECGQSQW.js → chunk-D54L2IOZ.js} +12 -12
- package/dist/safe-bash/command-chunks/{chunk-FGARVKAX.js → chunk-DBYY7IDI.js} +24 -20
- package/dist/safe-bash/command-chunks/{chunk-LNAZ3E4Q.js → chunk-DGFMOT4O.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-N5J3IZZK.js → chunk-DQVOBGI2.js} +12414 -8140
- package/dist/safe-bash/command-chunks/{chunk-OHEZQ4QA.js → chunk-DTLIBRCQ.js} +11 -11
- package/dist/safe-bash/command-chunks/{chunk-FGHSE3RZ.js → chunk-DZ4ELL34.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-ICJH6A73.js → chunk-DZTT5SLG.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-77NXQZGK.js → chunk-DZY7V74W.js} +3 -1
- package/dist/safe-bash/command-chunks/chunk-E47FFS5M.js +52 -0
- package/dist/safe-bash/command-chunks/{chunk-LNKZVU5V.js → chunk-E76WK7OQ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-EWC56JNI.js → chunk-EBMKGNKF.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-5GDF5FAS.js → chunk-EEJ3YXVO.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-GMBUOYTN.js → chunk-EG7VVDV3.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-N32AP43V.js → chunk-EIZFAUUD.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-FR63MJSO.js → chunk-ESIEU4E4.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-QJZJWL2X.js → chunk-ET3CPTJT.js} +38 -25
- package/dist/safe-bash/command-chunks/{chunk-UT5X6QRU.js → chunk-ETS4BINB.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-SBXS4S6Y.js → chunk-EU5SR3LS.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-FTZFCMVI.js → chunk-FAVWWMFW.js} +12 -12
- package/dist/safe-bash/command-chunks/{chunk-YKODRSGT.js → chunk-FCGMSOF6.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-S5ER73EA.js → chunk-FGK6HLSY.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-WMV5224N.js → chunk-FILE5PBI.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-7ADQE64C.js → chunk-FMGNXOMV.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-XPQUUFQD.js → chunk-FPOM47UA.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-ZZERSKAR.js → chunk-FX54I4AC.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-CORUUCS2.js → chunk-GAYTDZPP.js} +5 -5
- package/dist/safe-bash/command-chunks/chunk-GCSKS22X.js +15 -0
- package/dist/safe-bash/command-chunks/{chunk-2QZUAZTH.js → chunk-GIQUIF6E.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-UVZJAV2S.js → chunk-GNPPPYDF.js} +1 -78
- package/dist/safe-bash/command-chunks/{chunk-B6XTAKKQ.js → chunk-GNVAW6NL.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-GQV5RWMN.js +27 -0
- package/dist/safe-bash/command-chunks/{chunk-PWHIVWQT.js → chunk-GVDVRC7J.js} +15 -19
- package/dist/safe-bash/command-chunks/{chunk-N4HWOLGZ.js → chunk-GY2C555A.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-KXM3HTAF.js → chunk-GYKQ3IOV.js} +27 -14
- package/dist/safe-bash/command-chunks/{chunk-VMZIAFVJ.js → chunk-HBR5PWX4.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-YPG55QTP.js → chunk-HCJWEB6P.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-ZOEKSH3R.js → chunk-HCPEYQKT.js} +5 -4
- package/dist/safe-bash/command-chunks/{chunk-U42WHQRH.js → chunk-HCZITM4C.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-4SISSPIH.js → chunk-HLRLMFMS.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-HNEWGADJ.js +43 -0
- package/dist/safe-bash/command-chunks/{chunk-DZOKH5BL.js → chunk-HQFX5XKV.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-QNX5LZBK.js → chunk-HSB55ED5.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-G3FK5VVG.js → chunk-HTBUIRTH.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-QCIAX6HZ.js → chunk-HUAQZFON.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-6M3JTPKE.js → chunk-HVLF3Y4B.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-AYQPJQJR.js → chunk-I6CQDCIP.js} +8 -8
- package/dist/safe-bash/command-chunks/chunk-I7MEH76L.js +276 -0
- package/dist/safe-bash/command-chunks/{chunk-E3BL7W5C.js → chunk-IAHYG67O.js} +152 -80
- package/dist/safe-bash/command-chunks/{chunk-TXWDR2P4.js → chunk-IBT3OWXB.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-EAGIJ4VW.js → chunk-IC5XC4TO.js} +118 -118
- package/dist/safe-bash/command-chunks/{chunk-ERWIJYCS.js → chunk-IGZOQT2L.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-CKIXC7AO.js → chunk-IPKYPADE.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-FJLSYX5P.js → chunk-ITJDLFPW.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-MUTARE5I.js → chunk-IYEAS7TU.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-WDVPHDBH.js → chunk-J3ISXTYB.js} +5 -5
- package/dist/safe-bash/command-chunks/chunk-J3VS55K4.js +69097 -0
- package/dist/safe-bash/command-chunks/chunk-J4I7KCQQ.js +495 -0
- package/dist/safe-bash/command-chunks/{chunk-IWVANZWH.js → chunk-JLPBGKVC.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-HQEYSSZV.js → chunk-JLS6XKAR.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-IJE65P52.js → chunk-JMUB5A26.js} +27 -8
- package/dist/safe-bash/command-chunks/{chunk-HOJ7WDTS.js → chunk-JQPDVCBU.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-LQX7RAF7.js → chunk-JSW6YH6T.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-DM5WURQL.js → chunk-JY2T3KV2.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-IZ3SD5S2.js → chunk-K2NV6H7E.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-YJ5IA5YQ.js → chunk-K576GZED.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-VZTVR3JI.js → chunk-K6J3KFQ2.js} +17 -122
- package/dist/safe-bash/command-chunks/{chunk-RTHYAGKI.js → chunk-KD4JUF6R.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-FUYZUETI.js → chunk-KQE2D7PX.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-Q65GWGQR.js → chunk-KVTZJBLM.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-ONQP4FNV.js → chunk-KZICRCQ7.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-L365UGC7.js +250 -0
- package/dist/safe-bash/command-chunks/{chunk-UKAGRRLZ.js → chunk-LBBJ5S3W.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-WHZ6XK7Y.js → chunk-LBILRPVR.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-ENMJHB2C.js → chunk-LDR3PPM3.js} +5 -5
- package/dist/safe-bash/command-chunks/chunk-LJLB7TBN.js +775 -0
- package/dist/safe-bash/command-chunks/{chunk-A6OTPNNI.js → chunk-LPKMNCC5.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-JA36YOZI.js → chunk-LUJUYUOG.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-FB2WPI3M.js → chunk-LZHFVNEV.js} +17 -107
- package/dist/safe-bash/command-chunks/{chunk-4X2MPZXW.js → chunk-M42GCI5F.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-URQSUMMJ.js → chunk-M7MQTU77.js} +6 -6
- package/dist/safe-bash/command-chunks/chunk-MCUDSE4H.js +77 -0
- package/dist/safe-bash/command-chunks/{chunk-V6JPIZUW.js → chunk-MD5ZSARP.js} +9 -9
- package/dist/safe-bash/command-chunks/chunk-MEST2HID.js +112 -0
- package/dist/safe-bash/command-chunks/{chunk-26JE5JEB.js → chunk-MLMFFBOU.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-HOKPYTHQ.js → chunk-MPRUGL4W.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-E22EAYJN.js → chunk-MQCLG2CT.js} +177 -34
- package/dist/safe-bash/command-chunks/{chunk-G3LUT475.js → chunk-N5Y7WWO6.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-MZYQKH26.js → chunk-NA6YAGAH.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-PPN53PX3.js → chunk-NDJPULBE.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-2IMIKROX.js → chunk-NN6OWOJG.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-SWIF6BBY.js → chunk-NNYOPI7K.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-GAROGIVU.js → chunk-NP2QXF2X.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-SNA2LVBX.js → chunk-NPVOYY2A.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-T2FRXSQT.js → chunk-NR7POLKP.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-A4P37F3P.js → chunk-NWA7ZJDV.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-45DKGZYO.js → chunk-O3FTKLWR.js} +423 -213
- package/dist/safe-bash/command-chunks/{chunk-6KJDTKE4.js → chunk-O4H7HPMP.js} +35 -393
- package/dist/safe-bash/command-chunks/{chunk-J6FNSVHT.js → chunk-OLNV5MI6.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-BBEAO5N7.js → chunk-OLXMWQJ5.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-MDFNUNK5.js → chunk-OMD45J52.js} +25 -21
- package/dist/safe-bash/command-chunks/{chunk-AXI7VMLG.js → chunk-OOYVZAWL.js} +3 -41
- package/dist/safe-bash/command-chunks/{chunk-2TWXRJPB.js → chunk-OPKLIF5P.js} +17 -17
- package/dist/safe-bash/command-chunks/{chunk-E3DF7RTE.js → chunk-OT75C5YS.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-ROQ3VNVX.js → chunk-OVCSXD7N.js} +10 -10
- package/dist/safe-bash/command-chunks/chunk-P3LHQOX7.js +371 -0
- package/dist/safe-bash/command-chunks/{chunk-OFDJJRAD.js → chunk-P3TV5GIG.js} +11 -11
- package/dist/safe-bash/command-chunks/{chunk-LQDANF2B.js → chunk-P5UFNPRE.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-5V7WIQ2D.js → chunk-PAEAEFK3.js} +122 -12
- package/dist/safe-bash/command-chunks/{chunk-OWCBX5M2.js → chunk-PAY4ULWY.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-TXU7MMHN.js → chunk-PH722HK2.js} +16 -16
- package/dist/safe-bash/command-chunks/{chunk-OU4VE5CR.js → chunk-PKH57OIC.js} +8 -6
- package/dist/safe-bash/command-chunks/{chunk-GTOMW4VV.js → chunk-PNOXBL2B.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-L4XSOULP.js → chunk-PPNPXNM6.js} +38 -2
- package/dist/safe-bash/command-chunks/{chunk-DXOXUKQB.js → chunk-PVKSBXHB.js} +11 -9
- package/dist/safe-bash/command-chunks/{chunk-EZDWPTYB.js → chunk-PYYAX5FB.js} +23 -23
- package/dist/safe-bash/command-chunks/{chunk-MOUCMZZP.js → chunk-PZVFNPRC.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-UPWLHHZ2.js → chunk-QCCRQU44.js} +18 -18
- package/dist/safe-bash/command-chunks/{chunk-IVKAFEPO.js → chunk-QEVSG6HQ.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-6YF2QADH.js → chunk-QGSY4ZAU.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-LZY46GYY.js → chunk-QMWBKR4C.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-4YFTJS5U.js → chunk-QMXOKYMJ.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-CHZE6FNT.js → chunk-QPHI7Y7Z.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-N3ZH4YYH.js → chunk-QQ7ORF2D.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-4ABR3KGK.js → chunk-QWQHLMDX.js} +7 -7
- package/dist/safe-bash/command-chunks/chunk-QX3WKBLI.js +58 -0
- package/dist/safe-bash/command-chunks/{chunk-V6OWCRHN.js → chunk-QZPSGPN5.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-R36PDP3L.js +106 -0
- package/dist/safe-bash/command-chunks/{chunk-N35IJXBK.js → chunk-R43WEA4C.js} +14 -14
- package/dist/safe-bash/command-chunks/{chunk-5YL453ZF.js → chunk-R6VXFTYL.js} +47 -47
- package/dist/safe-bash/command-chunks/{chunk-OVUY46QF.js → chunk-RC4TNFNF.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-PU5DMQGG.js → chunk-RESJSUHH.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-OCOJMKDP.js → chunk-RHXV2KG5.js} +522 -8
- package/dist/safe-bash/command-chunks/{chunk-7B2MHKIW.js → chunk-RKON2TGI.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-OIHQXURE.js → chunk-ROE6KD4C.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-ITXSHOLP.js → chunk-RQTFK7AV.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-BKK4MS3V.js → chunk-RR6XG2I6.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-CFMJXJS5.js → chunk-RTUDDAAY.js} +9 -4
- package/dist/safe-bash/command-chunks/{chunk-FAU2KL6I.js → chunk-S5MBHFLB.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-R7LF4XQV.js → chunk-S6223MIG.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-6W4RMBFH.js → chunk-SKDJCMGI.js} +12 -10
- package/dist/safe-bash/command-chunks/{chunk-NCNHJRIY.js → chunk-SKF6PGA5.js} +12 -12
- package/dist/safe-bash/command-chunks/{chunk-3PM46VWH.js → chunk-SLD5A7IL.js} +11 -11
- package/dist/safe-bash/command-chunks/{chunk-KYIGYYEY.js → chunk-SMCRKN3O.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-H56BSMFQ.js → chunk-T2LZWXWF.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-KDDXLHN7.js → chunk-TMJG745A.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-QMBMZSJF.js → chunk-TP5MZHCB.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-ET6LMDEX.js → chunk-TPSRY72Q.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-ZAYTFXUX.js → chunk-TTPT3OME.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-GR4ONCQ5.js → chunk-U6VSRO6E.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-5VF2EA7Z.js → chunk-U7J3R7HX.js} +6 -1
- package/dist/safe-bash/command-chunks/{chunk-A5SPMSKD.js → chunk-UDRJKA3P.js} +11 -11
- package/dist/safe-bash/command-chunks/{chunk-3B444A5G.js → chunk-UI5AS3FS.js} +10 -2
- package/dist/safe-bash/command-chunks/{chunk-RVWIEXR7.js → chunk-UMOQHHSV.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-WH624PKJ.js → chunk-UNI6QG45.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-BOVDUJ3A.js → chunk-UTSN7AKE.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-F5QYUK2E.js → chunk-UWIDPTOB.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-345YBIHP.js → chunk-V2J6AC6S.js} +19 -19
- package/dist/safe-bash/command-chunks/{chunk-ZZ27QNBY.js → chunk-V2PJO6JL.js} +29 -60
- package/dist/safe-bash/command-chunks/{chunk-QNETPOMH.js → chunk-VAMBWXDV.js} +72 -21
- package/dist/safe-bash/command-chunks/{chunk-KM2SMMXZ.js → chunk-VJQ5OWS5.js} +80 -2
- package/dist/safe-bash/command-chunks/{chunk-OCV5ZU35.js → chunk-VSTAHYCV.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-MI2WY75O.js → chunk-VWBNUCUP.js} +28 -11
- package/dist/safe-bash/command-chunks/{chunk-SL4LD25A.js → chunk-W4BC2YGQ.js} +15 -15
- package/dist/safe-bash/command-chunks/{chunk-Y3ZRIZL7.js → chunk-W5LH7D23.js} +26 -13
- package/dist/safe-bash/command-chunks/{chunk-62RG3GHF.js → chunk-W6L4Z2VX.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-RRAQII52.js → chunk-WEXEZRMH.js} +7 -7
- package/dist/safe-bash/command-chunks/chunk-WIUEM7HP.js +58 -0
- package/dist/safe-bash/command-chunks/{chunk-AQ3XOOPQ.js → chunk-WKS2PAZL.js} +2 -2
- package/dist/safe-bash/command-chunks/chunk-WOECEZAC.js +921 -0
- package/dist/safe-bash/command-chunks/{chunk-A2L3U7DW.js → chunk-WOO3YO2X.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-7YDJ7LDO.js → chunk-WOT2YXBT.js} +8 -223
- package/dist/safe-bash/command-chunks/{chunk-LT2YCGC5.js → chunk-WV3C6BRD.js} +14 -14
- package/dist/safe-bash/command-chunks/{chunk-PRO7JOIH.js → chunk-X3EDCCXU.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-WMBELKPP.js → chunk-XE75H5ZZ.js} +15 -15
- package/dist/safe-bash/command-chunks/{chunk-SHLT5R64.js → chunk-XMNPE6RN.js} +11 -11
- package/dist/safe-bash/command-chunks/{chunk-ISFGPCED.js → chunk-XNVL6AOV.js} +16 -16
- package/dist/safe-bash/command-chunks/{chunk-OBIXFO25.js → chunk-XPUYA7YU.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-5KZMR6AJ.js → chunk-XXUMECE4.js} +22 -20
- package/dist/safe-bash/command-chunks/{chunk-OAM2SUUI.js → chunk-YB5TNDY6.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-KLAC2MIZ.js → chunk-YJMS5Q4Y.js} +12 -12
- package/dist/safe-bash/command-chunks/{chunk-FLSXHLJG.js → chunk-YJTP4ROI.js} +15 -15
- package/dist/safe-bash/command-chunks/{chunk-7ITPO2V6.js → chunk-YNFQ5AXM.js} +80 -45
- package/dist/safe-bash/command-chunks/{chunk-7PYDVQPB.js → chunk-YWP62BAZ.js} +2 -2
- package/dist/safe-bash/command-chunks/chunk-YXIJOYT6.js +416 -0
- package/dist/safe-bash/command-chunks/{chunk-NQL3WNFI.js → chunk-YYRVGXJH.js} +44 -5
- package/dist/safe-bash/command-chunks/{chunk-35DU6I2M.js → chunk-Z7UPCDTU.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-O2XP6HQN.js → chunk-ZBGP6XEG.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-VWRHPDCD.js → chunk-ZIDESNHW.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-VVV45NLY.js → chunk-ZJUU5IAS.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-3ZWFE4CK.js → chunk-ZLMCWAAU.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-7OCTMVYJ.js → chunk-ZNABMTV3.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-QOKFSYD5.js → chunk-ZODGWV3Y.js} +11 -11
- package/dist/safe-bash/command-chunks/{chunk-DIRK47GT.js → chunk-ZPBL7TYJ.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-5MNQTHED.js → chunk-ZQ4NQ24M.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-4IDV763L.js → chunk-ZS4J5B6Y.js} +2 -2
- package/dist/safe-bash/command-chunks/chunk-ZTW2E5OT.js +1016 -0
- package/dist/safe-bash/command-chunks/{chunk-NKK76B4V.js → chunk-ZUOID3FA.js} +14 -14
- package/dist/safe-bash/command-chunks/chunk-ZWGERYLT.js +192 -0
- package/dist/safe-bash/command-chunks/{chunk-F2NF6FHV.js → chunk-ZXIOTUXC.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-LFSWLJPR.js → chunk-ZZ6EIACJ.js} +250 -41
- package/dist/safe-bash/command-chunks/{chunk-XMRQ6UP2.js → chunk-ZZO3GYEZ.js} +1 -11
- package/dist/safe-bash/command-chunks/{command-engine-2QXVRRH3.js → command-engine-B6X6WAMX.js} +381 -114
- package/dist/safe-bash/command-chunks/{engine-T4GP6QOK-ECFKMR5V.js → engine-UPLVIV72-IGXUDNO5.js} +1 -1
- package/dist/safe-bash/command-chunks/model-store-RGLCVIML.js +54 -0
- package/dist/safe-bash/command-chunks/paradox-BHPRIGXX-RQN37FHB.js +370 -0
- package/dist/safe-bash/command-chunks/prompt-tool-debug-ERJKK3XZ.js +171 -0
- package/dist/safe-bash/commands/alias/index.js +1 -1
- package/dist/safe-bash/commands/apply-patch/index.js +1 -1
- package/dist/safe-bash/commands/archive/create.js +1 -1
- package/dist/safe-bash/commands/archive/extract.js +1 -1
- package/dist/safe-bash/commands/archive/format.js +1 -1
- package/dist/safe-bash/commands/archive/index.js +1 -1
- package/dist/safe-bash/commands/archive/internal.js +1 -1
- package/dist/safe-bash/commands/archive/listing.js +1 -1
- package/dist/safe-bash/commands/archive/modes.js +1 -1
- package/dist/safe-bash/commands/archive/options.js +1 -1
- package/dist/safe-bash/commands/archive/stream.js +1 -1
- package/dist/safe-bash/commands/archive/transform.js +1 -1
- package/dist/safe-bash/commands/archive/unzip/safety.js +1 -1
- package/dist/safe-bash/commands/archive/unzip.js +1 -1
- package/dist/safe-bash/commands/archive/zip/aes.js +1 -1
- package/dist/safe-bash/commands/archive/zip/comments.js +1 -1
- package/dist/safe-bash/commands/archive/zip/crc.js +1 -1
- package/dist/safe-bash/commands/archive/zip/crypto.js +1 -1
- package/dist/safe-bash/commands/archive/zip/dates.js +1 -1
- package/dist/safe-bash/commands/archive/zip/environment.js +1 -1
- package/dist/safe-bash/commands/archive/zip/grow.js +1 -1
- package/dist/safe-bash/commands/archive/zip/help.js +1 -1
- package/dist/safe-bash/commands/archive/zip/line-endings.js +1 -1
- package/dist/safe-bash/commands/archive/zip/log.js +1 -1
- package/dist/safe-bash/commands/archive/zip/lzma.js +1 -1
- package/dist/safe-bash/commands/archive/zip/move.js +1 -1
- package/dist/safe-bash/commands/archive/zip/names.js +1 -1
- package/dist/safe-bash/commands/archive/zip/options.js +1 -1
- package/dist/safe-bash/commands/archive/zip/repair.js +1 -1
- package/dist/safe-bash/commands/archive/zip/safety.js +1 -1
- package/dist/safe-bash/commands/archive/zip/sfx.js +1 -1
- package/dist/safe-bash/commands/archive/zip/test-command.js +1 -1
- package/dist/safe-bash/commands/archive/zip/volumes.js +1 -1
- package/dist/safe-bash/commands/archive/zip/zip64.js +1 -1
- package/dist/safe-bash/commands/archive/zip-format.js +1 -1
- package/dist/safe-bash/commands/archive/zip.js +1 -1
- package/dist/safe-bash/commands/ast-grep/index.js +1 -1
- package/dist/safe-bash/commands/audio/index.browser.js +2 -8
- package/dist/safe-bash/commands/audio/index.js +1 -1
- package/dist/safe-bash/commands/awk/index.js +1 -1
- package/dist/safe-bash/commands/base32/index.js +1 -1
- package/dist/safe-bash/commands/base64/index.js +1 -1
- package/dist/safe-bash/commands/bc/index.browser.js +1 -1
- package/dist/safe-bash/commands/bc/index.js +1 -1
- package/dist/safe-bash/commands/bytes/checksums/sm3.js +1 -1
- package/dist/safe-bash/commands/bytes/compression/bounded-codec.js +1 -1
- package/dist/safe-bash/commands/bytes/compression/codec-loader.js +1 -1
- package/dist/safe-bash/commands/bytes/compression/codec.js +1 -1
- package/dist/safe-bash/commands/bytes/compression/errors.js +1 -1
- package/dist/safe-bash/commands/bytes/compression/file-operation.js +1 -1
- package/dist/safe-bash/commands/bytes/compression/files.js +1 -1
- package/dist/safe-bash/commands/bytes/compression/gunzip.js +1 -1
- package/dist/safe-bash/commands/bytes/compression/stream.js +1 -1
- package/dist/safe-bash/commands/bytes/compression/xz-list.js +1 -1
- package/dist/safe-bash/commands/bytes/compression/zstd-decode.js +1 -1
- package/dist/safe-bash/commands/bytes/encoding/base.js +1 -1
- package/dist/safe-bash/commands/bytes/encoding/shared.js +1 -1
- package/dist/safe-bash/commands/bytes/input-budget.js +1 -1
- package/dist/safe-bash/commands/bzip2/index.js +1 -1
- package/dist/safe-bash/commands/cal/index.js +1 -1
- package/dist/safe-bash/commands/caller/index.js +1 -1
- package/dist/safe-bash/commands/canonicalize-existing-parent.js +1 -1
- package/dist/safe-bash/commands/chmod/index.js +1 -1
- package/dist/safe-bash/commands/column/index.js +1 -1
- package/dist/safe-bash/commands/comm/index.js +1 -1
- package/dist/safe-bash/commands/copy-backup.js +1 -1
- package/dist/safe-bash/commands/copy-preserve.js +1 -1
- package/dist/safe-bash/commands/copy-source.js +1 -1
- package/dist/safe-bash/commands/cp/index.js +1 -1
- package/dist/safe-bash/commands/csplit/index.js +1 -1
- package/dist/safe-bash/commands/csvcut/index.js +1 -1
- package/dist/safe-bash/commands/csvgrep/index.js +1 -1
- package/dist/safe-bash/commands/csvkit/index.js +1 -1
- package/dist/safe-bash/commands/curl/index.js +1 -1
- package/dist/safe-bash/commands/date/index.js +1 -1
- package/dist/safe-bash/commands/df/index.js +1 -1
- package/dist/safe-bash/commands/diff/index.js +1 -1
- package/dist/safe-bash/commands/diff-patch/diff-format.js +1 -1
- package/dist/safe-bash/commands/diff-patch/diff-options.js +1 -1
- package/dist/safe-bash/commands/diff-patch/diff-output.js +1 -1
- package/dist/safe-bash/commands/diff-patch/diff.js +1 -1
- package/dist/safe-bash/commands/diff-patch/index.js +2 -2
- package/dist/safe-bash/commands/diff-patch/patch-envelope.js +1 -1
- package/dist/safe-bash/commands/diff-patch/patch-formats.js +1 -1
- package/dist/safe-bash/commands/diff-patch/patch-gnu-paths.js +1 -1
- package/dist/safe-bash/commands/diff-patch/patch-gnu-reject.js +1 -1
- package/dist/safe-bash/commands/diff-patch/patch-path.js +1 -1
- package/dist/safe-bash/commands/diff-patch/patch-publication.js +1 -1
- package/dist/safe-bash/commands/diff-patch/patch.js +1 -1
- package/dist/safe-bash/commands/diff-patch/shared.js +1 -1
- package/dist/safe-bash/commands/diff-patch/unified.js +1 -1
- package/dist/safe-bash/commands/diff3/index.js +1 -1
- package/dist/safe-bash/commands/diffpdf/index.js +1 -1
- package/dist/safe-bash/commands/directory-admission.js +1 -1
- package/dist/safe-bash/commands/docx/index.js +1 -1
- package/dist/safe-bash/commands/docx/io.js +1 -1
- package/dist/safe-bash/commands/dos2unix/index.js +1 -1
- package/dist/safe-bash/commands/dot/index.js +1 -1
- package/dist/safe-bash/commands/du/index.js +1 -1
- package/dist/safe-bash/commands/egrep/index.js +1 -1
- package/dist/safe-bash/commands/env/index.js +1 -1
- package/dist/safe-bash/commands/env-split.js +1 -1
- package/dist/safe-bash/commands/exiftool/index.js +1 -1
- package/dist/safe-bash/commands/expand/index.js +1 -1
- package/dist/safe-bash/commands/expr/index.js +1 -1
- package/dist/safe-bash/commands/factor/index.js +1 -1
- package/dist/safe-bash/commands/fd/index.js +1 -1
- package/dist/safe-bash/commands/ffmpeg/index.js +1 -1
- package/dist/safe-bash/commands/ffprobe/index.js +1 -1
- package/dist/safe-bash/commands/fgrep/index.js +1 -1
- package/dist/safe-bash/commands/file/index.js +1 -1
- package/dist/safe-bash/commands/filesystem-requirements.js +1 -1
- package/dist/safe-bash/commands/find/index.js +1 -1
- package/dist/safe-bash/commands/find-format.js +1 -1
- package/dist/safe-bash/commands/find.js +1 -1
- package/dist/safe-bash/commands/fmt/index.js +1 -1
- package/dist/safe-bash/commands/fold/index.js +1 -1
- package/dist/safe-bash/commands/getconf/index.js +1 -1
- package/dist/safe-bash/commands/getopt/index.js +1 -1
- package/dist/safe-bash/commands/gnu-information.js +1 -1
- package/dist/safe-bash/commands/gpg/index.js +1 -1
- package/dist/safe-bash/commands/graphviz/index.js +3 -3
- package/dist/safe-bash/commands/grep/index.js +1 -1
- package/dist/safe-bash/commands/grep-aliases/aliases.js +1 -1
- package/dist/safe-bash/commands/grep.js +1 -1
- package/dist/safe-bash/commands/gzip/index.js +1 -1
- package/dist/safe-bash/commands/hexdump/index.js +1 -1
- package/dist/safe-bash/commands/hostname/index.js +1 -1
- package/dist/safe-bash/commands/html-to-markdown/index.js +1 -1
- package/dist/safe-bash/commands/htmlq/index.js +1 -1
- package/dist/safe-bash/commands/iconv/index.js +1 -1
- package/dist/safe-bash/commands/id/index.js +1 -1
- package/dist/safe-bash/commands/imagemagick/index.js +1 -1
- package/dist/safe-bash/commands/internal.js +1 -1
- package/dist/safe-bash/commands/join/index.js +1 -1
- package/dist/safe-bash/commands/jq/index.js +1 -1
- package/dist/safe-bash/commands/less/index.js +1 -1
- package/dist/safe-bash/commands/line-endings/index.js +1 -1
- package/dist/safe-bash/commands/llm/collections.js +1 -1
- package/dist/safe-bash/commands/llm/command.js +1 -1
- package/dist/safe-bash/commands/llm/elevenlabs-stream.js +1 -1
- package/dist/safe-bash/commands/llm/elevenlabs.js +1 -1
- package/dist/safe-bash/commands/llm/index.browser.js +21 -1
- package/dist/safe-bash/commands/llm/index.js +1 -1
- package/dist/safe-bash/commands/llm/mime.js +1 -1
- package/dist/safe-bash/commands/llm/openai-http.js +1 -1
- package/dist/safe-bash/commands/llm/openai-sse.js +1 -1
- package/dist/safe-bash/commands/llm/openai.js +1 -1
- package/dist/safe-bash/commands/llm/providers/elevenlabs.js +1 -1
- package/dist/safe-bash/commands/llm/providers/index.js +1 -1
- package/dist/safe-bash/commands/llm/providers/openai.js +1 -1
- package/dist/safe-bash/commands/llm/providers/shared.js +1 -1
- package/dist/safe-bash/commands/llm/service.js +1 -1
- package/dist/safe-bash/commands/locale/index.js +1 -1
- package/dist/safe-bash/commands/md5sum/index.js +1 -1
- package/dist/safe-bash/commands/mdq/index.js +1 -1
- package/dist/safe-bash/commands/media/index.js +1 -1
- package/dist/safe-bash/commands/media/plugin.js +1 -1
- package/dist/safe-bash/commands/media/remote.js +1 -1
- package/dist/safe-bash/commands/media/settings.js +1 -1
- package/dist/safe-bash/commands/metadata/chmod.js +1 -1
- package/dist/safe-bash/commands/metadata/internal.js +1 -1
- package/dist/safe-bash/commands/metadata/mktemp.js +1 -1
- package/dist/safe-bash/commands/metadata/stat.js +1 -1
- package/dist/safe-bash/commands/mktemp/index.js +1 -1
- package/dist/safe-bash/commands/mmdc/index.js +1 -1
- package/dist/safe-bash/commands/more/index.js +1 -1
- package/dist/safe-bash/commands/neato/index.js +1 -1
- package/dist/safe-bash/commands/network/aggregate.js +1 -1
- package/dist/safe-bash/commands/network/args.js +1 -1
- package/dist/safe-bash/commands/network/authorizer.js +1 -1
- package/dist/safe-bash/commands/network/body.js +1 -1
- package/dist/safe-bash/commands/network/curl.js +1 -1
- package/dist/safe-bash/commands/network/deadline.js +1 -1
- package/dist/safe-bash/commands/network/decode.js +1 -1
- package/dist/safe-bash/commands/network/fetch-transport.js +1 -1
- package/dist/safe-bash/commands/network/form-content-type.js +1 -1
- package/dist/safe-bash/commands/network/form-headers.js +1 -1
- package/dist/safe-bash/commands/network/glob.js +1 -1
- package/dist/safe-bash/commands/network/input.js +1 -1
- package/dist/safe-bash/commands/network/output.js +1 -1
- package/dist/safe-bash/commands/network/platform-portable.js +1 -1
- package/dist/safe-bash/commands/network/platform.js +1 -1
- package/dist/safe-bash/commands/network/private-address.js +1 -1
- package/dist/safe-bash/commands/network/shared.js +1 -1
- package/dist/safe-bash/commands/network/types.js +1 -1
- package/dist/safe-bash/commands/network/url.js +1 -1
- package/dist/safe-bash/commands/network/wget.js +1 -1
- package/dist/safe-bash/commands/nl/index.js +1 -1
- package/dist/safe-bash/commands/node/browser.js +1 -1
- package/dist/safe-bash/commands/node/buffer.js +1 -1
- package/dist/safe-bash/commands/node/default-runtime.js +1 -1
- package/dist/safe-bash/commands/node/filesystem.js +1 -1
- package/dist/safe-bash/commands/node/path.js +1 -1
- package/dist/safe-bash/commands/node/safejs.js +1 -1
- package/dist/safe-bash/commands/node/source-maps.js +1 -1
- package/dist/safe-bash/commands/node/timers.js +1 -1
- package/dist/safe-bash/commands/node/types.js +1 -1
- package/dist/safe-bash/commands/node/worker-types.js +1 -1
- package/dist/safe-bash/commands/nproc/index.js +1 -1
- package/dist/safe-bash/commands/numfmt/index.js +1 -1
- package/dist/safe-bash/commands/od/index.js +1 -1
- package/dist/safe-bash/commands/op/index.js +23 -1
- package/dist/safe-bash/commands/openssl/index.js +1 -1
- package/dist/safe-bash/commands/pandoc/index.browser.js +1 -1
- package/dist/safe-bash/commands/pandoc/index.js +1 -1
- package/dist/safe-bash/commands/paste/index.js +1 -1
- package/dist/safe-bash/commands/patch/index.js +1 -1
- package/dist/safe-bash/commands/pathchk/index.js +1 -1
- package/dist/safe-bash/commands/pdfimages/index.js +1 -1
- package/dist/safe-bash/commands/pdfinfo/index.js +1 -1
- package/dist/safe-bash/commands/pdfseparate/index.js +1 -1
- package/dist/safe-bash/commands/pdftk/index.js +1 -1
- package/dist/safe-bash/commands/pdftoppm/index.js +1 -1
- package/dist/safe-bash/commands/pdftotext/index.js +1 -1
- package/dist/safe-bash/commands/pdfunite/index.js +1 -1
- package/dist/safe-bash/commands/playwright/index.js +1 -1
- package/dist/safe-bash/commands/portable-random.js +1 -1
- package/dist/safe-bash/commands/portable-requirements.js +1 -1
- package/dist/safe-bash/commands/pptx/index.js +1 -1
- package/dist/safe-bash/commands/pr/index.js +1 -1
- package/dist/safe-bash/commands/printenv/index.js +1 -1
- package/dist/safe-bash/commands/python/executor-pool.js +1 -1
- package/dist/safe-bash/commands/python/executor.browser.js +2 -1
- package/dist/safe-bash/commands/python/executor.js +1 -1
- package/dist/safe-bash/commands/python/host-capabilities.js +1 -1
- package/dist/safe-bash/commands/python/index.browser.js +3 -1
- package/dist/safe-bash/commands/python/index.js +1 -1
- package/dist/safe-bash/commands/python/jspi-assets.js +1 -1
- package/dist/safe-bash/commands/python/jspi-trampoline.js +1 -1
- package/dist/safe-bash/commands/python/jspi.js +1 -1
- package/dist/safe-bash/commands/python/llm-capability.js +1 -1
- package/dist/safe-bash/commands/python/llm-dependencies.js +1 -1
- package/dist/safe-bash/commands/python/llm-module.js +1 -1
- package/dist/safe-bash/commands/python/llm-provider.js +1 -1
- package/dist/safe-bash/commands/python/llm-reference-module.js +1 -1
- package/dist/safe-bash/commands/python/provisioning.js +1 -1
- package/dist/safe-bash/commands/python/shell-capability.js +1 -1
- package/dist/safe-bash/commands/python/shell-module.js +1 -1
- package/dist/safe-bash/commands/python/worker.js +1 -1
- package/dist/safe-bash/commands/qpdf/index.js +1 -1
- package/dist/safe-bash/commands/qrencode/index.js +1 -1
- package/dist/safe-bash/commands/readlink/index.js +1 -1
- package/dist/safe-bash/commands/readlink-missing.js +1 -1
- package/dist/safe-bash/commands/realpath/index.js +1 -1
- package/dist/safe-bash/commands/record-buffer.js +1 -1
- package/dist/safe-bash/commands/regex-execution/ascii.js +1 -1
- package/dist/safe-bash/commands/regex-execution/bounded-glob.js +1 -1
- package/dist/safe-bash/commands/regex-execution/bounded-provider.js +1 -1
- package/dist/safe-bash/commands/regex-execution/ere/errors.js +1 -1
- package/dist/safe-bash/commands/regex-execution/ere/limits.js +1 -1
- package/dist/safe-bash/commands/regex-execution/ere/matcher.js +1 -1
- package/dist/safe-bash/commands/regex-execution/ere/syntax.js +1 -1
- package/dist/safe-bash/commands/regex-execution/portable.js +1 -1
- package/dist/safe-bash/commands/regex-execution/protocol.js +1 -1
- package/dist/safe-bash/commands/regex-execution/utf8.js +1 -1
- package/dist/safe-bash/commands/rev/index.js +1 -1
- package/dist/safe-bash/commands/rg/index.js +1 -1
- package/dist/safe-bash/commands/rgrep/index.js +1 -1
- package/dist/safe-bash/commands/rsvg-convert/index.js +1 -1
- package/dist/safe-bash/commands/safejs/io.js +1 -1
- package/dist/safe-bash/commands/safejs/options.js +1 -1
- package/dist/safe-bash/commands/safejs/render.js +1 -1
- package/dist/safe-bash/commands/safejs/runtime.js +1 -1
- package/dist/safe-bash/commands/safejs/types.js +1 -1
- package/dist/safe-bash/commands/search/ergonomic-regex.js +1 -1
- package/dist/safe-bash/commands/search/file-types.js +1 -1
- package/dist/safe-bash/commands/search/glob.js +1 -1
- package/dist/safe-bash/commands/search/grep-files.js +1 -1
- package/dist/safe-bash/commands/search/grep.js +1 -1
- package/dist/safe-bash/commands/search/matcher.js +1 -1
- package/dist/safe-bash/commands/search/options.js +1 -1
- package/dist/safe-bash/commands/search/output.js +1 -1
- package/dist/safe-bash/commands/search/requirements.js +1 -1
- package/dist/safe-bash/commands/search/rg-command.js +1 -1
- package/dist/safe-bash/commands/search/shared.js +1 -1
- package/dist/safe-bash/commands/search/walk.js +1 -1
- package/dist/safe-bash/commands/sed/index.js +1 -1
- package/dist/safe-bash/commands/seq/index.js +1 -1
- package/dist/safe-bash/commands/sha1sum/index.js +1 -1
- package/dist/safe-bash/commands/sha256sum/index.js +1 -1
- package/dist/safe-bash/commands/sha512sum/index.js +1 -1
- package/dist/safe-bash/commands/sips/index.js +1 -1
- package/dist/safe-bash/commands/sleep/index.js +1 -1
- package/dist/safe-bash/commands/soffice/index.js +1 -1
- package/dist/safe-bash/commands/sort/index.js +1 -1
- package/dist/safe-bash/commands/sort-admission.js +1 -1
- package/dist/safe-bash/commands/sox/index.js +1 -1
- package/dist/safe-bash/commands/soxi/index.js +1 -1
- package/dist/safe-bash/commands/split/index.js +1 -1
- package/dist/safe-bash/commands/sponge/index.js +1 -1
- package/dist/safe-bash/commands/sqlite3/index.js +1 -1
- package/dist/safe-bash/commands/ssh/index.js +1 -1
- package/dist/safe-bash/commands/stat/index.js +1 -1
- package/dist/safe-bash/commands/stream-format/shared.js +1 -1
- package/dist/safe-bash/commands/stream-inspection/numeric-options.js +1 -1
- package/dist/safe-bash/commands/stream-inspection/shared.js +1 -1
- package/dist/safe-bash/commands/stream-inspection/strings-object.js +1 -1
- package/dist/safe-bash/commands/strings/index.js +1 -1
- package/dist/safe-bash/commands/structured/bytes.js +1 -1
- package/dist/safe-bash/commands/structured/capture.js +1 -1
- package/dist/safe-bash/commands/structured/dates.js +1 -1
- package/dist/safe-bash/commands/structured/delpaths.js +1 -1
- package/dist/safe-bash/commands/structured/formats.js +1 -1
- package/dist/safe-bash/commands/structured/indices.js +1 -1
- package/dist/safe-bash/commands/structured/input.js +1 -1
- package/dist/safe-bash/commands/structured/interpreter.js +1 -1
- package/dist/safe-bash/commands/structured/jq.js +1 -1
- package/dist/safe-bash/commands/structured/limits.js +1 -1
- package/dist/safe-bash/commands/structured/numbers.js +1 -1
- package/dist/safe-bash/commands/structured/parser.js +1 -1
- package/dist/safe-bash/commands/structured/query-core.js +1 -1
- package/dist/safe-bash/commands/structured/recurse.js +1 -1
- package/dist/safe-bash/commands/structured/regex.js +1 -1
- package/dist/safe-bash/commands/structured/split.js +1 -1
- package/dist/safe-bash/commands/structured/splits.js +1 -1
- package/dist/safe-bash/commands/structured/values.js +1 -1
- package/dist/safe-bash/commands/svgo/index.js +1 -1
- package/dist/safe-bash/commands/table-text/internal.js +1 -1
- package/dist/safe-bash/commands/tac/index.js +1 -1
- package/dist/safe-bash/commands/tar/index.js +1 -1
- package/dist/safe-bash/commands/text-programs/awk-inspection.js +1 -1
- package/dist/safe-bash/commands/text-programs/awk-pipes.js +1 -1
- package/dist/safe-bash/commands/text-programs/awk-pretty.js +1 -1
- package/dist/safe-bash/commands/text-programs/awk-quote.js +1 -1
- package/dist/safe-bash/commands/text-programs/awk-reader.js +1 -1
- package/dist/safe-bash/commands/text-programs/awk-retention.js +1 -1
- package/dist/safe-bash/commands/text-programs/awk-runtime.js +1 -1
- package/dist/safe-bash/commands/text-programs/awk-syntax.js +1 -1
- package/dist/safe-bash/commands/text-programs/awk-values.js +1 -1
- package/dist/safe-bash/commands/text-programs/awk.js +1 -1
- package/dist/safe-bash/commands/text-programs/inplace.js +1 -1
- package/dist/safe-bash/commands/text-programs/regex.js +1 -1
- package/dist/safe-bash/commands/text-programs/replacement-buffer.js +1 -1
- package/dist/safe-bash/commands/text-programs/sed.js +1 -1
- package/dist/safe-bash/commands/text-programs/shared.js +1 -1
- package/dist/safe-bash/commands/time-env/calendar.js +1 -1
- package/dist/safe-bash/commands/time-env/format.js +1 -1
- package/dist/safe-bash/commands/time-env/shared.js +1 -1
- package/dist/safe-bash/commands/timeout/index.js +1 -1
- package/dist/safe-bash/commands/touch/index.js +1 -1
- package/dist/safe-bash/commands/touch-target.js +1 -1
- package/dist/safe-bash/commands/touch-times.js +1 -1
- package/dist/safe-bash/commands/tree/index.js +1 -1
- package/dist/safe-bash/commands/tsort/index.js +1 -1
- package/dist/safe-bash/commands/unalias/index.js +1 -1
- package/dist/safe-bash/commands/uname/index.js +1 -1
- package/dist/safe-bash/commands/unexpand/index.js +1 -1
- package/dist/safe-bash/commands/unix2dos/index.js +1 -1
- package/dist/safe-bash/commands/unrtf/index.js +1 -1
- package/dist/safe-bash/commands/unzip/index.js +1 -1
- package/dist/safe-bash/commands/wdiff/index.js +1 -1
- package/dist/safe-bash/commands/wget/index.js +1 -1
- package/dist/safe-bash/commands/which/index.js +1 -1
- package/dist/safe-bash/commands/whoami/index.js +1 -1
- package/dist/safe-bash/commands/wkhtmltopdf/index.js +1 -1
- package/dist/safe-bash/commands/xan/index.js +1 -1
- package/dist/safe-bash/commands/xml/index.js +1 -1
- package/dist/safe-bash/commands/xmllint/index.js +1 -1
- package/dist/safe-bash/commands/xq/index.js +1 -1
- package/dist/safe-bash/commands/xxd/index.js +1 -1
- package/dist/safe-bash/commands/xz/index.js +1 -1
- package/dist/safe-bash/commands/yq/index.js +1 -1
- package/dist/safe-bash/commands/zip/index.js +1 -1
- package/dist/safe-bash/commands/zstd/index.js +1 -1
- package/dist/safe-bash/core.browser.js +2 -2
- package/dist/safe-bash/full-core.browser.js +29 -7
- package/dist/safe-bash/integrations/safejs/filesystem.js +1 -1
- package/dist/safe-bash/integrations/safejs/shell.js +1 -1
- package/dist/safe-bash/integrations/safejs/values.js +1 -1
- package/dist/safe-bash/playwright/abilities.js +1 -1
- package/dist/safe-bash/playwright/ability-execution.js +1 -1
- package/dist/safe-bash/playwright/adapter.js +1 -1
- package/dist/safe-bash/playwright/builtins.js +1 -1
- package/dist/safe-bash/playwright/canonical-locator-parser.js +1 -1
- package/dist/safe-bash/playwright/capability-events.js +1 -1
- package/dist/safe-bash/playwright/capability-result.js +1 -1
- package/dist/safe-bash/playwright/catalog.js +1 -1
- package/dist/safe-bash/playwright/checkpoint.js +1 -1
- package/dist/safe-bash/playwright/command-budget.js +1 -1
- package/dist/safe-bash/playwright/command-reference.js +1 -1
- package/dist/safe-bash/playwright/config-ini.js +1 -1
- package/dist/safe-bash/playwright/config-json.js +1 -1
- package/dist/safe-bash/playwright/controller.js +1 -1
- package/dist/safe-bash/playwright/devices.js +1 -1
- package/dist/safe-bash/playwright/download-capabilities.js +1 -1
- package/dist/safe-bash/playwright/drop-capability.js +1 -1
- package/dist/safe-bash/playwright/find.js +1 -1
- package/dist/safe-bash/playwright/frame-snapshot.js +1 -1
- package/dist/safe-bash/playwright/generated-locator.js +1 -1
- package/dist/safe-bash/playwright/help-reference.js +1 -1
- package/dist/safe-bash/playwright/help.js +1 -1
- package/dist/safe-bash/playwright/highlight.js +1 -1
- package/dist/safe-bash/playwright/index.js +1 -1
- package/dist/safe-bash/playwright/invocation.js +1 -1
- package/dist/safe-bash/playwright/locator-selector.js +1 -1
- package/dist/safe-bash/playwright/modal-capabilities.js +1 -1
- package/dist/safe-bash/playwright/native-evaluation.js +1 -1
- package/dist/safe-bash/playwright/native-json-snapshot.js +1 -1
- package/dist/safe-bash/playwright/native-snapshot.js +1 -1
- package/dist/safe-bash/playwright/native-storage-realm.js +1 -1
- package/dist/safe-bash/playwright/native-storage-replacement.js +1 -1
- package/dist/safe-bash/playwright/native-storage-sources.generated.js +1 -1
- package/dist/safe-bash/playwright/native-storage-targets.js +1 -1
- package/dist/safe-bash/playwright/network-policy.js +1 -1
- package/dist/safe-bash/playwright/open-options.js +1 -1
- package/dist/safe-bash/playwright/private-target-transport.js +1 -1
- package/dist/safe-bash/playwright/profile.js +1 -1
- package/dist/safe-bash/playwright/recording-capabilities.js +1 -1
- package/dist/safe-bash/playwright/recovery.js +1 -1
- package/dist/safe-bash/playwright/resource-limit.js +1 -1
- package/dist/safe-bash/playwright/response.js +1 -1
- package/dist/safe-bash/playwright/route-capabilities.js +1 -1
- package/dist/safe-bash/playwright/route-policy.js +1 -1
- package/dist/safe-bash/playwright/screenshot.js +1 -1
- package/dist/safe-bash/playwright/session-configuration.js +1 -1
- package/dist/safe-bash/playwright/session-runtime.js +1 -1
- package/dist/safe-bash/playwright/session-selection.js +1 -1
- package/dist/safe-bash/playwright/snapshot-reference-error.js +1 -1
- package/dist/safe-bash/playwright/snapshot.js +1 -1
- package/dist/safe-bash/playwright/standard-capabilities.js +1 -1
- package/dist/safe-bash/playwright/storage-capabilities.js +1 -1
- package/dist/safe-bash/playwright/storage-state.js +1 -1
- package/dist/safe-bash/playwright/target-screenshot.js +1 -1
- package/dist/safe-bash/playwright/targets.js +1 -1
- package/dist/safe-bash/playwright/tracing-capabilities.js +1 -1
- package/dist/safe-bash/playwright/webmcp-capabilities.js +1 -1
- package/dist/safe-bash/playwright/webmcp-params.js +1 -1
- package/dist/safe-bash/playwright/workspace-assets.js +1 -1
- package/dist/safe-bash/playwright/workspace.js +1 -1
- package/dist/safe-bash/plugins/index.browser.js +4 -4
- package/dist/safe-bash/registry-entry.browser.js +2 -2
- package/dist/safe-bash/search.browser.js +1 -1
- package/dist/safe-bash/shell/parser.js +2 -1
- package/dist/safe-bash/shell/pattern.js +1 -1
- package/dist/safe-bash/shell/string-operations.js +1 -1
- package/dist/safe-bash/shell-entry.browser.js +2 -2
- package/dist/safe-bash/ts-ast.js +1 -1
- package/dist/safe-bash-checksum-engine/index.js +1 -1
- package/dist/safe-bash-command-audio/index.js +2 -2
- package/dist/safe-bash-command-awk/awk-inspection.js +2 -2
- package/dist/safe-bash-command-awk/awk-runtime.js +2 -2
- package/dist/safe-bash-command-awk/awk-syntax.js +1 -1
- package/dist/safe-bash-command-awk/awk.js +6 -6
- package/dist/safe-bash-command-awk/index.js +6 -6
- package/dist/safe-bash-command-bc/index.js +13 -14
- package/dist/safe-bash-command-cal/index.js +25 -31
- package/dist/safe-bash-command-cp/index.js +3 -3
- package/dist/safe-bash-command-csvgrep/command.d.ts +1 -0
- package/dist/safe-bash-command-csvgrep/index.js +7 -0
- package/dist/safe-bash-command-diff/diff.js +2 -2
- package/dist/safe-bash-command-diff/index.js +2 -2
- package/dist/safe-bash-command-docx/sdk.js +1 -1
- package/dist/safe-bash-command-expr/bre-engine.js +1 -1
- 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/index.js +4 -3
- package/dist/safe-bash-command-ffmpeg/index.js +13 -2
- package/dist/safe-bash-command-ffprobe/index.js +2 -2
- package/dist/safe-bash-command-ffprobe/media.js +2 -2
- package/dist/safe-bash-command-getconf/index.js +11 -4
- package/dist/safe-bash-command-git/git_rust.wasm +0 -0
- package/dist/safe-bash-command-git/index.js +96 -14
- package/dist/safe-bash-command-html-to-markdown/index.js +1 -1
- package/dist/safe-bash-command-html-to-markdown/stored-text.d.ts +2 -0
- package/dist/safe-bash-command-html-to-markdown/stored-text.js +1 -1
- package/dist/safe-bash-command-imagemagick/index.js +18 -4
- 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-llm/collections.js +48 -192
- package/dist/safe-bash-command-llm/command.js +14 -6
- package/dist/safe-bash-command-llm/elevenlabs.js +2 -2
- package/dist/safe-bash-command-llm/fragment-loaders.d.ts +29 -0
- package/dist/safe-bash-command-llm/fragments.d.ts +24 -0
- package/dist/safe-bash-command-llm/import-json-document.d.ts +5 -2
- package/dist/safe-bash-command-llm/index.d.ts +7 -0
- package/dist/safe-bash-command-llm/index.js +47 -17
- package/dist/safe-bash-command-llm/input-budget.d.ts +2 -0
- package/dist/safe-bash-command-llm/openai-sse.d.ts +1 -1
- package/dist/safe-bash-command-llm/openai-sse.js +4 -1
- package/dist/safe-bash-command-llm/openai.js +11 -7
- package/dist/safe-bash-command-llm/providers/elevenlabs.js +2 -2
- package/dist/safe-bash-command-llm/providers/index.js +16 -10
- package/dist/safe-bash-command-llm/providers/openai.js +11 -7
- package/dist/safe-bash-command-llm/providers/shared.d.ts +2 -0
- package/dist/safe-bash-command-llm/providers/shared.js +1 -1
- package/dist/safe-bash-command-llm/retained-spool.d.ts +4 -0
- package/dist/safe-bash-command-llm/service.d.ts +3 -1
- package/dist/safe-bash-command-llm/service.js +5 -2
- package/dist/safe-bash-command-llm/tool-chain.d.ts +22 -0
- package/dist/safe-bash-command-llm/tool-execution.d.ts +55 -0
- package/dist/safe-bash-command-llm/tool-registry.d.ts +43 -0
- package/dist/safe-bash-command-llm/types.d.ts +39 -11
- package/dist/safe-bash-command-llm/url-fragment-source.d.ts +6 -0
- package/dist/safe-bash-command-llm/url-source.d.ts +3 -1
- package/dist/safe-bash-command-mcp/index.browser.d.ts +1 -0
- package/dist/safe-bash-command-mcp/index.browser.js +4 -4
- package/dist/safe-bash-command-mcp/index.d.ts +1 -0
- package/dist/safe-bash-command-mcp/index.js +28 -7
- package/dist/safe-bash-command-mdq/index.js +10 -3
- package/dist/safe-bash-command-node/commands/node/browser.js +6 -6
- package/dist/safe-bash-command-node/commands/node/default-runtime.js +6 -6
- package/dist/safe-bash-command-node/commands/node/filesystem.js +2 -2
- package/dist/safe-bash-command-node/commands/node/quickjs.js +1 -1
- package/dist/safe-bash-command-node/commands/node/safejs.js +6 -6
- package/dist/safe-bash-command-node/commands/node/timers.js +2 -2
- package/dist/safe-bash-command-pandoc/command.js +9 -9
- package/dist/safe-bash-command-pandoc/index.js +57 -57
- package/dist/safe-bash-command-pandoc/lua-filters.js +1 -1
- package/dist/safe-bash-command-patch/index.js +6 -6
- package/dist/safe-bash-command-patch/patch-formats.js +2 -2
- package/dist/safe-bash-command-patch/patch-publication.js +1 -1
- package/dist/safe-bash-command-patch/patch.js +5 -5
- package/dist/safe-bash-command-patch/unified.js +1 -1
- package/dist/safe-bash-command-pdfinfo/index.js +2 -2
- package/dist/safe-bash-command-pdftk/index.js +550 -137
- package/dist/safe-bash-command-pdftoppm/index.js +89 -124
- package/dist/safe-bash-command-pdftotext/index.d.ts +1 -1
- package/dist/safe-bash-command-pdftotext/index.js +554 -381
- package/dist/safe-bash-command-playwright-cli/index.js +26 -25
- package/dist/safe-bash-command-playwright-cli/playwright/abilities.js +7 -7
- package/dist/safe-bash-command-playwright-cli/playwright/adapter.js +3 -3
- package/dist/safe-bash-command-playwright-cli/playwright/controller.js +16 -15
- package/dist/safe-bash-command-playwright-cli/playwright/index.js +26 -25
- package/dist/safe-bash-command-playwright-cli/playwright/native-storage-replacement.js +2 -2
- package/dist/safe-bash-command-playwright-cli/playwright/open-options.js +2 -2
- package/dist/safe-bash-command-playwright-cli/playwright/profile.d.ts +1 -1
- package/dist/safe-bash-command-playwright-cli/playwright/profile.js +6 -5
- package/dist/safe-bash-command-playwright-cli/playwright/standard-capabilities.js +5 -5
- package/dist/safe-bash-command-playwright-cli/playwright/storage-capabilities.js +3 -3
- package/dist/safe-bash-command-pptx/engine.js +2 -2
- package/dist/safe-bash-command-python/executor.d.ts +1 -0
- package/dist/safe-bash-command-python/executor.js +24 -22
- package/dist/safe-bash-command-python/index.js +24 -22
- package/dist/safe-bash-command-python/jspi.js +2 -2
- package/dist/safe-bash-command-python/llm-capability.js +1 -1
- package/dist/safe-bash-command-python/llm-functions-loader.d.ts +5 -0
- package/dist/safe-bash-command-python/llm-packages.js +51 -2
- package/dist/safe-bash-command-python/llm-provider.js +1 -1
- package/dist/safe-bash-command-rg/glob.d.ts +6 -0
- package/dist/safe-bash-command-rg/glob.js +2 -2
- package/dist/safe-bash-command-rg/index.js +8 -8
- package/dist/safe-bash-command-rg/matcher.d.ts +2 -0
- package/dist/safe-bash-command-rg/matcher.js +2 -2
- package/dist/safe-bash-command-rg/options.d.ts +2 -0
- package/dist/safe-bash-command-rg/options.js +1 -1
- package/dist/safe-bash-command-rg/output.js +3 -3
- package/dist/safe-bash-command-rg/replacement.js +2 -2
- package/dist/safe-bash-command-rg/rg-command.js +8 -8
- package/dist/safe-bash-command-rg/shared.d.ts +0 -2
- package/dist/safe-bash-command-rg/shared.js +2 -4
- package/dist/safe-bash-command-rg/walk.js +4 -4
- package/dist/safe-bash-command-safejs/index.js +5 -5
- package/dist/safe-bash-command-safejs/runtime.js +3 -3
- package/dist/safe-bash-command-soffice/index.js +2 -2
- package/dist/safe-bash-command-sqlite3/engine.d.ts +15 -0
- package/dist/safe-bash-command-sqlite3/index.js +310 -15
- package/dist/safe-bash-command-ssconvert/index.js +13 -13
- 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 +6 -6
- package/dist/safe-bash-command-tar/modes.js +4 -4
- package/dist/safe-bash-command-unzip/index.js +5 -5
- package/dist/safe-bash-command-unzip/unzip.js +2 -2
- package/dist/safe-bash-command-yq/parser.js +1 -1
- package/dist/safe-bash-command-yq/query.js +1 -1
- package/dist/safe-bash-contracts/escaping.js +2 -2
- package/dist/safe-bash-contracts/index.js +15 -15
- package/dist/safe-bash-csv-engine/index.js +5 -3
- package/dist/safe-bash-csv-engine/python-codepages.js +2 -1
- package/dist/safe-bash-csv-engine/python-file-codepages.d.ts +1 -0
- package/dist/safe-bash-csv-engine/python-file-codepages.js +8 -0
- package/dist/safe-bash-csv-engine/python-utf16.js +3 -2
- package/dist/safe-bash-csv-engine/text-decoder.js +5 -3
- package/dist/safe-bash-docx-engine/ancillary-resources.js +10 -10
- package/dist/safe-bash-docx-engine/batch-operations.js +68 -68
- package/dist/safe-bash-docx-engine/batch-result-schema.js +80 -80
- package/dist/safe-bash-docx-engine/batch.js +79 -79
- package/dist/safe-bash-docx-engine/bookmarks.js +18 -18
- package/dist/safe-bash-docx-engine/charts.js +11 -11
- package/dist/safe-bash-docx-engine/command-option-rules.js +5 -5
- package/dist/safe-bash-docx-engine/command-properties.js +3 -3
- package/dist/safe-bash-docx-engine/comments.js +27 -27
- package/dist/safe-bash-docx-engine/control-bindings.js +22 -22
- package/dist/safe-bash-docx-engine/control-repeat.js +21 -21
- package/dist/safe-bash-docx-engine/controls.js +19 -19
- package/dist/safe-bash-docx-engine/create.js +10 -10
- package/dist/safe-bash-docx-engine/diagrams.js +11 -11
- package/dist/safe-bash-docx-engine/diff.js +13 -13
- package/dist/safe-bash-docx-engine/document-properties.js +17 -17
- package/dist/safe-bash-docx-engine/equations.js +18 -18
- package/dist/safe-bash-docx-engine/extract.js +14 -14
- package/dist/safe-bash-docx-engine/fields.js +23 -23
- package/dist/safe-bash-docx-engine/font-inventory.js +18 -18
- package/dist/safe-bash-docx-engine/font-resources.js +5 -5
- package/dist/safe-bash-docx-engine/image-batch-operations.js +13 -13
- package/dist/safe-bash-docx-engine/image-insertion.js +22 -22
- package/dist/safe-bash-docx-engine/image-layout.js +20 -20
- package/dist/safe-bash-docx-engine/image-replacement.js +23 -23
- package/dist/safe-bash-docx-engine/images.js +20 -20
- package/dist/safe-bash-docx-engine/index.js +138 -138
- package/dist/safe-bash-docx-engine/inspection.js +21 -21
- package/dist/safe-bash-docx-engine/invocation.js +8 -8
- package/dist/safe-bash-docx-engine/io.js +8 -8
- package/dist/safe-bash-docx-engine/links.js +21 -21
- package/dist/safe-bash-docx-engine/lists.js +20 -20
- package/dist/safe-bash-docx-engine/locations.js +15 -15
- package/dist/safe-bash-docx-engine/notes.js +22 -22
- package/dist/safe-bash-docx-engine/objects.js +20 -20
- package/dist/safe-bash-docx-engine/operation-json-schema.js +3 -3
- package/dist/safe-bash-docx-engine/operation-schema.js +2 -2
- package/dist/safe-bash-docx-engine/pack.js +14 -14
- package/dist/safe-bash-docx-engine/package-view-batch-operations.js +21 -21
- package/dist/safe-bash-docx-engine/pandoc-adapter.js +29 -29
- package/dist/safe-bash-docx-engine/paragraph-edit.js +26 -26
- package/dist/safe-bash-docx-engine/part-provider.js +3 -3
- package/dist/safe-bash-docx-engine/property-values.js +3 -3
- package/dist/safe-bash-docx-engine/publication.js +8 -8
- package/dist/safe-bash-docx-engine/removal.js +21 -21
- package/dist/safe-bash-docx-engine/revision-decisions.js +23 -23
- package/dist/safe-bash-docx-engine/revision-edit.js +20 -20
- package/dist/safe-bash-docx-engine/revisions.js +18 -18
- package/dist/safe-bash-docx-engine/run-format.js +20 -20
- package/dist/safe-bash-docx-engine/sanitize.js +35 -35
- package/dist/safe-bash-docx-engine/sections.js +19 -19
- package/dist/safe-bash-docx-engine/settings.js +12 -12
- package/dist/safe-bash-docx-engine/shape-edit.js +22 -22
- package/dist/safe-bash-docx-engine/signatures.js +16 -16
- package/dist/safe-bash-docx-engine/stories.js +22 -22
- package/dist/safe-bash-docx-engine/structure-model-batch-operations.js +38 -38
- package/dist/safe-bash-docx-engine/style-model-batch-operations.js +26 -26
- package/dist/safe-bash-docx-engine/style-model-result-schema.js +44 -44
- package/dist/safe-bash-docx-engine/styles.js +18 -18
- package/dist/safe-bash-docx-engine/table-edit.js +28 -28
- package/dist/safe-bash-docx-engine/table-read.js +16 -16
- package/dist/safe-bash-docx-engine/template.js +22 -22
- package/dist/safe-bash-docx-engine/text-replace.js +20 -20
- package/dist/safe-bash-docx-engine/text-resource-read.js +16 -16
- package/dist/safe-bash-docx-engine/text.js +16 -16
- package/dist/safe-bash-docx-engine/validation.js +6 -6
- package/dist/safe-bash-docx-engine/xml-parts.js +23 -23
- package/dist/safe-bash-io-engine/commands/text-programs/shared.js +4 -4
- package/dist/safe-bash-line-ending-engine/command.js +4 -4
- package/dist/safe-bash-line-ending-engine/index.js +4 -4
- package/dist/safe-bash-markdown-engine/commonmark-blocks.js +1 -1
- package/dist/safe-bash-markdown-engine/index.js +3 -3
- package/dist/safe-bash-network-engine/transfer.js +12 -12
- package/dist/safe-bash-pptx-engine/bytes.js +1 -1
- package/dist/safe-bash-pptx-engine/index.js +1 -1
- package/dist/safe-bash-presentation-engine/accessibility.js +33 -31
- package/dist/safe-bash-presentation-engine/animation-editing.js +17 -16
- package/dist/safe-bash-presentation-engine/animations.js +17 -16
- package/dist/safe-bash-presentation-engine/backgrounds.js +18 -17
- package/dist/safe-bash-presentation-engine/bytes.js +4 -4
- package/dist/safe-bash-presentation-engine/chart-editing.js +36 -34
- package/dist/safe-bash-presentation-engine/chart-object-operations.js +26 -25
- package/dist/safe-bash-presentation-engine/charts.js +33 -31
- package/dist/safe-bash-presentation-engine/command-placeholder.js +63 -60
- package/dist/safe-bash-presentation-engine/comments.js +18 -17
- package/dist/safe-bash-presentation-engine/connector-operations.js +34 -32
- package/dist/safe-bash-presentation-engine/connectors.js +31 -29
- package/dist/safe-bash-presentation-engine/content-types.js +5 -5
- package/dist/safe-bash-presentation-engine/creation.js +7 -7
- package/dist/safe-bash-presentation-engine/diff.js +40 -37
- package/dist/safe-bash-presentation-engine/drawing-format.js +21 -20
- package/dist/safe-bash-presentation-engine/drawing-operations.js +33 -31
- package/dist/safe-bash-presentation-engine/drawing-schema.js +22 -21
- package/dist/safe-bash-presentation-engine/equations.js +18 -17
- package/dist/safe-bash-presentation-engine/errors.js +3 -3
- package/dist/safe-bash-presentation-engine/fields.js +18 -17
- package/dist/safe-bash-presentation-engine/font-metrics.js +4 -4
- package/dist/safe-bash-presentation-engine/image-extraction.js +23 -21
- package/dist/safe-bash-presentation-engine/image-formatting.js +35 -33
- package/dist/safe-bash-presentation-engine/image-insertion.js +20 -19
- package/dist/safe-bash-presentation-engine/image-metadata.d.ts +7 -1
- package/dist/safe-bash-presentation-engine/image-metadata.js +5 -3
- package/dist/safe-bash-presentation-engine/image-replacement.js +24 -22
- package/dist/safe-bash-presentation-engine/image-value.js +6 -6
- package/dist/safe-bash-presentation-engine/images.d.ts +1 -0
- package/dist/safe-bash-presentation-engine/images.js +24 -20
- package/dist/safe-bash-presentation-engine/index.js +151 -146
- package/dist/safe-bash-presentation-engine/layouts.js +17 -16
- package/dist/safe-bash-presentation-engine/length.js +4 -4
- package/dist/safe-bash-presentation-engine/links.js +17 -16
- package/dist/safe-bash-presentation-engine/masters.js +16 -15
- package/dist/safe-bash-presentation-engine/media-editing.js +30 -25
- package/dist/safe-bash-presentation-engine/media-extraction.d.ts +4 -0
- package/dist/safe-bash-presentation-engine/media-extraction.js +33 -19
- package/dist/safe-bash-presentation-engine/media.d.ts +2 -0
- package/dist/safe-bash-presentation-engine/media.js +32 -18
- package/dist/safe-bash-presentation-engine/memberships.d.ts +1 -0
- package/dist/safe-bash-presentation-engine/memberships.js +25 -17
- package/dist/safe-bash-presentation-engine/notes.js +20 -18
- package/dist/safe-bash-presentation-engine/ole-enum.js +5 -5
- package/dist/safe-bash-presentation-engine/ole-insertion.js +22 -21
- package/dist/safe-bash-presentation-engine/opaque-objects.d.ts +4 -0
- package/dist/safe-bash-presentation-engine/opaque-objects.js +30 -12
- package/dist/safe-bash-presentation-engine/package-reader.js +6 -6
- package/dist/safe-bash-presentation-engine/package-tools.js +24 -20
- package/dist/safe-bash-presentation-engine/package-uri.js +4 -4
- package/dist/safe-bash-presentation-engine/package-writer.js +5 -5
- package/dist/safe-bash-presentation-engine/presentation-model.js +62 -59
- package/dist/safe-bash-presentation-engine/presentation-settings.d.ts +1 -0
- package/dist/safe-bash-presentation-engine/presentation-settings.js +25 -16
- package/dist/safe-bash-presentation-engine/properties.js +21 -18
- package/dist/safe-bash-presentation-engine/relationships.js +5 -5
- package/dist/safe-bash-presentation-engine/resource-limits.js +2 -2
- package/dist/safe-bash-presentation-engine/retained-extraction-output.d.ts +8 -4
- package/dist/safe-bash-presentation-engine/retained-fonts.d.ts +26 -0
- package/dist/safe-bash-presentation-engine/retained-image-metadata.d.ts +13 -0
- package/dist/safe-bash-presentation-engine/retained-inspection.js +16 -14
- package/dist/safe-bash-presentation-engine/retained-media-extraction.d.ts +21 -0
- package/dist/safe-bash-presentation-engine/retained-media.d.ts +54 -0
- package/dist/safe-bash-presentation-engine/retained-memberships.d.ts +25 -0
- package/dist/safe-bash-presentation-engine/retained-object-extraction.d.ts +22 -0
- package/dist/safe-bash-presentation-engine/retained-objects.d.ts +25 -0
- package/dist/safe-bash-presentation-engine/retained-package.js +6 -6
- package/dist/safe-bash-presentation-engine/retained-presentation-settings.d.ts +25 -0
- package/dist/safe-bash-presentation-engine/retained-shape-geometry.d.ts +20 -0
- package/dist/safe-bash-presentation-engine/retained-text.d.ts +24 -4
- package/dist/safe-bash-presentation-engine/retained-text.js +35 -31
- package/dist/safe-bash-presentation-engine/retained-transitions.d.ts +18 -0
- package/dist/safe-bash-presentation-engine/sanitize.js +22 -19
- package/dist/safe-bash-presentation-engine/selectors.js +11 -11
- package/dist/safe-bash-presentation-engine/shape-groups.js +33 -31
- package/dist/safe-bash-presentation-engine/shape-operations.js +32 -30
- package/dist/safe-bash-presentation-engine/shape-path-operations.js +34 -32
- package/dist/safe-bash-presentation-engine/shape-paths.js +17 -16
- package/dist/safe-bash-presentation-engine/shape-presets.js +4 -4
- package/dist/safe-bash-presentation-engine/shape-selection.js +33 -31
- package/dist/safe-bash-presentation-engine/shape-transforms.d.ts +6 -0
- package/dist/safe-bash-presentation-engine/shape-transforms.js +26 -20
- package/dist/safe-bash-presentation-engine/shapes.js +28 -27
- package/dist/safe-bash-presentation-engine/slide-copy.js +21 -17
- package/dist/safe-bash-presentation-engine/slide-import.js +19 -18
- package/dist/safe-bash-presentation-engine/slide-merge-split.js +21 -20
- package/dist/safe-bash-presentation-engine/slide-model.js +46 -44
- package/dist/safe-bash-presentation-engine/slide-removal.js +19 -18
- package/dist/safe-bash-presentation-engine/slide-transfer-budget.js +10 -10
- package/dist/safe-bash-presentation-engine/slides.js +21 -19
- package/dist/safe-bash-presentation-engine/table-operations.js +35 -33
- package/dist/safe-bash-presentation-engine/table-spans.js +34 -32
- package/dist/safe-bash-presentation-engine/tables.js +33 -31
- package/dist/safe-bash-presentation-engine/tags.js +20 -18
- package/dist/safe-bash-presentation-engine/template-bindings.js +36 -34
- package/dist/safe-bash-presentation-engine/template-repeat.js +46 -41
- package/dist/safe-bash-presentation-engine/text-fitting.js +28 -27
- package/dist/safe-bash-presentation-engine/text-frames.js +28 -27
- package/dist/safe-bash-presentation-engine/text-paragraphs.js +28 -27
- package/dist/safe-bash-presentation-engine/text-reading.js +12 -12
- package/dist/safe-bash-presentation-engine/text-replacement.js +18 -17
- package/dist/safe-bash-presentation-engine/text-runs.js +21 -20
- package/dist/safe-bash-presentation-engine/themes.js +17 -16
- package/dist/safe-bash-presentation-engine/transitions.d.ts +1 -0
- package/dist/safe-bash-presentation-engine/transitions.js +24 -16
- package/dist/safe-bash-presentation-engine/validation.js +11 -10
- package/dist/safe-bash-presentation-engine/xml-parts.js +21 -19
- package/dist/safe-bash-presentation-engine/xml-view.js +4 -4
- package/dist/safe-bash-presentation-engine/xml.js +4 -4
- package/dist/safe-bash-query-engine/capture.js +5 -5
- package/dist/safe-bash-query-engine/dates.js +2 -2
- package/dist/safe-bash-query-engine/delpaths.js +5 -5
- package/dist/safe-bash-query-engine/formats.js +3 -3
- package/dist/safe-bash-query-engine/index.js +15 -15
- package/dist/safe-bash-query-engine/indices.js +5 -5
- package/dist/safe-bash-query-engine/input.js +2 -2
- package/dist/safe-bash-query-engine/interpreter.d.ts +2 -1
- package/dist/safe-bash-query-engine/interpreter.js +13 -13
- package/dist/safe-bash-query-engine/limits.d.ts +1 -0
- package/dist/safe-bash-query-engine/limits.js +1 -1
- package/dist/safe-bash-query-engine/parser.js +2 -2
- package/dist/safe-bash-query-engine/query-core.js +15 -15
- package/dist/safe-bash-query-engine/recurse.js +2 -2
- package/dist/safe-bash-query-engine/regex.js +6 -6
- package/dist/safe-bash-query-engine/split.js +2 -2
- package/dist/safe-bash-query-engine/splits.js +7 -7
- package/dist/safe-bash-query-engine/values.js +4 -4
- package/dist/safe-bash-regex-engine/ere/matcher.d.ts +1 -1
- package/dist/safe-bash-regex-engine/ere/matcher.js +18 -10
- package/dist/safe-bash-regex-engine/ere/syntax.d.ts +1 -1
- package/dist/safe-bash-regex-engine/ere/syntax.js +1 -1
- package/dist/safe-bash-regex-engine/ere/types.d.ts +1 -0
- package/dist/safe-bash-regex-engine/execution/bounded-provider.js +5 -6
- package/dist/safe-bash-search-engine/ergonomic-regex.d.ts +1 -0
- package/dist/safe-bash-search-engine/ergonomic-regex.js +2 -2
- package/dist/safe-bash-sqlite-engine/sqlite-read-session.d.ts +17 -0
- package/dist/safe-bash-sqlite-engine/storage.d.ts +1 -0
- package/dist/safe-bash-sqlite-engine/storage.js +159 -89
- package/dist/safe-bash-xml-engine/document.js +3 -3
- package/dist/safe-bash-xml-engine/evaluate.js +1 -1
- package/dist/safe-bash-xml-engine/index.js +4 -4
- package/dist/safe-bash-xml-engine/json.js +14 -7
- package/dist/safe-bash-xml-engine/query.js +2 -2
- package/dist/safe-bash-xml-engine/recovery.d.ts +13 -3
- package/dist/safe-bash-xml-engine/stored-document.d.ts +18 -3
- package/dist/safe-bash-xml-engine/stored-document.js +1 -1
- package/dist/safe-bash-xml-engine/stored-evaluate.js +5 -5
- package/dist/safe-bash-xml-engine/stored-map.d.ts +35 -0
- 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/sfx.js +3 -3
- package/dist/safe-bash-zip-engine/zip-format.js +3 -3
- package/dist/safe-playwright-cloudflare/browser-provider.generated.js +11819 -11773
- package/dist/safe-playwright-cloudflare/browser-run-code-guest.generated.js +1 -1
- package/dist/spreadsheet-engine/formatting/cell-text.js +1 -1
- package/dist/spreadsheet-engine/{rendering/print → formatting}/general-number.js +3 -3
- package/dist/spreadsheet-engine/formulas/functions/python-printf.js +16 -10
- package/dist/spreadsheet-engine/solver/program.js +3 -2
- package/dist/spreadsheet-engine/solver/run.js +8 -2
- package/dist/spreadsheet-engine/solver/sensitivity.d.ts +4 -2
- package/dist/spreadsheet-engine/solver/sensitivity.js +80 -42
- package/dist/spreadsheet-format-xls/biff-properties-merge.d.ts +2 -1
- package/dist/spreadsheet-format-xls/biff-properties-merge.js +35 -29
- package/dist/spreadsheet-format-xls/biff-properties-write.js +16 -7
- package/dist/spreadsheet-format-xls/biff-property-names.d.ts +3 -0
- package/dist/spreadsheet-format-xls/biff-property-names.js +44 -1
- package/dist/spreadsheet-format-xls/biff-property-observations.d.ts +33 -0
- package/dist/spreadsheet-format-xls/biff-property-observations.js +160 -0
- package/package.json +8 -5
- package/third-party/pdf-ast/THIRD_PARTY_NOTICES.md +15 -0
- package/third-party/pdf-ast/licenses/PYTHON-PSF.txt +254 -0
- package/third-party/pdf-ast/licenses/V8-BSD.txt +61 -0
- package/dist/safe-bash/chunks/chunk-FL6XE3W4.js +0 -35
- package/dist/safe-bash/command-chunks/biff-KLS4T7FP-UO3CXFFF.js +0 -5581
- package/dist/safe-bash/command-chunks/chunk-6EZWG56T.js +0 -455
- package/dist/safe-bash/command-chunks/chunk-6RLWPB44.js +0 -107
- package/dist/safe-bash/command-chunks/chunk-CGJ7GMHO.js +0 -297
- package/dist/safe-bash/command-chunks/chunk-E64ZI2YB.js +0 -550
- package/dist/safe-bash/command-chunks/chunk-IOXMGD2H.js +0 -260
- package/dist/safe-bash/command-chunks/chunk-KSM5CCHT.js +0 -1850
- package/dist/safe-bash/command-chunks/chunk-P4OWVKMD.js +0 -228
- package/dist/safe-bash/command-chunks/chunk-UPXFSGQG.js +0 -134
- package/dist/safe-bash/command-chunks/chunk-WKUV62RJ.js +0 -92
- package/dist/safe-bash/command-chunks/chunk-WOL3LBXE.js +0 -144
- package/dist/safe-bash/command-chunks/chunk-Z3PGWMSQ.js +0 -63
- package/dist/safe-bash/command-chunks/model-store-I7YAWL5V.js +0 -54
- package/dist/safe-bash/command-chunks/paradox-4FCZE53D-LQPGVMEL.js +0 -365
- package/dist/safe-bash-xml-engine/stored-namespaces.d.ts +0 -21
- package/dist/safe-bash/command-chunks/{chunk-WKU65Z3Q.js → chunk-3NJETNC2.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-SRXARACJ.js → chunk-3TP4SSPS.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-AV6N7DDA.js → chunk-DDYPQAXN.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-FEKECRJP.js → chunk-EBTKM7KX.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-M3OXQXCU.js → chunk-NBRXQUK7.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-WVD5WZXD.js → chunk-QWHBQBPB.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-5MFRN3CB.js → chunk-R64BI5MT.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-2ANW3FXH.js → chunk-U33GIOUY.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-OEKLEUUW.js → chunk-YZE7BKHC.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-WXW665TV.js → chunk-ZSHXZ3XG.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-RXXNLH7A.js → chunk-ZSQCROFE.js} +3 -3
- package/dist/safe-bash/command-chunks/{dif-BXKPQOCO-4KB3RC6G.js → dif-BXKPQOCO-FVJYYGYB.js} +4 -4
- package/dist/safe-bash/command-chunks/{pln-DFS7VLVS-OVOBS4QX.js → pln-DFS7VLVS-JATX6FS7.js} +3 -3
- package/dist/safe-bash/command-chunks/{psion-YBI6JEQI-GY4S6ZLC.js → psion-YBI6JEQI-6OMC2PGC.js} +3 -3
- package/dist/safe-bash/command-chunks/{sylk-25D7TL2Y-RU6ANKGT.js → sylk-25D7TL2Y-NJKBZZTF.js} +4 -4
- /package/dist/spreadsheet-engine/{rendering/print → formatting}/general-number.d.ts +0 -0
|
@@ -0,0 +1,775 @@
|
|
|
1
|
+
import {
|
|
2
|
+
openRetainedPresentationIndex
|
|
3
|
+
} from "./chunk-LZHFVNEV.js";
|
|
4
|
+
import {
|
|
5
|
+
stageRetainedOutput,
|
|
6
|
+
streamJson
|
|
7
|
+
} from "./chunk-R36PDP3L.js";
|
|
8
|
+
import {
|
|
9
|
+
writePackageArchive
|
|
10
|
+
} from "./chunk-5KWEZV5H.js";
|
|
11
|
+
import {
|
|
12
|
+
SelectionError,
|
|
13
|
+
decodeSelectionToken
|
|
14
|
+
} from "./chunk-SKF6PGA5.js";
|
|
15
|
+
import {
|
|
16
|
+
readPackage
|
|
17
|
+
} from "./chunk-KVTZJBLM.js";
|
|
18
|
+
import {
|
|
19
|
+
validatePresentation
|
|
20
|
+
} from "./chunk-SKDJCMGI.js";
|
|
21
|
+
import {
|
|
22
|
+
dialects
|
|
23
|
+
} from "./chunk-P3LHQOX7.js";
|
|
24
|
+
import {
|
|
25
|
+
openRetainedRelationshipGraph
|
|
26
|
+
} from "./chunk-O4H7HPMP.js";
|
|
27
|
+
import {
|
|
28
|
+
parseXmlPart
|
|
29
|
+
} from "./chunk-YWP62BAZ.js";
|
|
30
|
+
import {
|
|
31
|
+
readRelationshipGraph
|
|
32
|
+
} from "./chunk-QMXOKYMJ.js";
|
|
33
|
+
import {
|
|
34
|
+
parseContentTypes
|
|
35
|
+
} from "./chunk-6ZHNKHQQ.js";
|
|
36
|
+
import {
|
|
37
|
+
readBinary
|
|
38
|
+
} from "./chunk-S5MBHFLB.js";
|
|
39
|
+
import {
|
|
40
|
+
OfficeError,
|
|
41
|
+
RetainedValues,
|
|
42
|
+
characters,
|
|
43
|
+
equal,
|
|
44
|
+
literal,
|
|
45
|
+
openRetainedXmlDocument,
|
|
46
|
+
resolveOfficeResources
|
|
47
|
+
} from "./chunk-VJQ5OWS5.js";
|
|
48
|
+
|
|
49
|
+
// packages/safe-bash-presentation-engine/src/retained-memberships.ts
|
|
50
|
+
import { PagedStorage } from "@poe-platform/safe-fs/storage";
|
|
51
|
+
var sectionNamespace = "http://schemas.microsoft.com/office/powerpoint/2010/main";
|
|
52
|
+
var sectionExtension = "{521415D9-36F7-43E2-AB2F-B90AF26B5E84}";
|
|
53
|
+
function fail(code, message) {
|
|
54
|
+
throw new OfficeError(code, message, code === "invalid-value" ? "usage" : "validate-intent");
|
|
55
|
+
}
|
|
56
|
+
async function* upper(source) {
|
|
57
|
+
let buffer = "";
|
|
58
|
+
for await (const character of characters(source)) {
|
|
59
|
+
buffer += character.toUpperCase();
|
|
60
|
+
if (buffer.length >= 2048) {
|
|
61
|
+
yield* literal(buffer);
|
|
62
|
+
buffer = "";
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (buffer) yield* literal(buffer);
|
|
66
|
+
}
|
|
67
|
+
async function* children(document, node) {
|
|
68
|
+
for await (const child of document.children(node)) if (child.kind === "element") yield child;
|
|
69
|
+
}
|
|
70
|
+
async function is(document, node, name, namespace) {
|
|
71
|
+
return await equal(document.raw(node.localName), literal(name)) && await equal(document.namespace(node), literal(namespace));
|
|
72
|
+
}
|
|
73
|
+
async function attr(document, node, name, namespace = "") {
|
|
74
|
+
for await (const value of document.attributes(node)) if (await is(document, value, name, namespace)) return value;
|
|
75
|
+
return void 0;
|
|
76
|
+
}
|
|
77
|
+
async function only(document, node, name, namespace) {
|
|
78
|
+
let found;
|
|
79
|
+
for await (const child of children(document, node)) if (await is(document, child, name, namespace)) {
|
|
80
|
+
if (found) fail("unsupported-edit", "Ambiguous membership structure.");
|
|
81
|
+
found = child;
|
|
82
|
+
}
|
|
83
|
+
return found;
|
|
84
|
+
}
|
|
85
|
+
async function locate(document, kind, p) {
|
|
86
|
+
if (kind === "shows") return only(document, document.root, "custShowLst", p);
|
|
87
|
+
const extensions = await only(document, document.root, "extLst", p);
|
|
88
|
+
if (!extensions) return void 0;
|
|
89
|
+
let extension;
|
|
90
|
+
for await (const node of children(document, extensions)) {
|
|
91
|
+
const uri = await attr(document, node, "uri");
|
|
92
|
+
if (uri && await equal(upper(document.text(uri)), literal(sectionExtension))) {
|
|
93
|
+
if (extension) fail("unsupported-edit", "Multiple section extensions.");
|
|
94
|
+
extension = node;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
for await (const node of children(document, extensions)) if (!extension || document.reference(node) !== document.reference(extension)) {
|
|
98
|
+
for await (const child of children(document, node)) if (await equal(document.raw(child.localName), literal("sectionLst"))) fail("unsupported-edit", "Unsupported section extension identity.");
|
|
99
|
+
}
|
|
100
|
+
if (!extension) return void 0;
|
|
101
|
+
let count = 0;
|
|
102
|
+
for await (const ignored of children(document, extension)) count++;
|
|
103
|
+
if (!await is(document, extension, "ext", p) || count !== 1) fail("unsupported-edit", "Unsupported section extension structure.");
|
|
104
|
+
const list = await only(document, extension, "sectionLst", sectionNamespace);
|
|
105
|
+
if (!list) fail("unsupported-edit", "Unsupported section extension namespace.");
|
|
106
|
+
return list;
|
|
107
|
+
}
|
|
108
|
+
async function openRetainedMemberships(archive, kind, settings) {
|
|
109
|
+
if (!["sections", "shows"].includes(kind)) fail("invalid-value", "Unknown membership resource.");
|
|
110
|
+
const context = { ...resolveOfficeResources(settings), workingStorage: { ...settings.workingStorage } }, working = context.workingStorage, signal = context.signal ?? new AbortController().signal;
|
|
111
|
+
const graph = await openRetainedRelationshipGraph(archive, context), pages = new PagedStorage({ fs: working.fs, cwd: working.directory, env: {}, signal }, (working.cacheBytes ?? 1024 * 1024) / 16384);
|
|
112
|
+
let document, closed = false, closing, first = 0, last = 0;
|
|
113
|
+
const close = () => {
|
|
114
|
+
closed = true;
|
|
115
|
+
return closing ??= (async () => {
|
|
116
|
+
const results = await Promise.allSettled([graph.close(), document?.close(), pages.close()]);
|
|
117
|
+
for (const result of results) if (result.status === "rejected") throw result.reason;
|
|
118
|
+
})();
|
|
119
|
+
};
|
|
120
|
+
const check = () => {
|
|
121
|
+
if (closed) throw new OfficeError("invalid-handle", "Memberships are closed.", "index");
|
|
122
|
+
if (signal.aborted) throw new OfficeError("cancelled", "Operation cancelled.", "index");
|
|
123
|
+
};
|
|
124
|
+
const values = new RetainedValues(pages, check, signal);
|
|
125
|
+
async function row(pointer, count = 7) {
|
|
126
|
+
check();
|
|
127
|
+
const bytes = await pages.read(pointer, count * 8), view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
128
|
+
return Array.from({ length: count }, (_, n) => view.getFloat64(n * 8, true));
|
|
129
|
+
}
|
|
130
|
+
async function write(pointer, data) {
|
|
131
|
+
check();
|
|
132
|
+
const bytes = new Uint8Array(data.length * 8), view = new DataView(bytes.buffer);
|
|
133
|
+
data.forEach((value, n) => view.setFloat64(n * 8, value, true));
|
|
134
|
+
await pages.write(pointer, bytes);
|
|
135
|
+
}
|
|
136
|
+
const range = (data, n) => ({ start: data[n], length: data[n + 1] });
|
|
137
|
+
async function* slides(pointer) {
|
|
138
|
+
check();
|
|
139
|
+
while (pointer) {
|
|
140
|
+
const data = await row(pointer, 2);
|
|
141
|
+
pointer = data[0];
|
|
142
|
+
yield data[1];
|
|
143
|
+
}
|
|
144
|
+
check();
|
|
145
|
+
}
|
|
146
|
+
try {
|
|
147
|
+
let main;
|
|
148
|
+
for await (const edge of graph.outgoing("/")) {
|
|
149
|
+
let match = false;
|
|
150
|
+
for (const dialect of dialects) if (await equal(edge.type(), literal(`${dialect.r}/officeDocument`))) match = true;
|
|
151
|
+
if (match) {
|
|
152
|
+
if (edge.targetPart) {
|
|
153
|
+
const decoder = new TextDecoder();
|
|
154
|
+
main = "";
|
|
155
|
+
for await (const bytes of edge.targetPart()) main += decoder.decode(bytes, { stream: true });
|
|
156
|
+
main += decoder.decode();
|
|
157
|
+
}
|
|
158
|
+
break;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
if (!main) fail("invalid-opc", "Presentation relationship is missing.");
|
|
162
|
+
document = await openRetainedXmlDocument(archive.read(main), context);
|
|
163
|
+
const doc = document;
|
|
164
|
+
let d;
|
|
165
|
+
for (const dialect of dialects) if (await equal(doc.namespace(doc.root), literal(dialect.p))) d = dialect;
|
|
166
|
+
if (!d) fail("unsupported-edit", "Unsupported presentation namespace.");
|
|
167
|
+
const slideList = await only(doc, doc.root, "sldIdLst", d.p);
|
|
168
|
+
let slidePosition = 0;
|
|
169
|
+
if (slideList) {
|
|
170
|
+
for await (const slide of children(doc, slideList)) if (await is(doc, slide, "sldId", d.p)) {
|
|
171
|
+
slidePosition++;
|
|
172
|
+
for (const [scope, namespace2] of [["id", ""], ["rel", d.r]]) {
|
|
173
|
+
const id = await attr(doc, slide, "id", namespace2);
|
|
174
|
+
if (id) {
|
|
175
|
+
const key = await values.store(doc.text(id)), pointer = pages.allocate(8);
|
|
176
|
+
await write(pointer, [slidePosition]);
|
|
177
|
+
await values.insert(scope, key, { start: pointer, length: 8 });
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
const list = await locate(doc, kind, d.p), namespace = kind === "sections" ? sectionNamespace : d.p, itemName = kind === "sections" ? "section" : "custShow";
|
|
183
|
+
if (list) {
|
|
184
|
+
for await (const node of children(doc, list)) if (!await is(doc, node, itemName, namespace)) fail("unsupported-edit", "Unsupported membership list content.");
|
|
185
|
+
}
|
|
186
|
+
let position = 0;
|
|
187
|
+
if (list) for await (const node of children(doc, list)) {
|
|
188
|
+
const id = await attr(doc, node, "id"), name = await attr(doc, node, "name");
|
|
189
|
+
if (!id || !name || await equal(doc.text(id), literal(""))) fail("invalid-opc", "Membership identities and names must be present.");
|
|
190
|
+
let identity = "";
|
|
191
|
+
if (kind === "shows") {
|
|
192
|
+
let number = 0;
|
|
193
|
+
for await (const character of characters(doc.text(id))) {
|
|
194
|
+
if (character < "0" || character > "9") fail("invalid-opc", "Invalid custom show identity.");
|
|
195
|
+
number = number * 10 + (character.charCodeAt(0) - 48);
|
|
196
|
+
if (number > 4294967295) fail("invalid-opc", "Invalid custom show identity.");
|
|
197
|
+
}
|
|
198
|
+
identity = String(number);
|
|
199
|
+
} else {
|
|
200
|
+
for await (const character of characters(doc.text(id))) {
|
|
201
|
+
identity += character;
|
|
202
|
+
if (identity.length > 38) fail("invalid-opc", "Invalid section identity.");
|
|
203
|
+
}
|
|
204
|
+
const segments = identity.slice(1, -1).split("-");
|
|
205
|
+
if (!identity.startsWith("{") || !identity.endsWith("}") || segments.length !== 5 || segments.some((segment, n) => segment.length !== [8, 4, 4, 4, 12][n] || [...segment].some((character) => !"0123456789ABCDEF".includes(character.toUpperCase())))) fail("invalid-opc", "Invalid section identity.");
|
|
206
|
+
identity = identity.toUpperCase();
|
|
207
|
+
}
|
|
208
|
+
const identityRange = await values.store(literal(identity));
|
|
209
|
+
if (!await values.insert("seen", identityRange, identityRange)) fail("invalid-opc", "Membership identities must be unique.");
|
|
210
|
+
if (kind === "sections") {
|
|
211
|
+
for await (const value of doc.attributes(node)) if (!await is(doc, value, "id", "") && !await is(doc, value, "name", "")) fail("unsupported-edit", "Unsupported section extension content.");
|
|
212
|
+
for await (const value of children(doc, node)) if (!await is(doc, value, "sldIdLst", sectionNamespace)) fail("unsupported-edit", "Unsupported section extension content.");
|
|
213
|
+
}
|
|
214
|
+
const members = await only(doc, node, kind === "sections" ? "sldIdLst" : "sldLst", namespace);
|
|
215
|
+
if (!members) fail("unsupported-edit", "Missing membership slide list.");
|
|
216
|
+
if (kind === "sections") for await (const ignored of doc.attributes(members)) fail("unsupported-edit", "Unsupported section list attributes.");
|
|
217
|
+
let head = 0, tail = 0;
|
|
218
|
+
for await (const member of children(doc, members)) {
|
|
219
|
+
if (!await is(doc, member, kind === "sections" ? "sldId" : "sld", namespace)) fail("unsupported-edit", "Unsupported membership slide entry.");
|
|
220
|
+
if (kind === "sections") {
|
|
221
|
+
for await (const ignored of children(doc, member)) fail("unsupported-edit", "Unsupported section member extension.");
|
|
222
|
+
for await (const value of doc.attributes(member)) if (!await is(doc, value, "id", "")) fail("unsupported-edit", "Unsupported section member extension.");
|
|
223
|
+
}
|
|
224
|
+
const reference = await attr(doc, member, "id", kind === "sections" ? "" : d.r), found = await values.find(kind === "sections" ? "id" : "rel", () => reference ? doc.text(reference) : literal(""));
|
|
225
|
+
if (!found) fail("invalid-opc", "Membership references an absent slide.");
|
|
226
|
+
const memberPosition = (await row(found.start, 1))[0], pointer2 = pages.allocate(16);
|
|
227
|
+
await write(pointer2, [0, memberPosition]);
|
|
228
|
+
if (tail) await write(tail, [pointer2]);
|
|
229
|
+
else head = pointer2;
|
|
230
|
+
tail = pointer2;
|
|
231
|
+
}
|
|
232
|
+
if (kind === "sections") {
|
|
233
|
+
let previous = 0;
|
|
234
|
+
for await (const memberPosition of slides(head)) {
|
|
235
|
+
const key = await values.store(literal(String(memberPosition)));
|
|
236
|
+
if (!await values.insert("section-slides", key, key) || previous && memberPosition !== previous + 1) fail("unsupported-edit", "Existing sections must be contiguous and nonoverlapping.");
|
|
237
|
+
previous = memberPosition;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
const idValue = await values.store(doc.text(id)), nameValue = await values.store(doc.text(name)), pointer = pages.allocate(56);
|
|
241
|
+
await write(pointer, [0, idValue.start, idValue.length, nameValue.start, nameValue.length, head, ++position]);
|
|
242
|
+
if (last) await write(last, [pointer]);
|
|
243
|
+
else first = pointer;
|
|
244
|
+
last = pointer;
|
|
245
|
+
}
|
|
246
|
+
await doc.close();
|
|
247
|
+
await graph.close();
|
|
248
|
+
return Object.freeze({ owner: main, close, async *records() {
|
|
249
|
+
check();
|
|
250
|
+
for (let pointer = first; pointer; ) {
|
|
251
|
+
const data = await row(pointer);
|
|
252
|
+
pointer = data[0];
|
|
253
|
+
yield { id: () => values.read(range(data, 1)), name: () => values.read(range(data, 3)), position: data[6], slides: () => slides(data[5]) };
|
|
254
|
+
}
|
|
255
|
+
check();
|
|
256
|
+
} });
|
|
257
|
+
} catch (error) {
|
|
258
|
+
await close().catch(() => {
|
|
259
|
+
});
|
|
260
|
+
throw error instanceof OfficeError ? error : new OfficeError(signal.aborted ? "cancelled" : "io-failure", "Membership storage operation failed.", "index");
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
async function stageRetainedMemberships(archive, fingerprint, kind, selection, settings, output) {
|
|
264
|
+
const query = { ...selection }, format = { ...output };
|
|
265
|
+
if (!["sections", "shows"].includes(kind) || ![`${kind}.list`, `${kind}.get`].includes(format.operation)) fail("invalid-value", "Unknown membership operation.");
|
|
266
|
+
const index = await openRetainedPresentationIndex(archive, fingerprint, settings);
|
|
267
|
+
let view, staged;
|
|
268
|
+
try {
|
|
269
|
+
let owner = "";
|
|
270
|
+
for await (const record of index.records.records("part")) if (record.scope === "presentation") {
|
|
271
|
+
owner = record.part;
|
|
272
|
+
break;
|
|
273
|
+
}
|
|
274
|
+
view = await openRetainedMemberships(archive, kind, settings);
|
|
275
|
+
const token = query.token ? decodeSelectionToken(query.token) : void 0;
|
|
276
|
+
if (token) {
|
|
277
|
+
if (token.fingerprint !== fingerprint) throw new SelectionError("stale-selection");
|
|
278
|
+
if (token.scope !== "presentation" || token.owner !== owner || !token.objectId?.startsWith(`${kind}:`)) throw new SelectionError("invalid-selection");
|
|
279
|
+
}
|
|
280
|
+
async function* selected() {
|
|
281
|
+
for await (const record of view.records()) {
|
|
282
|
+
if (token) {
|
|
283
|
+
if (!await equal(record.id(), literal(token.objectId.slice(kind.length + 1)))) continue;
|
|
284
|
+
} else if (query.slide !== void 0) {
|
|
285
|
+
let present = false;
|
|
286
|
+
for await (const position of record.slides()) if (position === query.slide) {
|
|
287
|
+
present = true;
|
|
288
|
+
break;
|
|
289
|
+
}
|
|
290
|
+
if (!present) continue;
|
|
291
|
+
}
|
|
292
|
+
yield record;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
if (format.operation.endsWith(".get")) {
|
|
296
|
+
let count = 0;
|
|
297
|
+
for await (const ignored of selected()) count++;
|
|
298
|
+
if (!count) throw new SelectionError("missing-selection");
|
|
299
|
+
if (count > 1) throw new SelectionError("ambiguous-selection");
|
|
300
|
+
}
|
|
301
|
+
const location = (record) => ({ fingerprint, scope: "presentation", owner, objectId: async function* () {
|
|
302
|
+
yield* literal(`${kind}:`);
|
|
303
|
+
yield* record.id();
|
|
304
|
+
}, coordinateSystem: "identity" });
|
|
305
|
+
async function* records() {
|
|
306
|
+
for await (const record of selected()) {
|
|
307
|
+
const where = location(record);
|
|
308
|
+
yield { id: record.id, name: record.name, position: record.position, slides: record.slides(), location: where, token: () => streamJson(where) };
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
async function* locations() {
|
|
312
|
+
for await (const record of selected()) yield location(record);
|
|
313
|
+
}
|
|
314
|
+
async function* render() {
|
|
315
|
+
if (format.json) {
|
|
316
|
+
yield* streamJson({ version: 1, operation: format.operation, ok: true, data: { fingerprint, records: records() }, warnings: [], errors: [], affected: 0, locations: locations() });
|
|
317
|
+
yield* literal("\n");
|
|
318
|
+
} else {
|
|
319
|
+
let first = true;
|
|
320
|
+
for await (const record of selected()) {
|
|
321
|
+
if (!first) yield* literal("\n");
|
|
322
|
+
first = false;
|
|
323
|
+
yield* literal(`${record.position} `);
|
|
324
|
+
yield* streamJson(record.name);
|
|
325
|
+
yield* literal(" [");
|
|
326
|
+
let member = false;
|
|
327
|
+
for await (const position of record.slides()) {
|
|
328
|
+
if (member) yield* literal(", ");
|
|
329
|
+
member = true;
|
|
330
|
+
yield* literal(String(position));
|
|
331
|
+
}
|
|
332
|
+
yield* literal("]");
|
|
333
|
+
}
|
|
334
|
+
yield* literal("\n");
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
staged = await stageRetainedOutput(render(), settings, format.maxOutputBytes);
|
|
338
|
+
await view.close();
|
|
339
|
+
await index.close();
|
|
340
|
+
return staged;
|
|
341
|
+
} catch (error) {
|
|
342
|
+
await Promise.allSettled([view?.close(), index.close(), staged?.close()]);
|
|
343
|
+
throw error;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
// packages/safe-bash-presentation-engine/src/memberships.ts
|
|
348
|
+
var sectionNamespace2 = "http://schemas.microsoft.com/office/powerpoint/2010/main";
|
|
349
|
+
var sectionExtension2 = "{521415D9-36F7-43E2-AB2F-B90AF26B5E84}";
|
|
350
|
+
var dialects2 = [
|
|
351
|
+
{
|
|
352
|
+
p: "http://schemas.openxmlformats.org/presentationml/2006/main",
|
|
353
|
+
r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
p: "http://purl.oclc.org/ooxml/presentationml/main",
|
|
357
|
+
r: "http://purl.oclc.org/ooxml/officeDocument/relationships"
|
|
358
|
+
}
|
|
359
|
+
];
|
|
360
|
+
function fail2(code, message) {
|
|
361
|
+
throw new OfficeError(code, message, code === "invalid-value" ? "usage" : "validate-intent");
|
|
362
|
+
}
|
|
363
|
+
function attr2(node, name, namespace = "") {
|
|
364
|
+
return node.attributes.find((a) => a.name.namespace === namespace && a.name.localName === name)?.value;
|
|
365
|
+
}
|
|
366
|
+
function children2(node, name, namespace) {
|
|
367
|
+
return node.children.filter(
|
|
368
|
+
(child) => child.name.namespace === namespace && child.name.localName === name
|
|
369
|
+
);
|
|
370
|
+
}
|
|
371
|
+
function only2(node, name, namespace) {
|
|
372
|
+
const found = children2(node, name, namespace);
|
|
373
|
+
if (found.length > 1) fail2("unsupported-edit", "Ambiguous membership structure.");
|
|
374
|
+
return found[0];
|
|
375
|
+
}
|
|
376
|
+
function locate2(xml, kind) {
|
|
377
|
+
const p = xml.root.name.namespace;
|
|
378
|
+
if (kind === "shows") return only2(xml.root, "custShowLst", p);
|
|
379
|
+
const extensions = only2(xml.root, "extLst", p);
|
|
380
|
+
const matching = extensions?.children.filter((node) => attr2(node, "uri")?.toUpperCase() === sectionExtension2) ?? [];
|
|
381
|
+
if (matching.length > 1) fail2("unsupported-edit", "Multiple section extensions.");
|
|
382
|
+
const extension = matching[0];
|
|
383
|
+
if (extensions?.children.some(
|
|
384
|
+
(node) => node !== extension && node.children.some((child) => child.name.localName === "sectionLst")
|
|
385
|
+
))
|
|
386
|
+
fail2("unsupported-edit", "Unsupported section extension identity.");
|
|
387
|
+
if (!extension) return void 0;
|
|
388
|
+
if (extension.name.namespace !== p || extension.name.localName !== "ext" || extension.children.length !== 1)
|
|
389
|
+
fail2("unsupported-edit", "Unsupported section extension structure.");
|
|
390
|
+
const list = only2(extension, "sectionLst", sectionNamespace2);
|
|
391
|
+
if (!list) fail2("unsupported-edit", "Unsupported section extension namespace.");
|
|
392
|
+
return list;
|
|
393
|
+
}
|
|
394
|
+
function inspect(xml, kind) {
|
|
395
|
+
const d = dialects2.find((value) => value.p === xml.root.name.namespace);
|
|
396
|
+
if (!d) fail2("unsupported-edit", "Unsupported presentation namespace.");
|
|
397
|
+
const slideList = only2(xml.root, "sldIdLst", d.p);
|
|
398
|
+
const slides = slideList ? children2(slideList, "sldId", d.p) : [];
|
|
399
|
+
const ids = slides.map((node) => attr2(node, "id"));
|
|
400
|
+
const rels = slides.map((node) => attr2(node, "id", d.r));
|
|
401
|
+
const list = locate2(xml, kind);
|
|
402
|
+
const ns = kind === "sections" ? sectionNamespace2 : d.p;
|
|
403
|
+
const itemName = kind === "sections" ? "section" : "custShow";
|
|
404
|
+
if (list?.children.some((node) => node.name.namespace !== ns || node.name.localName !== itemName))
|
|
405
|
+
fail2("unsupported-edit", "Unsupported membership list content.");
|
|
406
|
+
const seen = /* @__PURE__ */ new Set();
|
|
407
|
+
const sectionSlides = /* @__PURE__ */ new Set();
|
|
408
|
+
const records = (list?.children ?? []).map((node, i) => {
|
|
409
|
+
const id = attr2(node, "id"), name = attr2(node, "name");
|
|
410
|
+
if (id === void 0 || !id || name === void 0)
|
|
411
|
+
fail2("invalid-opc", "Membership identities and names must be present.");
|
|
412
|
+
let identity = id.toUpperCase();
|
|
413
|
+
if (kind === "shows") {
|
|
414
|
+
if (![...id].every((character) => character >= "0" && character <= "9") || !Number.isSafeInteger(Number(id)) || Number(id) > 4294967295)
|
|
415
|
+
fail2("invalid-opc", "Invalid custom show identity.");
|
|
416
|
+
identity = String(Number(id));
|
|
417
|
+
} else {
|
|
418
|
+
const segments = id.slice(1, -1).split("-");
|
|
419
|
+
if (!id.startsWith("{") || !id.endsWith("}") || segments.length !== 5 || segments.some(
|
|
420
|
+
(segment, i2) => segment.length !== [8, 4, 4, 4, 12][i2] || [...segment].some((character) => !"0123456789ABCDEF".includes(character.toUpperCase()))
|
|
421
|
+
))
|
|
422
|
+
fail2("invalid-opc", "Invalid section identity.");
|
|
423
|
+
}
|
|
424
|
+
if (seen.has(identity)) fail2("invalid-opc", "Membership identities must be unique.");
|
|
425
|
+
seen.add(identity);
|
|
426
|
+
if (kind === "sections" && (node.attributes.some(
|
|
427
|
+
(a) => a.name.namespace !== "http://www.w3.org/2000/xmlns/" && (a.name.namespace !== "" || !["id", "name"].includes(a.name.localName))
|
|
428
|
+
) || node.children.some(
|
|
429
|
+
(child) => child.name.namespace !== sectionNamespace2 || child.name.localName !== "sldIdLst"
|
|
430
|
+
)))
|
|
431
|
+
fail2("unsupported-edit", "Unsupported section extension content.");
|
|
432
|
+
const members = only2(node, kind === "sections" ? "sldIdLst" : "sldLst", ns);
|
|
433
|
+
if (!members) fail2("unsupported-edit", "Missing membership slide list.");
|
|
434
|
+
if (kind === "sections" && members.attributes.some((a) => a.name.namespace !== "http://www.w3.org/2000/xmlns/"))
|
|
435
|
+
fail2("unsupported-edit", "Unsupported section list attributes.");
|
|
436
|
+
const positions = members.children.map((member) => {
|
|
437
|
+
if (member.name.namespace !== ns || member.name.localName !== (kind === "sections" ? "sldId" : "sld"))
|
|
438
|
+
fail2("unsupported-edit", "Unsupported membership slide entry.");
|
|
439
|
+
if (kind === "sections" && (member.children.length || member.attributes.some(
|
|
440
|
+
(a) => a.name.namespace !== "http://www.w3.org/2000/xmlns/" && (a.name.namespace !== "" || a.name.localName !== "id")
|
|
441
|
+
)))
|
|
442
|
+
fail2("unsupported-edit", "Unsupported section member extension.");
|
|
443
|
+
const position = kind === "sections" ? ids.indexOf(attr2(member, "id") ?? "") : rels.indexOf(attr2(member, "id", d.r) ?? "");
|
|
444
|
+
if (position < 0) fail2("invalid-opc", "Membership references an absent slide.");
|
|
445
|
+
return position + 1;
|
|
446
|
+
});
|
|
447
|
+
if (kind === "sections")
|
|
448
|
+
for (const [j, position] of positions.entries()) {
|
|
449
|
+
if (sectionSlides.has(position) || j > 0 && position !== positions[j - 1] + 1)
|
|
450
|
+
fail2("unsupported-edit", "Existing sections must be contiguous and nonoverlapping.");
|
|
451
|
+
sectionSlides.add(position);
|
|
452
|
+
}
|
|
453
|
+
return { id, name, position: i + 1, slides: positions };
|
|
454
|
+
});
|
|
455
|
+
return { d, ids, rels, list, ns, records };
|
|
456
|
+
}
|
|
457
|
+
async function load(input, context) {
|
|
458
|
+
if (!context?.xmlLimits || !context.relationshipLimits)
|
|
459
|
+
fail2("invalid-value", "Explicit XML and relationship limits are required.");
|
|
460
|
+
const source = await readBinary(input, context);
|
|
461
|
+
const reader = await readPackage(source, context);
|
|
462
|
+
const graph = readRelationshipGraph(reader, context.relationshipLimits);
|
|
463
|
+
const main = graph.outgoing("/").find((edge) => dialects2.some((d) => edge.type === `${d.r}/officeDocument`))?.targetPart;
|
|
464
|
+
if (!main) fail2("invalid-opc", "Presentation relationship is missing.");
|
|
465
|
+
return { source, reader, graph, main, xml: parseXmlPart(reader.get(main), context.xmlLimits) };
|
|
466
|
+
}
|
|
467
|
+
async function readMemberships(input, kind, context) {
|
|
468
|
+
if (!["sections", "shows"].includes(kind)) fail2("invalid-value", "Unknown membership resource.");
|
|
469
|
+
return inspect((await load(input, context)).xml, kind).records;
|
|
470
|
+
}
|
|
471
|
+
function fields(value, allowed) {
|
|
472
|
+
if (!value || typeof value !== "object" || ![Object.prototype, null].includes(Object.getPrototypeOf(value)) || Object.keys(value).some((key) => !allowed.includes(key)))
|
|
473
|
+
fail2("invalid-value", "Invalid membership options.");
|
|
474
|
+
}
|
|
475
|
+
async function mutateMemberships(input, kind, options, context) {
|
|
476
|
+
fields(options, ["action", "selection", "name", "slides", "position", "allowEmpty"]);
|
|
477
|
+
if (!["sections", "shows"].includes(kind) || !["add", "set", "remove"].includes(options.action))
|
|
478
|
+
fail2("invalid-value", "Unknown membership operation.");
|
|
479
|
+
if (options.name !== void 0 && typeof options.name !== "string")
|
|
480
|
+
fail2("invalid-value", "Membership name must be text.");
|
|
481
|
+
if (options.allowEmpty !== void 0 && typeof options.allowEmpty !== "boolean")
|
|
482
|
+
fail2("invalid-value", "allowEmpty must be boolean.");
|
|
483
|
+
if (options.position !== void 0 && (!Number.isSafeInteger(options.position) || options.position < 1))
|
|
484
|
+
fail2("invalid-value", "Invalid membership position.");
|
|
485
|
+
if (options.action === "add" && (options.name === void 0 || options.slides === void 0 || options.selection !== void 0))
|
|
486
|
+
fail2("invalid-value", "Creation requires a name and slide membership.");
|
|
487
|
+
if (options.action === "set" && options.name === void 0 && options.slides === void 0 && options.position === void 0)
|
|
488
|
+
fail2("invalid-value", "At least one membership update is required.");
|
|
489
|
+
if (options.action === "remove" && [options.name, options.slides, options.position].some((value) => value !== void 0))
|
|
490
|
+
fail2("invalid-value", "Removal cannot include updates.");
|
|
491
|
+
if (options.selection !== void 0) {
|
|
492
|
+
fields(options.selection, ["id", "ids", "name", "position", "all"]);
|
|
493
|
+
const q2 = options.selection;
|
|
494
|
+
if (q2.ids !== void 0 && (!Array.isArray(q2.ids) || new Set(q2.ids).size !== q2.ids.length || q2.ids.some((id) => typeof id !== "string" || !id)) || q2.id !== void 0 && (typeof q2.id !== "string" || !q2.id) || q2.name !== void 0 && (typeof q2.name !== "string" || !q2.name) || q2.position !== void 0 && (!Number.isSafeInteger(q2.position) || q2.position < 1) || q2.all !== void 0 && typeof q2.all !== "boolean" || !q2.all && q2.ids === void 0 && q2.id === void 0 && q2.name === void 0 && q2.position === void 0)
|
|
495
|
+
throw new SelectionError("invalid-selection");
|
|
496
|
+
} else if (options.action !== "add") throw new SelectionError("invalid-selection");
|
|
497
|
+
const loaded = await load(input, context);
|
|
498
|
+
let xml = loaded.xml;
|
|
499
|
+
const { source, reader, graph, main } = loaded;
|
|
500
|
+
const limits = {
|
|
501
|
+
...context.xmlLimits,
|
|
502
|
+
...context.relationshipLimits,
|
|
503
|
+
maxBytes: Math.min(context.xmlLimits.maxBytes, context.relationshipLimits.maxBytes),
|
|
504
|
+
maxEntries: context.archiveLimits.maxMembers
|
|
505
|
+
};
|
|
506
|
+
const types = parseContentTypes(reader.get("/[Content_Types].xml"), limits);
|
|
507
|
+
for (const name of reader.names) {
|
|
508
|
+
if (name === "/[Content_Types].xml") continue;
|
|
509
|
+
const type = types.get(name).toLowerCase();
|
|
510
|
+
if (type.includes("digital-signature") || type.includes("macroenabled") || type.includes("vbaproject") || name.toLowerCase().startsWith("/_xmlsignatures/"))
|
|
511
|
+
fail2("unsupported-edit", "Signed and macro-enabled presentations cannot be changed.");
|
|
512
|
+
}
|
|
513
|
+
for (const owner of ["/", ...graph.parts])
|
|
514
|
+
if (graph.outgoing(owner).some(
|
|
515
|
+
(edge) => edge.type.includes("/digital-signature/") || edge.type.endsWith("/vbaProject")
|
|
516
|
+
))
|
|
517
|
+
fail2("unsupported-edit", "Signed and macro-enabled presentations cannot be changed.");
|
|
518
|
+
if (!validatePresentation(reader, limits).valid)
|
|
519
|
+
fail2("invalid-opc", "Membership editing requires a valid presentation graph.");
|
|
520
|
+
const pending = [xml.root];
|
|
521
|
+
while (pending.length) {
|
|
522
|
+
const node = pending.pop();
|
|
523
|
+
if (node.name.localName === "modifyVerifier" || node.name.namespace === "http://schemas.openxmlformats.org/markup-compatibility/2006")
|
|
524
|
+
fail2(
|
|
525
|
+
"unsupported-edit",
|
|
526
|
+
"Protected or conditional presentation structures cannot be changed."
|
|
527
|
+
);
|
|
528
|
+
pending.push(...node.children);
|
|
529
|
+
}
|
|
530
|
+
if (options.name !== void 0)
|
|
531
|
+
xml.merge(xml.root, {
|
|
532
|
+
attributes: [{ namespace: "", localName: "name", value: options.name }]
|
|
533
|
+
});
|
|
534
|
+
const state = inspect(xml, kind);
|
|
535
|
+
const q = options.selection;
|
|
536
|
+
const selected = options.action === "add" ? [] : state.records.filter(
|
|
537
|
+
(record) => (!q?.id || record.id === q.id) && (q?.ids === void 0 || q.ids.includes(record.id)) && (q?.name === void 0 || record.name === q.name) && (q?.position === void 0 || record.position === q.position)
|
|
538
|
+
);
|
|
539
|
+
if (selected.length > 1 && !q?.all) throw new SelectionError("ambiguous-selection");
|
|
540
|
+
if (options.slides !== void 0) {
|
|
541
|
+
if (!Array.isArray(options.slides) || !options.slides.length || new Set(options.slides).size !== options.slides.length || options.slides.some(
|
|
542
|
+
(position) => !Number.isSafeInteger(position) || position < 1 || position > state.ids.length
|
|
543
|
+
))
|
|
544
|
+
fail2("invalid-value", "Membership requires unique existing slide positions.");
|
|
545
|
+
if (kind === "sections" && options.slides.some((position, i) => i > 0 && position !== options.slides[i - 1] + 1))
|
|
546
|
+
fail2("invalid-value", "Section members must be ordered and contiguous.");
|
|
547
|
+
}
|
|
548
|
+
if (kind === "sections") {
|
|
549
|
+
const used = /* @__PURE__ */ new Set();
|
|
550
|
+
const records = state.records.filter(
|
|
551
|
+
(record) => options.action !== "remove" || !selected.includes(record)
|
|
552
|
+
);
|
|
553
|
+
const memberships = records.map(
|
|
554
|
+
(record) => selected.includes(record) && options.slides !== void 0 ? options.slides : record.slides
|
|
555
|
+
);
|
|
556
|
+
if (options.action === "add") memberships.push(options.slides);
|
|
557
|
+
for (const members of memberships)
|
|
558
|
+
for (const [i, slide] of members.entries()) {
|
|
559
|
+
if (used.has(slide) || i > 0 && slide !== members[i - 1] + 1)
|
|
560
|
+
fail2("invalid-value", "Section members must be contiguous and nonoverlapping.");
|
|
561
|
+
used.add(slide);
|
|
562
|
+
}
|
|
563
|
+
for (const node of state.list?.children ?? []) {
|
|
564
|
+
if (node.children.some(
|
|
565
|
+
(child) => child.name.namespace !== sectionNamespace2 || child.name.localName !== "sldIdLst"
|
|
566
|
+
))
|
|
567
|
+
fail2("unsupported-edit", "Unsupported section extension content.");
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
const finalCount = state.records.length + (options.action === "add" ? 1 : 0);
|
|
571
|
+
if (options.position !== void 0 && options.position > finalCount - selected.length + (options.action === "add" ? 0 : 1))
|
|
572
|
+
fail2("invalid-value", "Membership position is outside the list.");
|
|
573
|
+
if (options.action !== "add" && !selected.length) {
|
|
574
|
+
if (options.allowEmpty) return source;
|
|
575
|
+
throw new SelectionError("missing-selection");
|
|
576
|
+
}
|
|
577
|
+
if (kind === "shows" && options.action === "remove") {
|
|
578
|
+
const removedIds = new Set(selected.map((record) => Number(record.id)));
|
|
579
|
+
const dangling = () => {
|
|
580
|
+
throw new OfficeError(
|
|
581
|
+
"dangling-reference",
|
|
582
|
+
"Custom show removal would leave an active or unsupported show reference.",
|
|
583
|
+
"validate-intent"
|
|
584
|
+
);
|
|
585
|
+
};
|
|
586
|
+
const checkId = (id) => {
|
|
587
|
+
if (id === void 0 || !id || [...id].some((character) => character < "0" || character > "9") || !Number.isSafeInteger(Number(id)) || Number(id) > 4294967295 || removedIds.has(Number(id)))
|
|
588
|
+
dangling();
|
|
589
|
+
};
|
|
590
|
+
for (const name of reader.names) {
|
|
591
|
+
context.signal?.throwIfAborted();
|
|
592
|
+
if (name === "/[Content_Types].xml") continue;
|
|
593
|
+
const type = types.get(name).toLowerCase();
|
|
594
|
+
if (!type.endsWith("+xml") && !type.endsWith("/xml")) continue;
|
|
595
|
+
const doc = name === main ? xml : parseXmlPart(reader.get(name), context.xmlLimits);
|
|
596
|
+
const nodes = [{ node: doc.root }];
|
|
597
|
+
while (nodes.length) {
|
|
598
|
+
const { node, parent } = nodes.pop();
|
|
599
|
+
if (node.name.namespace === state.d.p && node.name.localName === "custShow" && parent?.name.localName !== "custShowLst")
|
|
600
|
+
checkId(attr2(node, "id"));
|
|
601
|
+
for (const attribute of node.attributes) {
|
|
602
|
+
if (attribute.name.localName !== "action" || !attribute.value.toLowerCase().startsWith("ppaction://customshow"))
|
|
603
|
+
continue;
|
|
604
|
+
let action;
|
|
605
|
+
try {
|
|
606
|
+
action = new URL(attribute.value);
|
|
607
|
+
} catch {
|
|
608
|
+
dangling();
|
|
609
|
+
}
|
|
610
|
+
if (action.hostname !== "customshow" || action.pathname || action.hash || action.username || action.password || action.port)
|
|
611
|
+
dangling();
|
|
612
|
+
const ids = action.searchParams.getAll("id");
|
|
613
|
+
if (ids.length !== 1) dangling();
|
|
614
|
+
action.searchParams.forEach((_value, key) => {
|
|
615
|
+
if (!["id", "return"].includes(key)) dangling();
|
|
616
|
+
});
|
|
617
|
+
checkId(ids[0]);
|
|
618
|
+
}
|
|
619
|
+
nodes.push(...node.children.map((child) => ({ node: child, parent: node })));
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
if (options.action === "add") {
|
|
624
|
+
if (!locate2(xml, kind)) {
|
|
625
|
+
if (kind === "shows") {
|
|
626
|
+
const preceding = [
|
|
627
|
+
"sldMasterIdLst",
|
|
628
|
+
"notesMasterIdLst",
|
|
629
|
+
"handoutMasterIdLst",
|
|
630
|
+
"sldIdLst",
|
|
631
|
+
"sldSz",
|
|
632
|
+
"notesSz",
|
|
633
|
+
"smartTags",
|
|
634
|
+
"embeddedFontLst"
|
|
635
|
+
];
|
|
636
|
+
const following = xml.root.children.findIndex(
|
|
637
|
+
(node) => !preceding.includes(node.name.localName)
|
|
638
|
+
);
|
|
639
|
+
xml = xml.spliceChildren(
|
|
640
|
+
xml.root,
|
|
641
|
+
following < 0 ? xml.root.children.length : following,
|
|
642
|
+
0,
|
|
643
|
+
[`<p:custShowLst xmlns:p="${state.d.p}"/>`]
|
|
644
|
+
);
|
|
645
|
+
} else {
|
|
646
|
+
let ext = only2(xml.root, "extLst", state.d.p);
|
|
647
|
+
if (!ext) {
|
|
648
|
+
xml = xml.spliceChildren(xml.root, xml.root.children.length, 0, [
|
|
649
|
+
`<p:extLst xmlns:p="${state.d.p}"/>`
|
|
650
|
+
]);
|
|
651
|
+
ext = only2(xml.root, "extLst", state.d.p);
|
|
652
|
+
}
|
|
653
|
+
xml = xml.spliceChildren(ext, ext.children.length, 0, [
|
|
654
|
+
`<p:ext xmlns:p="${state.d.p}" uri="${sectionExtension2}"><s:sectionLst xmlns:s="${sectionNamespace2}"/></p:ext>`
|
|
655
|
+
]);
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
let number = kind === "shows" ? 0 : 1;
|
|
659
|
+
const idFor = (n) => kind === "shows" ? String(n) : `{00000000-0000-0000-0000-${n.toString(16).toUpperCase().padStart(12, "0")}}`;
|
|
660
|
+
const used = new Set(
|
|
661
|
+
state.records.map(
|
|
662
|
+
(record2) => kind === "shows" ? String(Number(record2.id)) : record2.id.toUpperCase()
|
|
663
|
+
)
|
|
664
|
+
);
|
|
665
|
+
while (used.has(idFor(number))) number++;
|
|
666
|
+
if (number > 4294967295)
|
|
667
|
+
throw new OfficeError(
|
|
668
|
+
"resource-limit",
|
|
669
|
+
"Membership identities exhausted.",
|
|
670
|
+
"validate-intent"
|
|
671
|
+
);
|
|
672
|
+
const list = locate2(xml, kind);
|
|
673
|
+
const element = kind === "shows" ? `<p:custShow xmlns:p="${state.d.p}" name="" id="${idFor(number)}"><p:sldLst/></p:custShow>` : `<s:section xmlns:s="${sectionNamespace2}" name="" id="${idFor(number)}"><s:sldIdLst/></s:section>`;
|
|
674
|
+
xml = xml.spliceChildren(
|
|
675
|
+
list,
|
|
676
|
+
options.position === void 0 ? list.children.length : options.position - 1,
|
|
677
|
+
0,
|
|
678
|
+
[element]
|
|
679
|
+
);
|
|
680
|
+
const record = { id: idFor(number), name: "", position: 0, slides: [] };
|
|
681
|
+
selected.push(record);
|
|
682
|
+
}
|
|
683
|
+
for (const record of selected) {
|
|
684
|
+
let list = locate2(xml, kind);
|
|
685
|
+
const index = list.children.findIndex((node2) => attr2(node2, "id") === record.id);
|
|
686
|
+
if (options.action === "remove") {
|
|
687
|
+
xml = xml.spliceChildren(list, index, 1, []);
|
|
688
|
+
continue;
|
|
689
|
+
}
|
|
690
|
+
let node = list.children[index];
|
|
691
|
+
if (options.name !== void 0) {
|
|
692
|
+
xml = xml.merge(node, {
|
|
693
|
+
attributes: [{ namespace: "", localName: "name", value: options.name }]
|
|
694
|
+
});
|
|
695
|
+
list = locate2(xml, kind);
|
|
696
|
+
node = list.children[index];
|
|
697
|
+
}
|
|
698
|
+
if (options.slides !== void 0) {
|
|
699
|
+
const members = only2(node, kind === "shows" ? "sldLst" : "sldIdLst", state.ns);
|
|
700
|
+
if (members.attributes.some((a) => a.name.namespace !== "http://www.w3.org/2000/xmlns/") || members.children.some(
|
|
701
|
+
(child) => child.children.length || child.attributes.some(
|
|
702
|
+
(a) => a.name.namespace !== "http://www.w3.org/2000/xmlns/" && !(a.name.localName === "id" && a.name.namespace === (kind === "shows" ? state.d.r : ""))
|
|
703
|
+
)
|
|
704
|
+
))
|
|
705
|
+
fail2("unsupported-edit", "Unsupported membership entry extension.");
|
|
706
|
+
xml = xml.spliceChildren(
|
|
707
|
+
members,
|
|
708
|
+
0,
|
|
709
|
+
members.children.length,
|
|
710
|
+
options.slides.map((position) => {
|
|
711
|
+
const member = parseXmlPart(
|
|
712
|
+
new TextEncoder().encode(
|
|
713
|
+
kind === "shows" ? `<p:sld xmlns:p="${state.d.p}" xmlns:r="${state.d.r}" r:id=""/>` : `<s:sldId xmlns:s="${sectionNamespace2}" id=""/>`
|
|
714
|
+
),
|
|
715
|
+
context.xmlLimits
|
|
716
|
+
);
|
|
717
|
+
const edited = member.merge(member.root, {
|
|
718
|
+
attributes: [
|
|
719
|
+
{
|
|
720
|
+
namespace: kind === "shows" ? state.d.r : "",
|
|
721
|
+
localName: "id",
|
|
722
|
+
value: (kind === "shows" ? state.rels : state.ids)[position - 1]
|
|
723
|
+
}
|
|
724
|
+
]
|
|
725
|
+
});
|
|
726
|
+
return edited.markup(edited.root);
|
|
727
|
+
})
|
|
728
|
+
);
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
if (options.action === "set" && options.position !== void 0) {
|
|
732
|
+
const list = locate2(xml, kind);
|
|
733
|
+
const ids = new Set(selected.map((record) => record.id));
|
|
734
|
+
const moving = list.children.filter((node) => ids.has(attr2(node, "id")));
|
|
735
|
+
const ordered = list.children.filter((node) => !ids.has(attr2(node, "id")));
|
|
736
|
+
ordered.splice(options.position - 1, 0, ...moving);
|
|
737
|
+
xml = xml.reorderChildren(list, ordered);
|
|
738
|
+
}
|
|
739
|
+
const remaining = locate2(xml, kind);
|
|
740
|
+
if (remaining && !remaining.children.length) {
|
|
741
|
+
if (kind === "shows")
|
|
742
|
+
xml = xml.spliceChildren(xml.root, xml.root.children.indexOf(remaining), 1, []);
|
|
743
|
+
else {
|
|
744
|
+
const ext = only2(xml.root, "extLst", state.d.p);
|
|
745
|
+
const index = ext.children.findIndex((node) => node.children.includes(remaining));
|
|
746
|
+
xml = xml.spliceChildren(ext, index, 1, []);
|
|
747
|
+
const remainingExtensions = only2(xml.root, "extLst", state.d.p);
|
|
748
|
+
if (!remainingExtensions.children.length && remainingExtensions.attributes.every(
|
|
749
|
+
(a) => a.name.namespace === "http://www.w3.org/2000/xmlns/"
|
|
750
|
+
))
|
|
751
|
+
xml = xml.spliceChildren(xml.root, xml.root.children.indexOf(remainingExtensions), 1, []);
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
const original = reader.get(main), changed = xml.bytes();
|
|
755
|
+
if (original.length === changed.length && original.every((value, index) => value === changed[index]))
|
|
756
|
+
return source;
|
|
757
|
+
const output = await writePackageArchive(
|
|
758
|
+
reader.names.map((name) => ({
|
|
759
|
+
name: name.slice(1),
|
|
760
|
+
bytes: name === main ? xml.bytes() : reader.get(name)
|
|
761
|
+
})),
|
|
762
|
+
context,
|
|
763
|
+
{ compression: "auto", source }
|
|
764
|
+
);
|
|
765
|
+
if (!validatePresentation(await readPackage(output, context), limits).valid)
|
|
766
|
+
fail2("invalid-opc", "Changed memberships fail graph validation.");
|
|
767
|
+
return output;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
export {
|
|
771
|
+
openRetainedMemberships,
|
|
772
|
+
stageRetainedMemberships,
|
|
773
|
+
readMemberships,
|
|
774
|
+
mutateMemberships
|
|
775
|
+
};
|