@poe-platform/safe-bash 0.1.812 → 0.1.813
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/audio-ast/id3-source.d.ts +27 -0
- package/dist/audio-ast/index.d.ts +4 -0
- package/dist/audio-ast/index.js +996 -596
- package/dist/audio-ast/mp3-source.d.ts +18 -0
- package/dist/audio-ast/ogg-source.d.ts +25 -0
- package/dist/audio-ast/ogg-stream-source.d.ts +22 -0
- package/dist/image-ast/index.js +139 -9
- package/dist/mp4-ast/containers/adapters.d.ts +7 -0
- package/dist/office-xml/retained-xml-document.d.ts +8 -0
- package/dist/pdf-ast/ast.d.ts +2 -0
- package/dist/pdf-ast/content/dictionary-cursor.d.ts +15 -0
- package/dist/pdf-ast/content/range-operator-parser.d.ts +4 -0
- package/dist/pdf-ast/content/stored-dictionary.d.ts +10 -0
- package/dist/pdf-ast/cos/lexer.d.ts +8 -5
- package/dist/pdf-ast/cos/object-reader.d.ts +4 -3
- package/dist/pdf-ast/cos/range-parser.d.ts +4 -0
- package/dist/pdf-ast/cos/retained-objects.d.ts +1 -0
- package/dist/pdf-ast/cos/retained-writer.d.ts +1 -0
- package/dist/pdf-ast/cos/value-parser.d.ts +9 -0
- package/dist/pdf-ast/edit/retained-append-attachments.d.ts +13 -0
- package/dist/pdf-ast/edit/retained-bookmarks.d.ts +13 -0
- package/dist/pdf-ast/edit/retained-graph.d.ts +6 -0
- package/dist/pdf-ast/edit/retained-save.d.ts +2 -0
- package/dist/pdf-ast/edit/retained-stamps.d.ts +9 -0
- package/dist/pdf-ast/fonts/resolve.d.ts +3 -1
- package/dist/pdf-ast/index.d.ts +3 -1
- package/dist/pdf-ast/index.js +1557 -770
- package/dist/safe-bash/audio-ast.browser.js +6 -1
- package/dist/safe-bash/chunks/{chunk-HHSOUC3Z.js → chunk-HPQE675Q.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-BUYRKFW2.js → chunk-I6ECNJMR.js} +1 -1
- package/dist/safe-bash/chunks/{pdftk-WRYEP3CA.js → pdftk-Y2TX74LY.js} +2 -1
- package/dist/safe-bash/command-chunks/biff-4ALVARRF-7SRX6R6N.js +5192 -0
- package/dist/safe-bash/command-chunks/{chunk-EHSM5ZQS.js → chunk-2DGJOOXM.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-Q6S57NOQ.js → chunk-2E2H7MBH.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-MMBZTYXO.js → chunk-2PQRZDNR.js} +221 -0
- package/dist/safe-bash/command-chunks/{chunk-NARD63DY.js → chunk-2V6FOLXV.js} +22 -66
- package/dist/safe-bash/command-chunks/{chunk-56NYSX65.js → chunk-2Z3WRRFT.js} +9 -9
- package/dist/safe-bash/command-chunks/chunk-3D24WDND.js +63 -0
- package/dist/safe-bash/command-chunks/{chunk-47NEG4UO.js → chunk-3JST2Q7G.js} +219 -43
- package/dist/safe-bash/command-chunks/{chunk-WGG6G2KG.js → chunk-3LJAXFH5.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-AHA6IWAJ.js → chunk-3TYDSGAH.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-YSMNXMAO.js → chunk-3Y4XZB24.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-ZIIO6GRY.js → chunk-4PBNMKAT.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-JFYWVQ4V.js → chunk-4Z6W5EOC.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-GEM47B2P.js → chunk-57DDYKE5.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-4CKFNXRN.js → chunk-5IFRAI7Y.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-RHYJVTJO.js → chunk-5KGEZ3RW.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-A5FZBR7X.js → chunk-5MFDRSGG.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-7GKKMNL6.js → chunk-5P6I2T63.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-6M6TM5Z5.js → chunk-5VQVZPP3.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-MIRL7HTF.js → chunk-6244HYJY.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-63EMPQ7Z.js +115 -0
- package/dist/safe-bash/command-chunks/{chunk-XRVKWGVQ.js → chunk-6CY5BHBS.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-XVP6V5K3.js → chunk-6IWE7PTK.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-6QBMND4A.js → chunk-6SRHWVEB.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-6ZHQB453.js +35 -0
- package/dist/safe-bash/command-chunks/chunk-73NYFNAS.js +173 -0
- package/dist/safe-bash/command-chunks/{chunk-2JSDKQ4J.js → chunk-7NXTEWPR.js} +119 -44
- package/dist/safe-bash/command-chunks/{chunk-554Z6IKP.js → chunk-7PRL6RJ6.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-SDTPO2VV.js → chunk-7PZHWMK6.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-XZ2FWFNV.js → chunk-7QZ2HP2F.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-OEJM666F.js → chunk-7UC2Q6Z6.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-COKYZUBW.js → chunk-AJI55RS7.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-WXRYDALR.js → chunk-BBAB7LC4.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-QYMEASQ6.js → chunk-BEHUSUOY.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-Z2JW6M2D.js → chunk-BK7ISUJL.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-33YCKZZX.js → chunk-C5KLFZGT.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-TVH4JORU.js → chunk-C5QDEB3I.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-N4R2SHSS.js → chunk-CCZZVCHX.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-2VLAXKTS.js → chunk-CTDC4LJT.js} +121 -85
- package/dist/safe-bash/command-chunks/{chunk-S6R3IB36.js → chunk-D55REQA3.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-Y4EYCZFT.js → chunk-D6WJY6QO.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-2CORNDGF.js → chunk-DBLHCJJU.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-SPW4GW4Z.js → chunk-DFI7QF3M.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-456PHA3L.js → chunk-DMCI6T6N.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-TW73OXPR.js → chunk-EJTNVXWF.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-QD7ZRDUN.js → chunk-ET2VPDUA.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-CJQSAATC.js → chunk-EXOQGXEU.js} +26 -26
- package/dist/safe-bash/command-chunks/{chunk-CRV2Q3PB.js → chunk-EZ4NQIPL.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-FWKLBDMK.js +0 -0
- package/dist/safe-bash/command-chunks/{chunk-22MOB45U.js → chunk-FWPVQGYK.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-QC5RMGSA.js → chunk-G3RUXKVY.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-JYUJAF4L.js → chunk-G7NENPYV.js} +4 -0
- package/dist/safe-bash/command-chunks/{chunk-KCOJA7EM.js → chunk-GKILM4HZ.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-HTVIYLVB.js → chunk-GNXTMSYN.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-D2ASPM7R.js → chunk-GOBUDKZ3.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-RNSKXOG3.js → chunk-GVWVRPG6.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-FDCIPJBQ.js → chunk-HCKYUQ3L.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-AGLK7OJR.js → chunk-HDSIIQBS.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-DM2CPMB4.js → chunk-HKOMXGJS.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-IT7TAC3F.js → chunk-HVW53ARH.js} +16 -16
- package/dist/safe-bash/command-chunks/{chunk-M7QE2MN7.js → chunk-I4GMCWAT.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-HWQ2UHMT.js → chunk-IHSOOSNC.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-LCZDBW55.js → chunk-JAHJWVGF.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-MOZD7RUY.js → chunk-JORIVUPM.js} +27 -11
- package/dist/safe-bash/command-chunks/{chunk-PMAM4N33.js → chunk-JUJHYPYL.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-ENT3IV2G.js → chunk-KBUBSMCQ.js} +12 -12
- package/dist/safe-bash/command-chunks/{chunk-ZXR6LXV5.js → chunk-KCE5D4Z4.js} +48 -4
- package/dist/safe-bash/command-chunks/{chunk-FIIAYCWS.js → chunk-KZ5ODST6.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-PNGDJA6M.js → chunk-LD7BONZY.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-KJ4XXZIL.js → chunk-M3Z5PU2M.js} +582 -59
- package/dist/safe-bash/command-chunks/{chunk-LXLLA4PM.js → chunk-MKX4JAZ6.js} +17 -17
- package/dist/safe-bash/command-chunks/{chunk-RQIQ75W5.js → chunk-MNHBQBF6.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-A2CLZMQZ.js → chunk-MPKY37QR.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-K5GB2YMN.js → chunk-MUUWBZIC.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-JOCFI7TG.js → chunk-N32GSM3J.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-EUT24Y5Z.js → chunk-NKTULXVD.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-5HPU7D36.js → chunk-NMPED6L5.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-QZZ73J2O.js → chunk-NPFHUS4X.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-X7FA7ZD5.js → chunk-O675URF4.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-R6EGGK5M.js → chunk-P7EL2FWW.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-YS25EI54.js → chunk-PCCFLPUQ.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-RRL3Y562.js → chunk-PI6MOMHA.js} +11 -11
- package/dist/safe-bash/command-chunks/{chunk-26VCZHLJ.js → chunk-PIOQBOEK.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-PK36TVXB.js +175 -0
- package/dist/safe-bash/command-chunks/{chunk-3Q247UDJ.js → chunk-PKLJRB7W.js} +264 -129
- package/dist/safe-bash/command-chunks/{chunk-6CCQI6XZ.js → chunk-PSCOXGCA.js} +12 -12
- package/dist/safe-bash/command-chunks/{chunk-XPD636C4.js → chunk-PVGZMLC6.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-JQVHUSDD.js → chunk-PXWS3Q7L.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-HDJVJTCK.js → chunk-QFF5KBOM.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-MPUHH2KR.js → chunk-QM2HZJSJ.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-UAXSE3XE.js → chunk-R2BMZAHG.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-KB7DUBVL.js → chunk-RGOQKIG6.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-D2KZ66W4.js → chunk-RLCQ7BN3.js} +187 -39
- package/dist/safe-bash/command-chunks/{chunk-B5LDP7AA.js → chunk-S2N2V5U4.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-OA75SGN2.js → chunk-SGPCXAG7.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-QUM3SYAJ.js → chunk-SYSX46IV.js} +3 -3
- package/dist/safe-bash/command-chunks/chunk-T3E5RV3U.js +737 -0
- package/dist/safe-bash/command-chunks/{chunk-YORJDX4V.js → chunk-T5ERNELL.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-ZEX53S5I.js → chunk-T6C5QP7T.js} +6368 -6230
- package/dist/safe-bash/command-chunks/{chunk-ATTWQVR2.js → chunk-TKRLZIFI.js} +17 -17
- package/dist/safe-bash/command-chunks/{chunk-ZMHEGDU2.js → chunk-TODWFDYB.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-XVLWZTPY.js → chunk-TQEB4DH4.js} +543 -144
- package/dist/safe-bash/command-chunks/{chunk-36XGIPOG.js → chunk-U5TWQFZY.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-APEWTWCC.js → chunk-UAF4IX5H.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-6VPQ3CDZ.js → chunk-V37D6AHO.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-RID6VYS3.js → chunk-V6XBEYPC.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-WJCN2IXI.js → chunk-VQOINPVF.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-W5YSINXC.js → chunk-VVWXY6IA.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-HKATEVAP.js → chunk-WPVBUVFK.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-UYWSIIUX.js → chunk-X53AEG36.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-L5MCW6CM.js → chunk-X64XGIXZ.js} +9 -155
- package/dist/safe-bash/command-chunks/{chunk-Q73EMLLZ.js → chunk-X6RHJ6YN.js} +84 -5
- package/dist/safe-bash/command-chunks/{chunk-7PVHO47B.js → chunk-XG6UWQV5.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-NQDIT667.js → chunk-XIDGHIGB.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-CV7M2QJU.js → chunk-XLYIVBAR.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-WVMHRNXZ.js → chunk-YUXTK3XA.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-SPLOIABU.js → chunk-YXD6VGVG.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-2ZFLMWOX.js → chunk-Z5BIM5B7.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-ZYLGNIGA.js +156 -0
- package/dist/safe-bash/command-chunks/{command-engine-BCUQGJJ4.js → command-engine-X3OLN7N6.js} +150 -67
- package/dist/safe-bash/command-chunks/{engine-LAUEWYSQ-DQCEI5HE.js → engine-XUCIFZ7V-LJFGZM6O.js} +1 -1
- package/dist/safe-bash/command-chunks/paradox-4FCZE53D-LQPGVMEL.js +365 -0
- package/dist/safe-bash/commands/pandoc/index.browser.js +1 -1
- package/dist/safe-bash/full-core.browser.js +2 -2
- package/dist/safe-bash/plugins/index.browser.js +2 -2
- package/dist/safe-bash-command-diff/diff.js +1 -1
- package/dist/safe-bash-command-diff/index.js +1 -1
- package/dist/safe-bash-command-ffmpeg/index.js +1 -1
- package/dist/safe-bash-command-ffprobe/index.js +2 -2
- package/dist/safe-bash-command-ffprobe/media.d.ts +3 -1
- package/dist/safe-bash-command-ffprobe/media.js +2 -2
- package/dist/safe-bash-command-html-to-markdown/budget.js +2 -1
- package/dist/safe-bash-command-html-to-markdown/entities.js +4 -3
- package/dist/safe-bash-command-html-to-markdown/index.js +564 -110
- package/dist/safe-bash-command-html-to-markdown/input.js +6 -5
- package/dist/safe-bash-command-html-to-markdown/options.js +2 -1
- package/dist/safe-bash-command-html-to-markdown/parser.js +5 -4
- package/dist/safe-bash-command-html-to-markdown/render.js +6 -5
- package/dist/safe-bash-command-html-to-markdown/text.js +3 -2
- package/dist/safe-bash-command-htmlq/index.js +361 -37
- package/dist/safe-bash-command-htmlq/tree.d.ts +3 -2
- package/dist/safe-bash-command-pandoc/command.js +7 -7
- package/dist/safe-bash-command-pandoc/index.js +55 -55
- package/dist/safe-bash-command-patch/index.js +6 -6
- package/dist/safe-bash-command-patch/patch-envelope.js +53 -3
- package/dist/safe-bash-command-patch/patch-formats.d.ts +2 -2
- package/dist/safe-bash-command-patch/patch-formats.js +2 -2
- package/dist/safe-bash-command-patch/patch-gnu-reject.d.ts +2 -1
- package/dist/safe-bash-command-patch/patch-gnu-reject.js +4 -3
- package/dist/safe-bash-command-patch/patch-publication.js +2 -1
- package/dist/safe-bash-command-patch/patch.js +6 -6
- package/dist/safe-bash-command-patch/unified.d.ts +10 -2
- package/dist/safe-bash-command-patch/unified.js +1 -1
- package/dist/safe-bash-command-pdftk/index.d.ts +6 -2
- package/dist/safe-bash-command-pdftk/index.js +830 -271
- package/dist/safe-bash-command-pptx/command-engine.d.ts +3 -0
- package/dist/safe-bash-command-pptx/engine.js +1 -1
- package/dist/safe-bash-command-pptx/index.js +9 -2
- package/dist/safe-bash-command-soffice/index.js +1 -1
- package/dist/safe-bash-command-ssconvert/index.js +2 -2
- package/dist/safe-bash-command-xmllint/index.js +22 -31
- package/dist/safe-bash-presentation-engine/accessibility.js +31 -30
- package/dist/safe-bash-presentation-engine/animation-editing.js +16 -15
- package/dist/safe-bash-presentation-engine/animations.js +16 -15
- package/dist/safe-bash-presentation-engine/backgrounds.js +17 -16
- package/dist/safe-bash-presentation-engine/bytes.js +3 -3
- package/dist/safe-bash-presentation-engine/chart-editing.js +34 -33
- package/dist/safe-bash-presentation-engine/chart-object-operations.js +25 -24
- package/dist/safe-bash-presentation-engine/charts.js +31 -30
- package/dist/safe-bash-presentation-engine/command-placeholder.js +59 -56
- package/dist/safe-bash-presentation-engine/comments.js +17 -16
- package/dist/safe-bash-presentation-engine/connector-operations.js +32 -31
- package/dist/safe-bash-presentation-engine/connectors.js +29 -28
- package/dist/safe-bash-presentation-engine/content-types.js +4 -4
- package/dist/safe-bash-presentation-engine/creation.js +6 -6
- package/dist/safe-bash-presentation-engine/diff.js +32 -31
- package/dist/safe-bash-presentation-engine/drawing-enums.d.ts +10 -10
- package/dist/safe-bash-presentation-engine/drawing-format.js +20 -19
- package/dist/safe-bash-presentation-engine/drawing-operations.js +31 -30
- package/dist/safe-bash-presentation-engine/drawing-schema.js +21 -20
- package/dist/safe-bash-presentation-engine/equations.js +17 -16
- package/dist/safe-bash-presentation-engine/errors.js +2 -2
- package/dist/safe-bash-presentation-engine/fields.js +17 -16
- package/dist/safe-bash-presentation-engine/font-metrics.js +3 -3
- package/dist/safe-bash-presentation-engine/image-extraction.js +20 -19
- package/dist/safe-bash-presentation-engine/image-formatting.js +32 -31
- package/dist/safe-bash-presentation-engine/image-insertion.js +18 -17
- package/dist/safe-bash-presentation-engine/image-replacement.js +21 -20
- package/dist/safe-bash-presentation-engine/image-value.js +4 -4
- package/dist/safe-bash-presentation-engine/images.js +19 -18
- package/dist/safe-bash-presentation-engine/index.d.ts +5 -1
- package/dist/safe-bash-presentation-engine/index.js +109 -96
- package/dist/safe-bash-presentation-engine/layouts.js +16 -15
- package/dist/safe-bash-presentation-engine/length.js +3 -3
- package/dist/safe-bash-presentation-engine/links.js +16 -15
- package/dist/safe-bash-presentation-engine/masters.js +15 -14
- package/dist/safe-bash-presentation-engine/media-editing.js +24 -23
- package/dist/safe-bash-presentation-engine/media-extraction.js +17 -16
- package/dist/safe-bash-presentation-engine/media.js +16 -15
- package/dist/safe-bash-presentation-engine/memberships.js +15 -14
- package/dist/safe-bash-presentation-engine/notes.js +16 -15
- package/dist/safe-bash-presentation-engine/ole-enum.js +4 -4
- package/dist/safe-bash-presentation-engine/ole-insertion.js +20 -19
- package/dist/safe-bash-presentation-engine/opaque-objects.js +9 -9
- package/dist/safe-bash-presentation-engine/package-reader.js +5 -5
- package/dist/safe-bash-presentation-engine/package-tools.d.ts +3 -0
- package/dist/safe-bash-presentation-engine/package-tools.js +27 -17
- package/dist/safe-bash-presentation-engine/package-uri.js +3 -3
- package/dist/safe-bash-presentation-engine/package-writer.js +4 -4
- package/dist/safe-bash-presentation-engine/presentation-model.js +58 -55
- package/dist/safe-bash-presentation-engine/presentation-settings.js +14 -13
- package/dist/safe-bash-presentation-engine/properties.js +16 -15
- package/dist/safe-bash-presentation-engine/relationships.js +4 -4
- package/dist/safe-bash-presentation-engine/resource-limits.js +1 -1
- package/dist/safe-bash-presentation-engine/retained-archive-staging.d.ts +19 -0
- package/dist/safe-bash-presentation-engine/retained-extraction-output.d.ts +18 -0
- package/dist/safe-bash-presentation-engine/retained-inspection.js +14 -12
- package/dist/safe-bash-presentation-engine/retained-package-extraction.d.ts +22 -0
- package/dist/safe-bash-presentation-engine/retained-package-packing.d.ts +19 -0
- package/dist/safe-bash-presentation-engine/retained-package.d.ts +2 -0
- package/dist/safe-bash-presentation-engine/retained-package.js +6 -4
- package/dist/safe-bash-presentation-engine/retained-text.js +19 -17
- package/dist/safe-bash-presentation-engine/retained-xml-parts.d.ts +5 -1
- package/dist/safe-bash-presentation-engine/retained-xml-publication.d.ts +18 -0
- package/dist/safe-bash-presentation-engine/retained-xml-replacement.d.ts +13 -0
- package/dist/safe-bash-presentation-engine/sanitize.js +17 -16
- package/dist/safe-bash-presentation-engine/selectors.js +10 -10
- package/dist/safe-bash-presentation-engine/shape-groups.js +31 -30
- package/dist/safe-bash-presentation-engine/shape-operations.js +30 -29
- package/dist/safe-bash-presentation-engine/shape-path-operations.js +32 -31
- package/dist/safe-bash-presentation-engine/shape-paths.js +16 -15
- package/dist/safe-bash-presentation-engine/shape-presets.js +3 -3
- package/dist/safe-bash-presentation-engine/shape-selection.js +31 -30
- package/dist/safe-bash-presentation-engine/shape-transforms.js +18 -17
- package/dist/safe-bash-presentation-engine/shapes.d.ts +1 -1
- package/dist/safe-bash-presentation-engine/shapes.js +27 -26
- package/dist/safe-bash-presentation-engine/slide-copy.js +17 -16
- package/dist/safe-bash-presentation-engine/slide-import.js +18 -17
- package/dist/safe-bash-presentation-engine/slide-merge-split.js +20 -19
- package/dist/safe-bash-presentation-engine/slide-model.js +43 -42
- package/dist/safe-bash-presentation-engine/slide-removal.js +18 -17
- package/dist/safe-bash-presentation-engine/slide-transfer-budget.js +9 -9
- package/dist/safe-bash-presentation-engine/slides.js +19 -16
- package/dist/safe-bash-presentation-engine/table-operations.js +33 -32
- package/dist/safe-bash-presentation-engine/table-spans.js +32 -31
- package/dist/safe-bash-presentation-engine/tables.js +31 -30
- package/dist/safe-bash-presentation-engine/tags.js +16 -15
- package/dist/safe-bash-presentation-engine/template-bindings.js +33 -32
- package/dist/safe-bash-presentation-engine/template-repeat.js +40 -39
- package/dist/safe-bash-presentation-engine/text-fitting.js +27 -26
- package/dist/safe-bash-presentation-engine/text-frames.js +27 -26
- package/dist/safe-bash-presentation-engine/text-paragraphs.js +27 -26
- package/dist/safe-bash-presentation-engine/text-reading.js +11 -11
- package/dist/safe-bash-presentation-engine/text-replacement.js +17 -16
- package/dist/safe-bash-presentation-engine/text-runs.js +20 -19
- package/dist/safe-bash-presentation-engine/themes.js +16 -15
- package/dist/safe-bash-presentation-engine/transitions.js +16 -15
- package/dist/safe-bash-presentation-engine/validation.js +10 -9
- package/dist/safe-bash-presentation-engine/xml-parts.d.ts +2 -0
- package/dist/safe-bash-presentation-engine/xml-parts.js +23 -15
- package/dist/safe-bash-presentation-engine/xml-view.js +3 -3
- package/dist/safe-bash-presentation-engine/xml.js +3 -3
- package/dist/safe-bash-regex-engine/index.js +1 -1
- package/dist/safe-bash-regex-engine/python-glob.js +1 -1
- package/dist/safe-bash-regex-engine/text/regex.d.ts +19 -0
- package/dist/safe-bash-regex-engine/text/regex.js +1 -1
- 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.d.ts +1 -0
- package/dist/safe-bash-xml-engine/index.js +8 -4
- package/dist/safe-bash-xml-engine/query.js +2 -2
- package/dist/safe-bash-xml-engine/recovery.d.ts +10 -0
- package/dist/safe-bash-xml-engine/stored-document.d.ts +1 -1
- package/dist/safe-bash-xml-engine/stored-document.js +1 -1
- package/dist/safe-bash-xml-engine/stored-evaluate.js +1 -1
- package/dist/spreadsheet-engine/formulas/functions/python-printf.js +56 -33
- package/dist/spreadsheet-format-xls/biff-encrypted-properties.d.ts +1 -1
- package/dist/spreadsheet-format-xls/biff-encrypted-properties.js +47 -18
- package/dist/spreadsheet-format-xls/biff-properties-merge.d.ts +6 -2
- package/dist/spreadsheet-format-xls/biff-properties-merge.js +413 -296
- package/dist/spreadsheet-format-xls/biff-properties-write.js +40 -23
- package/dist/spreadsheet-format-xls/biff-properties.js +3 -68
- package/dist/spreadsheet-format-xls/biff-property-index.d.ts +23 -0
- package/dist/spreadsheet-format-xls/biff-property-index.js +93 -0
- package/dist/spreadsheet-format-xls/biff-property-name.d.ts +4 -0
- package/dist/spreadsheet-format-xls/biff-property-name.js +114 -0
- package/dist/spreadsheet-format-xls/biff-property-text.d.ts +6 -0
- package/dist/spreadsheet-format-xls/biff-property-text.js +68 -0
- package/dist/spreadsheet-format-xls/biff-property-transcode.d.ts +5 -0
- package/dist/spreadsheet-format-xls/biff-property-transcode.js +45 -0
- package/package.json +6 -3
- package/dist/safe-bash/command-chunks/biff-YKPDH35C-MVQIWNKV.js +0 -4974
- package/dist/safe-bash/command-chunks/chunk-5Q22ZLNC.js +0 -127
- package/dist/safe-bash/command-chunks/chunk-JKLOBSMP.js +0 -56
- package/dist/safe-bash/command-chunks/chunk-JYTESTBS.js +0 -99
- package/dist/safe-bash/command-chunks/chunk-ZEGNRZV2.js +0 -333
- package/dist/safe-bash/command-chunks/paradox-ZWWXYY4J-JYOSWSBL.js +0 -362
- package/dist/spreadsheet-format-xls/biff-properties-layout.js +0 -56
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseUnified,
|
|
3
3
|
parseUnifiedSection
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JORIVUPM.js";
|
|
5
5
|
import {
|
|
6
6
|
decodeHeaderPath
|
|
7
7
|
} from "./chunk-AJEQUVDN.js";
|
|
@@ -10,15 +10,23 @@ import {
|
|
|
10
10
|
import { ToolError, integer } from "../../safe-bash-diff-engine/shared.js";
|
|
11
11
|
import { byteLength } from "../../safe-bash-io-engine/byte-encoding.js";
|
|
12
12
|
var Reader = class {
|
|
13
|
-
constructor(
|
|
13
|
+
constructor(input, budget, admit = true) {
|
|
14
14
|
this.budget = budget;
|
|
15
|
-
|
|
15
|
+
if (typeof input === "string") {
|
|
16
|
+
const lines = budget.split(input).map((line) => line.slice(0, -1));
|
|
17
|
+
this.input = { length: lines.length, async read(index) {
|
|
18
|
+
return lines[index];
|
|
19
|
+
} };
|
|
20
|
+
} else {
|
|
21
|
+
if (admit) budget.countLines(input.length);
|
|
22
|
+
this.input = input;
|
|
23
|
+
}
|
|
16
24
|
}
|
|
17
25
|
budget;
|
|
18
|
-
|
|
26
|
+
input;
|
|
19
27
|
index = 0;
|
|
20
28
|
peek() {
|
|
21
|
-
return this.
|
|
29
|
+
return this.input.read(this.index);
|
|
22
30
|
}
|
|
23
31
|
async take() {
|
|
24
32
|
this.budget.step();
|
|
@@ -26,7 +34,7 @@ var Reader = class {
|
|
|
26
34
|
const c = this.budget.checkpoint();
|
|
27
35
|
if (c) await c;
|
|
28
36
|
}
|
|
29
|
-
const line = this.
|
|
37
|
+
const line = await this.input.read(this.index++);
|
|
30
38
|
if (line === void 0) throw new ToolError("truncated patch");
|
|
31
39
|
return line;
|
|
32
40
|
}
|
|
@@ -40,7 +48,7 @@ var Reader = class {
|
|
|
40
48
|
if (line !== prefix && !(prefix === " " && line === "") && !line.startsWith(`${prefix} `) && !line.startsWith(`${prefix} `)) throw new ToolError("malformed patch body prefix");
|
|
41
49
|
let text = `${line.slice(2)}
|
|
42
50
|
`;
|
|
43
|
-
if (this.peek() === "\") {
|
|
51
|
+
if (await this.peek() === "\") {
|
|
44
52
|
await this.take();
|
|
45
53
|
if (text === "\n") throw new ToolError("empty incomplete line is not a valid text line");
|
|
46
54
|
text = text.slice(0, -1);
|
|
@@ -51,17 +59,17 @@ var Reader = class {
|
|
|
51
59
|
function encoded(line) {
|
|
52
60
|
return `${line.kind}${line.text}${line.text.endsWith("\n") ? "" : "\n\\n"}`;
|
|
53
61
|
}
|
|
54
|
-
async function normal(reader, target) {
|
|
62
|
+
async function* normal(reader, target) {
|
|
55
63
|
const quoted = JSON.stringify(target ?? "/dev/null");
|
|
56
|
-
|
|
64
|
+
yield `--- ${quoted}
|
|
57
65
|
+++ ${quoted}
|
|
58
|
-
|
|
59
|
-
while (reader.peek() !== void 0) {
|
|
60
|
-
if (reader.peek() === "") {
|
|
66
|
+
`;
|
|
67
|
+
while (await reader.peek() !== void 0) {
|
|
68
|
+
if (await reader.peek() === "") {
|
|
61
69
|
await reader.take();
|
|
62
70
|
continue;
|
|
63
71
|
}
|
|
64
|
-
if (!/^\d/u.test(reader.peek())) break;
|
|
72
|
+
if (!/^\d/u.test(await reader.peek())) break;
|
|
65
73
|
const command = /^(\d+)(?:,(\d+))?([acd])(\d+)(?:,(\d+))?$/u.exec(await reader.take());
|
|
66
74
|
if (!command) throw new ToolError("malformed normal patch command");
|
|
67
75
|
const oldStart = reader.number(command[1]);
|
|
@@ -72,13 +80,12 @@ async function normal(reader, target) {
|
|
|
72
80
|
if (oldLast < oldStart || newLast < newStart || operation === "a" && command[2] !== void 0 || operation === "d" && command[5] !== void 0) throw new ToolError("invalid normal patch range");
|
|
73
81
|
const oldCount = operation === "a" ? 0 : oldLast - oldStart + 1;
|
|
74
82
|
const newCount = operation === "d" ? 0 : newLast - newStart + 1;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
for (let index = 0; index < oldCount; index++)
|
|
83
|
+
yield `@@ -${oldStart},${oldCount} +${newStart},${newCount} @@
|
|
84
|
+
`;
|
|
85
|
+
for (let index = 0; index < oldCount; index++) yield encoded({ kind: "-", text: await reader.content("<") });
|
|
78
86
|
if (operation === "c" && await reader.take() !== "---") throw new ToolError("missing normal change separator");
|
|
79
|
-
for (let index = 0; index < newCount; index++)
|
|
87
|
+
for (let index = 0; index < newCount; index++) yield encoded({ kind: "+", text: await reader.content(">") });
|
|
80
88
|
}
|
|
81
|
-
return output.join("");
|
|
82
89
|
}
|
|
83
90
|
async function contextRange(reader, old) {
|
|
84
91
|
const line = await reader.take();
|
|
@@ -90,19 +97,34 @@ async function contextRange(reader, old) {
|
|
|
90
97
|
return { start, last, multiple: match[2] !== void 0 };
|
|
91
98
|
}
|
|
92
99
|
async function contextSide(reader, old, range) {
|
|
93
|
-
const
|
|
100
|
+
const start = reader.index;
|
|
101
|
+
let length = 0, common = 0, changed = false, incomplete = false;
|
|
94
102
|
const count = range.start === 0 ? 0 : range.last - range.start + 1;
|
|
95
|
-
while (reader.peek() !== void 0 &&
|
|
96
|
-
const kind = reader.peek() === "" ? " " : reader.peek()[0];
|
|
103
|
+
while (await reader.peek() !== void 0 && length < count) {
|
|
104
|
+
const kind = await reader.peek() === "" ? " " : (await reader.peek())[0];
|
|
97
105
|
if (kind !== " " && kind !== "!" && kind !== (old ? "-" : "+")) break;
|
|
98
|
-
if (old && /^--- \d+(?:,\d+)? ----$/u.test(reader.peek())) break;
|
|
99
|
-
|
|
100
|
-
|
|
106
|
+
if (old && /^--- \d+(?:,\d+)? ----$/u.test(await reader.peek())) break;
|
|
107
|
+
const text = await reader.content(kind);
|
|
108
|
+
incomplete = !text.endsWith("\n");
|
|
109
|
+
length++;
|
|
110
|
+
if (kind === " ") common++;
|
|
111
|
+
changed ||= kind === "!";
|
|
112
|
+
if (length > reader.budget.limits.maxLines) throw new ToolError("context body line limit exceeded");
|
|
101
113
|
}
|
|
102
|
-
if (!old &&
|
|
103
|
-
while (reader.peek() === "\") await reader.take();
|
|
114
|
+
if (!old && length === count && incomplete) {
|
|
115
|
+
while (await reader.peek() === "\") await reader.take();
|
|
116
|
+
}
|
|
117
|
+
return { start, records: length, length, common, changed };
|
|
118
|
+
}
|
|
119
|
+
async function* contextLines(reader, side) {
|
|
120
|
+
const replay = new Reader(reader.input, reader.budget, false);
|
|
121
|
+
replay.index = side.start;
|
|
122
|
+
for (let index = 0; index < side.records; index++) {
|
|
123
|
+
const prefix = await replay.peek();
|
|
124
|
+
const kind = prefix === "" ? " " : prefix[0];
|
|
125
|
+
const text = await replay.content(kind);
|
|
126
|
+
if (!side.commonOnly || kind === " ") yield { kind, text };
|
|
104
127
|
}
|
|
105
|
-
return lines;
|
|
106
128
|
}
|
|
107
129
|
function contextCount(range, lines) {
|
|
108
130
|
if (!lines.length) {
|
|
@@ -112,24 +134,23 @@ function contextCount(range, lines) {
|
|
|
112
134
|
if (range.start === 0 || lines.length !== range.last - range.start + 1) throw new ToolError("context body count does not match range");
|
|
113
135
|
return lines.length;
|
|
114
136
|
}
|
|
115
|
-
async function context(reader) {
|
|
116
|
-
|
|
117
|
-
while (reader.peek() !== void 0) {
|
|
137
|
+
async function* context(reader) {
|
|
138
|
+
while (await reader.peek() !== void 0) {
|
|
118
139
|
const header = await reader.take();
|
|
119
140
|
if (header === "") continue;
|
|
120
141
|
if (/^diff -[^ ]+ /u.test(header)) {
|
|
121
|
-
|
|
122
|
-
|
|
142
|
+
yield `${header}
|
|
143
|
+
`;
|
|
123
144
|
continue;
|
|
124
145
|
}
|
|
125
146
|
if (!header.startsWith("*** ")) throw new ToolError("expected context file header");
|
|
126
147
|
const next = await reader.take();
|
|
127
148
|
if (!next.startsWith("--- ")) throw new ToolError("expected new context file header");
|
|
128
|
-
|
|
149
|
+
yield `--- ${header.slice(4)}
|
|
129
150
|
+++ ${next.slice(4)}
|
|
130
|
-
|
|
151
|
+
`;
|
|
131
152
|
let hunks = 0;
|
|
132
|
-
while (reader.peek()?.startsWith("***************")) {
|
|
153
|
+
while ((await reader.peek())?.startsWith("***************")) {
|
|
133
154
|
const delimiter = await reader.take();
|
|
134
155
|
if (!/^\*{15}(?: .*)?$/u.test(delimiter)) throw new ToolError("malformed context hunk separator");
|
|
135
156
|
if (++hunks > reader.budget.limits.maxHunks) throw new ToolError("hunk limit exceeded");
|
|
@@ -138,82 +159,85 @@ async function context(reader) {
|
|
|
138
159
|
const newRange = await contextRange(reader, false);
|
|
139
160
|
let newLines = await contextSide(reader, false, newRange);
|
|
140
161
|
if (!oldLines.length) {
|
|
141
|
-
if (newLines.
|
|
142
|
-
oldLines = newLines
|
|
162
|
+
if (newLines.changed) throw new ToolError("missing old changed context body");
|
|
163
|
+
oldLines = { ...newLines, length: newLines.common, commonOnly: true };
|
|
143
164
|
}
|
|
144
165
|
if (!newLines.length) {
|
|
145
|
-
if (oldLines.
|
|
146
|
-
newLines = oldLines
|
|
166
|
+
if (oldLines.changed) throw new ToolError("missing new changed context body");
|
|
167
|
+
newLines = { ...oldLines, length: oldLines.common, commonOnly: true };
|
|
147
168
|
}
|
|
148
169
|
const oldCount = contextCount(oldRange, oldLines);
|
|
149
170
|
const newCount = contextCount(newRange, newLines);
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
171
|
+
yield `@@ -${oldRange.start},${oldCount} +${newRange.start},${newCount} @@${delimiter.slice(15)}
|
|
172
|
+
`;
|
|
173
|
+
const oldIterator = contextLines(reader, oldLines), newIterator = contextLines(reader, newLines);
|
|
174
|
+
try {
|
|
175
|
+
let oldLine = await oldIterator.next(), newLine = await newIterator.next();
|
|
176
|
+
while (!oldLine.done || !newLine.done) {
|
|
177
|
+
let oldChanged = false, newChanged = false;
|
|
178
|
+
while (!oldLine.done && oldLine.value.kind !== " ") {
|
|
179
|
+
oldChanged ||= oldLine.value.kind === "!";
|
|
180
|
+
yield encoded({ kind: "-", text: oldLine.value.text });
|
|
181
|
+
reader.budget.step();
|
|
182
|
+
{
|
|
183
|
+
const c = reader.budget.checkpoint();
|
|
184
|
+
if (c) await c;
|
|
185
|
+
}
|
|
186
|
+
oldLine = await oldIterator.next();
|
|
165
187
|
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
188
|
+
while (!newLine.done && newLine.value.kind !== " ") {
|
|
189
|
+
newChanged ||= newLine.value.kind === "!";
|
|
190
|
+
yield encoded({ kind: "+", text: newLine.value.text });
|
|
191
|
+
reader.budget.step();
|
|
192
|
+
{
|
|
193
|
+
const c = reader.budget.checkpoint();
|
|
194
|
+
if (c) await c;
|
|
195
|
+
}
|
|
196
|
+
newLine = await newIterator.next();
|
|
197
|
+
}
|
|
198
|
+
if (oldChanged !== newChanged) throw new ToolError("unpaired changed context group");
|
|
199
|
+
if (!oldLine.done || !newLine.done) {
|
|
200
|
+
if (oldLine.done || newLine.done || !reader.budget.equal(oldLine.value.text, newLine.value.text)) throw new ToolError("context halves disagree");
|
|
201
|
+
yield encoded({ kind: " ", text: oldLine.value.text });
|
|
202
|
+
oldLine = await oldIterator.next();
|
|
203
|
+
newLine = await newIterator.next();
|
|
175
204
|
}
|
|
176
205
|
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
const newLine = newLines[newIndex++];
|
|
181
|
-
if (!oldLine || !newLine || !reader.budget.equal(oldLine.text, newLine.text)) throw new ToolError("context halves disagree");
|
|
182
|
-
output.push(encoded({ kind: " ", text: oldLine.text }));
|
|
183
|
-
}
|
|
206
|
+
} finally {
|
|
207
|
+
await oldIterator.return(void 0);
|
|
208
|
+
await newIterator.return(void 0);
|
|
184
209
|
}
|
|
185
210
|
}
|
|
186
211
|
if (!hunks) throw new ToolError("context file patch has no hunks");
|
|
187
212
|
break;
|
|
188
213
|
}
|
|
189
|
-
return output.join("");
|
|
190
214
|
}
|
|
191
|
-
async function parsePatch(text, budget, format, target, progress) {
|
|
192
|
-
if (text && !text.endsWith("\n")) throw new ToolError("patch is truncated: missing final LF");
|
|
215
|
+
async function parsePatch(text, budget, format, target, progress, convert) {
|
|
216
|
+
if (typeof text === "string" && text && !text.endsWith("\n")) throw new ToolError("patch is truncated: missing final LF");
|
|
193
217
|
const reader = new Reader(text, budget);
|
|
194
218
|
const patches = [];
|
|
195
219
|
let convertedBytes = 0;
|
|
196
|
-
while (reader.peek() !== void 0) {
|
|
220
|
+
while (await reader.peek() !== void 0) {
|
|
197
221
|
try {
|
|
198
|
-
if (reader.peek() === "") {
|
|
222
|
+
if (await reader.peek() === "") {
|
|
199
223
|
await reader.take();
|
|
200
224
|
continue;
|
|
201
225
|
}
|
|
202
|
-
if (!progress && patches.length && reader.peek().startsWith("-") && !reader.peek().startsWith("---")) {
|
|
226
|
+
if (!progress && patches.length && (await reader.peek()).startsWith("-") && !(await reader.peek()).startsWith("---")) {
|
|
203
227
|
throw new ToolError("unexpected deletion outside a patch hunk");
|
|
204
228
|
}
|
|
205
|
-
if (patches.length && !/^(?:Index: |diff |index |---|\*\*\*|@@|[+\\<>]|\d)/u.test(reader.peek())) {
|
|
229
|
+
if (patches.length && !/^(?:Index: |diff |index |---|\*\*\*|@@|[+\\<>]|\d)/u.test(await reader.peek())) {
|
|
206
230
|
await reader.take();
|
|
207
231
|
continue;
|
|
208
232
|
}
|
|
209
233
|
let indexPath;
|
|
210
|
-
if (reader.peek()?.startsWith("Index: ")) {
|
|
234
|
+
if ((await reader.peek())?.startsWith("Index: ")) {
|
|
211
235
|
indexPath = decodeHeaderPath((await reader.take()).slice(7));
|
|
212
|
-
if (/^=+$/u.test(reader.peek() ?? "")) await reader.take();
|
|
236
|
+
if (/^=+$/u.test(await reader.peek() ?? "")) await reader.take();
|
|
213
237
|
}
|
|
214
238
|
const start = reader.index;
|
|
215
|
-
while (/^diff /u.test(reader.peek() ?? "")) await reader.take();
|
|
216
|
-
const first = reader.peek() ?? "";
|
|
239
|
+
while (/^diff /u.test(await reader.peek() ?? "")) await reader.take();
|
|
240
|
+
const first = await reader.peek() ?? "";
|
|
217
241
|
const detected = first.startsWith("*** ") ? "context" : /^\d/u.test(first) ? "normal" : "unified";
|
|
218
242
|
if (format && detected !== format) throw new ToolError(`patch format is ${detected}, not requested ${format}`);
|
|
219
243
|
if (detected === "unified") {
|
|
@@ -221,10 +245,22 @@ async function parsePatch(text, budget, format, target, progress) {
|
|
|
221
245
|
patches.push(...(await parseUnifiedSection(reader, budget)).map((patch) => ({ ...patch, ...indexPath === void 0 ? {} : { indexPath } })));
|
|
222
246
|
} else {
|
|
223
247
|
if (detected === "context") reader.index = start;
|
|
224
|
-
const
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
248
|
+
const source = detected === "normal" ? normal(reader, target ?? indexPath) : context(reader);
|
|
249
|
+
const converted = { async *[Symbol.asyncIterator]() {
|
|
250
|
+
for await (const chunk of source) {
|
|
251
|
+
convertedBytes += byteLength(chunk);
|
|
252
|
+
yield chunk;
|
|
253
|
+
}
|
|
254
|
+
if (convertedBytes > budget.limits.maxInputBytes * 2 + 16384) throw new ToolError("converted patch byte limit exceeded");
|
|
255
|
+
} };
|
|
256
|
+
let parsed;
|
|
257
|
+
if (convert) parsed = await convert(converted);
|
|
258
|
+
else {
|
|
259
|
+
const chunks = [];
|
|
260
|
+
for await (const chunk of converted) chunks.push(chunk);
|
|
261
|
+
parsed = await parseUnified(chunks.join(""), budget);
|
|
262
|
+
}
|
|
263
|
+
patches.push(...parsed.map((patch) => ({
|
|
228
264
|
...patch,
|
|
229
265
|
format: detected,
|
|
230
266
|
...indexPath === void 0 ? {} : { indexPath },
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
escape
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2Z3WRRFT.js";
|
|
4
4
|
import {
|
|
5
5
|
writePackageArchive
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HKOMXGJS.js";
|
|
7
7
|
import {
|
|
8
8
|
buildSelectionIndex,
|
|
9
9
|
readSelectionIndex
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-O675URF4.js";
|
|
11
11
|
import {
|
|
12
12
|
readPackage
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PVGZMLC6.js";
|
|
14
14
|
import {
|
|
15
15
|
readBinary
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LD7BONZY.js";
|
|
17
17
|
import {
|
|
18
18
|
parseXmlPart
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-7PRL6RJ6.js";
|
|
20
20
|
import {
|
|
21
21
|
parseContentTypes
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VQOINPVF.js";
|
|
23
23
|
import {
|
|
24
24
|
readRelationshipGraph
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-TODWFDYB.js";
|
|
26
26
|
import {
|
|
27
27
|
relativePartReference
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-U5TWQFZY.js";
|
|
29
29
|
import {
|
|
30
30
|
OfficeError
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
32
32
|
|
|
33
33
|
// packages/safe-bash-presentation-engine/src/links.ts
|
|
34
34
|
var dialects = [
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
dashPresets,
|
|
3
3
|
patternPresets
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BEHUSUOY.js";
|
|
5
5
|
import {
|
|
6
6
|
themeColorSlots
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5KGEZ3RW.js";
|
|
8
8
|
|
|
9
9
|
// packages/safe-bash-presentation-engine/src/drawing-schema.ts
|
|
10
10
|
var ratio = { type: "number", minimum: 0, maximum: 1 };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Builder
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HDSIIQBS.js";
|
|
4
4
|
|
|
5
|
-
// packages/safe-bash-command-html-to-markdown/
|
|
5
|
+
// packages/safe-bash-command-html-to-markdown/dist/chunk-NX7FWHIP.js
|
|
6
6
|
var htmlSpace = (character) => character === " " || character === " " || character === "\r" || character === "\n" || character === "\f";
|
|
7
7
|
async function trimText(text, budget) {
|
|
8
8
|
let start = 0, end = text.length;
|
|
@@ -3,25 +3,25 @@ import {
|
|
|
3
3
|
createShapeXml,
|
|
4
4
|
readShape,
|
|
5
5
|
validateShapeOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HVW53ARH.js";
|
|
7
7
|
import {
|
|
8
8
|
ShapeIdAllocator
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BBAB7LC4.js";
|
|
10
10
|
import {
|
|
11
11
|
readShapeGeometry
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3Y4XZB24.js";
|
|
13
13
|
import {
|
|
14
14
|
attr,
|
|
15
15
|
child,
|
|
16
16
|
loadShared,
|
|
17
17
|
required
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2Z3WRRFT.js";
|
|
19
19
|
import {
|
|
20
20
|
SelectionError
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-O675URF4.js";
|
|
22
22
|
import {
|
|
23
23
|
OfficeError
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
25
25
|
|
|
26
26
|
// packages/safe-bash-presentation-engine/src/shape-operations.ts
|
|
27
27
|
function validateSelection(options, action) {
|
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
import {
|
|
2
2
|
validateXmlPartReplacement,
|
|
3
3
|
validateXmlViewReplacement
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-M3Z5PU2M.js";
|
|
5
5
|
import {
|
|
6
6
|
Slide,
|
|
7
7
|
Slides,
|
|
8
8
|
indexed,
|
|
9
9
|
preservePlaceholder,
|
|
10
10
|
reparentInsertedAsset
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TKRLZIFI.js";
|
|
12
12
|
import {
|
|
13
13
|
Chart,
|
|
14
14
|
insertChartIntoState,
|
|
15
15
|
inspectWorkbook,
|
|
16
16
|
replaceChartData
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-MKX4JAZ6.js";
|
|
18
18
|
import {
|
|
19
19
|
createPresentation
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-YXD6VGVG.js";
|
|
21
21
|
import {
|
|
22
22
|
addOleObject
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-NKTULXVD.js";
|
|
24
24
|
import {
|
|
25
25
|
createLiveLinkSession,
|
|
26
26
|
isOrdinaryLinkUrl
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-D6WJY6QO.js";
|
|
28
28
|
import {
|
|
29
29
|
applyPresentationCanvasSettings
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-JUJHYPYL.js";
|
|
31
31
|
import {
|
|
32
32
|
prepareSlideInsertion
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-2V6FOLXV.js";
|
|
34
34
|
import {
|
|
35
35
|
CoreProperties,
|
|
36
36
|
createPropertyPart
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-5VQVZPP3.js";
|
|
38
38
|
import {
|
|
39
39
|
Image
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-S2N2V5U4.js";
|
|
41
41
|
import {
|
|
42
42
|
addMedia
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-5P6I2T63.js";
|
|
44
44
|
import {
|
|
45
45
|
addImage
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-GKILM4HZ.js";
|
|
47
47
|
import {
|
|
48
48
|
readShape
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-HVW53ARH.js";
|
|
50
50
|
import {
|
|
51
51
|
createXmlElementView
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-5IFRAI7Y.js";
|
|
53
53
|
import {
|
|
54
54
|
Length
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-6SRHWVEB.js";
|
|
56
56
|
import {
|
|
57
57
|
attr,
|
|
58
58
|
child,
|
|
@@ -60,46 +60,46 @@ import {
|
|
|
60
60
|
loadShared,
|
|
61
61
|
relPart,
|
|
62
62
|
required
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-2Z3WRRFT.js";
|
|
64
64
|
import {
|
|
65
65
|
writePackageArchive
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-HKOMXGJS.js";
|
|
67
67
|
import {
|
|
68
68
|
buildSelectionIndex
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-O675URF4.js";
|
|
70
70
|
import {
|
|
71
71
|
readPackage
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-PVGZMLC6.js";
|
|
73
73
|
import {
|
|
74
74
|
readBinary,
|
|
75
75
|
writeBinary
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-LD7BONZY.js";
|
|
77
77
|
import {
|
|
78
78
|
parseXmlPart
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-7PRL6RJ6.js";
|
|
80
80
|
import {
|
|
81
81
|
parseContentTypes
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-VQOINPVF.js";
|
|
83
83
|
import {
|
|
84
84
|
parseRelationships,
|
|
85
85
|
readRelationshipGraph
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-TODWFDYB.js";
|
|
87
87
|
import {
|
|
88
88
|
packageUri,
|
|
89
89
|
partName,
|
|
90
90
|
resolvePartReference
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-U5TWQFZY.js";
|
|
92
92
|
import {
|
|
93
93
|
IndexError,
|
|
94
94
|
InvalidHandleError,
|
|
95
95
|
PropertyAccessError,
|
|
96
96
|
TypeError,
|
|
97
97
|
ValueError
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-D55REQA3.js";
|
|
99
99
|
import {
|
|
100
100
|
OfficeError,
|
|
101
101
|
resolveOfficeResources
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
103
103
|
|
|
104
104
|
// packages/safe-bash-presentation-engine/src/links-model.ts
|
|
105
105
|
var values = {
|
|
File without changes
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readImages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-57DDYKE5.js";
|
|
4
4
|
import {
|
|
5
5
|
nodeFor
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EJTNVXWF.js";
|
|
7
7
|
import {
|
|
8
8
|
applyShapeUpdate,
|
|
9
9
|
validateShapeOptions
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HVW53ARH.js";
|
|
11
11
|
import {
|
|
12
12
|
attr,
|
|
13
13
|
child,
|
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
invalid,
|
|
16
16
|
loadShared,
|
|
17
17
|
required
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2Z3WRRFT.js";
|
|
19
19
|
import {
|
|
20
20
|
SelectionError
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-O675URF4.js";
|
|
22
22
|
import {
|
|
23
23
|
OfficeError
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
25
25
|
|
|
26
26
|
// packages/safe-bash-presentation-engine/src/image-formatting.ts
|
|
27
27
|
var sides = [
|