@poe-platform/safe-bash 0.1.812 → 0.1.814
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/mp4-ast/index.d.ts +2 -0
- package/dist/mp4-ast/mp4-sample-source.d.ts +52 -0
- package/dist/mp4-ast/mp4-source.d.ts +32 -0
- package/dist/office-xml/retained-xml-document.d.ts +14 -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/evaluator.d.ts +4 -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 +11 -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 +10 -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-form-appearances.d.ts +10 -0
- package/dist/pdf-ast/edit/retained-graph.d.ts +12 -0
- package/dist/pdf-ast/edit/retained-info-updates.d.ts +33 -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 +1966 -844
- package/dist/pdf-ast/retained-document.d.ts +5 -0
- 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-KRHJ63K3-VQPJCVIL.js +5309 -0
- package/dist/safe-bash/command-chunks/{chunk-34G2SQX2.js → chunk-2BLTUQNK.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-LLU2IQEJ.js → chunk-2BNGPR6Z.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-HWQ2UHMT.js → chunk-2ETEJOYX.js} +18 -18
- package/dist/safe-bash/command-chunks/{chunk-NQDIT667.js → chunk-2PKBXGXD.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-MMBZTYXO.js → chunk-2PQRZDNR.js} +221 -0
- package/dist/safe-bash/command-chunks/{chunk-6QBMND4A.js → chunk-2VVJRVYM.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-G5QVZQCO.js → chunk-3EASXF5D.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-U3SBHEKH.js → chunk-3EB2FSAN.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-VB2TUPO2.js → chunk-3EW7GYHM.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-RNSKXOG3.js → chunk-3GRMU7TM.js} +6 -6
- package/dist/safe-bash/command-chunks/chunk-3JM7E42I.js +197 -0
- package/dist/safe-bash/command-chunks/{chunk-6L4IYQAT.js → chunk-3MG5EAMX.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-RASQPOSV.js → chunk-3SPLP2DB.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-K5COUQAQ.js → chunk-3VGQTLO6.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-K7CV55K5.js → chunk-3YEQI5B7.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-ZXR6LXV5.js → chunk-3ZRCL756.js} +48 -4
- package/dist/safe-bash/command-chunks/{chunk-SOFM3GPG.js → chunk-42MEXZBJ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-GQ2ZSPZ3.js → chunk-46AMTJPE.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-MTWZEPAR.js → chunk-47IAU25U.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-6GI3NTCW.js → chunk-4B2ZUGLT.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-L5MCW6CM.js → chunk-4EHY6J2Z.js} +9 -155
- package/dist/safe-bash/command-chunks/{chunk-QQVACHZA.js → chunk-4EZJV4FZ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-SSKMPDN4.js → chunk-4GQKCUS5.js} +15 -15
- package/dist/safe-bash/command-chunks/{chunk-UOBW5K3M.js → chunk-4RRYWHED.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-PINR7QET.js → chunk-4UPKVQWH.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-M7QE2MN7.js → chunk-4YLACJHE.js} +6 -6
- package/dist/safe-bash/command-chunks/chunk-5BIQWWLB.js +175 -0
- package/dist/safe-bash/command-chunks/{chunk-P3WU3PSL.js → chunk-5L4YGRQU.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-HKATEVAP.js → chunk-5LFGXN3D.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-SPLOIABU.js → chunk-5OM3UIK3.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-TVH4JORU.js → chunk-6LPSKLLD.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-CV7M2QJU.js → chunk-6QYSF7I2.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-XVP6V5K3.js → chunk-6VBDJC6V.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-6N5GHM72.js → chunk-6WNVGCXD.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-6CCQI6XZ.js → chunk-6XES7Z4G.js} +12 -12
- package/dist/safe-bash/command-chunks/{chunk-AFROLW6S.js → chunk-6XGDWFNQ.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-WTE23QXN.js → chunk-6ZGCKUAM.js} +3 -3
- package/dist/safe-bash/command-chunks/chunk-6ZHQB453.js +35 -0
- package/dist/safe-bash/command-chunks/{chunk-RIV6XN7K.js → chunk-7DOLY7IV.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-QD7ZRDUN.js → chunk-7KZ5LWV2.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-NGR5KOPQ.js → chunk-A347DLRB.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-ZM2Y4Z3C.js → chunk-A45UG4KT.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-56NYSX65.js → chunk-ADHFF2IM.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-ATI464W3.js → chunk-AG2SNMP5.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-FDCIPJBQ.js → chunk-AM5LANIE.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-3Q247UDJ.js → chunk-AVGXFWEB.js} +278 -135
- package/dist/safe-bash/command-chunks/{chunk-RBTC7OFT.js → chunk-AVOGFREX.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-QC5RMGSA.js → chunk-AWPI4DZR.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-FYMNHG7R.js → chunk-AXXZNB7U.js} +13 -13
- package/dist/safe-bash/command-chunks/{chunk-Q6S57NOQ.js → chunk-AY3KQ4EN.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-456PHA3L.js → chunk-BLGGAHQW.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-CU4DLVME.js → chunk-BLIFGBIO.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-NARD63DY.js → chunk-BS3ZEQGT.js} +22 -66
- package/dist/safe-bash/command-chunks/{chunk-WFVSUXJL.js → chunk-BS5JEUEW.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-UYWSIIUX.js → chunk-BZMNC7Q5.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-RHYJVTJO.js → chunk-CCMAHM3I.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-N4R2SHSS.js → chunk-CCZZVCHX.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-WGG6G2KG.js → chunk-CIRDVCAZ.js} +7 -7
- package/dist/safe-bash/command-chunks/chunk-CK2WFJZN.js +178 -0
- package/dist/safe-bash/command-chunks/{chunk-UZL7G57V.js → chunk-CKEMZUE3.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-B5LDP7AA.js → chunk-CQBACD2V.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-JYUJAF4L.js → chunk-CSE4VQKG.js} +16 -1
- package/dist/safe-bash/command-chunks/{chunk-Q73EMLLZ.js → chunk-CXME4YHU.js} +107 -5
- package/dist/safe-bash/command-chunks/{chunk-FTLDRH47.js → chunk-CZ5K2YPU.js} +16 -16
- package/dist/safe-bash/command-chunks/{chunk-554Z6IKP.js → chunk-DBLQUZGN.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-6M6TM5Z5.js → chunk-DBNJEXHK.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-SPW4GW4Z.js → chunk-DFI7QF3M.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-ZO5WBWLL.js → chunk-DN6MSXY7.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-GXLXWZWH.js → chunk-DZH54L3F.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-XRVKWGVQ.js → chunk-EBHOZIBS.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-3Y5EME26.js → chunk-ENEIE44W.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-ATTWQVR2.js → chunk-EQWFKNHJ.js} +17 -17
- package/dist/safe-bash/command-chunks/{chunk-YV72XQKL.js → chunk-ETXPMVR6.js} +13 -13
- package/dist/safe-bash/command-chunks/{chunk-JFYWVQ4V.js → chunk-EV5G535P.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-PZMU3Z4L.js → chunk-EVYKV3QI.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-D6UMSC45.js → chunk-F4YFTO2K.js} +11 -11
- package/dist/safe-bash/command-chunks/{chunk-MPUHH2KR.js → chunk-F762XDNG.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-D2ASPM7R.js → chunk-FF7UGJWS.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-OA75SGN2.js → chunk-FOONI6BD.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-DYLNU57U.js → chunk-FSVJ67G5.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-CLKOGAR3.js → chunk-FSYMSWJU.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-22MOB45U.js → chunk-FUQMEUAT.js} +6 -6
- package/dist/safe-bash/command-chunks/chunk-FWKLBDMK.js +0 -0
- package/dist/safe-bash/command-chunks/{chunk-KXPCSVAT.js → chunk-FXCSPPYE.js} +20 -20
- package/dist/safe-bash/command-chunks/{chunk-XZ2FWFNV.js → chunk-FYYFV6PW.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-3OETVNJA.js → chunk-G2COZLXX.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-ZEX53S5I.js → chunk-G3TAX3CV.js} +7369 -7221
- package/dist/safe-bash/command-chunks/{chunk-LXLLA4PM.js → chunk-GCHB7VNX.js} +17 -17
- package/dist/safe-bash/command-chunks/{chunk-4Y6O2K35.js → chunk-GLAF45M7.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-OEJM666F.js → chunk-GQGMQMIM.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-RRL3Y562.js → chunk-GXMPXMDP.js} +11 -11
- package/dist/safe-bash/command-chunks/{chunk-GEM47B2P.js → chunk-GYM5ICK4.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-A5FZBR7X.js → chunk-H33D4R26.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-AGLK7OJR.js → chunk-HDSIIQBS.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-3ZDANXIC.js → chunk-HELAVGZH.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-S4QH5BXZ.js → chunk-HGIMFVI2.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-35IPOBWL.js → chunk-HI6ZYH3W.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-KB7DUBVL.js → chunk-HK6MSB7Z.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-7ZE3VIAN.js → chunk-IB5QP4LF.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-UCR5YDV3.js → chunk-IBYMPAUW.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-LABOWPFB.js → chunk-IHXZMAMY.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-XPD636C4.js → chunk-IWHNRYER.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-PPO7YUZF.js → chunk-JGKSWDGP.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-KCOJA7EM.js → chunk-JR3Q6QNL.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-S6R3IB36.js → chunk-JUHOL5KB.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-3O2YEI47.js → chunk-JVKE7YZN.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-6NATRKUJ.js → chunk-JW6WVNTM.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-IK6K2HCG.js → chunk-JWORWL72.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-JOCFI7TG.js → chunk-K2WOMJOQ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-XVLWZTPY.js → chunk-K4XNUJVJ.js} +543 -144
- package/dist/safe-bash/command-chunks/{chunk-DM2CPMB4.js → chunk-KBAQHE5Y.js} +2 -2
- package/dist/safe-bash/command-chunks/chunk-KCLJGRU7.js +737 -0
- package/dist/safe-bash/command-chunks/{chunk-TUDFMNPP.js → chunk-KINIV2SV.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-43TRBJ2N.js → chunk-KPHLESD4.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-47NEG4UO.js → chunk-KRRG4MGH.js} +222 -46
- package/dist/safe-bash/command-chunks/{chunk-33YCKZZX.js → chunk-KSBNZTAZ.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-4Y34ZG4T.js → chunk-KUOCGGEU.js} +11 -11
- package/dist/safe-bash/command-chunks/{chunk-ML5R5JML.js → chunk-KY4LCHUF.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-2JSDKQ4J.js → chunk-LAPOMHGY.js} +251 -239
- package/dist/safe-bash/command-chunks/{chunk-ENT3IV2G.js → chunk-LDW3RF7Y.js} +12 -12
- package/dist/safe-bash/command-chunks/{chunk-U27XPNLP.js → chunk-LEO4VRIN.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-GZ3VIWNN.js → chunk-LKGTH2Q7.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-ZMHEGDU2.js → chunk-LNTEV56A.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-DVGXLBUW.js → chunk-LZ2JFMKT.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-6D2BMAF4.js → chunk-MEM2ZPMI.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-HTVIYLVB.js → chunk-MGMTRGKM.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-B3NLITWP.js → chunk-MKK6FM5H.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-Z2JW6M2D.js → chunk-MKOIPOXX.js} +3 -3
- package/dist/safe-bash/command-chunks/chunk-MLOYUXUV.js +244 -0
- package/dist/safe-bash/command-chunks/{chunk-CBNKHBLD.js → chunk-MNK3DDH6.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-JVGUVHWI.js → chunk-MPXMRTMY.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-TW73OXPR.js → chunk-MVLVIMJ6.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-TY4WDAHM.js → chunk-MYZ46FQL.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-TBAIMDGL.js → chunk-N4MUBJCT.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-NPLVFAD6.js → chunk-N6G3345Q.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-ZIIO6GRY.js → chunk-NEMUPUUB.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-K5GB2YMN.js → chunk-NEVQWOU6.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-FIIAYCWS.js → chunk-NFGCBQN3.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-PNGDJA6M.js → chunk-NFII726L.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-JQPNA77Y.js → chunk-NHNZYWPW.js} +2 -2
- package/dist/safe-bash/command-chunks/chunk-NQINS4XY.js +156 -0
- package/dist/safe-bash/command-chunks/{chunk-APEWTWCC.js → chunk-NRFTYZ2R.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-THMZLJQD.js → chunk-NYFYTL5G.js} +18 -18
- package/dist/safe-bash/command-chunks/{chunk-SMSGLRIH.js → chunk-OTF2AJ5M.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-QZZ73J2O.js → chunk-OVQP6KH5.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-HDJVJTCK.js → chunk-P2LT6TGR.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-YS25EI54.js → chunk-PCCFLPUQ.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-26VCZHLJ.js → chunk-PIOQBOEK.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-D2KZ66W4.js → chunk-PIVH35EQ.js} +190 -42
- package/dist/safe-bash/command-chunks/{chunk-QYMEASQ6.js → chunk-PLMF35XK.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-JQVHUSDD.js → chunk-PLR5IULU.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-2CORNDGF.js → chunk-PS5GDFIP.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-R6EGGK5M.js → chunk-Q5PWYPQV.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-COKYZUBW.js → chunk-Q7TVCBU2.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-EHTOHOTR.js → chunk-QB72X7FF.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-F3GP3EXE.js → chunk-RGDOYWOD.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-RQIQ75W5.js → chunk-RHDERFMR.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-3KMOXEGH.js → chunk-RHU44OMN.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-7PVHO47B.js → chunk-RIVKF77R.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-UOR6PXZZ.js → chunk-ROL5AEX6.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-AHA6IWAJ.js → chunk-RQYPFLZJ.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-YSMNXMAO.js → chunk-RTNI47C5.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-W5LLKV5H.js → chunk-RV5AGXOV.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-PMAM4N33.js → chunk-RXQ2G2YK.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-EVU7FLDA.js → chunk-S2QNBAN6.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-YE6OAKK7.js → chunk-S43QRKDC.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-774GLJAO.js → chunk-S7HIOT7Z.js} +4 -4
- package/dist/safe-bash/command-chunks/chunk-SEPUP6TZ.js +63 -0
- package/dist/safe-bash/command-chunks/{chunk-JPMYPOYZ.js → chunk-SUTHGUD3.js} +28 -28
- package/dist/safe-bash/command-chunks/chunk-SW37YCBW.js +286 -0
- package/dist/safe-bash/command-chunks/{chunk-Y4EYCZFT.js → chunk-SWAKALDJ.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-QUM3SYAJ.js → chunk-SYSX46IV.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-WGH3RLJY.js → chunk-T5S4SJGO.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-7JEIWA3A.js → chunk-TID5TSQW.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-CRV2Q3PB.js → chunk-TJLXSENN.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-IT7TAC3F.js → chunk-TKCUGMRZ.js} +24 -20
- package/dist/safe-bash/command-chunks/{chunk-7GKKMNL6.js → chunk-TXPDKEGY.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-A2CLZMQZ.js → chunk-UJERQEJB.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-6VPQ3CDZ.js → chunk-USGZN2KE.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-LCZDBW55.js → chunk-UYGQEQIP.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-MPORWUTU.js → chunk-V5XC43BX.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-AIMSZBWP.js → chunk-V7E3PZOK.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-CNHRVUHA.js → chunk-VDTFVRYX.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-KJ4XXZIL.js → chunk-VT2PHQ63.js} +582 -59
- package/dist/safe-bash/command-chunks/{chunk-MOZD7RUY.js → chunk-VT7UBPAE.js} +38 -15
- package/dist/safe-bash/command-chunks/{chunk-QDVI2YB6.js → chunk-VUWXLH3E.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-X7FA7ZD5.js → chunk-W3ZSWK76.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-JPA2PUYI.js → chunk-WBKB7HBZ.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-MIRL7HTF.js → chunk-WJ2ERUCQ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-36XGIPOG.js → chunk-WTVJLHMG.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-SLQWQKXP.js → chunk-WWHMI4S3.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-2UBZALAK.js → chunk-WYZG3DRR.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-YORJDX4V.js → chunk-WZRFS5OY.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-EHSM5ZQS.js → chunk-X6OHFKBL.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-S6ZTBXYO.js → chunk-XKAUKLF7.js} +13 -13
- package/dist/safe-bash/command-chunks/{chunk-EUT24Y5Z.js → chunk-XM5QJCPD.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-WXRYDALR.js → chunk-XMTR7QGL.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-4CKFNXRN.js → chunk-XNGM3W5R.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-2ZFLMWOX.js → chunk-XTEIT5CI.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-4DLIUTQV.js → chunk-XU6S3XUZ.js} +11 -11
- package/dist/safe-bash/command-chunks/{chunk-CJQSAATC.js → chunk-XUJAQA3S.js} +30 -30
- package/dist/safe-bash/command-chunks/{chunk-W5YSINXC.js → chunk-Y42KSX63.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-UAXSE3XE.js → chunk-Y54L4P4J.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-6WQD7LRA.js → chunk-YAD7EV4N.js} +14 -14
- package/dist/safe-bash/command-chunks/{chunk-WVMHRNXZ.js → chunk-YRPXBGRX.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-5HPU7D36.js → chunk-Z2WNYEPD.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-SDTPO2VV.js → chunk-Z7QOSXQC.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-WJCN2IXI.js → chunk-ZQM37BGE.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-W3HV45CI.js → chunk-ZSQZHFWS.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-IDJQP3A6.js → chunk-ZTMZO4IT.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-RID6VYS3.js → chunk-ZU2KJMXO.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-YXKNJ6EM.js → chunk-ZXELXF2H.js} +5 -5
- package/dist/safe-bash/command-chunks/{clipboard-BBDK33GP-VB22F7GI.js → clipboard-BBDK33GP-QZ4ERNQX.js} +2 -2
- package/dist/safe-bash/command-chunks/{command-engine-BCUQGJJ4.js → command-engine-7V6PZR7G.js} +1012 -678
- package/dist/safe-bash/command-chunks/{engine-LAUEWYSQ-DQCEI5HE.js → engine-UYJENSWK-VSCGKSQV.js} +1 -1
- package/dist/safe-bash/command-chunks/{gnumeric-UJPXWBVR-YPXTNEDZ.js → gnumeric-UJPXWBVR-7VOHQAPM.js} +2 -2
- package/dist/safe-bash/command-chunks/{model-store-E7BHBFJC.js → model-store-UB5DWMAP.js} +24 -24
- 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-awk/awk-runtime.js +3 -3
- package/dist/safe-bash-command-awk/awk.js +4 -4
- package/dist/safe-bash-command-awk/index.js +4 -4
- package/dist/safe-bash-command-diff/diff.js +2 -2
- package/dist/safe-bash-command-diff/index.js +3 -3
- package/dist/safe-bash-command-diff/sync.js +2 -2
- package/dist/safe-bash-command-du/du.js +2 -2
- package/dist/safe-bash-command-du/index.js +2 -2
- 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 +533 -310
- 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/stored-text.d.ts +50 -0
- package/dist/safe-bash-command-html-to-markdown/stored-text.js +12 -0
- package/dist/safe-bash-command-html-to-markdown/text.js +3 -2
- package/dist/safe-bash-command-htmlq/contracts.d.ts +5 -0
- package/dist/safe-bash-command-htmlq/index.js +2006 -259
- package/dist/safe-bash-command-htmlq/selectors.d.ts +38 -1
- package/dist/safe-bash-command-htmlq/serializer.d.ts +1 -0
- package/dist/safe-bash-command-htmlq/tree.d.ts +4 -2
- package/dist/safe-bash-command-iconv/command.js +2 -2
- package/dist/safe-bash-command-iconv/index.js +2 -2
- package/dist/safe-bash-command-llm/command.js +3 -3
- package/dist/safe-bash-command-llm/index.js +9 -9
- package/dist/safe-bash-command-llm/openai.js +2 -2
- package/dist/safe-bash-command-llm/providers/index.js +2 -2
- package/dist/safe-bash-command-llm/providers/openai.js +2 -2
- package/dist/safe-bash-command-node/commands/node/browser.js +2 -2
- package/dist/safe-bash-command-node/commands/node/default-runtime.js +2 -2
- package/dist/safe-bash-command-node/commands/node/safejs.js +2 -2
- package/dist/safe-bash-command-pandoc/command.js +7 -7
- package/dist/safe-bash-command-pandoc/index.js +46 -46
- 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 +7 -2
- package/dist/safe-bash-command-patch/patch-formats.js +6 -4
- package/dist/safe-bash-command-patch/patch-gnu-paths.d.ts +7 -7
- package/dist/safe-bash-command-patch/patch-gnu-reject.d.ts +3 -2
- 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/stored-patch.d.ts +26 -0
- package/dist/safe-bash-command-patch/stored-target.d.ts +40 -0
- package/dist/safe-bash-command-patch/unified.d.ts +23 -10
- package/dist/safe-bash-command-patch/unified.js +3 -1
- package/dist/safe-bash-command-pdftk/index.d.ts +6 -2
- package/dist/safe-bash-command-pdftk/index.js +1247 -373
- package/dist/safe-bash-command-playwright-cli/index.js +26 -26
- package/dist/safe-bash-command-playwright-cli/playwright/abilities.js +10 -10
- package/dist/safe-bash-command-playwright-cli/playwright/controller.js +14 -14
- package/dist/safe-bash-command-playwright-cli/playwright/index.js +23 -23
- package/dist/safe-bash-command-playwright-cli/playwright/snapshot.js +2 -2
- package/dist/safe-bash-command-playwright-cli/playwright/standard-capabilities.js +6 -6
- package/dist/safe-bash-command-playwright-cli/playwright/storage-capabilities.js +4 -4
- package/dist/safe-bash-command-pptx/command-engine.d.ts +5 -1
- package/dist/safe-bash-command-pptx/engine.js +1 -1
- package/dist/safe-bash-command-pptx/index.d.ts +1 -1
- package/dist/safe-bash-command-pptx/index.js +172 -19
- package/dist/safe-bash-command-pptx/streaming-inputs.d.ts +7 -2
- package/dist/safe-bash-command-python/executor.js +5 -5
- package/dist/safe-bash-command-python/index.js +5 -5
- package/dist/safe-bash-command-python/jspi.js +2 -2
- package/dist/safe-bash-command-soffice/index.js +1 -1
- package/dist/safe-bash-command-sort/index.js +3 -3
- package/dist/safe-bash-command-ssconvert/index.js +2 -2
- 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 +8 -8
- package/dist/safe-bash-command-tar/modes.js +4 -4
- package/dist/safe-bash-command-timeout/index.js +3 -3
- package/dist/safe-bash-command-tree/index.js +2 -2
- package/dist/safe-bash-command-tree/tree.js +2 -2
- package/dist/safe-bash-command-xmllint/index.js +22 -31
- package/dist/safe-bash-command-xz/index.js +5 -5
- package/dist/safe-bash-compression-engine/files.js +2 -2
- package/dist/safe-bash-compression-engine/operand.js +4 -4
- package/dist/safe-bash-contracts/diagnostics.js +3 -3
- package/dist/safe-bash-contracts/escaping.js +10 -10
- package/dist/safe-bash-contracts/filesystem-descriptor.js +1 -1
- package/dist/safe-bash-contracts/filesystem-output.js +6 -6
- package/dist/safe-bash-contracts/index.js +33 -33
- package/dist/safe-bash-contracts/io.js +2 -2
- package/dist/safe-bash-contracts/output.js +3 -3
- package/dist/safe-bash-docx-engine/ancillary-resources.js +5 -5
- package/dist/safe-bash-docx-engine/batch-operations.js +63 -63
- package/dist/safe-bash-docx-engine/batch-result-schema.js +74 -74
- package/dist/safe-bash-docx-engine/batch.js +74 -74
- package/dist/safe-bash-docx-engine/bookmarks.js +13 -13
- package/dist/safe-bash-docx-engine/charts.js +6 -6
- package/dist/safe-bash-docx-engine/command-option-rules.js +3 -3
- package/dist/safe-bash-docx-engine/comments.js +21 -21
- package/dist/safe-bash-docx-engine/control-bindings.js +16 -16
- package/dist/safe-bash-docx-engine/control-repeat.js +16 -16
- package/dist/safe-bash-docx-engine/controls.js +14 -14
- package/dist/safe-bash-docx-engine/create.js +8 -8
- package/dist/safe-bash-docx-engine/diagrams.js +6 -6
- package/dist/safe-bash-docx-engine/diff.js +8 -8
- package/dist/safe-bash-docx-engine/document-properties.js +12 -12
- package/dist/safe-bash-docx-engine/equations.js +12 -12
- package/dist/safe-bash-docx-engine/extract.js +9 -9
- package/dist/safe-bash-docx-engine/fields.js +18 -18
- package/dist/safe-bash-docx-engine/font-inventory.js +13 -13
- package/dist/safe-bash-docx-engine/font-resources.js +3 -3
- package/dist/safe-bash-docx-engine/image-batch-operations.js +11 -11
- package/dist/safe-bash-docx-engine/image-insertion.js +17 -17
- package/dist/safe-bash-docx-engine/image-layout.js +14 -14
- package/dist/safe-bash-docx-engine/image-replacement.js +19 -19
- package/dist/safe-bash-docx-engine/images.js +14 -14
- package/dist/safe-bash-docx-engine/index.js +102 -102
- package/dist/safe-bash-docx-engine/inspection.js +15 -15
- package/dist/safe-bash-docx-engine/invocation.js +4 -4
- package/dist/safe-bash-docx-engine/io.js +6 -6
- package/dist/safe-bash-docx-engine/links.js +17 -17
- package/dist/safe-bash-docx-engine/lists.js +16 -16
- package/dist/safe-bash-docx-engine/locations.js +10 -10
- package/dist/safe-bash-docx-engine/notes.js +18 -18
- package/dist/safe-bash-docx-engine/objects.js +14 -14
- package/dist/safe-bash-docx-engine/pack.js +9 -9
- package/dist/safe-bash-docx-engine/package-view-batch-operations.js +19 -19
- package/dist/safe-bash-docx-engine/pandoc-adapter.js +25 -25
- package/dist/safe-bash-docx-engine/paragraph-edit.js +21 -21
- package/dist/safe-bash-docx-engine/publication.js +6 -6
- package/dist/safe-bash-docx-engine/removal.js +16 -16
- package/dist/safe-bash-docx-engine/revision-decisions.js +16 -16
- package/dist/safe-bash-docx-engine/revision-edit.js +15 -15
- package/dist/safe-bash-docx-engine/revisions.js +12 -12
- package/dist/safe-bash-docx-engine/run-format.js +15 -15
- package/dist/safe-bash-docx-engine/sanitize.js +29 -29
- package/dist/safe-bash-docx-engine/sections.js +15 -15
- package/dist/safe-bash-docx-engine/settings.js +6 -6
- package/dist/safe-bash-docx-engine/shape-edit.js +16 -16
- package/dist/safe-bash-docx-engine/signatures.js +11 -11
- package/dist/safe-bash-docx-engine/stories.js +18 -18
- package/dist/safe-bash-docx-engine/structure-model-batch-operations.js +34 -34
- package/dist/safe-bash-docx-engine/style-model-batch-operations.js +24 -24
- package/dist/safe-bash-docx-engine/style-model-result-schema.js +39 -39
- package/dist/safe-bash-docx-engine/styles.js +14 -14
- package/dist/safe-bash-docx-engine/table-edit.js +23 -23
- package/dist/safe-bash-docx-engine/table-read.js +11 -11
- package/dist/safe-bash-docx-engine/template.js +17 -17
- package/dist/safe-bash-docx-engine/text-replace.js +15 -15
- package/dist/safe-bash-docx-engine/text-resource-read.js +11 -11
- package/dist/safe-bash-docx-engine/text.js +11 -11
- package/dist/safe-bash-docx-engine/validation.js +4 -4
- package/dist/safe-bash-docx-engine/xml-parts.js +17 -17
- package/dist/safe-bash-io-engine/commands/text-programs/shared.js +4 -4
- package/dist/safe-bash-line-ending-engine/command.js +3 -3
- package/dist/safe-bash-line-ending-engine/convert.js +2 -2
- package/dist/safe-bash-line-ending-engine/index.js +6 -6
- package/dist/safe-bash-line-ending-engine/info.js +2 -2
- package/dist/safe-bash-markdown-engine/commonmark-blocks.js +4 -4
- package/dist/safe-bash-markdown-engine/commonmark-inlines.js +4 -4
- package/dist/safe-bash-markdown-engine/commonmark-syntax.js +2 -2
- package/dist/safe-bash-markdown-engine/gfm-syntax.js +3 -3
- package/dist/safe-bash-markdown-engine/index.js +5 -5
- package/dist/safe-bash-network-engine/transfer.js +3 -3
- 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 +121 -108
- 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-frame-formatting.d.ts +14 -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.d.ts +9 -2
- package/dist/safe-bash-presentation-engine/retained-text.js +131 -30
- package/dist/safe-bash-presentation-engine/retained-xml-document.d.ts +1 -0
- 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.d.ts +13 -0
- package/dist/safe-bash-presentation-engine/text-frames.js +29 -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-query-engine/index.js +4 -4
- package/dist/safe-bash-query-engine/interpreter.js +2 -2
- package/dist/safe-bash-query-engine/query-core.js +4 -4
- 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 +9 -5
- 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 +3 -3
- package/dist/safe-bash-xml-engine/stored-document.js +1 -1
- package/dist/safe-bash-xml-engine/stored-evaluate.js +1 -1
- package/dist/safe-bash-zip-engine/zip/repair.js +3 -3
- package/dist/safe-bash-zip-engine/zip/volumes.js +3 -3
- package/dist/spreadsheet-engine/datasource.js +16 -2
- package/dist/spreadsheet-engine/formulas/diagnostics.d.ts +2 -1
- package/dist/spreadsheet-engine/formulas/diagnostics.js +2 -2
- package/dist/spreadsheet-engine/formulas/evaluator.d.ts +1 -1
- package/dist/spreadsheet-engine/formulas/evaluator.js +2 -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 +54 -24
- 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 +95 -175
- package/dist/spreadsheet-format-xls/biff-property-dictionary.d.ts +5 -0
- package/dist/spreadsheet-format-xls/biff-property-dictionary.js +75 -0
- 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-range.d.ts +17 -3
- package/dist/spreadsheet-format-xls/biff-property-range.js +178 -37
- 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 +8 -3
- package/dist/safe-bash/command-chunks/biff-YKPDH35C-MVQIWNKV.js +0 -4974
- package/dist/safe-bash/command-chunks/chunk-2VLAXKTS.js +0 -245
- 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
- package/dist/safe-bash/command-chunks/{chunk-X2HVVMTW.js → chunk-AW4Q3GZW.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-JC2EV66U.js → chunk-BJXADHRT.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-XI2LETBJ.js → chunk-BXU5Y7I5.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-PVLPWVRH.js → chunk-D3HW7R2N.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-OLK3DCJD.js → chunk-DYERIXPU.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-WYBCSJFG.js → chunk-FWCUEZ3K.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-FF2SQ2GP.js → chunk-GGH376XQ.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-D66Q7QJ3.js → chunk-JRSZ5IGD.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-Z3YB4EVE.js → chunk-KSM5CCHT.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-NJ4NTTCR.js → chunk-LNLACEAN.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-NBTG6NF6.js → chunk-LTJRUMK6.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-XCYTG7CR.js → chunk-NJGL5JQ6.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-SZ66JC25.js → chunk-Q7J2NTH2.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-MDV7W5AS.js → chunk-SKNI2XQA.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-7ZWACKCG.js → chunk-T6OXG7QQ.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-ECDEPKKW.js → chunk-W25EIKDJ.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-4YSBUQPV.js → chunk-W2FKFEVY.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-2CIDPOUV.js → chunk-WSNHJZQ5.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-4H3TYOVC.js → chunk-Y7AXMCFV.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-U6IEK2CI.js → chunk-YPG55QTP.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-252L5YC5.js → chunk-Z37OM247.js} +6 -6
- package/dist/safe-bash/command-chunks/{pln-DFS7VLVS-JATX6FS7.js → pln-DFS7VLVS-OVOBS4QX.js} +3 -3
- package/dist/safe-bash/command-chunks/{psion-YBI6JEQI-6OMC2PGC.js → psion-YBI6JEQI-GY4S6ZLC.js} +3 -3
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
parseUnified,
|
|
3
|
-
parseUnifiedSection
|
|
4
|
-
} from "./chunk-MOZD7RUY.js";
|
|
5
|
-
import {
|
|
6
|
-
decodeHeaderPath
|
|
7
|
-
} from "./chunk-AJEQUVDN.js";
|
|
8
|
-
|
|
9
|
-
// packages/safe-bash-command-patch/src/patch-formats.ts
|
|
10
|
-
import { ToolError, integer } from "../../safe-bash-diff-engine/shared.js";
|
|
11
|
-
import { byteLength } from "../../safe-bash-io-engine/byte-encoding.js";
|
|
12
|
-
var Reader = class {
|
|
13
|
-
constructor(text, budget) {
|
|
14
|
-
this.budget = budget;
|
|
15
|
-
this.lines = budget.split(text).map((line) => line.slice(0, -1));
|
|
16
|
-
}
|
|
17
|
-
budget;
|
|
18
|
-
lines;
|
|
19
|
-
index = 0;
|
|
20
|
-
peek() {
|
|
21
|
-
return this.lines[this.index];
|
|
22
|
-
}
|
|
23
|
-
async take() {
|
|
24
|
-
this.budget.step();
|
|
25
|
-
{
|
|
26
|
-
const c = this.budget.checkpoint();
|
|
27
|
-
if (c) await c;
|
|
28
|
-
}
|
|
29
|
-
const line = this.lines[this.index++];
|
|
30
|
-
if (line === void 0) throw new ToolError("truncated patch");
|
|
31
|
-
return line;
|
|
32
|
-
}
|
|
33
|
-
number(value) {
|
|
34
|
-
const result = integer(value, "patch range");
|
|
35
|
-
if (result > this.budget.limits.maxLines) throw new ToolError("hunk coordinate exceeds line limit");
|
|
36
|
-
return result;
|
|
37
|
-
}
|
|
38
|
-
async content(prefix) {
|
|
39
|
-
const line = await this.take();
|
|
40
|
-
if (line !== prefix && !(prefix === " " && line === "") && !line.startsWith(`${prefix} `) && !line.startsWith(`${prefix} `)) throw new ToolError("malformed patch body prefix");
|
|
41
|
-
let text = `${line.slice(2)}
|
|
42
|
-
`;
|
|
43
|
-
if (this.peek() === "\") {
|
|
44
|
-
await this.take();
|
|
45
|
-
if (text === "\n") throw new ToolError("empty incomplete line is not a valid text line");
|
|
46
|
-
text = text.slice(0, -1);
|
|
47
|
-
}
|
|
48
|
-
return text;
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
function encoded(line) {
|
|
52
|
-
return `${line.kind}${line.text}${line.text.endsWith("\n") ? "" : "\n\\n"}`;
|
|
53
|
-
}
|
|
54
|
-
async function normal(reader, target) {
|
|
55
|
-
const quoted = JSON.stringify(target ?? "/dev/null");
|
|
56
|
-
const output = [`--- ${quoted}
|
|
57
|
-
+++ ${quoted}
|
|
58
|
-
`];
|
|
59
|
-
while (reader.peek() !== void 0) {
|
|
60
|
-
if (reader.peek() === "") {
|
|
61
|
-
await reader.take();
|
|
62
|
-
continue;
|
|
63
|
-
}
|
|
64
|
-
if (!/^\d/u.test(reader.peek())) break;
|
|
65
|
-
const command = /^(\d+)(?:,(\d+))?([acd])(\d+)(?:,(\d+))?$/u.exec(await reader.take());
|
|
66
|
-
if (!command) throw new ToolError("malformed normal patch command");
|
|
67
|
-
const oldStart = reader.number(command[1]);
|
|
68
|
-
const oldLast = reader.number(command[2] ?? command[1]);
|
|
69
|
-
const newStart = reader.number(command[4]);
|
|
70
|
-
const newLast = reader.number(command[5] ?? command[4]);
|
|
71
|
-
const operation = command[3];
|
|
72
|
-
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
|
-
const oldCount = operation === "a" ? 0 : oldLast - oldStart + 1;
|
|
74
|
-
const newCount = operation === "d" ? 0 : newLast - newStart + 1;
|
|
75
|
-
output.push(`@@ -${oldStart},${oldCount} +${newStart},${newCount} @@
|
|
76
|
-
`);
|
|
77
|
-
for (let index = 0; index < oldCount; index++) output.push(encoded({ kind: "-", text: await reader.content("<") }));
|
|
78
|
-
if (operation === "c" && await reader.take() !== "---") throw new ToolError("missing normal change separator");
|
|
79
|
-
for (let index = 0; index < newCount; index++) output.push(encoded({ kind: "+", text: await reader.content(">") }));
|
|
80
|
-
}
|
|
81
|
-
return output.join("");
|
|
82
|
-
}
|
|
83
|
-
async function contextRange(reader, old) {
|
|
84
|
-
const line = await reader.take();
|
|
85
|
-
const match = (old ? /^\*\*\* (\d+)(?:,(\d+))? \*\*\*\*$/u : /^--- (\d+)(?:,(\d+))? ----$/u).exec(line);
|
|
86
|
-
if (!match) throw new ToolError("malformed context range");
|
|
87
|
-
const start = reader.number(match[1]);
|
|
88
|
-
const last = reader.number(match[2] ?? match[1]);
|
|
89
|
-
if (last < start || match[2] !== void 0 && start === 0) throw new ToolError("invalid context range");
|
|
90
|
-
return { start, last, multiple: match[2] !== void 0 };
|
|
91
|
-
}
|
|
92
|
-
async function contextSide(reader, old, range) {
|
|
93
|
-
const lines = [];
|
|
94
|
-
const count = range.start === 0 ? 0 : range.last - range.start + 1;
|
|
95
|
-
while (reader.peek() !== void 0 && lines.length < count) {
|
|
96
|
-
const kind = reader.peek() === "" ? " " : reader.peek()[0];
|
|
97
|
-
if (kind !== " " && kind !== "!" && kind !== (old ? "-" : "+")) break;
|
|
98
|
-
if (old && /^--- \d+(?:,\d+)? ----$/u.test(reader.peek())) break;
|
|
99
|
-
lines.push({ kind, text: await reader.content(kind) });
|
|
100
|
-
if (lines.length > reader.budget.limits.maxLines) throw new ToolError("context body line limit exceeded");
|
|
101
|
-
}
|
|
102
|
-
if (!old && lines.length === count && lines.at(-1)?.text.endsWith("\n") === false) {
|
|
103
|
-
while (reader.peek() === "\") await reader.take();
|
|
104
|
-
}
|
|
105
|
-
return lines;
|
|
106
|
-
}
|
|
107
|
-
function contextCount(range, lines) {
|
|
108
|
-
if (!lines.length) {
|
|
109
|
-
if (range.multiple) throw new ToolError("empty context side has a nonempty range");
|
|
110
|
-
return 0;
|
|
111
|
-
}
|
|
112
|
-
if (range.start === 0 || lines.length !== range.last - range.start + 1) throw new ToolError("context body count does not match range");
|
|
113
|
-
return lines.length;
|
|
114
|
-
}
|
|
115
|
-
async function context(reader) {
|
|
116
|
-
const output = [];
|
|
117
|
-
while (reader.peek() !== void 0) {
|
|
118
|
-
const header = await reader.take();
|
|
119
|
-
if (header === "") continue;
|
|
120
|
-
if (/^diff -[^ ]+ /u.test(header)) {
|
|
121
|
-
output.push(`${header}
|
|
122
|
-
`);
|
|
123
|
-
continue;
|
|
124
|
-
}
|
|
125
|
-
if (!header.startsWith("*** ")) throw new ToolError("expected context file header");
|
|
126
|
-
const next = await reader.take();
|
|
127
|
-
if (!next.startsWith("--- ")) throw new ToolError("expected new context file header");
|
|
128
|
-
output.push(`--- ${header.slice(4)}
|
|
129
|
-
+++ ${next.slice(4)}
|
|
130
|
-
`);
|
|
131
|
-
let hunks = 0;
|
|
132
|
-
while (reader.peek()?.startsWith("***************")) {
|
|
133
|
-
const delimiter = await reader.take();
|
|
134
|
-
if (!/^\*{15}(?: .*)?$/u.test(delimiter)) throw new ToolError("malformed context hunk separator");
|
|
135
|
-
if (++hunks > reader.budget.limits.maxHunks) throw new ToolError("hunk limit exceeded");
|
|
136
|
-
const oldRange = await contextRange(reader, true);
|
|
137
|
-
let oldLines = await contextSide(reader, true, oldRange);
|
|
138
|
-
const newRange = await contextRange(reader, false);
|
|
139
|
-
let newLines = await contextSide(reader, false, newRange);
|
|
140
|
-
if (!oldLines.length) {
|
|
141
|
-
if (newLines.some((line) => line.kind === "!")) throw new ToolError("missing old changed context body");
|
|
142
|
-
oldLines = newLines.filter((line) => line.kind === " ");
|
|
143
|
-
}
|
|
144
|
-
if (!newLines.length) {
|
|
145
|
-
if (oldLines.some((line) => line.kind === "!")) throw new ToolError("missing new changed context body");
|
|
146
|
-
newLines = oldLines.filter((line) => line.kind === " ");
|
|
147
|
-
}
|
|
148
|
-
const oldCount = contextCount(oldRange, oldLines);
|
|
149
|
-
const newCount = contextCount(newRange, newLines);
|
|
150
|
-
output.push(`@@ -${oldRange.start},${oldCount} +${newRange.start},${newCount} @@${delimiter.slice(15)}
|
|
151
|
-
`);
|
|
152
|
-
let oldIndex = 0;
|
|
153
|
-
let newIndex = 0;
|
|
154
|
-
while (oldIndex < oldLines.length || newIndex < newLines.length) {
|
|
155
|
-
let oldChanged = false;
|
|
156
|
-
let newChanged = false;
|
|
157
|
-
while (oldIndex < oldLines.length && oldLines[oldIndex].kind !== " ") {
|
|
158
|
-
const line = oldLines[oldIndex++];
|
|
159
|
-
oldChanged ||= line.kind === "!";
|
|
160
|
-
output.push(encoded({ kind: "-", text: line.text }));
|
|
161
|
-
reader.budget.step();
|
|
162
|
-
{
|
|
163
|
-
const c = reader.budget.checkpoint();
|
|
164
|
-
if (c) await c;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
while (newIndex < newLines.length && newLines[newIndex].kind !== " ") {
|
|
168
|
-
const line = newLines[newIndex++];
|
|
169
|
-
newChanged ||= line.kind === "!";
|
|
170
|
-
output.push(encoded({ kind: "+", text: line.text }));
|
|
171
|
-
reader.budget.step();
|
|
172
|
-
{
|
|
173
|
-
const c = reader.budget.checkpoint();
|
|
174
|
-
if (c) await c;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
if (oldChanged !== newChanged) throw new ToolError("unpaired changed context group");
|
|
178
|
-
if (oldIndex < oldLines.length || newIndex < newLines.length) {
|
|
179
|
-
const oldLine = oldLines[oldIndex++];
|
|
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
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
if (!hunks) throw new ToolError("context file patch has no hunks");
|
|
187
|
-
break;
|
|
188
|
-
}
|
|
189
|
-
return output.join("");
|
|
190
|
-
}
|
|
191
|
-
async function parsePatch(text, budget, format, target, progress) {
|
|
192
|
-
if (text && !text.endsWith("\n")) throw new ToolError("patch is truncated: missing final LF");
|
|
193
|
-
const reader = new Reader(text, budget);
|
|
194
|
-
const patches = [];
|
|
195
|
-
let convertedBytes = 0;
|
|
196
|
-
while (reader.peek() !== void 0) {
|
|
197
|
-
try {
|
|
198
|
-
if (reader.peek() === "") {
|
|
199
|
-
await reader.take();
|
|
200
|
-
continue;
|
|
201
|
-
}
|
|
202
|
-
if (!progress && patches.length && reader.peek().startsWith("-") && !reader.peek().startsWith("---")) {
|
|
203
|
-
throw new ToolError("unexpected deletion outside a patch hunk");
|
|
204
|
-
}
|
|
205
|
-
if (patches.length && !/^(?:Index: |diff |index |---|\*\*\*|@@|[+\\<>]|\d)/u.test(reader.peek())) {
|
|
206
|
-
await reader.take();
|
|
207
|
-
continue;
|
|
208
|
-
}
|
|
209
|
-
let indexPath;
|
|
210
|
-
if (reader.peek()?.startsWith("Index: ")) {
|
|
211
|
-
indexPath = decodeHeaderPath((await reader.take()).slice(7));
|
|
212
|
-
if (/^=+$/u.test(reader.peek() ?? "")) await reader.take();
|
|
213
|
-
}
|
|
214
|
-
const start = reader.index;
|
|
215
|
-
while (/^diff /u.test(reader.peek() ?? "")) await reader.take();
|
|
216
|
-
const first = reader.peek() ?? "";
|
|
217
|
-
const detected = first.startsWith("*** ") ? "context" : /^\d/u.test(first) ? "normal" : "unified";
|
|
218
|
-
if (format && detected !== format) throw new ToolError(`patch format is ${detected}, not requested ${format}`);
|
|
219
|
-
if (detected === "unified") {
|
|
220
|
-
reader.index = start;
|
|
221
|
-
patches.push(...(await parseUnifiedSection(reader, budget)).map((patch) => ({ ...patch, ...indexPath === void 0 ? {} : { indexPath } })));
|
|
222
|
-
} else {
|
|
223
|
-
if (detected === "context") reader.index = start;
|
|
224
|
-
const converted = detected === "normal" ? await normal(reader, target ?? indexPath) : await context(reader);
|
|
225
|
-
convertedBytes += byteLength(converted);
|
|
226
|
-
if (convertedBytes > budget.limits.maxInputBytes * 2 + 16384) throw new ToolError("converted patch byte limit exceeded");
|
|
227
|
-
patches.push(...(await parseUnified(converted, budget)).map((patch) => ({
|
|
228
|
-
...patch,
|
|
229
|
-
format: detected,
|
|
230
|
-
...indexPath === void 0 ? {} : { indexPath },
|
|
231
|
-
...detected === "normal" && target === void 0 && indexPath === void 0 ? { unlocated: true } : {}
|
|
232
|
-
})));
|
|
233
|
-
}
|
|
234
|
-
} catch (error) {
|
|
235
|
-
if (!progress || !(error instanceof ToolError) || /limit|budget|filename|path|escape/u.test(error.message)) throw error;
|
|
236
|
-
progress.error = error;
|
|
237
|
-
break;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
return patches;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
export {
|
|
244
|
-
parsePatch
|
|
245
|
-
};
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
loadShared
|
|
3
|
-
} from "./chunk-56NYSX65.js";
|
|
4
|
-
import {
|
|
5
|
-
writePackageArchive
|
|
6
|
-
} from "./chunk-DM2CPMB4.js";
|
|
7
|
-
import {
|
|
8
|
-
readBinary
|
|
9
|
-
} from "./chunk-PNGDJA6M.js";
|
|
10
|
-
import {
|
|
11
|
-
parseContentTypes
|
|
12
|
-
} from "./chunk-WJCN2IXI.js";
|
|
13
|
-
import {
|
|
14
|
-
asciiKey,
|
|
15
|
-
partName
|
|
16
|
-
} from "./chunk-36XGIPOG.js";
|
|
17
|
-
import {
|
|
18
|
-
OfficeError
|
|
19
|
-
} from "./chunk-Q73EMLLZ.js";
|
|
20
|
-
|
|
21
|
-
// packages/safe-bash-presentation-engine/src/package-tools.ts
|
|
22
|
-
import { sha256 } from "@noble/hashes/sha2.js";
|
|
23
|
-
function record(value, allowed) {
|
|
24
|
-
if (!value || typeof value !== "object" || ![Object.prototype, null].includes(Object.getPrototypeOf(value)) || Reflect.ownKeys(value).some((key) => typeof key !== "string" || !allowed.includes(key) || !("value" in Object.getOwnPropertyDescriptor(value, key))))
|
|
25
|
-
throw new OfficeError("invalid-value", "Expected a plain package record.", "usage");
|
|
26
|
-
}
|
|
27
|
-
function list(value, maximum) {
|
|
28
|
-
if (!Array.isArray(value)) throw new OfficeError("invalid-value", "Expected package members.", "usage");
|
|
29
|
-
if (value.length > maximum) throw new OfficeError("resource-limit", "Package member limit exceeded.", "usage");
|
|
30
|
-
if (Object.getPrototypeOf(value) !== Array.prototype || Reflect.ownKeys(value).length !== value.length + 1 || Array.from({ length: value.length }, (_, index) => Object.getOwnPropertyDescriptor(value, String(index))).some((item) => !item || !("value" in item)))
|
|
31
|
-
throw new OfficeError("invalid-value", "Expected a dense package array.", "usage");
|
|
32
|
-
}
|
|
33
|
-
function digest(bytes) {
|
|
34
|
-
return Array.from(sha256(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
35
|
-
}
|
|
36
|
-
async function extractPackage(input, context, options = {}) {
|
|
37
|
-
record(options, ["parts"]);
|
|
38
|
-
if (!context?.archiveLimits) throw new OfficeError("invalid-value", "Explicit limits are required.", "usage");
|
|
39
|
-
if (options.parts !== void 0) list(options.parts, context.archiveLimits.maxMembers);
|
|
40
|
-
if (!options || Object.keys(options).some((key) => key !== "parts") || options.parts !== void 0 && (!Array.isArray(options.parts) || !options.parts.length))
|
|
41
|
-
throw new OfficeError("invalid-value", "Invalid package extraction options.", "usage");
|
|
42
|
-
const selected = options.parts?.map((part) => {
|
|
43
|
-
const canonical = partName(part, false);
|
|
44
|
-
if (canonical !== part) throw new OfficeError("unsafe-path", "A canonical package part is required.", "usage");
|
|
45
|
-
return canonical;
|
|
46
|
-
});
|
|
47
|
-
if (selected && new Set(selected.map(asciiKey)).size !== selected.length)
|
|
48
|
-
throw new OfficeError("invalid-value", "Duplicate extracted part.", "usage");
|
|
49
|
-
const { reader } = await loadShared(input, context, false);
|
|
50
|
-
const types = parseContentTypes(reader.get("/[Content_Types].xml"), {
|
|
51
|
-
maxBytes: context.xmlLimits.maxBytes,
|
|
52
|
-
maxEntries: context.archiveLimits.maxMembers
|
|
53
|
-
});
|
|
54
|
-
const names = selected ?? [...reader.names].sort();
|
|
55
|
-
return Object.freeze(names.map((part, index) => {
|
|
56
|
-
const bytes = reader.get(part);
|
|
57
|
-
const contentType = part === "/[Content_Types].xml" ? "application/xml" : types.get(part);
|
|
58
|
-
const essence = contentType.split(";", 1)[0].trim().toLowerCase();
|
|
59
|
-
const extension = essence === "application/xml" || essence === "text/xml" || essence.endsWith("+xml") ? "xml" : { "image/png": "png", "image/jpeg": "jpg", "image/gif": "gif", "image/tiff": "tif", "image/bmp": "bmp", "audio/mpeg": "mp3", "video/mp4": "mp4" }[essence] ?? "bin";
|
|
60
|
-
return Object.freeze({ part, name: `part-${String(index + 1).padStart(6, "0")}.${extension}`, contentType, sha256: digest(bytes), bytes });
|
|
61
|
-
}));
|
|
62
|
-
}
|
|
63
|
-
async function packPackage(members, context, options = {}) {
|
|
64
|
-
record(options, ["kind"]);
|
|
65
|
-
if (!context?.limits || !context.archiveLimits || !Array.isArray(members) || !members.length || !options || Object.keys(options).some((key) => key !== "kind") || options.kind !== void 0 && !["pptx", "potx", "ppsx"].includes(options.kind))
|
|
66
|
-
throw new OfficeError("invalid-value", "Explicit package members and limits are required.", "usage");
|
|
67
|
-
if (context.signal?.aborted) throw new OfficeError("cancelled", "Operation cancelled.", "admit");
|
|
68
|
-
if (members.length > context.archiveLimits.maxMembers)
|
|
69
|
-
throw new OfficeError("resource-limit", "Package member limit exceeded.", "admit");
|
|
70
|
-
list(members, context.archiveLimits.maxMembers);
|
|
71
|
-
const names = /* @__PURE__ */ new Set();
|
|
72
|
-
const parents = /* @__PURE__ */ new Set();
|
|
73
|
-
let ownedTotal = 0;
|
|
74
|
-
const admitted = members.map((member) => {
|
|
75
|
-
record(member, ["part", "sha256", "bytes", "name", "contentType"]);
|
|
76
|
-
if (!member || typeof member.sha256 !== "string" || member.sha256.length !== 64 || [...member.sha256].some((character) => !"0123456789abcdef".includes(character)))
|
|
77
|
-
throw new OfficeError("invalid-value", "A lowercase SHA-256 digest is required.", "usage");
|
|
78
|
-
const part = partName(member.part, false);
|
|
79
|
-
if (part !== member.part || part.includes(":"))
|
|
80
|
-
throw new OfficeError("unsafe-path", "A canonical package part is required.", "usage");
|
|
81
|
-
const key = asciiKey(part);
|
|
82
|
-
if (names.has(key) || parents.has(key))
|
|
83
|
-
throw new OfficeError("invalid-opc", "Colliding package members.", "admit");
|
|
84
|
-
let parent = key.slice(0, key.lastIndexOf("/"));
|
|
85
|
-
while (parent) {
|
|
86
|
-
if (names.has(parent)) throw new OfficeError("invalid-opc", "Colliding package members.", "admit");
|
|
87
|
-
parents.add(parent);
|
|
88
|
-
parent = parent.slice(0, parent.lastIndexOf("/"));
|
|
89
|
-
}
|
|
90
|
-
names.add(key);
|
|
91
|
-
let input = member.bytes;
|
|
92
|
-
if (input instanceof Uint8Array) {
|
|
93
|
-
ownedTotal += input.length;
|
|
94
|
-
if (input.length > context.archiveLimits.maxEntryBytes || input.length > context.limits.maxBytes || ownedTotal > context.archiveLimits.maxTotalBytes)
|
|
95
|
-
throw new OfficeError("resource-limit", "Package byte limit exceeded.", "admit");
|
|
96
|
-
input = new Uint8Array(input);
|
|
97
|
-
}
|
|
98
|
-
return { part, sha256: member.sha256, input };
|
|
99
|
-
});
|
|
100
|
-
let total = 0;
|
|
101
|
-
const output = [];
|
|
102
|
-
for (const member of admitted) {
|
|
103
|
-
const remaining = context.archiveLimits.maxTotalBytes - total;
|
|
104
|
-
const bytes2 = await readBinary(member.input, context, { maxBytes: Math.min(context.limits.maxBytes, context.archiveLimits.maxEntryBytes, Math.max(1, remaining)) });
|
|
105
|
-
if (bytes2.length > remaining) throw new OfficeError("resource-limit", "Package byte limit exceeded.", "admit");
|
|
106
|
-
total += bytes2.length;
|
|
107
|
-
if (digest(bytes2) !== member.sha256)
|
|
108
|
-
throw new OfficeError("invalid-value", "Package member digest does not match.", "admit");
|
|
109
|
-
const name = [...member.part.slice(1)].map((character) => character.codePointAt(0) > 127 ? encodeURIComponent(character) : character).join("");
|
|
110
|
-
output.push({ name, bytes: bytes2 });
|
|
111
|
-
}
|
|
112
|
-
const bytes = await writePackageArchive(output, context, { compression: "store" });
|
|
113
|
-
const loaded = await loadShared(bytes, context);
|
|
114
|
-
if (options.kind !== void 0) {
|
|
115
|
-
const types = parseContentTypes(loaded.reader.get("/[Content_Types].xml"), {
|
|
116
|
-
maxBytes: context.xmlLimits.maxBytes,
|
|
117
|
-
maxEntries: context.archiveLimits.maxMembers
|
|
118
|
-
});
|
|
119
|
-
types.presentationKind(loaded.main, options.kind);
|
|
120
|
-
}
|
|
121
|
-
return bytes;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export {
|
|
125
|
-
extractPackage,
|
|
126
|
-
packPackage
|
|
127
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
// packages/safe-bash-command-patch/src/patch-envelope.ts
|
|
2
|
-
import { ToolError } from "../../safe-bash-diff-engine/shared.js";
|
|
3
|
-
async function normalizeTransport(text, budget) {
|
|
4
|
-
const lines = [];
|
|
5
|
-
let position = 0;
|
|
6
|
-
while (position < text.length) {
|
|
7
|
-
const end = text.indexOf("\n", position);
|
|
8
|
-
budget.step(1 + end - position);
|
|
9
|
-
{
|
|
10
|
-
const c = budget.checkpoint();
|
|
11
|
-
if (c) await c;
|
|
12
|
-
}
|
|
13
|
-
if (end <= position || text[end - 1] !== "\r") return text;
|
|
14
|
-
lines.push(text.slice(position, end - 1), "\n");
|
|
15
|
-
if (lines.length / 2 > budget.limits.maxLines) throw new ToolError("transport line limit exceeded");
|
|
16
|
-
position = end + 1;
|
|
17
|
-
}
|
|
18
|
-
return lines.join("");
|
|
19
|
-
}
|
|
20
|
-
async function unwrapPatch(text, budget) {
|
|
21
|
-
if (text && !text.endsWith("\n")) throw new ToolError("patch is truncated: missing final LF");
|
|
22
|
-
text = await normalizeTransport(text, budget);
|
|
23
|
-
let position = 0;
|
|
24
|
-
let lines = 0;
|
|
25
|
-
const mail = /^(?:From [0-9a-f]{40,64} |(?:From|Date|Subject|To|Cc|MIME-Version|Content-Type):)/u.test(text);
|
|
26
|
-
if (mail) {
|
|
27
|
-
while (position < text.length) {
|
|
28
|
-
budget.step();
|
|
29
|
-
{
|
|
30
|
-
const c = budget.checkpoint();
|
|
31
|
-
if (c) await c;
|
|
32
|
-
}
|
|
33
|
-
const end = text.indexOf("\n", position);
|
|
34
|
-
const line = text.slice(position, end);
|
|
35
|
-
if (/^(?:--- |\*\*\* |diff |\d+(?:,\d+)?[acd]\d)/u.test(line)) break;
|
|
36
|
-
if (/^(?:old mode |new mode |new file mode |deleted file mode |rename |copy |similarity index |dissimilarity index |GIT binary patch|Binary files |index |@@|[+\\])/u.test(line)) throw new ToolError("unsupported or malformed mail patch metadata");
|
|
37
|
-
position = end + 1;
|
|
38
|
-
if (++lines > budget.limits.maxLines) throw new ToolError("mail preamble limit exceeded");
|
|
39
|
-
}
|
|
40
|
-
if (position === text.length) throw new ToolError("mail preamble without patch");
|
|
41
|
-
}
|
|
42
|
-
const body = text.slice(position);
|
|
43
|
-
const signature = body.indexOf("\n-- \n");
|
|
44
|
-
if (signature < 0) return body;
|
|
45
|
-
const trailer = body.slice(signature + 5);
|
|
46
|
-
if (trailer.split("\n").length > budget.limits.maxLines) throw new ToolError("mail signature limit exceeded");
|
|
47
|
-
for (const line of trailer.split("\n")) {
|
|
48
|
-
budget.step();
|
|
49
|
-
if (/^(?:diff |---|\+\+\+|\*\*\*|@@|index |old mode |new mode |new file mode |deleted file mode |rename |copy |similarity index |dissimilarity index |GIT binary patch|Binary files |[+\\]|\d+(?:,\d+)?[acd]\d)/u.test(line)) throw new ToolError("patch data after mail signature");
|
|
50
|
-
}
|
|
51
|
-
return body.slice(0, signature + 1);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export {
|
|
55
|
-
unwrapPatch
|
|
56
|
-
};
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
// packages/safe-bash-command-patch/src/patch-gnu-reject.ts
|
|
2
|
-
function timestamp(header) {
|
|
3
|
-
if (!header) return "";
|
|
4
|
-
const separator = header.indexOf(" ");
|
|
5
|
-
return separator < 0 ? "" : header.slice(separator);
|
|
6
|
-
}
|
|
7
|
-
function unifiedRange(start, count, offset) {
|
|
8
|
-
return `${start + offset}${count === 1 ? "" : `,${count}`}`;
|
|
9
|
-
}
|
|
10
|
-
function contextRange(start, count, offset) {
|
|
11
|
-
return count === 0 ? "0" : count === 1 ? `${start + offset}` : `${start + offset},${start + offset + count - 1}`;
|
|
12
|
-
}
|
|
13
|
-
async function rejectText(patch, outcomes, oldName, newName, indexName, reverse, budget, format) {
|
|
14
|
-
const normal = patch.format === "normal";
|
|
15
|
-
const context = format === void 0 ? patch.format === "context" || normal : format === "context";
|
|
16
|
-
const names = [normal ? "/dev/null" : oldName ?? "/dev/null", normal ? "/dev/null" : newName ?? "/dev/null"];
|
|
17
|
-
const times = normal ? ["", ""] : [timestamp(patch.oldHeader), timestamp(patch.newHeader)];
|
|
18
|
-
if (reverse) {
|
|
19
|
-
names.reverse();
|
|
20
|
-
times.reverse();
|
|
21
|
-
}
|
|
22
|
-
const output = [];
|
|
23
|
-
const add = (text) => {
|
|
24
|
-
budget.output(text);
|
|
25
|
-
output.push(text);
|
|
26
|
-
};
|
|
27
|
-
if (indexName !== void 0) add(`Index: ${indexName}
|
|
28
|
-
`);
|
|
29
|
-
add(`${context ? "***" : "---"} ${names[0]}${times[0]}
|
|
30
|
-
${context ? "---" : "+++"} ${names[1]}${times[1]}
|
|
31
|
-
`);
|
|
32
|
-
for (const outcome of outcomes) {
|
|
33
|
-
if (!outcome.failed) continue;
|
|
34
|
-
budget.step();
|
|
35
|
-
{
|
|
36
|
-
const c = budget.checkpoint();
|
|
37
|
-
if (c) await c;
|
|
38
|
-
}
|
|
39
|
-
const { hunk, outputOffset } = outcome;
|
|
40
|
-
if (!context) {
|
|
41
|
-
add(`@@ -${unifiedRange(hunk.oldStart, hunk.oldCount, outputOffset)} +${unifiedRange(hunk.newStart, hunk.newCount, outputOffset)} @@${hunk.section ?? ""}
|
|
42
|
-
`);
|
|
43
|
-
let group = [];
|
|
44
|
-
const flush = () => {
|
|
45
|
-
for (const kind of ["-", "+"]) for (const line of group) if (line.kind === kind) add(`${kind}${line.text}`);
|
|
46
|
-
group = [];
|
|
47
|
-
};
|
|
48
|
-
for (const line of hunk.lines) {
|
|
49
|
-
budget.step();
|
|
50
|
-
{
|
|
51
|
-
const c = budget.checkpoint();
|
|
52
|
-
if (c) await c;
|
|
53
|
-
}
|
|
54
|
-
if (line.kind === " ") {
|
|
55
|
-
flush();
|
|
56
|
-
add(` ${line.text}`);
|
|
57
|
-
} else group.push(line);
|
|
58
|
-
}
|
|
59
|
-
flush();
|
|
60
|
-
} else {
|
|
61
|
-
add(`***************${hunk.section ?? ""}
|
|
62
|
-
*** ${contextRange(hunk.oldStart, hunk.oldCount, outputOffset)}${normal ? "" : " ****"}
|
|
63
|
-
`);
|
|
64
|
-
const oldLines = [];
|
|
65
|
-
const newLines = [];
|
|
66
|
-
let group = [];
|
|
67
|
-
const flush = () => {
|
|
68
|
-
const changed = !normal && group.some((line) => line.kind === "-") && group.some((line) => line.kind === "+");
|
|
69
|
-
for (const line of group) {
|
|
70
|
-
const text = `${changed ? "!" : line.kind} ${line.text}`;
|
|
71
|
-
(line.kind === "-" ? oldLines : newLines).push(text);
|
|
72
|
-
}
|
|
73
|
-
group = [];
|
|
74
|
-
};
|
|
75
|
-
for (const line of hunk.lines) {
|
|
76
|
-
budget.step();
|
|
77
|
-
{
|
|
78
|
-
const c = budget.checkpoint();
|
|
79
|
-
if (c) await c;
|
|
80
|
-
}
|
|
81
|
-
if (line.kind === " ") {
|
|
82
|
-
flush();
|
|
83
|
-
oldLines.push(` ${line.text}`);
|
|
84
|
-
newLines.push(` ${line.text}`);
|
|
85
|
-
} else group.push(line);
|
|
86
|
-
}
|
|
87
|
-
flush();
|
|
88
|
-
for (const line of oldLines) add(line);
|
|
89
|
-
add(`--- ${contextRange(hunk.newStart, hunk.newCount, outputOffset)}${normal ? " -----" : " ----"}
|
|
90
|
-
`);
|
|
91
|
-
for (const line of newLines) add(line);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
return output.join("");
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export {
|
|
98
|
-
rejectText
|
|
99
|
-
};
|