@poe-platform/safe-bash 0.1.814 → 0.1.816
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/image-ast/index.js +1 -1
- package/dist/mp4-ast/codecs.d.ts +3 -0
- package/dist/mp4-ast/esds-source.d.ts +7 -0
- package/dist/mp4-ast/index.d.ts +6 -1
- package/dist/mp4-ast/mp4-codec-metadata.d.ts +48 -0
- package/dist/mp4-ast/mp4-codec-source.d.ts +8 -0
- package/dist/mp4-ast/mp4-fragment-source.d.ts +35 -0
- package/dist/mp4-ast/mp4-packets-source.d.ts +11 -0
- package/dist/mp4-ast/mp4-sample-source.d.ts +5 -2
- package/dist/mp4-ast/types.d.ts +11 -0
- package/dist/pdf-ast/ast.d.ts +6 -0
- package/dist/pdf-ast/content/evaluator.d.ts +4 -1
- package/dist/pdf-ast/content/stored-dictionary.d.ts +15 -1
- package/dist/pdf-ast/content/stored-record.d.ts +6 -0
- package/dist/pdf-ast/cos/object-reader.d.ts +3 -2
- package/dist/pdf-ast/cos/retained-writer.d.ts +1 -0
- package/dist/pdf-ast/cos/value-parser.d.ts +5 -0
- package/dist/pdf-ast/edit/forms.d.ts +1 -0
- package/dist/pdf-ast/edit/retained-form-data.d.ts +9 -0
- package/dist/pdf-ast/edit/retained-graph.d.ts +1 -0
- package/dist/pdf-ast/edit/retained-page-copy.d.ts +10 -0
- package/dist/pdf-ast/extract/images.d.ts +2 -1
- package/dist/pdf-ast/fonts/resolve.d.ts +1 -0
- package/dist/pdf-ast/index.d.ts +3 -0
- package/dist/pdf-ast/index.js +1563 -373
- package/dist/pdf-ast/render/raster.d.ts +14 -0
- package/dist/pdf-ast/render/svg-image-stream.d.ts +6 -0
- package/dist/pdf-ast/render/svg-path-stream.d.ts +15 -0
- package/dist/pdf-ast/retained-document.d.ts +1 -1
- package/dist/safe-bash/chunks/{chunk-I6ECNJMR.js → chunk-AXGI5JVL.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-TPG55BAQ.js → chunk-FQRI5AS5.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-TWWGAW4M.js → chunk-HD6DWOAC.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-5JCZEXEM.js → chunk-SXSEF5E2.js} +12 -7
- package/dist/safe-bash/command-chunks/biff-UBP2BZLK-JPODPKS3.js +5448 -0
- package/dist/safe-bash/command-chunks/{chunk-S7HIOT7Z.js → chunk-26JE5JEB.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-AG2SNMP5.js → chunk-2ALHVXEM.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-4YLACJHE.js → chunk-2IMIKROX.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-MYZ46FQL.js → chunk-2QZUAZTH.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-YAD7EV4N.js → chunk-2TWXRJPB.js} +11 -11
- package/dist/safe-bash/command-chunks/{chunk-NYFYTL5G.js → chunk-345YBIHP.js} +27 -27
- package/dist/safe-bash/command-chunks/{chunk-3MG5EAMX.js → chunk-35DU6I2M.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-FSVJ67G5.js → chunk-3DWFXESW.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-TKCUGMRZ.js → chunk-3K5CVXUV.js} +18 -18
- package/dist/safe-bash/command-chunks/{chunk-6LPSKLLD.js → chunk-3MUFXGA2.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-AVGXFWEB.js → chunk-3PM46VWH.js} +191 -70
- package/dist/safe-bash/command-chunks/{chunk-6QYSF7I2.js → chunk-3ZWFE4CK.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-LAPOMHGY.js → chunk-45DKGZYO.js} +857 -424
- package/dist/safe-bash/command-chunks/{chunk-SW37YCBW.js → chunk-4772DJKS.js} +54 -36
- package/dist/safe-bash/command-chunks/{chunk-FOONI6BD.js → chunk-4ABR3KGK.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-7KZ5LWV2.js → chunk-4IDV763L.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-FGGHYUWR.js → chunk-4QEJPP3K.js} +102 -7
- package/dist/safe-bash/command-chunks/{chunk-RV5AGXOV.js → chunk-4X2MPZXW.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-LNTEV56A.js → chunk-4YFTJS5U.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-6XES7Z4G.js → chunk-57PK2QFX.js} +12 -12
- package/dist/safe-bash/command-chunks/{chunk-42MEXZBJ.js → chunk-5GDF5FAS.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-BS3ZEQGT.js → chunk-5KZMR6AJ.js} +18 -16
- package/dist/safe-bash/command-chunks/{chunk-ZU2KJMXO.js → chunk-5MNQTHED.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-W25EIKDJ.js → chunk-5NC2IQMQ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-KY4LCHUF.js → chunk-5O45KGW5.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-GYM5ICK4.js → chunk-5V7WIQ2D.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-3JM7E42I.js → chunk-5XUWGUGN.js} +114 -35
- package/dist/safe-bash/command-chunks/{chunk-SUTHGUD3.js → chunk-5YL453ZF.js} +34 -34
- package/dist/safe-bash/command-chunks/{chunk-IHXZMAMY.js → chunk-62RG3GHF.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-P2LT6TGR.js → chunk-6EZWG56T.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-CCMAHM3I.js → chunk-6JGICYHP.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-AWPI4DZR.js → chunk-6KJDTKE4.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-FUQMEUAT.js → chunk-6M3JTPKE.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-H33D4R26.js → chunk-6RLWPB44.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-3GRMU7TM.js → chunk-6W4RMBFH.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-RIVKF77R.js → chunk-6YF2QADH.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-LEO4VRIN.js → chunk-77ROD2TR.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-XNGM3W5R.js → chunk-7B2MHKIW.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-RFMHNTTF.js → chunk-7OCTMVYJ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-DBLQUZGN.js → chunk-7PYDVQPB.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-AM5LANIE.js → chunk-A2L3U7DW.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-UYGQEQIP.js → chunk-A4P37F3P.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-ADHFF2IM.js → chunk-A5SPMSKD.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-ENEIE44W.js → chunk-A6OTPNNI.js} +3 -3
- package/dist/safe-bash/command-chunks/chunk-AF2IO57Q.js +733 -0
- package/dist/safe-bash/command-chunks/{chunk-AFPXADZG.js → chunk-AHD3CGAY.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-VT7UBPAE.js → chunk-ALD53QFL.js} +89 -30
- package/dist/safe-bash/command-chunks/{chunk-4B2ZUGLT.js → chunk-ARE267HR.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-OTF2AJ5M.js → chunk-AYQPJQJR.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-2VVJRVYM.js → chunk-B6XTAKKQ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-GCHB7VNX.js → chunk-BIJW6QWB.js} +17 -17
- package/dist/safe-bash/command-chunks/{chunk-OVEPYULA.js → chunk-BKK4MS3V.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-3EB2FSAN.js → chunk-BOVDUJ3A.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-SEPUP6TZ.js → chunk-BSTABZIK.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-ATHHWPSE.js → chunk-BZRWZ6GO.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-5BIQWWLB.js → chunk-CFMJXJS5.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-BZMNC7Q5.js → chunk-CGJ7GMHO.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-RGDOYWOD.js → chunk-CHZE6FNT.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-V7E3PZOK.js → chunk-CKA7ZROU.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-MEM2ZPMI.js → chunk-CKIXC7AO.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-Y54L4P4J.js → chunk-CORUUCS2.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-FF7UGJWS.js → chunk-DBZCTL7C.js} +150 -35
- package/dist/safe-bash/command-chunks/{chunk-6ZGCKUAM.js → chunk-DIRK47GT.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-WYZG3DRR.js → chunk-DM5WURQL.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-EBHOZIBS.js → chunk-DOVWHVHI.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-GQGMQMIM.js → chunk-DXOXUKQB.js} +248 -6
- package/dist/safe-bash/command-chunks/{chunk-JR3Q6QNL.js → chunk-DZOKH5BL.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-K4XNUJVJ.js → chunk-E22EAYJN.js} +197 -171
- package/dist/safe-bash/command-chunks/{chunk-3EASXF5D.js → chunk-E4TF5W6O.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-MLOYUXUV.js → chunk-EJ4UP7DA.js} +31 -9
- package/dist/safe-bash/command-chunks/{chunk-USGZN2KE.js → chunk-ENMJHB2C.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-ZSQZHFWS.js → chunk-ERWIJYCS.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-S2QNBAN6.js → chunk-ET6LMDEX.js} +12 -12
- package/dist/safe-bash/command-chunks/{chunk-6XGDWFNQ.js → chunk-EWC56JNI.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-EQWFKNHJ.js → chunk-EZDWPTYB.js} +19 -19
- package/dist/safe-bash/command-chunks/{chunk-CQBACD2V.js → chunk-F2NF6FHV.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-NFII726L.js → chunk-FAU2KL6I.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-4EHY6J2Z.js → chunk-FB2WPI3M.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-2PKBXGXD.js → chunk-FEBTT5NH.js} +5 -5
- package/dist/safe-bash/command-chunks/chunk-FGARVKAX.js +704 -0
- package/dist/safe-bash/command-chunks/{chunk-N4MUBJCT.js → chunk-FGHSE3RZ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-WBKB7HBZ.js → chunk-FHQOFEQK.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-3ZRCL756.js → chunk-FJLSYX5P.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-PMWW7KSB.js → chunk-FJSD43VF.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-XKAUKLF7.js → chunk-FLSXHLJG.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-3EW7GYHM.js → chunk-FR63MJSO.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-NRFTYZ2R.js → chunk-FUYZUETI.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-JUHOL5KB.js → chunk-G3FK5VVG.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-4UPKVQWH.js → chunk-G3LUT475.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-Q7UZTMF4.js → chunk-GAROGIVU.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-4RRYWHED.js → chunk-GMBUOYTN.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-FYYFV6PW.js → chunk-GR4ONCQ5.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-XTEIT5CI.js → chunk-GTOMW4VV.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-OVQP6KH5.js → chunk-H56BSMFQ.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-RQYPFLZJ.js → chunk-HOJ7WDTS.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-BLIFGBIO.js → chunk-HOKPYTHQ.js} +2 -2
- package/dist/safe-bash/command-chunks/chunk-HQEYSSZV.js +152 -0
- package/dist/safe-bash/command-chunks/{chunk-NEMUPUUB.js → chunk-ICJH6A73.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-CSE4VQKG.js → chunk-IJE65P52.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-MKOIPOXX.js → chunk-IOXMGD2H.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-LDW3RF7Y.js → chunk-ISFGPCED.js} +12 -12
- package/dist/safe-bash/command-chunks/{chunk-S43QRKDC.js → chunk-IVKAFEPO.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-A347DLRB.js → chunk-IWVANZWH.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-ZXELXF2H.js → chunk-IZ3SD5S2.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-HGIMFVI2.js → chunk-J6FNSVHT.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-GLAF45M7.js → chunk-JA36YOZI.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-WHNYT34N.js → chunk-K2R7H3KO.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-2ETEJOYX.js → chunk-K7VDCBXW.js} +21 -21
- package/dist/safe-bash/command-chunks/{chunk-CK2WFJZN.js → chunk-KASXIRKD.js} +12 -14
- package/dist/safe-bash/command-chunks/{chunk-CKEMZUE3.js → chunk-KDBU5Q2N.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-6VBDJC6V.js → chunk-KDDXLHN7.js} +6 -6
- package/dist/safe-bash/command-chunks/chunk-KHUT7BB5.js +65 -0
- package/dist/safe-bash/command-chunks/{chunk-NEVQWOU6.js → chunk-KLAC2MIZ.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-QGD64UHJ.js → chunk-KLCHCSIV.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-CXME4YHU.js → chunk-KM2SMMXZ.js} +59 -201
- package/dist/safe-bash/command-chunks/{chunk-RHU44OMN.js → chunk-KXM3HTAF.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-AVOGFREX.js → chunk-KYIGYYEY.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-5OM3UIK3.js → chunk-L2VLASZ4.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-Z7QOSXQC.js → chunk-LECGQSQW.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-RXQ2G2YK.js → chunk-LFSWLJPR.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-OSYY6E23.js → chunk-LJ3UYESS.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-MVLVIMJ6.js → chunk-LMLBQSAM.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-MGMTRGKM.js → chunk-LNAZ3E4Q.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-WJ2ERUCQ.js → chunk-LNKZVU5V.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-WWHMI4S3.js → chunk-LQDANF2B.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-CIRDVCAZ.js → chunk-LQX7RAF7.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-SWAKALDJ.js → chunk-LT2YCGC5.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-Y7AXMCFV.js → chunk-LZY46GYY.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-VT2PHQ63.js → chunk-MDFNUNK5.js} +15 -15
- package/dist/safe-bash/command-chunks/{chunk-YP3WWV5N.js → chunk-MN3BB4WW.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-WTVJLHMG.js → chunk-MOUCMZZP.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-IB5QP4LF.js → chunk-MQE77MEQ.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-FSYMSWJU.js → chunk-MUTARE5I.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-F762XDNG.js → chunk-MZYQKH26.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-N6G3345Q.js → chunk-N32AP43V.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-XU6S3XUZ.js → chunk-N35IJXBK.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-EVYKV3QI.js → chunk-N3ZH4YYH.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-VUWXLH3E.js → chunk-N4HWOLGZ.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-G3TAX3CV.js → chunk-N5J3IZZK.js} +8124 -7200
- package/dist/safe-bash/command-chunks/{chunk-W3ZSWK76.js → chunk-NCNHJRIY.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-FXCSPPYE.js → chunk-NDALIHKK.js} +20 -20
- package/dist/safe-bash/command-chunks/{chunk-BS5JEUEW.js → chunk-NKK76B4V.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-4EZJV4FZ.js → chunk-NLCUQD7Y.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-RHDERFMR.js → chunk-O2HNOQQG.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-G2COZLXX.js → chunk-OBIXFO25.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-47IAU25U.js → chunk-OCV5ZU35.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-3YEQI5B7.js → chunk-OFDJJRAD.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-VDTFVRYX.js → chunk-OFONWWEZ.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-F4YFTO2K.js → chunk-OHEZQ4QA.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-JW6WVNTM.js → chunk-OIHQXURE.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-ZTMZO4IT.js → chunk-ONQP4FNV.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-K2WOMJOQ.js → chunk-OVUY46QF.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-DGBQ7QDE.js → chunk-OWCBX5M2.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-LKGTH2Q7.js → chunk-P462JTNT.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-5LFGXN3D.js → chunk-P4OWVKMD.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-46AMTJPE.js → chunk-POGVOCOB.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-PLMF35XK.js → chunk-PPN53PX3.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-V5XC43BX.js → chunk-PRO7JOIH.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-UJERQEJB.js → chunk-PU5DMQGG.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-IWHNRYER.js → chunk-Q65GWGQR.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-BLGGAHQW.js → chunk-QCIAX6HZ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-ET5SFGRH.js → chunk-QDV2NIFR.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-Y42KSX63.js → chunk-QMBMZSJF.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-KUOCGGEU.js → chunk-QNETPOMH.js} +6 -5
- package/dist/safe-bash/command-chunks/{chunk-QB72X7FF.js → chunk-QNX5LZBK.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-LZ2JFMKT.js → chunk-QOKFSYD5.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-7DOLY7IV.js → chunk-R7LF4XQV.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-PIVH35EQ.js → chunk-RINR7XPR.js} +37 -10
- package/dist/safe-bash/command-chunks/{chunk-MPXMRTMY.js → chunk-ROQ3VNVX.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-6WNVGCXD.js → chunk-RRAQII52.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-2BNGPR6Z.js → chunk-RTHYAGKI.js} +2 -2
- package/dist/safe-bash/command-chunks/chunk-RTKDZBJS.js +816 -0
- package/dist/safe-bash/command-chunks/{chunk-JVKE7YZN.js → chunk-RVWIEXR7.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-XM5QJCPD.js → chunk-S5ER73EA.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-YRPXBGRX.js → chunk-SBXS4S6Y.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-HI6ZYH3W.js → chunk-SHLT5R64.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-Q5PWYPQV.js → chunk-SICTBSLW.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-AXXZNB7U.js → chunk-SL4LD25A.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-JGKSWDGP.js → chunk-SNA2LVBX.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-TXPDKEGY.js → chunk-SWIF6BBY.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-PS5GDFIP.js → chunk-T2FRXSQT.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-HELAVGZH.js → chunk-T4SEQU66.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-3SPLP2DB.js → chunk-T5OQ53XS.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-KBAQHE5Y.js → chunk-TG2RVQLP.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-CZ5K2YPU.js → chunk-TXU7MMHN.js} +24 -24
- package/dist/safe-bash/command-chunks/{chunk-TYPS5MOU.js → chunk-TXWDR2P4.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-ETXPMVR6.js → chunk-TY7JXEWI.js} +11 -11
- package/dist/safe-bash/command-chunks/{chunk-X6OHFKBL.js → chunk-U42WHQRH.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-Z2WNYEPD.js → chunk-UFLMOU3B.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-2BLTUQNK.js → chunk-UJYXSLM6.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-Q7TVCBU2.js → chunk-UKAGRRLZ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-4GQKCUS5.js → chunk-UPWLHHZ2.js} +13 -13
- package/dist/safe-bash/command-chunks/{chunk-5L4YGRQU.js → chunk-URQSUMMJ.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-KPHLESD4.js → chunk-UT5X6QRU.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-T5S4SJGO.js → chunk-V6JPIZUW.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-MKK6FM5H.js → chunk-VMZIAFVJ.js} +11 -11
- package/dist/safe-bash/command-chunks/{chunk-HK6MSB7Z.js → chunk-VNNNVT4C.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-ROL5AEX6.js → chunk-VVV45NLY.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-VVWHFNHD.js +502 -0
- package/dist/safe-bash/command-chunks/{chunk-KCLJGRU7.js → chunk-VZTVR3JI.js} +12 -12
- package/dist/safe-bash/command-chunks/{chunk-PLR5IULU.js → chunk-WDVPHDBH.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-MNK3DDH6.js → chunk-WH624PKJ.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-TJLXSENN.js → chunk-WHZ6XK7Y.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-DN6MSXY7.js → chunk-WIW3KDBS.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-GXMPXMDP.js → chunk-WMBELKPP.js} +11 -11
- package/dist/safe-bash/command-chunks/{chunk-NHNZYWPW.js → chunk-WMV5224N.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-RTNI47C5.js → chunk-WOL3LBXE.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-7SOE7XIS.js → chunk-WVD5WZXD.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-XMTR7QGL.js → chunk-X42MJT2J.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-XUJAQA3S.js → chunk-XBWD6SI3.js} +33 -33
- package/dist/safe-bash/command-chunks/{chunk-ZQM37BGE.js → chunk-XFIDOCYH.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-IBYMPAUW.js → chunk-XPQUUFQD.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-NQINS4XY.js → chunk-XVEI4HZL.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-KSBNZTAZ.js → chunk-YKODRSGT.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-WZRFS5OY.js → chunk-YXR4JE4U.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-DCMSPMMD.js → chunk-Z7UIOPHJ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-AY3KQ4EN.js → chunk-ZAYTFXUX.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-DZH54L3F.js → chunk-ZM7HMBAJ.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-NFGCBQN3.js → chunk-ZNCPIZCN.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-HKGNBH7Z.js → chunk-ZRHKXN6W.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-A45UG4KT.js → chunk-ZZERSKAR.js} +5 -5
- package/dist/safe-bash/command-chunks/{clipboard-BBDK33GP-QZ4ERNQX.js → clipboard-BBDK33GP-VB22F7GI.js} +2 -2
- package/dist/safe-bash/command-chunks/{command-engine-7V6PZR7G.js → command-engine-GHE6QUHU.js} +63 -23
- package/dist/safe-bash/command-chunks/{engine-UYJENSWK-VSCGKSQV.js → engine-RG6HQCCB-FXYZS264.js} +1 -1
- package/dist/safe-bash/command-chunks/{gnumeric-UJPXWBVR-7VOHQAPM.js → gnumeric-UJPXWBVR-YPXTNEDZ.js} +2 -2
- package/dist/safe-bash/command-chunks/model-store-I7YAWL5V.js +54 -0
- package/dist/safe-bash/command-chunks/{xlsx-RE54MFCS-DI3F765V.js → xlsx-RE54MFCS-IQ6OXXKK.js} +1 -1
- package/dist/safe-bash/commands/bc/index.browser.js +1 -1
- package/dist/safe-bash/full-core.browser.js +4 -4
- package/dist/safe-bash/plugins/index.browser.js +3 -3
- package/dist/safe-bash/registry-entry.browser.js +2 -2
- package/dist/safe-bash/search.browser.js +1 -1
- package/dist/safe-bash/shell/runtime.d.ts +1 -0
- package/dist/safe-bash/shell/runtime.js +12 -3
- package/dist/safe-bash/shell/sync-extra-evaluators.js +7 -4
- package/dist/safe-bash/shell-entry.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-cp/index.js +3 -3
- package/dist/safe-bash-command-csvkit/index.js +1 -1
- 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-factor/command.js +2 -2
- package/dist/safe-bash-command-factor/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 +12 -2
- package/dist/safe-bash-command-ffprobe/media.js +4 -2
- package/dist/safe-bash-command-getopt/command.js +2 -2
- package/dist/safe-bash-command-getopt/index.js +2 -2
- package/dist/safe-bash-command-html-to-markdown/index.js +51 -813
- package/dist/safe-bash-command-html-to-markdown/stored-destination.d.ts +8 -0
- package/dist/safe-bash-command-html-to-markdown/stored-destination.js +10 -0
- package/dist/safe-bash-command-html-to-markdown/stored-text.d.ts +4 -1
- package/dist/safe-bash-command-html-to-markdown/stored-text.js +1 -1
- package/dist/safe-bash-command-htmlq/index.js +1280 -419
- 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/index.js +2 -2
- 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 +4 -4
- package/dist/safe-bash-command-node/commands/node/default-runtime.js +4 -4
- package/dist/safe-bash-command-node/commands/node/safejs.js +4 -4
- package/dist/safe-bash-command-pandoc/command.js +10 -9
- package/dist/safe-bash-command-pandoc/index.js +60 -59
- package/dist/safe-bash-command-patch/index.js +8 -7
- package/dist/safe-bash-command-patch/patch-formats.d.ts +6 -5
- package/dist/safe-bash-command-patch/patch-formats.js +3 -2
- package/dist/safe-bash-command-patch/patch-gnu-paths.d.ts +7 -7
- package/dist/safe-bash-command-patch/patch-gnu-reject.d.ts +1 -1
- package/dist/safe-bash-command-patch/patch-gnu-reject.js +3 -2
- package/dist/safe-bash-command-patch/patch-publication.js +3 -2
- package/dist/safe-bash-command-patch/patch-text.d.ts +13 -0
- package/dist/safe-bash-command-patch/patch.js +7 -6
- package/dist/safe-bash-command-patch/stored-patch.d.ts +32 -6
- package/dist/safe-bash-command-patch/stored-target.d.ts +2 -1
- package/dist/safe-bash-command-patch/unified.d.ts +22 -8
- package/dist/safe-bash-command-patch/unified.js +2 -1
- package/dist/safe-bash-command-pdftk/index.js +45 -122
- package/dist/safe-bash-command-pdftoppm/index.js +131 -27
- package/dist/safe-bash-command-playwright-cli/index.js +12 -12
- package/dist/safe-bash-command-playwright-cli/playwright/abilities.js +1 -1
- package/dist/safe-bash-command-playwright-cli/playwright/capability-events.js +1 -1
- package/dist/safe-bash-command-playwright-cli/playwright/capability-result.js +1 -1
- package/dist/safe-bash-command-playwright-cli/playwright/controller.js +7 -7
- package/dist/safe-bash-command-playwright-cli/playwright/download-capabilities.js +1 -1
- package/dist/safe-bash-command-playwright-cli/playwright/drop-capability.js +1 -1
- package/dist/safe-bash-command-playwright-cli/playwright/index.js +12 -12
- package/dist/safe-bash-command-playwright-cli/playwright/modal-capabilities.js +1 -1
- package/dist/safe-bash-command-playwright-cli/playwright/native-evaluation.js +1 -1
- package/dist/safe-bash-command-playwright-cli/playwright/native-json-snapshot.js +1 -1
- package/dist/safe-bash-command-playwright-cli/playwright/native-snapshot.js +1 -1
- package/dist/safe-bash-command-playwright-cli/playwright/open-options.js +2 -2
- package/dist/safe-bash-command-playwright-cli/playwright/profile.js +3 -3
- package/dist/safe-bash-command-playwright-cli/playwright/recording-capabilities.js +1 -1
- package/dist/safe-bash-command-playwright-cli/playwright/route-capabilities.js +1 -1
- package/dist/safe-bash-command-playwright-cli/playwright/snapshot.js +3 -3
- package/dist/safe-bash-command-playwright-cli/playwright/standard-capabilities.js +1 -1
- package/dist/safe-bash-command-playwright-cli/playwright/storage-capabilities.js +1 -1
- package/dist/safe-bash-command-playwright-cli/playwright/tracing-capabilities.js +1 -1
- package/dist/safe-bash-command-playwright-cli/playwright/webmcp-capabilities.js +1 -1
- package/dist/safe-bash-command-pptx/engine.js +1 -1
- package/dist/safe-bash-command-python/executor.js +11 -11
- package/dist/safe-bash-command-python/index.js +11 -11
- package/dist/safe-bash-command-python/jspi.js +2 -2
- package/dist/safe-bash-command-rg/index.js +3 -3
- package/dist/safe-bash-command-rg/rg-command.js +3 -3
- package/dist/safe-bash-command-safejs/index.js +4 -4
- package/dist/safe-bash-command-safejs/io.js +3 -3
- package/dist/safe-bash-command-safejs/render.js +2 -2
- package/dist/safe-bash-command-safejs/runtime.js +4 -4
- package/dist/safe-bash-command-soffice/index.js +5 -4
- package/dist/safe-bash-command-sort/index.js +3 -3
- package/dist/safe-bash-command-ssconvert/index.js +13 -13
- package/dist/safe-bash-command-tar/create.js +3 -3
- package/dist/safe-bash-command-tar/extract.js +3 -3
- package/dist/safe-bash-command-tar/index.js +7 -7
- package/dist/safe-bash-command-tar/modes.js +5 -5
- package/dist/safe-bash-command-unzip/index.js +2 -2
- package/dist/safe-bash-command-unzip/unzip.js +2 -2
- package/dist/safe-bash-command-xmllint/index.js +1 -1
- package/dist/safe-bash-command-xz/index.js +5 -5
- package/dist/safe-bash-compression-engine/files.js +5 -5
- package/dist/safe-bash-compression-engine/index.js +3 -3
- package/dist/safe-bash-compression-engine/operand.js +6 -6
- package/dist/safe-bash-compression-engine/stream.js +3 -3
- package/dist/safe-bash-compression-engine/zstd-decode.js +2 -2
- package/dist/safe-bash-contracts/escaping.js +3 -3
- package/dist/safe-bash-contracts/filesystem-output.js +3 -3
- package/dist/safe-bash-contracts/index.js +10 -10
- package/dist/safe-bash-docx-engine/ancillary-resources.js +9 -9
- package/dist/safe-bash-docx-engine/batch-operations.js +66 -66
- package/dist/safe-bash-docx-engine/batch-result-schema.js +78 -78
- package/dist/safe-bash-docx-engine/batch.js +77 -77
- package/dist/safe-bash-docx-engine/bookmarks.js +17 -17
- package/dist/safe-bash-docx-engine/charts.js +10 -10
- package/dist/safe-bash-docx-engine/command-option-rules.js +5 -5
- package/dist/safe-bash-docx-engine/command-properties.js +3 -3
- package/dist/safe-bash-docx-engine/comments.js +25 -25
- package/dist/safe-bash-docx-engine/control-bindings.js +20 -20
- package/dist/safe-bash-docx-engine/control-repeat.js +20 -20
- package/dist/safe-bash-docx-engine/controls.js +18 -18
- package/dist/safe-bash-docx-engine/create.js +10 -10
- package/dist/safe-bash-docx-engine/diagrams.js +10 -10
- package/dist/safe-bash-docx-engine/diff.js +12 -12
- package/dist/safe-bash-docx-engine/document-properties.js +15 -15
- package/dist/safe-bash-docx-engine/equations.js +16 -16
- package/dist/safe-bash-docx-engine/extract.js +13 -13
- package/dist/safe-bash-docx-engine/fields.js +22 -22
- package/dist/safe-bash-docx-engine/font-inventory.js +17 -17
- package/dist/safe-bash-docx-engine/font-resources.js +5 -5
- package/dist/safe-bash-docx-engine/image-batch-operations.js +13 -13
- package/dist/safe-bash-docx-engine/image-insertion.js +20 -20
- package/dist/safe-bash-docx-engine/image-layout.js +18 -18
- package/dist/safe-bash-docx-engine/image-replacement.js +21 -21
- package/dist/safe-bash-docx-engine/images.js +18 -18
- package/dist/safe-bash-docx-engine/index.js +113 -113
- package/dist/safe-bash-docx-engine/inspection.js +19 -19
- package/dist/safe-bash-docx-engine/invocation.js +8 -8
- package/dist/safe-bash-docx-engine/io.js +8 -8
- package/dist/safe-bash-docx-engine/links.js +20 -20
- package/dist/safe-bash-docx-engine/lists.js +19 -19
- package/dist/safe-bash-docx-engine/locations.js +14 -14
- package/dist/safe-bash-docx-engine/notes.js +21 -21
- package/dist/safe-bash-docx-engine/objects.js +18 -18
- package/dist/safe-bash-docx-engine/operation-json-schema.js +3 -3
- package/dist/safe-bash-docx-engine/operation-schema.js +2 -2
- package/dist/safe-bash-docx-engine/pack.js +13 -13
- package/dist/safe-bash-docx-engine/package-view-batch-operations.js +21 -21
- package/dist/safe-bash-docx-engine/pandoc-adapter.js +28 -28
- package/dist/safe-bash-docx-engine/paragraph-edit.js +24 -24
- package/dist/safe-bash-docx-engine/part-provider.js +3 -3
- package/dist/safe-bash-docx-engine/property-values.js +3 -3
- package/dist/safe-bash-docx-engine/publication.js +8 -8
- package/dist/safe-bash-docx-engine/removal.js +20 -20
- package/dist/safe-bash-docx-engine/revision-decisions.js +21 -21
- package/dist/safe-bash-docx-engine/revision-edit.js +19 -19
- package/dist/safe-bash-docx-engine/revisions.js +17 -17
- package/dist/safe-bash-docx-engine/run-format.js +19 -19
- package/dist/safe-bash-docx-engine/sanitize.js +33 -33
- package/dist/safe-bash-docx-engine/sections.js +18 -18
- package/dist/safe-bash-docx-engine/settings.js +10 -10
- package/dist/safe-bash-docx-engine/shape-edit.js +20 -20
- package/dist/safe-bash-docx-engine/signatures.js +14 -14
- package/dist/safe-bash-docx-engine/stories.js +21 -21
- package/dist/safe-bash-docx-engine/structure-model-batch-operations.js +37 -37
- package/dist/safe-bash-docx-engine/style-model-batch-operations.js +26 -26
- package/dist/safe-bash-docx-engine/style-model-result-schema.js +43 -43
- package/dist/safe-bash-docx-engine/styles.js +17 -17
- package/dist/safe-bash-docx-engine/table-edit.js +26 -26
- package/dist/safe-bash-docx-engine/table-read.js +15 -15
- package/dist/safe-bash-docx-engine/template.js +21 -21
- package/dist/safe-bash-docx-engine/text-replace.js +19 -19
- package/dist/safe-bash-docx-engine/text-resource-read.js +15 -15
- package/dist/safe-bash-docx-engine/text.js +15 -15
- package/dist/safe-bash-docx-engine/validation.js +6 -6
- package/dist/safe-bash-docx-engine/xml-parts.js +21 -21
- package/dist/safe-bash-line-ending-engine/command.js +4 -4
- package/dist/safe-bash-line-ending-engine/index.js +7 -7
- package/dist/safe-bash-markdown-engine/commonmark-blocks.js +3 -3
- package/dist/safe-bash-markdown-engine/commonmark-inlines.js +3 -3
- package/dist/safe-bash-markdown-engine/gfm-syntax.js +2 -2
- package/dist/safe-bash-markdown-engine/index.js +4 -4
- package/dist/safe-bash-network-engine/aggregate.js +3 -3
- package/dist/safe-bash-network-engine/args.js +3 -3
- package/dist/safe-bash-network-engine/body.js +4 -4
- package/dist/safe-bash-network-engine/decode.js +3 -3
- package/dist/safe-bash-network-engine/fetch-transport.js +3 -3
- package/dist/safe-bash-network-engine/index.js +3 -3
- package/dist/safe-bash-network-engine/output.js +3 -3
- package/dist/safe-bash-network-engine/platform-portable.js +3 -3
- package/dist/safe-bash-network-engine/shared.js +2 -2
- package/dist/safe-bash-network-engine/transfer.js +9 -9
- 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 +4 -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 +60 -58
- 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 +5 -4
- package/dist/safe-bash-presentation-engine/creation.js +7 -6
- package/dist/safe-bash-presentation-engine/diff.d.ts +1 -0
- package/dist/safe-bash-presentation-engine/diff.js +44 -33
- 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 +3 -2
- package/dist/safe-bash-presentation-engine/fields.js +17 -16
- package/dist/safe-bash-presentation-engine/font-metrics.js +4 -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 +5 -4
- package/dist/safe-bash-presentation-engine/images.js +19 -18
- package/dist/safe-bash-presentation-engine/index.js +135 -132
- package/dist/safe-bash-presentation-engine/layouts.js +16 -15
- package/dist/safe-bash-presentation-engine/length.js +4 -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.d.ts +1 -0
- package/dist/safe-bash-presentation-engine/notes.js +22 -15
- package/dist/safe-bash-presentation-engine/ole-enum.js +5 -4
- package/dist/safe-bash-presentation-engine/ole-insertion.js +20 -19
- package/dist/safe-bash-presentation-engine/opaque-objects.js +10 -9
- package/dist/safe-bash-presentation-engine/package-reader.js +6 -5
- package/dist/safe-bash-presentation-engine/package-tools.js +19 -18
- package/dist/safe-bash-presentation-engine/package-uri.js +4 -3
- package/dist/safe-bash-presentation-engine/package-writer.js +5 -4
- package/dist/safe-bash-presentation-engine/presentation-model.js +59 -57
- package/dist/safe-bash-presentation-engine/presentation-settings.js +14 -13
- package/dist/safe-bash-presentation-engine/properties.d.ts +2 -1
- package/dist/safe-bash-presentation-engine/properties.js +25 -15
- package/dist/safe-bash-presentation-engine/relationships.js +5 -4
- package/dist/safe-bash-presentation-engine/resource-limits.js +2 -1
- package/dist/safe-bash-presentation-engine/retained-diff.d.ts +56 -0
- package/dist/safe-bash-presentation-engine/retained-inspection.js +14 -13
- package/dist/safe-bash-presentation-engine/retained-notes.d.ts +27 -0
- package/dist/safe-bash-presentation-engine/retained-package.js +6 -5
- package/dist/safe-bash-presentation-engine/retained-properties.d.ts +26 -0
- package/dist/safe-bash-presentation-engine/retained-text.js +33 -517
- package/dist/safe-bash-presentation-engine/sanitize.js +20 -16
- package/dist/safe-bash-presentation-engine/selectors.js +11 -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 +4 -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.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 +10 -9
- package/dist/safe-bash-presentation-engine/slides.js +19 -18
- 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 +12 -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.js +19 -18
- package/dist/safe-bash-presentation-engine/xml-view.js +4 -3
- package/dist/safe-bash-presentation-engine/xml.js +4 -3
- package/dist/safe-bash-query-engine/index.js +3 -3
- package/dist/safe-bash-query-engine/interpreter.js +2 -2
- package/dist/safe-bash-query-engine/query-core.js +3 -3
- package/dist/safe-bash-regex-engine/ere/matcher.js +3 -3
- package/dist/safe-bash-xml-engine/document.js +3 -3
- package/dist/safe-bash-xml-engine/evaluate.js +1 -1
- package/dist/safe-bash-xml-engine/index.js +4 -4
- package/dist/safe-bash-xml-engine/json.js +14 -10
- package/dist/safe-bash-xml-engine/query.js +2 -2
- package/dist/safe-bash-xml-engine/stored-document.d.ts +4 -0
- package/dist/safe-bash-xml-engine/stored-document.js +1 -1
- package/dist/safe-bash-xml-engine/stored-evaluate.js +3 -3
- package/dist/safe-bash-zip-engine/index.js +2 -2
- package/dist/safe-bash-zip-engine/zip/repair.js +2 -2
- package/dist/safe-bash-zip-engine/zip/sfx.js +2 -2
- package/dist/safe-bash-zip-engine/zip-format.js +2 -2
- package/dist/spreadsheet-format-xls/biff-properties-merge.js +88 -73
- package/dist/spreadsheet-format-xls/biff-properties.js +3 -3
- package/dist/spreadsheet-format-xls/biff-property-transcode.d.ts +6 -1
- package/dist/spreadsheet-format-xls/biff-property-transcode.js +15 -4
- package/dist/spreadsheet-format-xls/biff-property-values.d.ts +36 -0
- package/dist/spreadsheet-format-xls/biff-property-values.js +227 -0
- package/dist/xlsx-ast/comment-geometry.d.ts +12 -0
- package/dist/xlsx-ast/comment-geometry.js +71 -0
- package/dist/xlsx-ast/xlsx-metadata.d.ts +1 -1
- package/dist/xlsx-ast/xlsx-metadata.js +27 -2
- package/dist/xlsx-ast/xlsx-write-metadata.js +9 -1
- package/dist/xlsx-ast/xlsx.js +9 -4
- package/package.json +6 -3
- package/dist/safe-bash/command-chunks/biff-KRHJ63K3-VQPJCVIL.js +0 -5309
- package/dist/safe-bash/command-chunks/chunk-DBNJEXHK.js +0 -387
- package/dist/safe-bash/command-chunks/chunk-EV5G535P.js +0 -240
- package/dist/safe-bash/command-chunks/model-store-UB5DWMAP.js +0 -54
- package/dist/safe-bash/command-chunks/{chunk-NGSO645G.js → chunk-3ZVK2OAY.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-W2FKFEVY.js → chunk-4YSBUQPV.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-UJSLBBQ7.js → chunk-5MFRN3CB.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-AW4Q3GZW.js → chunk-5QXRIZSS.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-KUGV3SSL.js → chunk-CZXYWGVO.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-JWORWL72.js → chunk-DX7KU6YU.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-Z37OM247.js → chunk-E3BL7W5C.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-RIKNMBLZ.js → chunk-FEKECRJP.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-D3HW7R2N.js → chunk-FTZFCMVI.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-KRRG4MGH.js → chunk-GEDO5V32.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-NBRXQUK7.js → chunk-M3OXQXCU.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-JRSZ5IGD.js → chunk-OAM2SUUI.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-HFKS6AET.js → chunk-OCOJMKDP.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-FMJKCVSQ.js → chunk-OOB7YCFQ.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-GGH376XQ.js → chunk-OU4VE5CR.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-DYERIXPU.js → chunk-QGTQJCKW.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-ZSQCROFE.js → chunk-RXXNLH7A.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-TI52LKLL.js → chunk-UVM6QG2H.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-BJXADHRT.js → chunk-WKU65Z3Q.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-KGKF5NM2.js → chunk-WOXLPDO6.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-Y5ADXWBQ.js → chunk-WXW665TV.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-FWCUEZ3K.js → chunk-WYBCSJFG.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-BXU5Y7I5.js → chunk-XI2LETBJ.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-LNLACEAN.js → chunk-Y3ZRIZL7.js} +3 -3
|
@@ -1,44 +1,46 @@
|
|
|
1
|
+
import {
|
|
2
|
+
authorizeOutputs,
|
|
3
|
+
authorizePaths,
|
|
4
|
+
backupName,
|
|
5
|
+
candidateStat,
|
|
6
|
+
ensureParents,
|
|
7
|
+
pruneDirectories,
|
|
8
|
+
pruneParents,
|
|
9
|
+
regular,
|
|
10
|
+
rejectName,
|
|
11
|
+
selectTarget
|
|
12
|
+
} from "./chunk-OQNX2OOS.js";
|
|
1
13
|
import {
|
|
2
14
|
PatchBodyStore,
|
|
15
|
+
patchHunk,
|
|
16
|
+
patchHunks,
|
|
3
17
|
patchLine,
|
|
4
18
|
rejectBytes,
|
|
5
19
|
reverseStoredPatch
|
|
6
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-5XUWGUGN.js";
|
|
7
21
|
import {
|
|
8
22
|
PatchPublication
|
|
9
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-CFMJXJS5.js";
|
|
10
24
|
import {
|
|
11
25
|
TargetDocuments,
|
|
12
26
|
TargetOutput,
|
|
13
27
|
equalTargetLines,
|
|
14
28
|
targetBytes
|
|
15
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-KASXIRKD.js";
|
|
16
30
|
import {
|
|
17
31
|
parsePatchWith
|
|
18
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-4772DJKS.js";
|
|
19
33
|
import {
|
|
20
34
|
parseUnifiedReader,
|
|
21
35
|
startIndex
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import {
|
|
24
|
-
authorizeOutputs,
|
|
25
|
-
authorizePaths,
|
|
26
|
-
backupName,
|
|
27
|
-
candidateStat,
|
|
28
|
-
ensureParents,
|
|
29
|
-
pruneDirectories,
|
|
30
|
-
pruneParents,
|
|
31
|
-
regular,
|
|
32
|
-
rejectName,
|
|
33
|
-
selectTarget
|
|
34
|
-
} from "./chunk-OQNX2OOS.js";
|
|
36
|
+
} from "./chunk-ALD53QFL.js";
|
|
35
37
|
import {
|
|
36
38
|
safeTarget
|
|
37
39
|
} from "./chunk-AJEQUVDN.js";
|
|
38
40
|
|
|
39
41
|
// packages/safe-bash-command-patch/src/patch.ts
|
|
40
42
|
import { closeDocumentResources as closeDocumentResources2 } from "../../safe-bash-diff-engine/document.js";
|
|
41
|
-
import { PagedStorage as
|
|
43
|
+
import { PagedStorage as PagedStorage3 } from "@poe-platform/safe-fs/storage";
|
|
42
44
|
|
|
43
45
|
// packages/safe-bash-command-patch/src/stored-hunks.ts
|
|
44
46
|
import { closeDocumentResources } from "../../safe-bash-diff-engine/document.js";
|
|
@@ -55,7 +57,7 @@ async function applyStoredHunks(original, patch, fuzz, budget, ignoreWhitespace
|
|
|
55
57
|
let cursor = 0;
|
|
56
58
|
let offset = 0;
|
|
57
59
|
let outputOffset = 0;
|
|
58
|
-
for (const [hunkIndex, hunk] of patch
|
|
60
|
+
for await (const [hunkIndex, hunk] of patchHunks(patch)) {
|
|
59
61
|
budget.step();
|
|
60
62
|
const oldIndex = indices.allocate((hunk.oldCount + hunk.newCount) * 8), newIndex = oldIndex + hunk.oldCount * 8;
|
|
61
63
|
let oldPosition = oldIndex, newPosition = newIndex;
|
|
@@ -169,7 +171,7 @@ async function applyStoredHunks(original, patch, fuzz, budget, ignoreWhitespace
|
|
|
169
171
|
const matched = found;
|
|
170
172
|
if (matched >= 0) offset = matched - startIndex(hunk.oldStart, hunk.oldCount);
|
|
171
173
|
if (misordered) found = -1;
|
|
172
|
-
application.outcomes?.push({
|
|
174
|
+
await application.outcomes?.push({
|
|
173
175
|
hunk,
|
|
174
176
|
index: hunkIndex + 1,
|
|
175
177
|
failed: found < 0,
|
|
@@ -204,8 +206,8 @@ async function applyStoredHunks(original, patch, fuzz, budget, ignoreWhitespace
|
|
|
204
206
|
let identical = localLength === hunk.newCount;
|
|
205
207
|
for (let index = 0; identical && index < localLength; index++) identical = await equalTargetLines(source.at(cursor + index), await indexedLine(newIndex, index), budget);
|
|
206
208
|
if (identical) {
|
|
207
|
-
const last = application.outcomes?.pop();
|
|
208
|
-
if (last) application.outcomes.push({ ...last, failed: false, fuzz: 0, offset: position - startIndex(hunk.oldStart, hunk.oldCount) });
|
|
209
|
+
const last = await application.outcomes?.pop();
|
|
210
|
+
if (last) await application.outcomes.push({ ...last, failed: false, fuzz: 0, offset: position - startIndex(hunk.oldStart, hunk.oldCount) });
|
|
209
211
|
for (let index = prefix; index < localLength - suffix; index++) await result.append(source.at(cursor + index));
|
|
210
212
|
} else {
|
|
211
213
|
await result.append("<<<<<<<\n");
|
|
@@ -217,8 +219,8 @@ async function applyStoredHunks(original, patch, fuzz, budget, ignoreWhitespace
|
|
|
217
219
|
await result.append("=======\n");
|
|
218
220
|
for (let index = prefix; index < hunk.newCount - suffix; index++) await result.append(await indexedLine(newIndex, index));
|
|
219
221
|
await result.append(">>>>>>>\n");
|
|
220
|
-
const last = application.outcomes?.pop();
|
|
221
|
-
if (last) application.outcomes.push({ ...last, mergeRange: [mergeStart, result.length] });
|
|
222
|
+
const last = await application.outcomes?.pop();
|
|
223
|
+
if (last) await application.outcomes.push({ ...last, mergeRange: [mergeStart, result.length] });
|
|
222
224
|
}
|
|
223
225
|
for (let index = localLength - suffix; index < localLength; index++) await result.append(source.at(cursor + index));
|
|
224
226
|
cursor += localLength;
|
|
@@ -285,10 +287,14 @@ var StoredPatchInput = class {
|
|
|
285
287
|
length;
|
|
286
288
|
cachedIndex = -1;
|
|
287
289
|
cachedLine = "";
|
|
288
|
-
async read(index) {
|
|
290
|
+
async read(index, prefix) {
|
|
289
291
|
if (index < 0 || index >= this.length) return void 0;
|
|
290
|
-
if (index === this.cachedIndex) return this.cachedLine;
|
|
292
|
+
if (index === this.cachedIndex) return prefix === void 0 ? this.cachedLine : this.cachedLine.slice(0, prefix);
|
|
291
293
|
const line = await this.document.line(this.start + index);
|
|
294
|
+
if (prefix !== void 0) {
|
|
295
|
+
const size = Math.min(prefix, line.end - line.start - (this.crlf ? 2 : 1));
|
|
296
|
+
return new TextDecoder("utf-8", { ignoreBOM: true }).decode(await this.document.data.read(8 + line.start, size));
|
|
297
|
+
}
|
|
292
298
|
const decoder = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true });
|
|
293
299
|
let text = "";
|
|
294
300
|
for await (const block of this.document.range(line.start, line.end - (this.crlf ? 2 : 1))) text += decoder.decode(block, { stream: true });
|
|
@@ -297,12 +303,49 @@ var StoredPatchInput = class {
|
|
|
297
303
|
this.cachedLine = text;
|
|
298
304
|
return text;
|
|
299
305
|
}
|
|
306
|
+
async matches(index, text) {
|
|
307
|
+
if (index < 0 || index >= this.length) return false;
|
|
308
|
+
const line = await this.document.line(this.start + index), bytes = new TextEncoder().encode(text);
|
|
309
|
+
if (line.end - line.start - (this.crlf ? 2 : 1) !== bytes.length) return false;
|
|
310
|
+
let at = 0;
|
|
311
|
+
for await (const block of this.document.range(line.start, line.end - (this.crlf ? 2 : 1)))
|
|
312
|
+
for (const byte of block) if (byte !== bytes[at++]) return false;
|
|
313
|
+
return true;
|
|
314
|
+
}
|
|
315
|
+
async body(index, skip, incomplete) {
|
|
316
|
+
const line = await this.document.line(this.start + index), document = this.document;
|
|
317
|
+
const end = line.end - (this.crlf ? 2 : 1), start = Math.min(line.start + skip, end);
|
|
318
|
+
return { size: end - start + (incomplete ? 0 : 1), terminated: !incomplete, bytes: {
|
|
319
|
+
async *[Symbol.asyncIterator]() {
|
|
320
|
+
yield* document.range(start, end);
|
|
321
|
+
if (!incomplete) yield new Uint8Array([10]);
|
|
322
|
+
}
|
|
323
|
+
} };
|
|
324
|
+
}
|
|
300
325
|
async signature(index) {
|
|
301
326
|
const line = await this.document.line(this.start + index);
|
|
302
327
|
if (line.end - line.start !== (this.crlf ? 5 : 4)) return false;
|
|
303
328
|
const bytes = await this.document.data.read(8 + line.start, 3);
|
|
304
329
|
return bytes[0] === 45 && bytes[1] === 45 && bytes[2] === 32;
|
|
305
330
|
}
|
|
331
|
+
/** Recognize the unbounded numeric prefix used by mail patch admission. */
|
|
332
|
+
async normalCommand(index) {
|
|
333
|
+
const line = await this.document.line(this.start + index);
|
|
334
|
+
let state = "start";
|
|
335
|
+
for await (const block of this.document.range(line.start, line.end)) for (const byte of block) {
|
|
336
|
+
const digit = byte >= 48 && byte <= 57;
|
|
337
|
+
if (state === "operation") return digit;
|
|
338
|
+
if (state === "start" || state === "comma") {
|
|
339
|
+
if (!digit) return false;
|
|
340
|
+
state = state === "start" ? "first" : "second";
|
|
341
|
+
} else if (!digit) {
|
|
342
|
+
if (state === "first" && byte === 44) state = "comma";
|
|
343
|
+
else if (byte === 97 || byte === 99 || byte === 100) state = "operation";
|
|
344
|
+
else return false;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
return false;
|
|
348
|
+
}
|
|
306
349
|
};
|
|
307
350
|
async function unwrapStoredPatch(document, budget) {
|
|
308
351
|
if (document.size && (await document.data.read(8 + document.size - 1, 1))[0] !== 10) throw new ToolError2("patch is truncated: missing final LF");
|
|
@@ -320,13 +363,13 @@ async function unwrapStoredPatch(document, budget) {
|
|
|
320
363
|
}
|
|
321
364
|
const input = new StoredPatchInput(document, crlf);
|
|
322
365
|
let start = 0;
|
|
323
|
-
if (/^(?:From [0-9a-f]{40,64} |(?:From|Date|Subject|To|Cc|MIME-Version|Content-Type):)/u.test(await input.read(0) ?? "")) {
|
|
366
|
+
if (/^(?:From [0-9a-f]{40,64} |(?:From|Date|Subject|To|Cc|MIME-Version|Content-Type):)/u.test(await input.read(0, 128) ?? "")) {
|
|
324
367
|
while (start < input.length) {
|
|
325
368
|
budget.step();
|
|
326
369
|
const pause = budget.checkpoint();
|
|
327
370
|
if (pause) await pause;
|
|
328
|
-
const line = await input.read(start);
|
|
329
|
-
if (/^(?:--- |\*\*\* |diff
|
|
371
|
+
const line = await input.read(start, 128);
|
|
372
|
+
if (/^(?:--- |\*\*\* |diff )/u.test(line) || /^\d/u.test(line) && await input.normalCommand(start)) break;
|
|
330
373
|
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 ToolError2("unsupported or malformed mail patch metadata");
|
|
331
374
|
if (++start > budget.limits.maxLines) throw new ToolError2("mail preamble limit exceeded");
|
|
332
375
|
}
|
|
@@ -344,12 +387,77 @@ async function unwrapStoredPatch(document, budget) {
|
|
|
344
387
|
budget.step();
|
|
345
388
|
const pause2 = budget.checkpoint();
|
|
346
389
|
if (pause2) await pause2;
|
|
347
|
-
|
|
390
|
+
const line = await input.read(index, 128);
|
|
391
|
+
if (/^(?:diff |---|\+\+\+|\*\*\*|@@|index |old mode |new mode |new file mode |deleted file mode |rename |copy |similarity index |dissimilarity index |GIT binary patch|Binary files |[+\\])/u.test(line) || /^\d/u.test(line) && await input.normalCommand(index)) throw new ToolError2("patch data after mail signature");
|
|
348
392
|
}
|
|
349
393
|
}
|
|
350
394
|
return new StoredPatchInput(document, crlf, start, end - start);
|
|
351
395
|
}
|
|
352
396
|
|
|
397
|
+
// packages/safe-bash-command-patch/src/stored-outcomes.ts
|
|
398
|
+
import { PagedStorage as PagedStorage2 } from "@poe-platform/safe-fs/storage";
|
|
399
|
+
var OutcomeStore = class {
|
|
400
|
+
records;
|
|
401
|
+
constructor(documents) {
|
|
402
|
+
this.records = new PagedStorage2(documents.budget.context, 16, documents.cache);
|
|
403
|
+
}
|
|
404
|
+
create(patch) {
|
|
405
|
+
return new StoredOutcomes(this.records, this.records.allocate(patch.hunks.length * 64), patch);
|
|
406
|
+
}
|
|
407
|
+
close() {
|
|
408
|
+
return this.records.close();
|
|
409
|
+
}
|
|
410
|
+
};
|
|
411
|
+
var StoredOutcomes = class {
|
|
412
|
+
constructor(records, start, patch) {
|
|
413
|
+
this.records = records;
|
|
414
|
+
this.start = start;
|
|
415
|
+
this.patch = patch;
|
|
416
|
+
}
|
|
417
|
+
records;
|
|
418
|
+
start;
|
|
419
|
+
patch;
|
|
420
|
+
length = 0;
|
|
421
|
+
async push(outcome) {
|
|
422
|
+
if (this.length >= this.patch.hunks.length) throw new RangeError("Too many patch outcomes");
|
|
423
|
+
const bytes = new Uint8Array(64), view = new DataView(bytes.buffer);
|
|
424
|
+
view.setFloat64(0, outcome.index, true);
|
|
425
|
+
view.setFloat64(8, outcome.line, true);
|
|
426
|
+
view.setFloat64(16, outcome.outputOffset, true);
|
|
427
|
+
view.setFloat64(24, outcome.offset, true);
|
|
428
|
+
view.setFloat64(32, outcome.fuzz, true);
|
|
429
|
+
view.setFloat64(40, outcome.mergeRange?.[0] ?? NaN, true);
|
|
430
|
+
view.setFloat64(48, outcome.mergeRange?.[1] ?? NaN, true);
|
|
431
|
+
bytes[56] = (outcome.failed ? 1 : 0) | (outcome.misordered ? 2 : 0);
|
|
432
|
+
await this.records.write(this.start + this.length * 64, bytes);
|
|
433
|
+
this.length++;
|
|
434
|
+
}
|
|
435
|
+
async at(position) {
|
|
436
|
+
if (!Number.isSafeInteger(position) || position < 0 || position >= this.length) return void 0;
|
|
437
|
+
const bytes = await this.records.read(this.start + position * 64, 64), view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
438
|
+
const index = view.getFloat64(0, true), mergeStart = view.getFloat64(40, true);
|
|
439
|
+
return {
|
|
440
|
+
hunk: await patchHunk(this.patch, index - 1),
|
|
441
|
+
index,
|
|
442
|
+
line: view.getFloat64(8, true),
|
|
443
|
+
outputOffset: view.getFloat64(16, true),
|
|
444
|
+
offset: view.getFloat64(24, true),
|
|
445
|
+
fuzz: view.getFloat64(32, true),
|
|
446
|
+
failed: !!(bytes[56] & 1),
|
|
447
|
+
misordered: !!(bytes[56] & 2),
|
|
448
|
+
...Number.isNaN(mergeStart) ? {} : { mergeRange: [mergeStart, view.getFloat64(48, true)] }
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
|
+
async pop() {
|
|
452
|
+
const outcome = await this.at(this.length - 1);
|
|
453
|
+
if (outcome) this.length--;
|
|
454
|
+
return outcome;
|
|
455
|
+
}
|
|
456
|
+
async *[Symbol.asyncIterator]() {
|
|
457
|
+
for (let index = 0; index < this.length; index++) yield await this.at(index);
|
|
458
|
+
}
|
|
459
|
+
};
|
|
460
|
+
|
|
353
461
|
// packages/safe-bash-command-patch/src/patch.ts
|
|
354
462
|
import { FsError, dirname, pathOf, pipeBytes, resolvePath, writeBytes } from "../../safe-bash-contracts/index.js";
|
|
355
463
|
import { publicDiagnosticMessage } from "../../safe-bash-contracts/diagnostics.js";
|
|
@@ -481,55 +589,59 @@ function flags(args) {
|
|
|
481
589
|
if (result.posix && !backupSelected) result.backup = false;
|
|
482
590
|
return result;
|
|
483
591
|
}
|
|
484
|
-
async function applyContent(sourcePatch, current, exists, options, budget, documents) {
|
|
592
|
+
async function applyContent(sourcePatch, current, exists, options, budget, documents, outcomeStore) {
|
|
485
593
|
let reversed = options.reverse;
|
|
486
594
|
let patch = reversed ? reverseStoredPatch(sourcePatch) : sourcePatch;
|
|
487
|
-
const
|
|
488
|
-
|
|
595
|
+
const emptySide = async (side, checkStart = true) => {
|
|
596
|
+
for await (const [, hunk] of patchHunks(patch)) if (hunk[`${side}Count`] !== 0 || checkStart && hunk[`${side}Start`] !== 0) return false;
|
|
597
|
+
return true;
|
|
598
|
+
};
|
|
599
|
+
const creation = async () => patch.oldPath === "/dev/null" || await emptySide("old") && (patch.oldEpoch || !exists);
|
|
489
600
|
let autoReversed = false;
|
|
490
601
|
let reverseMismatch = false;
|
|
491
|
-
const declaredCreation = patch.oldPath === "/dev/null" || patch.oldEpoch &&
|
|
492
|
-
const declaredDeletion = patch.newPath === "/dev/null" || patch.newEpoch &&
|
|
602
|
+
const declaredCreation = patch.oldPath === "/dev/null" || patch.oldEpoch && await emptySide("old");
|
|
603
|
+
const declaredDeletion = patch.newPath === "/dev/null" || patch.newEpoch && await emptySide("new", false);
|
|
493
604
|
if (!options.force && (declaredCreation && current.size !== 0 || declaredDeletion && !exists)) {
|
|
494
605
|
patch = reverseStoredPatch(patch);
|
|
495
606
|
reversed = !reversed;
|
|
496
607
|
autoReversed = true;
|
|
497
608
|
}
|
|
498
|
-
if (!creation() && !exists) return void 0;
|
|
499
|
-
let outcomes =
|
|
609
|
+
if (!await creation() && !exists) return void 0;
|
|
610
|
+
let outcomes = outcomeStore.create(patch);
|
|
500
611
|
let result = await applyStoredHunks(current, patch, options.fuzz, budget, options.ignoreWhitespace, {
|
|
501
612
|
partial: true,
|
|
502
613
|
outcomes,
|
|
503
614
|
...options.ifdef === void 0 ? {} : { ifdef: options.ifdef },
|
|
504
615
|
...options.merge === void 0 ? {} : { merge: options.merge },
|
|
505
|
-
rejectAll: creation() && current.size !== 0
|
|
616
|
+
rejectAll: await creation() && current.size !== 0
|
|
506
617
|
}, documents);
|
|
507
|
-
|
|
618
|
+
const first = await outcomes.at(0);
|
|
619
|
+
if (!options.merge && !options.force && !autoReversed && (first?.failed || first?.fuzz)) {
|
|
508
620
|
const opposite = reverseStoredPatch(patch);
|
|
509
|
-
const probe =
|
|
510
|
-
const reverseFuzz =
|
|
511
|
-
const probeResult = await applyStoredHunks(current, { ...opposite, hunks: opposite
|
|
621
|
+
const probe = outcomeStore.create(opposite);
|
|
622
|
+
const reverseFuzz = first.failed ? options.fuzz : first.fuzz - 1;
|
|
623
|
+
const probeResult = await applyStoredHunks(current, { ...opposite, hunks: [await patchHunk(opposite, 0)] }, reverseFuzz, budget, options.ignoreWhitespace, { partial: true, outcomes: probe }, documents);
|
|
512
624
|
await documents.release(probeResult);
|
|
513
|
-
if (!probe
|
|
625
|
+
if (!(await probe.at(0))?.failed) {
|
|
514
626
|
patch = opposite;
|
|
515
627
|
reversed = !reversed;
|
|
516
628
|
autoReversed = true;
|
|
517
629
|
reverseMismatch = true;
|
|
518
|
-
outcomes =
|
|
630
|
+
outcomes = outcomeStore.create(patch);
|
|
519
631
|
await documents.release(result);
|
|
520
632
|
result = await applyStoredHunks(current, patch, options.fuzz, budget, options.ignoreWhitespace, {
|
|
521
633
|
partial: true,
|
|
522
634
|
outcomes,
|
|
523
635
|
...options.ifdef === void 0 ? {} : { ifdef: options.ifdef },
|
|
524
636
|
...options.merge === void 0 ? {} : { merge: options.merge },
|
|
525
|
-
rejectAll: creation() && current.size !== 0
|
|
637
|
+
rejectAll: await creation() && current.size !== 0
|
|
526
638
|
}, documents);
|
|
527
639
|
}
|
|
528
640
|
}
|
|
529
|
-
const deletion = patch.newPath === "/dev/null" || patch.newEpoch &&
|
|
641
|
+
const deletion = patch.newPath === "/dev/null" || patch.newEpoch && await emptySide("new");
|
|
530
642
|
if (autoReversed && options.forward) {
|
|
531
643
|
await documents.release(result);
|
|
532
|
-
return { result: current, outcomes:
|
|
644
|
+
return { result: current, outcomes: outcomeStore.create(patch), reversed, autoReversed, reverseMismatch, deletion: false, skipped: true };
|
|
533
645
|
}
|
|
534
646
|
return { result, outcomes, reversed, autoReversed, reverseMismatch, deletion };
|
|
535
647
|
}
|
|
@@ -613,7 +725,8 @@ async function run(context, budget) {
|
|
|
613
725
|
}
|
|
614
726
|
const documents = new TargetDocuments(budget);
|
|
615
727
|
const bodies = new PatchBodyStore(documents);
|
|
616
|
-
const
|
|
728
|
+
const outcomeStore = new OutcomeStore(documents);
|
|
729
|
+
const messages = new PagedStorage3(budget.context, 16, documents.cache);
|
|
617
730
|
try {
|
|
618
731
|
const empty = await documents.load({ async *[Symbol.asyncIterator]() {
|
|
619
732
|
} });
|
|
@@ -631,14 +744,14 @@ async function run(context, budget) {
|
|
|
631
744
|
const input = options.input === "-" ? await documents.load(budget.stdinSource()) : inputCapabilities?.retainedRead && context.fs.openReadFile ? await documents.read(inputPath) : context.fs.readStream && inputCapabilities?.streamingRead !== false ? await documents.load(budget.streamSource(inputPath)) : await documents.load(targetBytes(await budget.read(inputPath)));
|
|
632
745
|
const progress = options.atomic ? void 0 : {};
|
|
633
746
|
const sections = await parsePatchWith(await unwrapStoredPatch(input, budget), budget, options.format, explicit, {
|
|
634
|
-
unified: (cursor) => parseUnifiedReader(cursor, budget, true, () => bodies.begin()),
|
|
747
|
+
unified: (cursor) => parseUnifiedReader(cursor, budget, true, () => bodies.begin(), () => bodies.beginHunks()),
|
|
635
748
|
converted: async (chunks) => {
|
|
636
749
|
const converted = await documents.load({ async *[Symbol.asyncIterator]() {
|
|
637
750
|
for await (const chunk of chunks) yield* targetBytes(chunk);
|
|
638
751
|
} });
|
|
639
752
|
try {
|
|
640
753
|
budget.countLines(converted.length);
|
|
641
|
-
return await parseUnifiedReader({ input: new StoredPatchInput(converted), index: 0 }, budget, false, () => bodies.begin());
|
|
754
|
+
return await parseUnifiedReader({ input: new StoredPatchInput(converted), index: 0 }, budget, false, () => bodies.begin(), () => bodies.beginHunks());
|
|
642
755
|
} finally {
|
|
643
756
|
await documents.release(converted);
|
|
644
757
|
}
|
|
@@ -665,7 +778,7 @@ async function run(context, budget) {
|
|
|
665
778
|
if (outputToStdout) return;
|
|
666
779
|
const path = resolvePath(context.cwd, item.selected);
|
|
667
780
|
const current = preview.has(path) ? preview.get(path) : await inspect(budget, path) ? await documents.read(path) : void 0;
|
|
668
|
-
const applied = await applyContent(item.patch, current ?? empty, current !== void 0, options, budget, documents);
|
|
781
|
+
const applied = await applyContent(item.patch, current ?? empty, current !== void 0, options, budget, documents, outcomeStore);
|
|
669
782
|
if (current && current !== applied?.result) await documents.release(current);
|
|
670
783
|
if (!applied) return;
|
|
671
784
|
const remove = options.ifdef === void 0 && applied.result.size === 0 && (!options.posix && applied.deletion || options.removeEmpty);
|
|
@@ -746,16 +859,18 @@ ${sourcePatch.hunks.length} out of ${sourcePatch.hunks.length} hunks ignored
|
|
|
746
859
|
await authorizeOutputs([rejectPath2], targets, paths.input, budget);
|
|
747
860
|
if (backupPaths.has(rejectPath2)) throw new ToolError3("reject path aliases another section's backup");
|
|
748
861
|
const patch = options.reverse ? reverseStoredPatch(sourcePatch) : sourcePatch;
|
|
749
|
-
const outcomes2 =
|
|
750
|
-
hunk
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
862
|
+
const outcomes2 = { async *[Symbol.asyncIterator]() {
|
|
863
|
+
for await (const [index, hunk] of patchHunks(patch)) yield {
|
|
864
|
+
hunk,
|
|
865
|
+
index: index + 1,
|
|
866
|
+
failed: true,
|
|
867
|
+
misordered: false,
|
|
868
|
+
line: hunk.oldStart,
|
|
869
|
+
outputOffset: 0,
|
|
870
|
+
offset: 0,
|
|
871
|
+
fuzz: 0
|
|
872
|
+
};
|
|
873
|
+
} };
|
|
759
874
|
const reject2 = await documents.load(rejectBytes(sourcePatch, outcomes2, authorizedPatch.oldName, authorizedPatch.newName, authorizedPatch.indexName, options.reverse, budget, options.rejectFormat));
|
|
760
875
|
const original2 = await documents.read(path);
|
|
761
876
|
publishing = true;
|
|
@@ -781,7 +896,7 @@ ${sourcePatch.hunks.length} out of ${sourcePatch.hunks.length} hunks ignored
|
|
|
781
896
|
exitCode = 1;
|
|
782
897
|
return;
|
|
783
898
|
}
|
|
784
|
-
const applied = await applyContent(sourcePatch, current, exists, options, budget, documents);
|
|
899
|
+
const applied = await applyContent(sourcePatch, current, exists, options, budget, documents, outcomeStore);
|
|
785
900
|
if (!applied) {
|
|
786
901
|
if (options.atomic) throw new ToolError3(`patch target does not exist: ${path}`, 1);
|
|
787
902
|
await status(`No file to patch. Skipping patch ${name}.
|
|
@@ -798,15 +913,21 @@ ${sourcePatch.hunks.length} out of ${sourcePatch.hunks.length} hunks ignored
|
|
|
798
913
|
exitCode = 1;
|
|
799
914
|
return;
|
|
800
915
|
}
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
916
|
+
let failedCount = 0, firstFailed = 0, mismatch = reverseMismatch;
|
|
917
|
+
for await (const outcome of outcomes) {
|
|
918
|
+
if (outcome.failed) {
|
|
919
|
+
if (!failedCount) firstFailed = outcome.index;
|
|
920
|
+
failedCount++;
|
|
921
|
+
}
|
|
922
|
+
mismatch ||= outcome.failed || outcome.offset !== 0 || outcome.fuzz !== 0;
|
|
923
|
+
}
|
|
924
|
+
const conflict = failedCount > 0 || deletion && result.size !== 0;
|
|
925
|
+
if (options.atomic && conflict) throw new ToolError3(failedCount ? `hunk ${firstFailed} does not match ${name}` : `deletion patch leaves content: ${name}`, 1);
|
|
804
926
|
if (conflict) exitCode = 1;
|
|
805
|
-
const mismatch = reverseMismatch || outcomes.some((outcome) => outcome.failed || outcome.offset !== 0 || outcome.fuzz !== 0);
|
|
806
927
|
const backup = !options.dryRun && !outputToStdout && (options.alwaysBackup || options.backup && mismatch) && !touched.has(path) ? original ?? empty : void 0;
|
|
807
928
|
const backupPath = backup === void 0 ? prior?.backupPath : await backupName(path, budget, options);
|
|
808
929
|
const rejectDestination = rejectName(outputToStdout ? "-" : name, paths);
|
|
809
|
-
const rejectPath = !options.dryRun && !options.merge &&
|
|
930
|
+
const rejectPath = !options.dryRun && !options.merge && failedCount && rejectDestination !== void 0 ? resolvePath(context.cwd, rejectDestination) : void 0;
|
|
810
931
|
const rejected = rejectPath === void 0 ? void 0 : await documents.load(rejectBytes(sourcePatch, outcomes, authorizedPatch.oldName, authorizedPatch.newName, authorizedPatch.indexName, reversed, budget, options.rejectFormat));
|
|
811
932
|
await authorizeOutputs([outputPath, backupPath, rejectPath], targets, paths.input, budget);
|
|
812
933
|
if (backupPath !== void 0 && rejectPaths.has(backupPath) || rejectPath !== void 0 && backupPaths.has(rejectPath)) {
|
|
@@ -865,7 +986,7 @@ ${headers}--------------------------
|
|
|
865
986
|
if (!options.quiet) await appendStatus(`${options.dryRun ? "checking" : "patching"} file ${output === void 0 ? displayName : `${quotePatchName(output, options.quotingStyle)} (read from ${displayName})`}
|
|
866
987
|
`);
|
|
867
988
|
if (autoReversed) await appendStatus("Reversed (or previously applied) patch detected! Assuming -R.\n");
|
|
868
|
-
for (const outcome of outcomes) {
|
|
989
|
+
for await (const outcome of outcomes) {
|
|
869
990
|
if (outcome.misordered) await appendStatus("misordered hunks! output would be garbled\n");
|
|
870
991
|
if (options.quiet) continue;
|
|
871
992
|
if (outcome.failed && options.merge) await appendStatus(`Hunk #${outcome.index} NOT MERGED at ${outcome.mergeRange?.[0] ?? outcome.line}-${outcome.mergeRange?.[1] ?? outcome.line}.
|
|
@@ -875,7 +996,7 @@ ${headers}--------------------------
|
|
|
875
996
|
else if (options.verbose || outcome.offset || outcome.fuzz) await appendStatus(`Hunk #${outcome.index} succeeded at ${outcome.line}${outcome.fuzz ? ` with fuzz ${outcome.fuzz}` : ""}${outcome.offset ? ` (offset ${outcome.offset} ${outcome.offset === 1 ? "line" : "lines"})` : ""}.
|
|
876
997
|
`);
|
|
877
998
|
}
|
|
878
|
-
if (
|
|
999
|
+
if (failedCount && !options.merge) await appendStatus(`${failedCount} out of ${outcomes.length} ${outcomes.length === 1 ? "hunk" : "hunks"} FAILED${options.dryRun || rejectPath === void 0 ? "" : ` -- saving rejects to file ${rejectDestination}`}
|
|
879
1000
|
`);
|
|
880
1001
|
if (deletion && result.size !== 0) await appendStatus(`Not deleting file ${name} as content differs from patch
|
|
881
1002
|
`);
|
|
@@ -928,7 +1049,7 @@ ${headers}--------------------------
|
|
|
928
1049
|
if (progress?.error) throw progress.error;
|
|
929
1050
|
return exitCode;
|
|
930
1051
|
} finally {
|
|
931
|
-
await closeDocumentResources2([messages, documents, bodies]);
|
|
1052
|
+
await closeDocumentResources2([messages, documents, bodies, outcomeStore]);
|
|
932
1053
|
}
|
|
933
1054
|
}
|
|
934
1055
|
function patchCommand(options = {}) {
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readTextBodies,
|
|
3
3
|
validateTextReadingOptions
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YKODRSGT.js";
|
|
5
5
|
import {
|
|
6
6
|
loadShared
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-A5SPMSKD.js";
|
|
8
8
|
import {
|
|
9
9
|
SelectionError,
|
|
10
10
|
readSelectionIndex
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NCNHJRIY.js";
|
|
12
12
|
import {
|
|
13
13
|
readPackage
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-Q65GWGQR.js";
|
|
15
15
|
import {
|
|
16
16
|
readBinary
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-FAU2KL6I.js";
|
|
18
18
|
import {
|
|
19
19
|
parseXmlPart
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-7PYDVQPB.js";
|
|
21
21
|
import {
|
|
22
22
|
OfficeError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-KM2SMMXZ.js";
|
|
24
24
|
|
|
25
25
|
// packages/safe-bash-presentation-engine/src/equations.ts
|
|
26
26
|
import { SaxesParser } from "saxes";
|