@poe-platform/safe-bash 0.1.813 → 0.1.815
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/index.d.ts +3 -0
- package/dist/mp4-ast/mp4-fragment-source.d.ts +35 -0
- package/dist/mp4-ast/mp4-sample-source.d.ts +55 -0
- package/dist/mp4-ast/mp4-source.d.ts +32 -0
- package/dist/mp4-ast/types.d.ts +11 -0
- package/dist/office-xml/retained-xml-document.d.ts +6 -0
- package/dist/pdf-ast/content/evaluator.d.ts +4 -0
- package/dist/pdf-ast/cos/object-reader.d.ts +8 -0
- package/dist/pdf-ast/cos/value-parser.d.ts +1 -0
- package/dist/pdf-ast/edit/forms.d.ts +1 -0
- package/dist/pdf-ast/edit/retained-form-appearances.d.ts +10 -0
- package/dist/pdf-ast/edit/retained-form-data.d.ts +9 -0
- package/dist/pdf-ast/edit/retained-graph.d.ts +6 -0
- package/dist/pdf-ast/edit/retained-info-updates.d.ts +33 -0
- package/dist/pdf-ast/index.d.ts +2 -1
- package/dist/pdf-ast/index.js +895 -139
- package/dist/pdf-ast/retained-document.d.ts +5 -0
- package/dist/safe-bash/command-chunks/biff-A7XPBWAK-DCLG5QKF.js +5417 -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-XIDGHIGB.js → chunk-2PKBXGXD.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-6SRHWVEB.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-GVWVRPG6.js → chunk-3GRMU7TM.js} +6 -6
- 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-KCE5D4Z4.js → chunk-3ZRCL756.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-SOFM3GPG.js → chunk-42MEXZBJ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-PKLJRB7W.js → chunk-44F5TOHZ.js} +219 -90
- 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-X64XGIXZ.js → chunk-4EHY6J2Z.js} +5 -5
- 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-I4GMCWAT.js → chunk-4YLACJHE.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-P3WU3PSL.js → chunk-5L4YGRQU.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-WPVBUVFK.js → chunk-5LFGXN3D.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-YXD6VGVG.js → chunk-5OM3UIK3.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-RLCQ7BN3.js → chunk-6CDDKNNA.js} +4 -3
- package/dist/safe-bash/command-chunks/{chunk-TQEB4DH4.js → chunk-6EINUY5G.js} +149 -165
- package/dist/safe-bash/command-chunks/{chunk-C5QDEB3I.js → chunk-6LPSKLLD.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-XLYIVBAR.js → chunk-6QYSF7I2.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-6IWE7PTK.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-PSCOXGCA.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-RIV6XN7K.js → chunk-7DOLY7IV.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-ET2VPDUA.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-2Z3WRRFT.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-HCKYUQ3L.js → chunk-AM5LANIE.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-RBTC7OFT.js → chunk-AVOGFREX.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-G3RUXKVY.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-2E2H7MBH.js → chunk-AY3KQ4EN.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-DMCI6T6N.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-2V6FOLXV.js → chunk-BS3ZEQGT.js} +14 -14
- package/dist/safe-bash/command-chunks/{chunk-WFVSUXJL.js → chunk-BS5JEUEW.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-X53AEG36.js → chunk-BZMNC7Q5.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-5KGEZ3RW.js → chunk-CCMAHM3I.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-PK36TVXB.js → chunk-CFMJXJS5.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-3LJAXFH5.js → chunk-CIRDVCAZ.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-UZL7G57V.js → chunk-CKEMZUE3.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-S2N2V5U4.js → chunk-CQBACD2V.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-G7NENPYV.js → chunk-CSE4VQKG.js} +12 -1
- package/dist/safe-bash/command-chunks/{chunk-X6RHJ6YN.js → chunk-CXME4YHU.js} +23 -0
- package/dist/safe-bash/command-chunks/{chunk-FTLDRH47.js → chunk-CZ5K2YPU.js} +16 -16
- package/dist/safe-bash/command-chunks/{chunk-7PRL6RJ6.js → chunk-DBLQUZGN.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-5VQVZPP3.js → chunk-DBNJEXHK.js} +3 -3
- 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-6CY5BHBS.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-TKRLZIFI.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-4Z6W5EOC.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-QM2HZJSJ.js → chunk-F762XDNG.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-SGPCXAG7.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-FWPVQGYK.js → chunk-FUQMEUAT.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-KXPCSVAT.js → chunk-FXCSPPYE.js} +20 -20
- package/dist/safe-bash/command-chunks/{chunk-7QZ2HP2F.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-MKX4JAZ6.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-GPGLTWNR.js +271 -0
- package/dist/safe-bash/command-chunks/{chunk-PI6MOMHA.js → chunk-GXMPXMDP.js} +11 -11
- package/dist/safe-bash/command-chunks/{chunk-57DDYKE5.js → chunk-GYM5ICK4.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-5MFDRSGG.js → chunk-H33D4R26.js} +4 -4
- 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-RGOQKIG6.js → chunk-HK6MSB7Z.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-IHSOOSNC.js → chunk-HQ2UN2L2.js} +17 -17
- 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-PVGZMLC6.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-GKILM4HZ.js → chunk-JR3Q6QNL.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-D55REQA3.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-N32GSM3J.js → chunk-K2WOMJOQ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-73NYFNAS.js → chunk-KASXIRKD.js} +12 -9
- package/dist/safe-bash/command-chunks/{chunk-HKOMXGJS.js → chunk-KBAQHE5Y.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-T3E5RV3U.js → chunk-KCLJGRU7.js} +12 -12
- package/dist/safe-bash/command-chunks/chunk-KHUT7BB5.js +65 -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-C5KLFZGT.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-KBUBSMCQ.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-TODWFDYB.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-GNXTMSYN.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-BK7ISUJL.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-EJTNVXWF.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-4PBNMKAT.js → chunk-NEMUPUUB.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-MUUWBZIC.js → chunk-NEVQWOU6.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-7NXTEWPR.js → chunk-NEYITAAO.js} +208 -254
- package/dist/safe-bash/command-chunks/{chunk-KZ5ODST6.js → chunk-NFGCBQN3.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-LD7BONZY.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-ZYLGNIGA.js → chunk-NQINS4XY.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-UAF4IX5H.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-NPFHUS4X.js → chunk-OVQP6KH5.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-QFF5KBOM.js → chunk-P2LT6TGR.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-BEHUSUOY.js → chunk-PLMF35XK.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-PXWS3Q7L.js → chunk-PLR5IULU.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-DBLHCJJU.js → chunk-PS5GDFIP.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-P7EL2FWW.js → chunk-Q5PWYPQV.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-AJI55RS7.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-GOBUDKZ3.js → chunk-QDVDBN2N.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-F3GP3EXE.js → chunk-RGDOYWOD.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-MNHBQBF6.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-XG6UWQV5.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-3TYDSGAH.js → chunk-RQYPFLZJ.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-3Y4XZB24.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-JUJHYPYL.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-3D24WDND.js → chunk-SEPUP6TZ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-JPMYPOYZ.js → chunk-SUTHGUD3.js} +28 -28
- package/dist/safe-bash/command-chunks/{chunk-D6WJY6QO.js → chunk-SWAKALDJ.js} +10 -10
- 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-EZ4NQIPL.js → chunk-TJLXSENN.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-HVW53ARH.js → chunk-TKCUGMRZ.js} +24 -20
- package/dist/safe-bash/command-chunks/{chunk-5P6I2T63.js → chunk-TXPDKEGY.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-CTDC4LJT.js → chunk-U3C6IT2C.js} +55 -36
- package/dist/safe-bash/command-chunks/{chunk-MPKY37QR.js → chunk-UJERQEJB.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-V37D6AHO.js → chunk-USGZN2KE.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-JAHJWVGF.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-M3Z5PU2M.js → chunk-VT2PHQ63.js} +15 -15
- package/dist/safe-bash/command-chunks/{chunk-QDVI2YB6.js → chunk-VUWXLH3E.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-O675URF4.js → chunk-W3ZSWK76.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-T6C5QP7T.js → chunk-WAT2562G.js} +6039 -5958
- package/dist/safe-bash/command-chunks/{chunk-JPA2PUYI.js → chunk-WBKB7HBZ.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-6244HYJY.js → chunk-WJ2ERUCQ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-U5TWQFZY.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-T5ERNELL.js → chunk-WZRFS5OY.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-2DGJOOXM.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-NKTULXVD.js → chunk-XM5QJCPD.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-BBAB7LC4.js → chunk-XMTR7QGL.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-5IFRAI7Y.js → chunk-XNGM3W5R.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-Z5BIM5B7.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-EXOQGXEU.js → chunk-XUJAQA3S.js} +30 -30
- package/dist/safe-bash/command-chunks/{chunk-VVWXY6IA.js → chunk-Y42KSX63.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-R2BMZAHG.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-YUXTK3XA.js → chunk-YRPXBGRX.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-JORIVUPM.js → chunk-YW2VYN4V.js} +34 -15
- package/dist/safe-bash/command-chunks/{chunk-NMPED6L5.js → chunk-Z2WNYEPD.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-7PZHWMK6.js → chunk-Z7QOSXQC.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-7UC2Q6Z6.js → chunk-ZIGENXGC.js} +248 -6
- package/dist/safe-bash/command-chunks/{chunk-VQOINPVF.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-V6XBEYPC.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-X3OLN7N6.js → command-engine-M7S4QIXV.js} +942 -683
- package/dist/safe-bash/command-chunks/{engine-XUCIFZ7V-LJFGZM6O.js → engine-YUYZJIB4-NZUDFEHL.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-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 +8 -2
- package/dist/safe-bash-command-ffprobe/media.js +4 -2
- package/dist/safe-bash-command-html-to-markdown/index.js +3 -234
- 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-htmlq/contracts.d.ts +5 -0
- package/dist/safe-bash-command-htmlq/index.js +1715 -292
- 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 +1 -0
- 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 +4 -4
- package/dist/safe-bash-command-pandoc/index.js +40 -40
- package/dist/safe-bash-command-patch/index.js +7 -6
- package/dist/safe-bash-command-patch/patch-formats.d.ts +7 -1
- package/dist/safe-bash-command-patch/patch-formats.js +7 -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 +2 -2
- 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 +51 -0
- package/dist/safe-bash-command-patch/stored-target.d.ts +41 -0
- package/dist/safe-bash-command-patch/unified.d.ts +28 -9
- package/dist/safe-bash-command-patch/unified.js +4 -1
- package/dist/safe-bash-command-pdftk/index.js +758 -433
- 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 +2 -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 +163 -17
- 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-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 +30 -30
- package/dist/safe-bash-presentation-engine/animation-editing.js +15 -15
- package/dist/safe-bash-presentation-engine/animations.js +15 -15
- package/dist/safe-bash-presentation-engine/backgrounds.js +16 -16
- package/dist/safe-bash-presentation-engine/bytes.js +3 -3
- package/dist/safe-bash-presentation-engine/chart-editing.js +33 -33
- package/dist/safe-bash-presentation-engine/chart-object-operations.js +24 -24
- package/dist/safe-bash-presentation-engine/charts.js +30 -30
- package/dist/safe-bash-presentation-engine/command-placeholder.js +58 -58
- package/dist/safe-bash-presentation-engine/comments.js +16 -16
- package/dist/safe-bash-presentation-engine/connector-operations.js +31 -31
- package/dist/safe-bash-presentation-engine/connectors.js +28 -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 +31 -31
- package/dist/safe-bash-presentation-engine/drawing-format.js +19 -19
- package/dist/safe-bash-presentation-engine/drawing-operations.js +30 -30
- package/dist/safe-bash-presentation-engine/drawing-schema.js +20 -20
- package/dist/safe-bash-presentation-engine/equations.js +16 -16
- package/dist/safe-bash-presentation-engine/errors.js +2 -2
- package/dist/safe-bash-presentation-engine/fields.js +16 -16
- package/dist/safe-bash-presentation-engine/font-metrics.js +3 -3
- package/dist/safe-bash-presentation-engine/image-extraction.js +19 -19
- package/dist/safe-bash-presentation-engine/image-formatting.js +31 -31
- package/dist/safe-bash-presentation-engine/image-insertion.js +17 -17
- package/dist/safe-bash-presentation-engine/image-replacement.js +20 -20
- package/dist/safe-bash-presentation-engine/image-value.js +4 -4
- package/dist/safe-bash-presentation-engine/images.js +18 -18
- package/dist/safe-bash-presentation-engine/index.js +114 -114
- package/dist/safe-bash-presentation-engine/layouts.js +15 -15
- package/dist/safe-bash-presentation-engine/length.js +3 -3
- package/dist/safe-bash-presentation-engine/links.js +15 -15
- package/dist/safe-bash-presentation-engine/masters.js +14 -14
- package/dist/safe-bash-presentation-engine/media-editing.js +23 -23
- package/dist/safe-bash-presentation-engine/media-extraction.js +16 -16
- package/dist/safe-bash-presentation-engine/media.js +15 -15
- package/dist/safe-bash-presentation-engine/memberships.js +14 -14
- package/dist/safe-bash-presentation-engine/notes.d.ts +1 -0
- package/dist/safe-bash-presentation-engine/notes.js +21 -15
- package/dist/safe-bash-presentation-engine/ole-enum.js +4 -4
- package/dist/safe-bash-presentation-engine/ole-insertion.js +19 -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.js +18 -18
- 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 +57 -57
- package/dist/safe-bash-presentation-engine/presentation-settings.js +13 -13
- package/dist/safe-bash-presentation-engine/properties.js +15 -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-frame-formatting.d.ts +14 -0
- package/dist/safe-bash-presentation-engine/retained-inspection.js +13 -13
- package/dist/safe-bash-presentation-engine/retained-notes.d.ts +27 -0
- package/dist/safe-bash-presentation-engine/retained-package.js +5 -5
- package/dist/safe-bash-presentation-engine/retained-text.d.ts +9 -2
- package/dist/safe-bash-presentation-engine/retained-text.js +130 -31
- package/dist/safe-bash-presentation-engine/retained-xml-document.d.ts +1 -0
- package/dist/safe-bash-presentation-engine/sanitize.js +16 -16
- package/dist/safe-bash-presentation-engine/selectors.js +10 -10
- package/dist/safe-bash-presentation-engine/shape-groups.js +30 -30
- package/dist/safe-bash-presentation-engine/shape-operations.js +29 -29
- package/dist/safe-bash-presentation-engine/shape-path-operations.js +31 -31
- package/dist/safe-bash-presentation-engine/shape-paths.js +15 -15
- package/dist/safe-bash-presentation-engine/shape-presets.js +3 -3
- package/dist/safe-bash-presentation-engine/shape-selection.js +30 -30
- package/dist/safe-bash-presentation-engine/shape-transforms.js +17 -17
- package/dist/safe-bash-presentation-engine/shapes.js +26 -26
- package/dist/safe-bash-presentation-engine/slide-copy.js +16 -16
- package/dist/safe-bash-presentation-engine/slide-import.js +17 -17
- package/dist/safe-bash-presentation-engine/slide-merge-split.js +19 -19
- package/dist/safe-bash-presentation-engine/slide-model.js +42 -42
- package/dist/safe-bash-presentation-engine/slide-removal.js +17 -17
- package/dist/safe-bash-presentation-engine/slide-transfer-budget.js +9 -9
- package/dist/safe-bash-presentation-engine/slides.js +18 -18
- package/dist/safe-bash-presentation-engine/table-operations.js +32 -32
- package/dist/safe-bash-presentation-engine/table-spans.js +31 -31
- package/dist/safe-bash-presentation-engine/tables.js +30 -30
- package/dist/safe-bash-presentation-engine/tags.js +15 -15
- package/dist/safe-bash-presentation-engine/template-bindings.js +32 -32
- package/dist/safe-bash-presentation-engine/template-repeat.js +39 -39
- package/dist/safe-bash-presentation-engine/text-fitting.js +26 -26
- package/dist/safe-bash-presentation-engine/text-frames.d.ts +13 -0
- package/dist/safe-bash-presentation-engine/text-frames.js +28 -26
- package/dist/safe-bash-presentation-engine/text-paragraphs.js +26 -26
- package/dist/safe-bash-presentation-engine/text-reading.js +11 -11
- package/dist/safe-bash-presentation-engine/text-replacement.js +16 -16
- package/dist/safe-bash-presentation-engine/text-runs.js +19 -19
- package/dist/safe-bash-presentation-engine/themes.js +15 -15
- package/dist/safe-bash-presentation-engine/transitions.js +15 -15
- package/dist/safe-bash-presentation-engine/validation.js +9 -9
- package/dist/safe-bash-presentation-engine/xml-parts.js +18 -18
- 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-xml-engine/document.js +3 -3
- package/dist/safe-bash-xml-engine/evaluate.js +1 -1
- package/dist/safe-bash-xml-engine/index.js +6 -6
- package/dist/safe-bash-xml-engine/query.js +2 -2
- package/dist/safe-bash-xml-engine/stored-document.d.ts +2 -2
- 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-format-xls/biff-encrypted-properties.js +7 -6
- package/dist/spreadsheet-format-xls/biff-properties-merge.js +41 -22
- package/dist/spreadsheet-format-xls/biff-properties.js +94 -109
- 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-range.d.ts +17 -3
- package/dist/spreadsheet-format-xls/biff-property-range.js +178 -37
- package/dist/spreadsheet-format-xls/biff-property-values.d.ts +31 -0
- package/dist/spreadsheet-format-xls/biff-property-values.js +158 -0
- package/package.json +5 -2
- package/dist/safe-bash/command-chunks/biff-4ALVARRF-7SRX6R6N.js +0 -5192
- package/dist/safe-bash/command-chunks/chunk-63EMPQ7Z.js +0 -115
- 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-3JST2Q7G.js → chunk-KRRG4MGH.js} +3 -3
- 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,14 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PatchBodyStore,
|
|
3
|
+
patchHunk,
|
|
4
|
+
patchHunks,
|
|
5
|
+
patchLine,
|
|
6
|
+
rejectBytes,
|
|
7
|
+
reverseStoredPatch
|
|
8
|
+
} from "./chunk-GPGLTWNR.js";
|
|
1
9
|
import {
|
|
2
10
|
PatchPublication
|
|
3
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CFMJXJS5.js";
|
|
12
|
+
import {
|
|
13
|
+
TargetDocuments,
|
|
14
|
+
TargetOutput,
|
|
15
|
+
equalTargetLines,
|
|
16
|
+
targetBytes
|
|
17
|
+
} from "./chunk-KASXIRKD.js";
|
|
4
18
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./chunk-
|
|
19
|
+
parsePatchWith
|
|
20
|
+
} from "./chunk-U3C6IT2C.js";
|
|
7
21
|
import {
|
|
8
|
-
|
|
9
|
-
reversePatch,
|
|
22
|
+
parseUnifiedReader,
|
|
10
23
|
startIndex
|
|
11
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-YW2VYN4V.js";
|
|
12
25
|
import {
|
|
13
26
|
authorizeOutputs,
|
|
14
27
|
authorizePaths,
|
|
@@ -24,19 +37,10 @@ import {
|
|
|
24
37
|
import {
|
|
25
38
|
safeTarget
|
|
26
39
|
} from "./chunk-AJEQUVDN.js";
|
|
27
|
-
import {
|
|
28
|
-
rejectBytes
|
|
29
|
-
} from "./chunk-63EMPQ7Z.js";
|
|
30
|
-
import {
|
|
31
|
-
TargetDocuments,
|
|
32
|
-
TargetOutput,
|
|
33
|
-
equalTargetLines,
|
|
34
|
-
targetBytes
|
|
35
|
-
} from "./chunk-73NYFNAS.js";
|
|
36
40
|
|
|
37
41
|
// packages/safe-bash-command-patch/src/patch.ts
|
|
38
42
|
import { closeDocumentResources as closeDocumentResources2 } from "../../safe-bash-diff-engine/document.js";
|
|
39
|
-
import { PagedStorage as
|
|
43
|
+
import { PagedStorage as PagedStorage3 } from "@poe-platform/safe-fs/storage";
|
|
40
44
|
|
|
41
45
|
// packages/safe-bash-command-patch/src/stored-hunks.ts
|
|
42
46
|
import { closeDocumentResources } from "../../safe-bash-diff-engine/document.js";
|
|
@@ -53,18 +57,19 @@ async function applyStoredHunks(original, patch, fuzz, budget, ignoreWhitespace
|
|
|
53
57
|
let cursor = 0;
|
|
54
58
|
let offset = 0;
|
|
55
59
|
let outputOffset = 0;
|
|
56
|
-
for (const [hunkIndex, hunk] of patch
|
|
60
|
+
for await (const [hunkIndex, hunk] of patchHunks(patch)) {
|
|
57
61
|
budget.step();
|
|
58
62
|
const oldIndex = indices.allocate((hunk.oldCount + hunk.newCount) * 8), newIndex = oldIndex + hunk.oldCount * 8;
|
|
59
63
|
let oldPosition = oldIndex, newPosition = newIndex;
|
|
60
64
|
const cell = new Uint8Array(8), view = new DataView(cell.buffer);
|
|
61
65
|
for (let index = 0; index < hunk.lines.length; index++) {
|
|
62
66
|
view.setFloat64(0, index, true);
|
|
63
|
-
|
|
67
|
+
const line = await patchLine(hunk, index);
|
|
68
|
+
if (line.kind !== "+") {
|
|
64
69
|
await indices.write(oldPosition, cell);
|
|
65
70
|
oldPosition += 8;
|
|
66
71
|
}
|
|
67
|
-
if (
|
|
72
|
+
if (line.kind !== "-") {
|
|
68
73
|
await indices.write(newPosition, cell);
|
|
69
74
|
newPosition += 8;
|
|
70
75
|
}
|
|
@@ -74,12 +79,12 @@ async function applyStoredHunks(original, patch, fuzz, budget, ignoreWhitespace
|
|
|
74
79
|
}
|
|
75
80
|
const indexedLine = async (base, index) => {
|
|
76
81
|
const bytes = await indices.read(base + index * 8, 8);
|
|
77
|
-
return hunk
|
|
82
|
+
return (await patchLine(hunk, new DataView(bytes.buffer).getFloat64(0, true))).text;
|
|
78
83
|
};
|
|
79
84
|
let leading = 0;
|
|
80
85
|
let trailing = 0;
|
|
81
|
-
while (leading < hunk.lines.length && hunk
|
|
82
|
-
while (trailing < hunk.lines.length - leading && hunk
|
|
86
|
+
while (leading < hunk.lines.length && (await patchLine(hunk, leading)).kind === " ") leading++;
|
|
87
|
+
while (trailing < hunk.lines.length - leading && (await patchLine(hunk, hunk.lines.length - trailing - 1)).kind === " ") trailing++;
|
|
83
88
|
const expected = startIndex(hunk.oldStart, hunk.oldCount) + offset;
|
|
84
89
|
let found = -1;
|
|
85
90
|
let misordered = false;
|
|
@@ -166,7 +171,7 @@ async function applyStoredHunks(original, patch, fuzz, budget, ignoreWhitespace
|
|
|
166
171
|
const matched = found;
|
|
167
172
|
if (matched >= 0) offset = matched - startIndex(hunk.oldStart, hunk.oldCount);
|
|
168
173
|
if (misordered) found = -1;
|
|
169
|
-
application.outcomes?.push({
|
|
174
|
+
await application.outcomes?.push({
|
|
170
175
|
hunk,
|
|
171
176
|
index: hunkIndex + 1,
|
|
172
177
|
failed: found < 0,
|
|
@@ -201,8 +206,8 @@ async function applyStoredHunks(original, patch, fuzz, budget, ignoreWhitespace
|
|
|
201
206
|
let identical = localLength === hunk.newCount;
|
|
202
207
|
for (let index = 0; identical && index < localLength; index++) identical = await equalTargetLines(source.at(cursor + index), await indexedLine(newIndex, index), budget);
|
|
203
208
|
if (identical) {
|
|
204
|
-
const last = application.outcomes?.pop();
|
|
205
|
-
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) });
|
|
206
211
|
for (let index = prefix; index < localLength - suffix; index++) await result.append(source.at(cursor + index));
|
|
207
212
|
} else {
|
|
208
213
|
await result.append("<<<<<<<\n");
|
|
@@ -214,8 +219,8 @@ async function applyStoredHunks(original, patch, fuzz, budget, ignoreWhitespace
|
|
|
214
219
|
await result.append("=======\n");
|
|
215
220
|
for (let index = prefix; index < hunk.newCount - suffix; index++) await result.append(await indexedLine(newIndex, index));
|
|
216
221
|
await result.append(">>>>>>>\n");
|
|
217
|
-
const last = application.outcomes?.pop();
|
|
218
|
-
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] });
|
|
219
224
|
}
|
|
220
225
|
for (let index = localLength - suffix; index < localLength; index++) await result.append(source.at(cursor + index));
|
|
221
226
|
cursor += localLength;
|
|
@@ -231,7 +236,7 @@ async function applyStoredHunks(original, patch, fuzz, budget, ignoreWhitespace
|
|
|
231
236
|
const flush = async (end) => {
|
|
232
237
|
let removed = 0, added = 0;
|
|
233
238
|
for (let index = changeStart; index < end; index++) {
|
|
234
|
-
if (hunk
|
|
239
|
+
if ((await patchLine(hunk, index)).kind === "+") added++;
|
|
235
240
|
else removed++;
|
|
236
241
|
budget.step();
|
|
237
242
|
const pause = budget.checkpoint();
|
|
@@ -242,14 +247,14 @@ async function applyStoredHunks(original, patch, fuzz, budget, ignoreWhitespace
|
|
|
242
247
|
await result.append(`#${removed ? "ifndef" : "ifdef"} ${application.ifdef}
|
|
243
248
|
`);
|
|
244
249
|
let position = changeCursor;
|
|
245
|
-
for (let index = changeStart; index < end; index++) if (hunk
|
|
250
|
+
for (let index = changeStart; index < end; index++) if ((await patchLine(hunk, index)).kind === "-") await result.append(source.at(position++) ?? (await patchLine(hunk, index)).text);
|
|
246
251
|
if (removed && added) await result.append("#else\n");
|
|
247
252
|
}
|
|
248
|
-
for (let index = changeStart; index < end; index++) if (hunk
|
|
253
|
+
for (let index = changeStart; index < end; index++) if ((await patchLine(hunk, index)).kind === "+") await result.append((await patchLine(hunk, index)).text);
|
|
249
254
|
if (application.ifdef) await result.append("#endif\n");
|
|
250
255
|
};
|
|
251
256
|
for (let index = matchedPrefixFuzz; index < hunk.lines.length - matchedSuffixFuzz; index++) {
|
|
252
|
-
const line = hunk
|
|
257
|
+
const line = await patchLine(hunk, index);
|
|
253
258
|
if (line.kind === " ") {
|
|
254
259
|
await flush(index);
|
|
255
260
|
if (cursor < source.length) await result.append(source.at(cursor++));
|
|
@@ -282,10 +287,14 @@ var StoredPatchInput = class {
|
|
|
282
287
|
length;
|
|
283
288
|
cachedIndex = -1;
|
|
284
289
|
cachedLine = "";
|
|
285
|
-
async read(index) {
|
|
290
|
+
async read(index, prefix) {
|
|
286
291
|
if (index < 0 || index >= this.length) return void 0;
|
|
287
|
-
if (index === this.cachedIndex) return this.cachedLine;
|
|
292
|
+
if (index === this.cachedIndex) return prefix === void 0 ? this.cachedLine : this.cachedLine.slice(0, prefix);
|
|
288
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
|
+
}
|
|
289
298
|
const decoder = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true });
|
|
290
299
|
let text = "";
|
|
291
300
|
for await (const block of this.document.range(line.start, line.end - (this.crlf ? 2 : 1))) text += decoder.decode(block, { stream: true });
|
|
@@ -294,12 +303,49 @@ var StoredPatchInput = class {
|
|
|
294
303
|
this.cachedLine = text;
|
|
295
304
|
return text;
|
|
296
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
|
+
}
|
|
297
325
|
async signature(index) {
|
|
298
326
|
const line = await this.document.line(this.start + index);
|
|
299
327
|
if (line.end - line.start !== (this.crlf ? 5 : 4)) return false;
|
|
300
328
|
const bytes = await this.document.data.read(8 + line.start, 3);
|
|
301
329
|
return bytes[0] === 45 && bytes[1] === 45 && bytes[2] === 32;
|
|
302
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
|
+
}
|
|
303
349
|
};
|
|
304
350
|
async function unwrapStoredPatch(document, budget) {
|
|
305
351
|
if (document.size && (await document.data.read(8 + document.size - 1, 1))[0] !== 10) throw new ToolError2("patch is truncated: missing final LF");
|
|
@@ -317,13 +363,13 @@ async function unwrapStoredPatch(document, budget) {
|
|
|
317
363
|
}
|
|
318
364
|
const input = new StoredPatchInput(document, crlf);
|
|
319
365
|
let start = 0;
|
|
320
|
-
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) ?? "")) {
|
|
321
367
|
while (start < input.length) {
|
|
322
368
|
budget.step();
|
|
323
369
|
const pause = budget.checkpoint();
|
|
324
370
|
if (pause) await pause;
|
|
325
|
-
const line = await input.read(start);
|
|
326
|
-
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;
|
|
327
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");
|
|
328
374
|
if (++start > budget.limits.maxLines) throw new ToolError2("mail preamble limit exceeded");
|
|
329
375
|
}
|
|
@@ -341,14 +387,79 @@ async function unwrapStoredPatch(document, budget) {
|
|
|
341
387
|
budget.step();
|
|
342
388
|
const pause2 = budget.checkpoint();
|
|
343
389
|
if (pause2) await pause2;
|
|
344
|
-
|
|
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");
|
|
345
392
|
}
|
|
346
393
|
}
|
|
347
394
|
return new StoredPatchInput(document, crlf, start, end - start);
|
|
348
395
|
}
|
|
349
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
|
+
|
|
350
461
|
// packages/safe-bash-command-patch/src/patch.ts
|
|
351
|
-
import { FsError, dirname, pipeBytes, resolvePath, writeBytes } from "../../safe-bash-contracts/index.js";
|
|
462
|
+
import { FsError, dirname, pathOf, pipeBytes, resolvePath, writeBytes } from "../../safe-bash-contracts/index.js";
|
|
352
463
|
import { publicDiagnosticMessage } from "../../safe-bash-contracts/diagnostics.js";
|
|
353
464
|
import { Budget as Budget3, ToolError as ToolError3, definition, host, inspect, integer } from "../../safe-bash-diff-engine/shared.js";
|
|
354
465
|
function flags(args) {
|
|
@@ -478,55 +589,59 @@ function flags(args) {
|
|
|
478
589
|
if (result.posix && !backupSelected) result.backup = false;
|
|
479
590
|
return result;
|
|
480
591
|
}
|
|
481
|
-
async function applyContent(sourcePatch, current, exists, options, budget, documents) {
|
|
592
|
+
async function applyContent(sourcePatch, current, exists, options, budget, documents, outcomeStore) {
|
|
482
593
|
let reversed = options.reverse;
|
|
483
|
-
let patch = reversed ?
|
|
484
|
-
const
|
|
485
|
-
|
|
594
|
+
let patch = reversed ? reverseStoredPatch(sourcePatch) : sourcePatch;
|
|
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);
|
|
486
600
|
let autoReversed = false;
|
|
487
601
|
let reverseMismatch = false;
|
|
488
|
-
const declaredCreation = patch.oldPath === "/dev/null" || patch.oldEpoch &&
|
|
489
|
-
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);
|
|
490
604
|
if (!options.force && (declaredCreation && current.size !== 0 || declaredDeletion && !exists)) {
|
|
491
|
-
patch =
|
|
605
|
+
patch = reverseStoredPatch(patch);
|
|
492
606
|
reversed = !reversed;
|
|
493
607
|
autoReversed = true;
|
|
494
608
|
}
|
|
495
|
-
if (!creation() && !exists) return void 0;
|
|
496
|
-
let outcomes =
|
|
609
|
+
if (!await creation() && !exists) return void 0;
|
|
610
|
+
let outcomes = outcomeStore.create(patch);
|
|
497
611
|
let result = await applyStoredHunks(current, patch, options.fuzz, budget, options.ignoreWhitespace, {
|
|
498
612
|
partial: true,
|
|
499
613
|
outcomes,
|
|
500
614
|
...options.ifdef === void 0 ? {} : { ifdef: options.ifdef },
|
|
501
615
|
...options.merge === void 0 ? {} : { merge: options.merge },
|
|
502
|
-
rejectAll: creation() && current.size !== 0
|
|
616
|
+
rejectAll: await creation() && current.size !== 0
|
|
503
617
|
}, documents);
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
const
|
|
507
|
-
const
|
|
508
|
-
const
|
|
618
|
+
const first = await outcomes.at(0);
|
|
619
|
+
if (!options.merge && !options.force && !autoReversed && (first?.failed || first?.fuzz)) {
|
|
620
|
+
const opposite = reverseStoredPatch(patch);
|
|
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);
|
|
509
624
|
await documents.release(probeResult);
|
|
510
|
-
if (!probe
|
|
625
|
+
if (!(await probe.at(0))?.failed) {
|
|
511
626
|
patch = opposite;
|
|
512
627
|
reversed = !reversed;
|
|
513
628
|
autoReversed = true;
|
|
514
629
|
reverseMismatch = true;
|
|
515
|
-
outcomes =
|
|
630
|
+
outcomes = outcomeStore.create(patch);
|
|
516
631
|
await documents.release(result);
|
|
517
632
|
result = await applyStoredHunks(current, patch, options.fuzz, budget, options.ignoreWhitespace, {
|
|
518
633
|
partial: true,
|
|
519
634
|
outcomes,
|
|
520
635
|
...options.ifdef === void 0 ? {} : { ifdef: options.ifdef },
|
|
521
636
|
...options.merge === void 0 ? {} : { merge: options.merge },
|
|
522
|
-
rejectAll: creation() && current.size !== 0
|
|
637
|
+
rejectAll: await creation() && current.size !== 0
|
|
523
638
|
}, documents);
|
|
524
639
|
}
|
|
525
640
|
}
|
|
526
|
-
const deletion = patch.newPath === "/dev/null" || patch.newEpoch &&
|
|
641
|
+
const deletion = patch.newPath === "/dev/null" || patch.newEpoch && await emptySide("new");
|
|
527
642
|
if (autoReversed && options.forward) {
|
|
528
643
|
await documents.release(result);
|
|
529
|
-
return { result: current, outcomes:
|
|
644
|
+
return { result: current, outcomes: outcomeStore.create(patch), reversed, autoReversed, reverseMismatch, deletion: false, skipped: true };
|
|
530
645
|
}
|
|
531
646
|
return { result, outcomes, reversed, autoReversed, reverseMismatch, deletion };
|
|
532
647
|
}
|
|
@@ -609,7 +724,9 @@ async function run(context, budget) {
|
|
|
609
724
|
budget = new Budget3(context, Object.fromEntries(Object.entries(budget.limits).filter(([, value]) => Number.isFinite(value))));
|
|
610
725
|
}
|
|
611
726
|
const documents = new TargetDocuments(budget);
|
|
612
|
-
const
|
|
727
|
+
const bodies = new PatchBodyStore(documents);
|
|
728
|
+
const outcomeStore = new OutcomeStore(documents);
|
|
729
|
+
const messages = new PagedStorage3(budget.context, 16, documents.cache);
|
|
613
730
|
try {
|
|
614
731
|
const empty = await documents.load({ async *[Symbol.asyncIterator]() {
|
|
615
732
|
} });
|
|
@@ -622,20 +739,24 @@ async function run(context, budget) {
|
|
|
622
739
|
const stat = await inspect(budget, options.input);
|
|
623
740
|
if (stat?.type !== "file") throw new ToolError3("patch input must be a regular file");
|
|
624
741
|
}
|
|
625
|
-
const inputPath =
|
|
742
|
+
const inputPath = pathOf(context, options.input);
|
|
626
743
|
const inputCapabilities = options.input === "-" ? void 0 : await host(context, async () => await context.fs.capabilitiesFor?.(inputPath, { signal: context.signal }) ?? context.fs.capabilities);
|
|
627
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)));
|
|
628
745
|
const progress = options.atomic ? void 0 : {};
|
|
629
|
-
const sections = await
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
746
|
+
const sections = await parsePatchWith(await unwrapStoredPatch(input, budget), budget, options.format, explicit, {
|
|
747
|
+
unified: (cursor) => parseUnifiedReader(cursor, budget, true, () => bodies.begin(), () => bodies.beginHunks()),
|
|
748
|
+
converted: async (chunks) => {
|
|
749
|
+
const converted = await documents.load({ async *[Symbol.asyncIterator]() {
|
|
750
|
+
for await (const chunk of chunks) yield* targetBytes(chunk);
|
|
751
|
+
} });
|
|
752
|
+
try {
|
|
753
|
+
budget.countLines(converted.length);
|
|
754
|
+
return await parseUnifiedReader({ input: new StoredPatchInput(converted), index: 0 }, budget, false, () => bodies.begin(), () => bodies.beginHunks());
|
|
755
|
+
} finally {
|
|
756
|
+
await documents.release(converted);
|
|
757
|
+
}
|
|
637
758
|
}
|
|
638
|
-
});
|
|
759
|
+
}, progress);
|
|
639
760
|
await documents.release(input);
|
|
640
761
|
const parsed = options.format === "normal" ? sections : sections.filter((patch) => !patch.unlocated);
|
|
641
762
|
if (sections.length && !parsed.length) throw new ToolError3("no identifiable patch; normal input requires a target, Index header, or -n");
|
|
@@ -657,7 +778,7 @@ async function run(context, budget) {
|
|
|
657
778
|
if (outputToStdout) return;
|
|
658
779
|
const path = resolvePath(context.cwd, item.selected);
|
|
659
780
|
const current = preview.has(path) ? preview.get(path) : await inspect(budget, path) ? await documents.read(path) : void 0;
|
|
660
|
-
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);
|
|
661
782
|
if (current && current !== applied?.result) await documents.release(current);
|
|
662
783
|
if (!applied) return;
|
|
663
784
|
const remove = options.ifdef === void 0 && applied.result.size === 0 && (!options.posix && applied.deletion || options.removeEmpty);
|
|
@@ -737,17 +858,19 @@ ${sourcePatch.hunks.length} out of ${sourcePatch.hunks.length} hunks ignored
|
|
|
737
858
|
if (rejectPath2 !== void 0) {
|
|
738
859
|
await authorizeOutputs([rejectPath2], targets, paths.input, budget);
|
|
739
860
|
if (backupPaths.has(rejectPath2)) throw new ToolError3("reject path aliases another section's backup");
|
|
740
|
-
const patch = options.reverse ?
|
|
741
|
-
const outcomes2 =
|
|
742
|
-
hunk
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
861
|
+
const patch = options.reverse ? reverseStoredPatch(sourcePatch) : sourcePatch;
|
|
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
|
+
} };
|
|
751
874
|
const reject2 = await documents.load(rejectBytes(sourcePatch, outcomes2, authorizedPatch.oldName, authorizedPatch.newName, authorizedPatch.indexName, options.reverse, budget, options.rejectFormat));
|
|
752
875
|
const original2 = await documents.read(path);
|
|
753
876
|
publishing = true;
|
|
@@ -773,7 +896,7 @@ ${sourcePatch.hunks.length} out of ${sourcePatch.hunks.length} hunks ignored
|
|
|
773
896
|
exitCode = 1;
|
|
774
897
|
return;
|
|
775
898
|
}
|
|
776
|
-
const applied = await applyContent(sourcePatch, current, exists, options, budget, documents);
|
|
899
|
+
const applied = await applyContent(sourcePatch, current, exists, options, budget, documents, outcomeStore);
|
|
777
900
|
if (!applied) {
|
|
778
901
|
if (options.atomic) throw new ToolError3(`patch target does not exist: ${path}`, 1);
|
|
779
902
|
await status(`No file to patch. Skipping patch ${name}.
|
|
@@ -790,15 +913,21 @@ ${sourcePatch.hunks.length} out of ${sourcePatch.hunks.length} hunks ignored
|
|
|
790
913
|
exitCode = 1;
|
|
791
914
|
return;
|
|
792
915
|
}
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
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);
|
|
796
926
|
if (conflict) exitCode = 1;
|
|
797
|
-
const mismatch = reverseMismatch || outcomes.some((outcome) => outcome.failed || outcome.offset !== 0 || outcome.fuzz !== 0);
|
|
798
927
|
const backup = !options.dryRun && !outputToStdout && (options.alwaysBackup || options.backup && mismatch) && !touched.has(path) ? original ?? empty : void 0;
|
|
799
928
|
const backupPath = backup === void 0 ? prior?.backupPath : await backupName(path, budget, options);
|
|
800
929
|
const rejectDestination = rejectName(outputToStdout ? "-" : name, paths);
|
|
801
|
-
const rejectPath = !options.dryRun && !options.merge &&
|
|
930
|
+
const rejectPath = !options.dryRun && !options.merge && failedCount && rejectDestination !== void 0 ? resolvePath(context.cwd, rejectDestination) : void 0;
|
|
802
931
|
const rejected = rejectPath === void 0 ? void 0 : await documents.load(rejectBytes(sourcePatch, outcomes, authorizedPatch.oldName, authorizedPatch.newName, authorizedPatch.indexName, reversed, budget, options.rejectFormat));
|
|
803
932
|
await authorizeOutputs([outputPath, backupPath, rejectPath], targets, paths.input, budget);
|
|
804
933
|
if (backupPath !== void 0 && rejectPaths.has(backupPath) || rejectPath !== void 0 && backupPaths.has(rejectPath)) {
|
|
@@ -857,7 +986,7 @@ ${headers}--------------------------
|
|
|
857
986
|
if (!options.quiet) await appendStatus(`${options.dryRun ? "checking" : "patching"} file ${output === void 0 ? displayName : `${quotePatchName(output, options.quotingStyle)} (read from ${displayName})`}
|
|
858
987
|
`);
|
|
859
988
|
if (autoReversed) await appendStatus("Reversed (or previously applied) patch detected! Assuming -R.\n");
|
|
860
|
-
for (const outcome of outcomes) {
|
|
989
|
+
for await (const outcome of outcomes) {
|
|
861
990
|
if (outcome.misordered) await appendStatus("misordered hunks! output would be garbled\n");
|
|
862
991
|
if (options.quiet) continue;
|
|
863
992
|
if (outcome.failed && options.merge) await appendStatus(`Hunk #${outcome.index} NOT MERGED at ${outcome.mergeRange?.[0] ?? outcome.line}-${outcome.mergeRange?.[1] ?? outcome.line}.
|
|
@@ -867,7 +996,7 @@ ${headers}--------------------------
|
|
|
867
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"})` : ""}.
|
|
868
997
|
`);
|
|
869
998
|
}
|
|
870
|
-
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}`}
|
|
871
1000
|
`);
|
|
872
1001
|
if (deletion && result.size !== 0) await appendStatus(`Not deleting file ${name} as content differs from patch
|
|
873
1002
|
`);
|
|
@@ -920,7 +1049,7 @@ ${headers}--------------------------
|
|
|
920
1049
|
if (progress?.error) throw progress.error;
|
|
921
1050
|
return exitCode;
|
|
922
1051
|
} finally {
|
|
923
|
-
await closeDocumentResources2([messages, documents]);
|
|
1052
|
+
await closeDocumentResources2([messages, documents, bodies, outcomeStore]);
|
|
924
1053
|
}
|
|
925
1054
|
}
|
|
926
1055
|
function patchCommand(options = {}) {
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
collectDocumentRevisions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-V5XC43BX.js";
|
|
4
4
|
import {
|
|
5
5
|
assertOutsideFields,
|
|
6
6
|
parseFields
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AG2SNMP5.js";
|
|
8
8
|
import {
|
|
9
9
|
openDocumentLocations
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CKEMZUE3.js";
|
|
11
11
|
import {
|
|
12
12
|
DocumentArchiveEditor
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import {
|
|
15
|
-
validateDocxInvocation
|
|
16
|
-
} from "./chunk-GXLXWZWH.js";
|
|
13
|
+
} from "./chunk-VUWXLH3E.js";
|
|
17
14
|
import {
|
|
18
15
|
pathContains
|
|
19
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-47IAU25U.js";
|
|
17
|
+
import {
|
|
18
|
+
validateDocxInvocation
|
|
19
|
+
} from "./chunk-DZH54L3F.js";
|
|
20
20
|
import {
|
|
21
21
|
assertDocumentEditable,
|
|
22
22
|
publishDocumentArchive
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-EVYKV3QI.js";
|
|
24
24
|
import {
|
|
25
25
|
UnsupportedEditError,
|
|
26
26
|
assertOutsideRevisionRanges,
|
|
27
27
|
containsRevision,
|
|
28
28
|
revisionInfo,
|
|
29
29
|
xmlValue
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-Y7AXMCFV.js";
|
|
31
31
|
import {
|
|
32
32
|
closedRecord,
|
|
33
33
|
encodeGeneratedLocation
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tableRows
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KY4LCHUF.js";
|
|
4
4
|
import {
|
|
5
5
|
DocumentPackage
|
|
6
6
|
} from "./chunk-5BUL25DF.js";
|
|
7
7
|
import {
|
|
8
8
|
collectShapeCarriers,
|
|
9
9
|
revisionInfo
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Y7AXMCFV.js";
|
|
11
11
|
import {
|
|
12
12
|
trimXmlWhitespace
|
|
13
13
|
} from "./chunk-ET5SFGRH.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openDocumentLocations,
|
|
3
3
|
resolveDocxSelection
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CKEMZUE3.js";
|
|
5
5
|
import {
|
|
6
6
|
validateDocxInvocation
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DZH54L3F.js";
|
|
8
8
|
import {
|
|
9
9
|
assertDocumentEditable,
|
|
10
10
|
publishDocumentArchive
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-EVYKV3QI.js";
|
|
12
12
|
import {
|
|
13
13
|
documentPartRole
|
|
14
14
|
} from "./chunk-L4FX5S6P.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
runElementOpen,
|
|
26
26
|
splitNativeTextRunXml,
|
|
27
27
|
xmlValue
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-Y7AXMCFV.js";
|
|
29
29
|
import {
|
|
30
30
|
corePropertyKeys,
|
|
31
31
|
customPropertyType,
|