@poe-platform/safe-bash 0.1.812 → 0.1.813

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (329) hide show
  1. package/dist/audio-ast/id3-source.d.ts +27 -0
  2. package/dist/audio-ast/index.d.ts +4 -0
  3. package/dist/audio-ast/index.js +996 -596
  4. package/dist/audio-ast/mp3-source.d.ts +18 -0
  5. package/dist/audio-ast/ogg-source.d.ts +25 -0
  6. package/dist/audio-ast/ogg-stream-source.d.ts +22 -0
  7. package/dist/image-ast/index.js +139 -9
  8. package/dist/mp4-ast/containers/adapters.d.ts +7 -0
  9. package/dist/office-xml/retained-xml-document.d.ts +8 -0
  10. package/dist/pdf-ast/ast.d.ts +2 -0
  11. package/dist/pdf-ast/content/dictionary-cursor.d.ts +15 -0
  12. package/dist/pdf-ast/content/range-operator-parser.d.ts +4 -0
  13. package/dist/pdf-ast/content/stored-dictionary.d.ts +10 -0
  14. package/dist/pdf-ast/cos/lexer.d.ts +8 -5
  15. package/dist/pdf-ast/cos/object-reader.d.ts +4 -3
  16. package/dist/pdf-ast/cos/range-parser.d.ts +4 -0
  17. package/dist/pdf-ast/cos/retained-objects.d.ts +1 -0
  18. package/dist/pdf-ast/cos/retained-writer.d.ts +1 -0
  19. package/dist/pdf-ast/cos/value-parser.d.ts +9 -0
  20. package/dist/pdf-ast/edit/retained-append-attachments.d.ts +13 -0
  21. package/dist/pdf-ast/edit/retained-bookmarks.d.ts +13 -0
  22. package/dist/pdf-ast/edit/retained-graph.d.ts +6 -0
  23. package/dist/pdf-ast/edit/retained-save.d.ts +2 -0
  24. package/dist/pdf-ast/edit/retained-stamps.d.ts +9 -0
  25. package/dist/pdf-ast/fonts/resolve.d.ts +3 -1
  26. package/dist/pdf-ast/index.d.ts +3 -1
  27. package/dist/pdf-ast/index.js +1557 -770
  28. package/dist/safe-bash/audio-ast.browser.js +6 -1
  29. package/dist/safe-bash/chunks/{chunk-HHSOUC3Z.js → chunk-HPQE675Q.js} +1 -1
  30. package/dist/safe-bash/chunks/{chunk-BUYRKFW2.js → chunk-I6ECNJMR.js} +1 -1
  31. package/dist/safe-bash/chunks/{pdftk-WRYEP3CA.js → pdftk-Y2TX74LY.js} +2 -1
  32. package/dist/safe-bash/command-chunks/biff-4ALVARRF-7SRX6R6N.js +5192 -0
  33. package/dist/safe-bash/command-chunks/{chunk-EHSM5ZQS.js → chunk-2DGJOOXM.js} +8 -8
  34. package/dist/safe-bash/command-chunks/{chunk-Q6S57NOQ.js → chunk-2E2H7MBH.js} +7 -7
  35. package/dist/safe-bash/command-chunks/{chunk-MMBZTYXO.js → chunk-2PQRZDNR.js} +221 -0
  36. package/dist/safe-bash/command-chunks/{chunk-NARD63DY.js → chunk-2V6FOLXV.js} +22 -66
  37. package/dist/safe-bash/command-chunks/{chunk-56NYSX65.js → chunk-2Z3WRRFT.js} +9 -9
  38. package/dist/safe-bash/command-chunks/chunk-3D24WDND.js +63 -0
  39. package/dist/safe-bash/command-chunks/{chunk-47NEG4UO.js → chunk-3JST2Q7G.js} +219 -43
  40. package/dist/safe-bash/command-chunks/{chunk-WGG6G2KG.js → chunk-3LJAXFH5.js} +7 -7
  41. package/dist/safe-bash/command-chunks/{chunk-AHA6IWAJ.js → chunk-3TYDSGAH.js} +6 -6
  42. package/dist/safe-bash/command-chunks/{chunk-YSMNXMAO.js → chunk-3Y4XZB24.js} +4 -4
  43. package/dist/safe-bash/command-chunks/{chunk-ZIIO6GRY.js → chunk-4PBNMKAT.js} +7 -7
  44. package/dist/safe-bash/command-chunks/{chunk-JFYWVQ4V.js → chunk-4Z6W5EOC.js} +8 -8
  45. package/dist/safe-bash/command-chunks/{chunk-GEM47B2P.js → chunk-57DDYKE5.js} +7 -7
  46. package/dist/safe-bash/command-chunks/{chunk-4CKFNXRN.js → chunk-5IFRAI7Y.js} +1 -1
  47. package/dist/safe-bash/command-chunks/{chunk-RHYJVTJO.js → chunk-5KGEZ3RW.js} +2 -2
  48. package/dist/safe-bash/command-chunks/{chunk-A5FZBR7X.js → chunk-5MFDRSGG.js} +4 -4
  49. package/dist/safe-bash/command-chunks/{chunk-7GKKMNL6.js → chunk-5P6I2T63.js} +8 -8
  50. package/dist/safe-bash/command-chunks/{chunk-6M6TM5Z5.js → chunk-5VQVZPP3.js} +3 -3
  51. package/dist/safe-bash/command-chunks/{chunk-MIRL7HTF.js → chunk-6244HYJY.js} +1 -1
  52. package/dist/safe-bash/command-chunks/chunk-63EMPQ7Z.js +115 -0
  53. package/dist/safe-bash/command-chunks/{chunk-XRVKWGVQ.js → chunk-6CY5BHBS.js} +6 -6
  54. package/dist/safe-bash/command-chunks/{chunk-XVP6V5K3.js → chunk-6IWE7PTK.js} +6 -6
  55. package/dist/safe-bash/command-chunks/{chunk-6QBMND4A.js → chunk-6SRHWVEB.js} +1 -1
  56. package/dist/safe-bash/command-chunks/chunk-6ZHQB453.js +35 -0
  57. package/dist/safe-bash/command-chunks/chunk-73NYFNAS.js +173 -0
  58. package/dist/safe-bash/command-chunks/{chunk-2JSDKQ4J.js → chunk-7NXTEWPR.js} +119 -44
  59. package/dist/safe-bash/command-chunks/{chunk-554Z6IKP.js → chunk-7PRL6RJ6.js} +2 -2
  60. package/dist/safe-bash/command-chunks/{chunk-SDTPO2VV.js → chunk-7PZHWMK6.js} +7 -7
  61. package/dist/safe-bash/command-chunks/{chunk-XZ2FWFNV.js → chunk-7QZ2HP2F.js} +6 -6
  62. package/dist/safe-bash/command-chunks/{chunk-OEJM666F.js → chunk-7UC2Q6Z6.js} +5 -5
  63. package/dist/safe-bash/command-chunks/{chunk-COKYZUBW.js → chunk-AJI55RS7.js} +1 -1
  64. package/dist/safe-bash/command-chunks/{chunk-WXRYDALR.js → chunk-BBAB7LC4.js} +4 -4
  65. package/dist/safe-bash/command-chunks/{chunk-QYMEASQ6.js → chunk-BEHUSUOY.js} +4 -4
  66. package/dist/safe-bash/command-chunks/{chunk-Z2JW6M2D.js → chunk-BK7ISUJL.js} +3 -3
  67. package/dist/safe-bash/command-chunks/{chunk-33YCKZZX.js → chunk-C5KLFZGT.js} +6 -6
  68. package/dist/safe-bash/command-chunks/{chunk-TVH4JORU.js → chunk-C5QDEB3I.js} +3 -3
  69. package/dist/safe-bash/command-chunks/{chunk-N4R2SHSS.js → chunk-CCZZVCHX.js} +2 -2
  70. package/dist/safe-bash/command-chunks/{chunk-2VLAXKTS.js → chunk-CTDC4LJT.js} +121 -85
  71. package/dist/safe-bash/command-chunks/{chunk-S6R3IB36.js → chunk-D55REQA3.js} +1 -1
  72. package/dist/safe-bash/command-chunks/{chunk-Y4EYCZFT.js → chunk-D6WJY6QO.js} +10 -10
  73. package/dist/safe-bash/command-chunks/{chunk-2CORNDGF.js → chunk-DBLHCJJU.js} +2 -2
  74. package/dist/safe-bash/command-chunks/{chunk-SPW4GW4Z.js → chunk-DFI7QF3M.js} +2 -2
  75. package/dist/safe-bash/command-chunks/{chunk-456PHA3L.js → chunk-DMCI6T6N.js} +1 -1
  76. package/dist/safe-bash/command-chunks/{chunk-TW73OXPR.js → chunk-EJTNVXWF.js} +6 -6
  77. package/dist/safe-bash/command-chunks/{chunk-QD7ZRDUN.js → chunk-ET2VPDUA.js} +1 -1
  78. package/dist/safe-bash/command-chunks/{chunk-CJQSAATC.js → chunk-EXOQGXEU.js} +26 -26
  79. package/dist/safe-bash/command-chunks/{chunk-CRV2Q3PB.js → chunk-EZ4NQIPL.js} +1 -1
  80. package/dist/safe-bash/command-chunks/chunk-FWKLBDMK.js +0 -0
  81. package/dist/safe-bash/command-chunks/{chunk-22MOB45U.js → chunk-FWPVQGYK.js} +6 -6
  82. package/dist/safe-bash/command-chunks/{chunk-QC5RMGSA.js → chunk-G3RUXKVY.js} +3 -3
  83. package/dist/safe-bash/command-chunks/{chunk-JYUJAF4L.js → chunk-G7NENPYV.js} +4 -0
  84. package/dist/safe-bash/command-chunks/{chunk-KCOJA7EM.js → chunk-GKILM4HZ.js} +7 -7
  85. package/dist/safe-bash/command-chunks/{chunk-HTVIYLVB.js → chunk-GNXTMSYN.js} +4 -4
  86. package/dist/safe-bash/command-chunks/{chunk-D2ASPM7R.js → chunk-GOBUDKZ3.js} +3 -3
  87. package/dist/safe-bash/command-chunks/{chunk-RNSKXOG3.js → chunk-GVWVRPG6.js} +6 -6
  88. package/dist/safe-bash/command-chunks/{chunk-FDCIPJBQ.js → chunk-HCKYUQ3L.js} +7 -7
  89. package/dist/safe-bash/command-chunks/{chunk-AGLK7OJR.js → chunk-HDSIIQBS.js} +1 -1
  90. package/dist/safe-bash/command-chunks/{chunk-DM2CPMB4.js → chunk-HKOMXGJS.js} +2 -2
  91. package/dist/safe-bash/command-chunks/{chunk-IT7TAC3F.js → chunk-HVW53ARH.js} +16 -16
  92. package/dist/safe-bash/command-chunks/{chunk-M7QE2MN7.js → chunk-I4GMCWAT.js} +6 -6
  93. package/dist/safe-bash/command-chunks/{chunk-HWQ2UHMT.js → chunk-IHSOOSNC.js} +9 -9
  94. package/dist/safe-bash/command-chunks/{chunk-LCZDBW55.js → chunk-JAHJWVGF.js} +5 -5
  95. package/dist/safe-bash/command-chunks/{chunk-MOZD7RUY.js → chunk-JORIVUPM.js} +27 -11
  96. package/dist/safe-bash/command-chunks/{chunk-PMAM4N33.js → chunk-JUJHYPYL.js} +9 -9
  97. package/dist/safe-bash/command-chunks/{chunk-ENT3IV2G.js → chunk-KBUBSMCQ.js} +12 -12
  98. package/dist/safe-bash/command-chunks/{chunk-ZXR6LXV5.js → chunk-KCE5D4Z4.js} +48 -4
  99. package/dist/safe-bash/command-chunks/{chunk-FIIAYCWS.js → chunk-KZ5ODST6.js} +2 -2
  100. package/dist/safe-bash/command-chunks/{chunk-PNGDJA6M.js → chunk-LD7BONZY.js} +2 -2
  101. package/dist/safe-bash/command-chunks/{chunk-KJ4XXZIL.js → chunk-M3Z5PU2M.js} +582 -59
  102. package/dist/safe-bash/command-chunks/{chunk-LXLLA4PM.js → chunk-MKX4JAZ6.js} +17 -17
  103. package/dist/safe-bash/command-chunks/{chunk-RQIQ75W5.js → chunk-MNHBQBF6.js} +5 -5
  104. package/dist/safe-bash/command-chunks/{chunk-A2CLZMQZ.js → chunk-MPKY37QR.js} +1 -1
  105. package/dist/safe-bash/command-chunks/{chunk-K5GB2YMN.js → chunk-MUUWBZIC.js} +10 -10
  106. package/dist/safe-bash/command-chunks/{chunk-JOCFI7TG.js → chunk-N32GSM3J.js} +1 -1
  107. package/dist/safe-bash/command-chunks/{chunk-EUT24Y5Z.js → chunk-NKTULXVD.js} +8 -8
  108. package/dist/safe-bash/command-chunks/{chunk-5HPU7D36.js → chunk-NMPED6L5.js} +4 -4
  109. package/dist/safe-bash/command-chunks/{chunk-QZZ73J2O.js → chunk-NPFHUS4X.js} +6 -6
  110. package/dist/safe-bash/command-chunks/{chunk-X7FA7ZD5.js → chunk-O675URF4.js} +8 -8
  111. package/dist/safe-bash/command-chunks/{chunk-R6EGGK5M.js → chunk-P7EL2FWW.js} +7 -7
  112. package/dist/safe-bash/command-chunks/{chunk-YS25EI54.js → chunk-PCCFLPUQ.js} +2 -2
  113. package/dist/safe-bash/command-chunks/{chunk-RRL3Y562.js → chunk-PI6MOMHA.js} +11 -11
  114. package/dist/safe-bash/command-chunks/{chunk-26VCZHLJ.js → chunk-PIOQBOEK.js} +1 -1
  115. package/dist/safe-bash/command-chunks/chunk-PK36TVXB.js +175 -0
  116. package/dist/safe-bash/command-chunks/{chunk-3Q247UDJ.js → chunk-PKLJRB7W.js} +264 -129
  117. package/dist/safe-bash/command-chunks/{chunk-6CCQI6XZ.js → chunk-PSCOXGCA.js} +12 -12
  118. package/dist/safe-bash/command-chunks/{chunk-XPD636C4.js → chunk-PVGZMLC6.js} +3 -3
  119. package/dist/safe-bash/command-chunks/{chunk-JQVHUSDD.js → chunk-PXWS3Q7L.js} +5 -5
  120. package/dist/safe-bash/command-chunks/{chunk-HDJVJTCK.js → chunk-QFF5KBOM.js} +9 -9
  121. package/dist/safe-bash/command-chunks/{chunk-MPUHH2KR.js → chunk-QM2HZJSJ.js} +3 -3
  122. package/dist/safe-bash/command-chunks/{chunk-UAXSE3XE.js → chunk-R2BMZAHG.js} +5 -5
  123. package/dist/safe-bash/command-chunks/{chunk-KB7DUBVL.js → chunk-RGOQKIG6.js} +5 -5
  124. package/dist/safe-bash/command-chunks/{chunk-D2KZ66W4.js → chunk-RLCQ7BN3.js} +187 -39
  125. package/dist/safe-bash/command-chunks/{chunk-B5LDP7AA.js → chunk-S2N2V5U4.js} +2 -2
  126. package/dist/safe-bash/command-chunks/{chunk-OA75SGN2.js → chunk-SGPCXAG7.js} +7 -7
  127. package/dist/safe-bash/command-chunks/{chunk-QUM3SYAJ.js → chunk-SYSX46IV.js} +3 -3
  128. package/dist/safe-bash/command-chunks/chunk-T3E5RV3U.js +737 -0
  129. package/dist/safe-bash/command-chunks/{chunk-YORJDX4V.js → chunk-T5ERNELL.js} +4 -4
  130. package/dist/safe-bash/command-chunks/{chunk-ZEX53S5I.js → chunk-T6C5QP7T.js} +6368 -6230
  131. package/dist/safe-bash/command-chunks/{chunk-ATTWQVR2.js → chunk-TKRLZIFI.js} +17 -17
  132. package/dist/safe-bash/command-chunks/{chunk-ZMHEGDU2.js → chunk-TODWFDYB.js} +2 -2
  133. package/dist/safe-bash/command-chunks/{chunk-XVLWZTPY.js → chunk-TQEB4DH4.js} +543 -144
  134. package/dist/safe-bash/command-chunks/{chunk-36XGIPOG.js → chunk-U5TWQFZY.js} +1 -1
  135. package/dist/safe-bash/command-chunks/{chunk-APEWTWCC.js → chunk-UAF4IX5H.js} +6 -6
  136. package/dist/safe-bash/command-chunks/{chunk-6VPQ3CDZ.js → chunk-V37D6AHO.js} +5 -5
  137. package/dist/safe-bash/command-chunks/{chunk-RID6VYS3.js → chunk-V6XBEYPC.js} +8 -8
  138. package/dist/safe-bash/command-chunks/{chunk-WJCN2IXI.js → chunk-VQOINPVF.js} +2 -2
  139. package/dist/safe-bash/command-chunks/{chunk-W5YSINXC.js → chunk-VVWXY6IA.js} +6 -6
  140. package/dist/safe-bash/command-chunks/{chunk-HKATEVAP.js → chunk-WPVBUVFK.js} +6 -6
  141. package/dist/safe-bash/command-chunks/{chunk-UYWSIIUX.js → chunk-X53AEG36.js} +7 -7
  142. package/dist/safe-bash/command-chunks/{chunk-L5MCW6CM.js → chunk-X64XGIXZ.js} +9 -155
  143. package/dist/safe-bash/command-chunks/{chunk-Q73EMLLZ.js → chunk-X6RHJ6YN.js} +84 -5
  144. package/dist/safe-bash/command-chunks/{chunk-7PVHO47B.js → chunk-XG6UWQV5.js} +6 -6
  145. package/dist/safe-bash/command-chunks/{chunk-NQDIT667.js → chunk-XIDGHIGB.js} +5 -5
  146. package/dist/safe-bash/command-chunks/{chunk-CV7M2QJU.js → chunk-XLYIVBAR.js} +7 -7
  147. package/dist/safe-bash/command-chunks/{chunk-WVMHRNXZ.js → chunk-YUXTK3XA.js} +3 -3
  148. package/dist/safe-bash/command-chunks/{chunk-SPLOIABU.js → chunk-YXD6VGVG.js} +3 -3
  149. package/dist/safe-bash/command-chunks/{chunk-2ZFLMWOX.js → chunk-Z5BIM5B7.js} +1 -1
  150. package/dist/safe-bash/command-chunks/chunk-ZYLGNIGA.js +156 -0
  151. package/dist/safe-bash/command-chunks/{command-engine-BCUQGJJ4.js → command-engine-X3OLN7N6.js} +150 -67
  152. package/dist/safe-bash/command-chunks/{engine-LAUEWYSQ-DQCEI5HE.js → engine-XUCIFZ7V-LJFGZM6O.js} +1 -1
  153. package/dist/safe-bash/command-chunks/paradox-4FCZE53D-LQPGVMEL.js +365 -0
  154. package/dist/safe-bash/commands/pandoc/index.browser.js +1 -1
  155. package/dist/safe-bash/full-core.browser.js +2 -2
  156. package/dist/safe-bash/plugins/index.browser.js +2 -2
  157. package/dist/safe-bash-command-diff/diff.js +1 -1
  158. package/dist/safe-bash-command-diff/index.js +1 -1
  159. package/dist/safe-bash-command-ffmpeg/index.js +1 -1
  160. package/dist/safe-bash-command-ffprobe/index.js +2 -2
  161. package/dist/safe-bash-command-ffprobe/media.d.ts +3 -1
  162. package/dist/safe-bash-command-ffprobe/media.js +2 -2
  163. package/dist/safe-bash-command-html-to-markdown/budget.js +2 -1
  164. package/dist/safe-bash-command-html-to-markdown/entities.js +4 -3
  165. package/dist/safe-bash-command-html-to-markdown/index.js +564 -110
  166. package/dist/safe-bash-command-html-to-markdown/input.js +6 -5
  167. package/dist/safe-bash-command-html-to-markdown/options.js +2 -1
  168. package/dist/safe-bash-command-html-to-markdown/parser.js +5 -4
  169. package/dist/safe-bash-command-html-to-markdown/render.js +6 -5
  170. package/dist/safe-bash-command-html-to-markdown/text.js +3 -2
  171. package/dist/safe-bash-command-htmlq/index.js +361 -37
  172. package/dist/safe-bash-command-htmlq/tree.d.ts +3 -2
  173. package/dist/safe-bash-command-pandoc/command.js +7 -7
  174. package/dist/safe-bash-command-pandoc/index.js +55 -55
  175. package/dist/safe-bash-command-patch/index.js +6 -6
  176. package/dist/safe-bash-command-patch/patch-envelope.js +53 -3
  177. package/dist/safe-bash-command-patch/patch-formats.d.ts +2 -2
  178. package/dist/safe-bash-command-patch/patch-formats.js +2 -2
  179. package/dist/safe-bash-command-patch/patch-gnu-reject.d.ts +2 -1
  180. package/dist/safe-bash-command-patch/patch-gnu-reject.js +4 -3
  181. package/dist/safe-bash-command-patch/patch-publication.js +2 -1
  182. package/dist/safe-bash-command-patch/patch.js +6 -6
  183. package/dist/safe-bash-command-patch/unified.d.ts +10 -2
  184. package/dist/safe-bash-command-patch/unified.js +1 -1
  185. package/dist/safe-bash-command-pdftk/index.d.ts +6 -2
  186. package/dist/safe-bash-command-pdftk/index.js +830 -271
  187. package/dist/safe-bash-command-pptx/command-engine.d.ts +3 -0
  188. package/dist/safe-bash-command-pptx/engine.js +1 -1
  189. package/dist/safe-bash-command-pptx/index.js +9 -2
  190. package/dist/safe-bash-command-soffice/index.js +1 -1
  191. package/dist/safe-bash-command-ssconvert/index.js +2 -2
  192. package/dist/safe-bash-command-xmllint/index.js +22 -31
  193. package/dist/safe-bash-presentation-engine/accessibility.js +31 -30
  194. package/dist/safe-bash-presentation-engine/animation-editing.js +16 -15
  195. package/dist/safe-bash-presentation-engine/animations.js +16 -15
  196. package/dist/safe-bash-presentation-engine/backgrounds.js +17 -16
  197. package/dist/safe-bash-presentation-engine/bytes.js +3 -3
  198. package/dist/safe-bash-presentation-engine/chart-editing.js +34 -33
  199. package/dist/safe-bash-presentation-engine/chart-object-operations.js +25 -24
  200. package/dist/safe-bash-presentation-engine/charts.js +31 -30
  201. package/dist/safe-bash-presentation-engine/command-placeholder.js +59 -56
  202. package/dist/safe-bash-presentation-engine/comments.js +17 -16
  203. package/dist/safe-bash-presentation-engine/connector-operations.js +32 -31
  204. package/dist/safe-bash-presentation-engine/connectors.js +29 -28
  205. package/dist/safe-bash-presentation-engine/content-types.js +4 -4
  206. package/dist/safe-bash-presentation-engine/creation.js +6 -6
  207. package/dist/safe-bash-presentation-engine/diff.js +32 -31
  208. package/dist/safe-bash-presentation-engine/drawing-enums.d.ts +10 -10
  209. package/dist/safe-bash-presentation-engine/drawing-format.js +20 -19
  210. package/dist/safe-bash-presentation-engine/drawing-operations.js +31 -30
  211. package/dist/safe-bash-presentation-engine/drawing-schema.js +21 -20
  212. package/dist/safe-bash-presentation-engine/equations.js +17 -16
  213. package/dist/safe-bash-presentation-engine/errors.js +2 -2
  214. package/dist/safe-bash-presentation-engine/fields.js +17 -16
  215. package/dist/safe-bash-presentation-engine/font-metrics.js +3 -3
  216. package/dist/safe-bash-presentation-engine/image-extraction.js +20 -19
  217. package/dist/safe-bash-presentation-engine/image-formatting.js +32 -31
  218. package/dist/safe-bash-presentation-engine/image-insertion.js +18 -17
  219. package/dist/safe-bash-presentation-engine/image-replacement.js +21 -20
  220. package/dist/safe-bash-presentation-engine/image-value.js +4 -4
  221. package/dist/safe-bash-presentation-engine/images.js +19 -18
  222. package/dist/safe-bash-presentation-engine/index.d.ts +5 -1
  223. package/dist/safe-bash-presentation-engine/index.js +109 -96
  224. package/dist/safe-bash-presentation-engine/layouts.js +16 -15
  225. package/dist/safe-bash-presentation-engine/length.js +3 -3
  226. package/dist/safe-bash-presentation-engine/links.js +16 -15
  227. package/dist/safe-bash-presentation-engine/masters.js +15 -14
  228. package/dist/safe-bash-presentation-engine/media-editing.js +24 -23
  229. package/dist/safe-bash-presentation-engine/media-extraction.js +17 -16
  230. package/dist/safe-bash-presentation-engine/media.js +16 -15
  231. package/dist/safe-bash-presentation-engine/memberships.js +15 -14
  232. package/dist/safe-bash-presentation-engine/notes.js +16 -15
  233. package/dist/safe-bash-presentation-engine/ole-enum.js +4 -4
  234. package/dist/safe-bash-presentation-engine/ole-insertion.js +20 -19
  235. package/dist/safe-bash-presentation-engine/opaque-objects.js +9 -9
  236. package/dist/safe-bash-presentation-engine/package-reader.js +5 -5
  237. package/dist/safe-bash-presentation-engine/package-tools.d.ts +3 -0
  238. package/dist/safe-bash-presentation-engine/package-tools.js +27 -17
  239. package/dist/safe-bash-presentation-engine/package-uri.js +3 -3
  240. package/dist/safe-bash-presentation-engine/package-writer.js +4 -4
  241. package/dist/safe-bash-presentation-engine/presentation-model.js +58 -55
  242. package/dist/safe-bash-presentation-engine/presentation-settings.js +14 -13
  243. package/dist/safe-bash-presentation-engine/properties.js +16 -15
  244. package/dist/safe-bash-presentation-engine/relationships.js +4 -4
  245. package/dist/safe-bash-presentation-engine/resource-limits.js +1 -1
  246. package/dist/safe-bash-presentation-engine/retained-archive-staging.d.ts +19 -0
  247. package/dist/safe-bash-presentation-engine/retained-extraction-output.d.ts +18 -0
  248. package/dist/safe-bash-presentation-engine/retained-inspection.js +14 -12
  249. package/dist/safe-bash-presentation-engine/retained-package-extraction.d.ts +22 -0
  250. package/dist/safe-bash-presentation-engine/retained-package-packing.d.ts +19 -0
  251. package/dist/safe-bash-presentation-engine/retained-package.d.ts +2 -0
  252. package/dist/safe-bash-presentation-engine/retained-package.js +6 -4
  253. package/dist/safe-bash-presentation-engine/retained-text.js +19 -17
  254. package/dist/safe-bash-presentation-engine/retained-xml-parts.d.ts +5 -1
  255. package/dist/safe-bash-presentation-engine/retained-xml-publication.d.ts +18 -0
  256. package/dist/safe-bash-presentation-engine/retained-xml-replacement.d.ts +13 -0
  257. package/dist/safe-bash-presentation-engine/sanitize.js +17 -16
  258. package/dist/safe-bash-presentation-engine/selectors.js +10 -10
  259. package/dist/safe-bash-presentation-engine/shape-groups.js +31 -30
  260. package/dist/safe-bash-presentation-engine/shape-operations.js +30 -29
  261. package/dist/safe-bash-presentation-engine/shape-path-operations.js +32 -31
  262. package/dist/safe-bash-presentation-engine/shape-paths.js +16 -15
  263. package/dist/safe-bash-presentation-engine/shape-presets.js +3 -3
  264. package/dist/safe-bash-presentation-engine/shape-selection.js +31 -30
  265. package/dist/safe-bash-presentation-engine/shape-transforms.js +18 -17
  266. package/dist/safe-bash-presentation-engine/shapes.d.ts +1 -1
  267. package/dist/safe-bash-presentation-engine/shapes.js +27 -26
  268. package/dist/safe-bash-presentation-engine/slide-copy.js +17 -16
  269. package/dist/safe-bash-presentation-engine/slide-import.js +18 -17
  270. package/dist/safe-bash-presentation-engine/slide-merge-split.js +20 -19
  271. package/dist/safe-bash-presentation-engine/slide-model.js +43 -42
  272. package/dist/safe-bash-presentation-engine/slide-removal.js +18 -17
  273. package/dist/safe-bash-presentation-engine/slide-transfer-budget.js +9 -9
  274. package/dist/safe-bash-presentation-engine/slides.js +19 -16
  275. package/dist/safe-bash-presentation-engine/table-operations.js +33 -32
  276. package/dist/safe-bash-presentation-engine/table-spans.js +32 -31
  277. package/dist/safe-bash-presentation-engine/tables.js +31 -30
  278. package/dist/safe-bash-presentation-engine/tags.js +16 -15
  279. package/dist/safe-bash-presentation-engine/template-bindings.js +33 -32
  280. package/dist/safe-bash-presentation-engine/template-repeat.js +40 -39
  281. package/dist/safe-bash-presentation-engine/text-fitting.js +27 -26
  282. package/dist/safe-bash-presentation-engine/text-frames.js +27 -26
  283. package/dist/safe-bash-presentation-engine/text-paragraphs.js +27 -26
  284. package/dist/safe-bash-presentation-engine/text-reading.js +11 -11
  285. package/dist/safe-bash-presentation-engine/text-replacement.js +17 -16
  286. package/dist/safe-bash-presentation-engine/text-runs.js +20 -19
  287. package/dist/safe-bash-presentation-engine/themes.js +16 -15
  288. package/dist/safe-bash-presentation-engine/transitions.js +16 -15
  289. package/dist/safe-bash-presentation-engine/validation.js +10 -9
  290. package/dist/safe-bash-presentation-engine/xml-parts.d.ts +2 -0
  291. package/dist/safe-bash-presentation-engine/xml-parts.js +23 -15
  292. package/dist/safe-bash-presentation-engine/xml-view.js +3 -3
  293. package/dist/safe-bash-presentation-engine/xml.js +3 -3
  294. package/dist/safe-bash-regex-engine/index.js +1 -1
  295. package/dist/safe-bash-regex-engine/python-glob.js +1 -1
  296. package/dist/safe-bash-regex-engine/text/regex.d.ts +19 -0
  297. package/dist/safe-bash-regex-engine/text/regex.js +1 -1
  298. package/dist/safe-bash-xml-engine/document.js +3 -3
  299. package/dist/safe-bash-xml-engine/evaluate.js +1 -1
  300. package/dist/safe-bash-xml-engine/index.d.ts +1 -0
  301. package/dist/safe-bash-xml-engine/index.js +8 -4
  302. package/dist/safe-bash-xml-engine/query.js +2 -2
  303. package/dist/safe-bash-xml-engine/recovery.d.ts +10 -0
  304. package/dist/safe-bash-xml-engine/stored-document.d.ts +1 -1
  305. package/dist/safe-bash-xml-engine/stored-document.js +1 -1
  306. package/dist/safe-bash-xml-engine/stored-evaluate.js +1 -1
  307. package/dist/spreadsheet-engine/formulas/functions/python-printf.js +56 -33
  308. package/dist/spreadsheet-format-xls/biff-encrypted-properties.d.ts +1 -1
  309. package/dist/spreadsheet-format-xls/biff-encrypted-properties.js +47 -18
  310. package/dist/spreadsheet-format-xls/biff-properties-merge.d.ts +6 -2
  311. package/dist/spreadsheet-format-xls/biff-properties-merge.js +413 -296
  312. package/dist/spreadsheet-format-xls/biff-properties-write.js +40 -23
  313. package/dist/spreadsheet-format-xls/biff-properties.js +3 -68
  314. package/dist/spreadsheet-format-xls/biff-property-index.d.ts +23 -0
  315. package/dist/spreadsheet-format-xls/biff-property-index.js +93 -0
  316. package/dist/spreadsheet-format-xls/biff-property-name.d.ts +4 -0
  317. package/dist/spreadsheet-format-xls/biff-property-name.js +114 -0
  318. package/dist/spreadsheet-format-xls/biff-property-text.d.ts +6 -0
  319. package/dist/spreadsheet-format-xls/biff-property-text.js +68 -0
  320. package/dist/spreadsheet-format-xls/biff-property-transcode.d.ts +5 -0
  321. package/dist/spreadsheet-format-xls/biff-property-transcode.js +45 -0
  322. package/package.json +6 -3
  323. package/dist/safe-bash/command-chunks/biff-YKPDH35C-MVQIWNKV.js +0 -4974
  324. package/dist/safe-bash/command-chunks/chunk-5Q22ZLNC.js +0 -127
  325. package/dist/safe-bash/command-chunks/chunk-JKLOBSMP.js +0 -56
  326. package/dist/safe-bash/command-chunks/chunk-JYTESTBS.js +0 -99
  327. package/dist/safe-bash/command-chunks/chunk-ZEGNRZV2.js +0 -333
  328. package/dist/safe-bash/command-chunks/paradox-ZWWXYY4J-JYOSWSBL.js +0 -362
  329. package/dist/spreadsheet-format-xls/biff-properties-layout.js +0 -56
@@ -1,8 +1,8 @@
1
1
  import {
2
- eR,
3
- iR,
4
- jh
5
- } from "../safe-bash/command-chunks/chunk-ZEX53S5I.js";
2
+ gR,
3
+ wR,
4
+ zu
5
+ } from "../safe-bash/command-chunks/chunk-T6C5QP7T.js";
6
6
  import "../safe-bash/command-chunks/chunk-7QRIAJEQ.js";
7
7
  import "../safe-bash/command-chunks/chunk-IOEUZ4EA.js";
8
8
  import "../safe-bash/command-chunks/chunk-E6SK3OU2.js";
@@ -14,9 +14,9 @@ import "../safe-bash/command-chunks/chunk-5NKZJEUI.js";
14
14
  import "../safe-bash/command-chunks/chunk-QIFS4QHZ.js";
15
15
  import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
16
16
  export {
17
- jh as createPandocCommand,
18
- eR as createPandocCommands,
19
- iR as pandocCommands
17
+ zu as createPandocCommand,
18
+ wR as createPandocCommands,
19
+ gR as pandocCommands
20
20
  };
21
21
  /*!
22
22
  MIT License
@@ -1,30 +1,30 @@
1
1
  import {
2
- $h,
3
- Al,
4
- El,
5
- Fh,
6
- La,
7
- Lh,
8
- Pe,
9
- Qo,
10
- SP,
11
- TP,
12
- Xv,
13
- Zi,
14
- dh,
15
- eR,
16
- fE,
17
- fn,
18
- iR,
19
- ih,
20
- jh,
21
- ld,
22
- mE,
23
- nr,
24
- tl,
25
- tr,
26
- vP
27
- } from "../safe-bash/command-chunks/chunk-ZEX53S5I.js";
2
+ Bl,
3
+ Ce,
4
+ Cl,
5
+ DP,
6
+ IE,
7
+ Ju,
8
+ Ma,
9
+ OE,
10
+ UP,
11
+ Wu,
12
+ _P,
13
+ fu,
14
+ gR,
15
+ lr,
16
+ mn,
17
+ nl,
18
+ pT,
19
+ qu,
20
+ sl,
21
+ sn,
22
+ sr,
23
+ wR,
24
+ wd,
25
+ yu,
26
+ zu
27
+ } from "../safe-bash/command-chunks/chunk-T6C5QP7T.js";
28
28
  import "../safe-bash/command-chunks/chunk-7QRIAJEQ.js";
29
29
  import "../safe-bash/command-chunks/chunk-IOEUZ4EA.js";
30
30
  import "../safe-bash/command-chunks/chunk-E6SK3OU2.js";
@@ -52,7 +52,7 @@ function K(u = {}) {
52
52
  e2.signal.throwIfAborted();
53
53
  let a = new TextEncoder(), f, C;
54
54
  try {
55
- let o = tl(e2.args, i);
55
+ let o = sl(e2.args, i);
56
56
  if (o !== void 0) f = a.encode(o);
57
57
  else {
58
58
  let s = e2.fs ? { ...e2.cwd === void 0 ? {} : { cwd: e2.cwd }, stdin: e2.stdin, ...e2.createOutput ? { createOutput: e2.createOutput.bind(e2) } : {}, ...e2.fs.readStream ? { readStream: async function* (t2, r, n) {
@@ -63,7 +63,7 @@ function K(u = {}) {
63
63
  if (typeof m != "object" || m === null || !("code" in m) || m.code !== "ENOTSUP" && m.code !== "EOPNOTSUPP") throw m;
64
64
  }
65
65
  yield await s.readFile(t2, r, n);
66
- } } : {}, readFile: (t2, r, n) => e2.fs.readFile(O(e2.cwd ?? "/", t2), { signal: r, ...n === void 0 || n === 1 / 0 ? {} : { maxBytes: n } }), writeFile: (t2, r, n) => e2.fs.writeFile(O(e2.cwd ?? "/", t2), r, { signal: n }) } : e2, { options: S, operands: R, destination: d, limits: P } = await Fh(e2.args, s, e2.signal, i), A = (R ?? [{ chunks: e2.stdin }]).map((t2) => ({ ...t2, ...t2.base === void 0 && e2.cwd !== void 0 ? { base: e2.cwd } : {} })), F = { ...i, limits: P, signal: e2.signal, ...e2.fs === void 0 ? {} : { resourceFiles: e2.fs, resources: { resolve: async (t2, r, n) => e2.fs.readFile(`${r ?? e2.cwd ?? "/"}/${t2}`, { ...n === void 0 ? {} : { signal: n } }) } }, ...e2.cwd === void 0 ? {} : { resourceCwd: e2.cwd } }, p, v = d !== void 0 && s.createOutput ? { async write(t2, r) {
66
+ } } : {}, readFile: (t2, r, n) => e2.fs.readFile(O(e2.cwd ?? "/", t2), { signal: r, ...n === void 0 || n === 1 / 0 ? {} : { maxBytes: n } }), writeFile: (t2, r, n) => e2.fs.writeFile(O(e2.cwd ?? "/", t2), r, { signal: n }) } : e2, { options: S, operands: R, destination: d, limits: P } = await Ju(e2.args, s, e2.signal, i), A = (R ?? [{ chunks: e2.stdin }]).map((t2) => ({ ...t2, ...t2.base === void 0 && e2.cwd !== void 0 ? { base: e2.cwd } : {} })), F = { ...i, limits: P, signal: e2.signal, ...e2.fs === void 0 ? {} : { resourceFiles: e2.fs, resources: { resolve: async (t2, r, n) => e2.fs.readFile(`${r ?? e2.cwd ?? "/"}/${t2}`, { ...n === void 0 ? {} : { signal: n } }) } }, ...e2.cwd === void 0 ? {} : { resourceCwd: e2.cwd } }, p, v = d !== void 0 && s.createOutput ? { async write(t2, r) {
67
67
  p ??= s.createOutput(d, r ?? e2.signal), (r ?? e2.signal).throwIfAborted(), await p.write(t2, r);
68
68
  }, async close(t2) {
69
69
  p ??= s.createOutput(d, t2 ?? e2.signal), (t2 ?? e2.signal).throwIfAborted(), await p.close(t2);
@@ -77,7 +77,7 @@ function K(u = {}) {
77
77
  }
78
78
  }, async close() {
79
79
  }, async abort() {
80
- } }, c = d === void 0 || s.createOutput ? await Lh(A, S, { ...F, output: v }) : await El(A, S, { ...F, output: { publish: async (t2, r) => s.writeFile(d, t2, r) } });
80
+ } }, c = d === void 0 || s.createOutput ? await Wu(A, S, { ...F, output: v }) : await Cl(A, S, { ...F, output: { publish: async (t2, r) => s.writeFile(d, t2, r) } });
81
81
  for (let t2 of c.diagnostics) await e2.stderr.write(a.encode(`${t2.code}: ${t2.location ? `${t2.location}: ` : ""}${t2.message}
82
82
  `)), e2.signal.throwIfAborted();
83
83
  if (c.kind === "output") return { exitCode: 0 };
@@ -98,7 +98,7 @@ function Z(u = {}) {
98
98
  i.signal.throwIfAborted();
99
99
  let e2;
100
100
  try {
101
- e2 = tr(i.args, u);
101
+ e2 = sr(i.args, u);
102
102
  } catch (a) {
103
103
  if (!(a instanceof t)) throw a;
104
104
  return await i.stderr.write(new TextEncoder().encode(`${a.code}: ${a.message}
@@ -107,39 +107,39 @@ function Z(u = {}) {
107
107
  return await i.stdout.write(new TextEncoder().encode(e2)), i.signal.throwIfAborted(), { exitCode: 0 };
108
108
  } };
109
109
  }
110
- var export_assertNever = Zi.assertNever;
110
+ var export_assertNever = sn.assertNever;
111
111
  export {
112
112
  e as AstError,
113
- fn as ExecutionContext,
113
+ mn as ExecutionContext,
114
114
  t as PandocError,
115
115
  export_assertNever as assertNever,
116
- El as convert,
117
- SP as convertSync,
118
- Lh as convertToOutput,
119
- Qo as coreFormats,
116
+ Cl as convert,
117
+ UP as convertSync,
118
+ Wu as convertToOutput,
119
+ nl as coreFormats,
120
120
  yr as createCiteprocFilterCapability,
121
- mE as createExecutionContext,
122
- Al as createFileOutput,
121
+ OE as createExecutionContext,
122
+ Bl as createFileOutput,
123
123
  Z as createFormatInspectionCommand,
124
- Pe as createFormatRegistry,
125
- dh as createJsonFilterCapability,
124
+ Ce as createFormatRegistry,
125
+ yu as createJsonFilterCapability,
126
126
  _r as createLuaFilterCapability,
127
- jh as createPandocCommand,
128
- eR as createPandocCommands,
127
+ zu as createPandocCommand,
128
+ wR as createPandocCommands,
129
129
  K as createStandalonePandocCommand,
130
- La as defaultLimits,
131
- $h as evalSyncPandoc,
132
- Xv as formatCapabilities,
133
- tl as inspectCommand,
134
- tr as inspectFormats,
135
- fE as normalizeDocument,
136
- ih as normalizeDocumentCooperatively,
137
- iR as pandocCommands,
138
- nr as parseConversionArgs,
139
- ld as pdfReader,
140
- vP as readDocument,
141
- Fh as resolveConversionArgs,
142
- TP as writeDocument
130
+ Ma as defaultLimits,
131
+ qu as evalSyncPandoc,
132
+ pT as formatCapabilities,
133
+ sl as inspectCommand,
134
+ sr as inspectFormats,
135
+ IE as normalizeDocument,
136
+ fu as normalizeDocumentCooperatively,
137
+ gR as pandocCommands,
138
+ lr as parseConversionArgs,
139
+ wd as pdfReader,
140
+ DP as readDocument,
141
+ Ju as resolveConversionArgs,
142
+ _P as writeDocument
143
143
  };
144
144
  /*!
145
145
  MIT License
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  patchCommand
3
- } from "../safe-bash/command-chunks/chunk-3Q247UDJ.js";
4
- import "../safe-bash/command-chunks/chunk-ZEGNRZV2.js";
3
+ } from "../safe-bash/command-chunks/chunk-PKLJRB7W.js";
4
+ import "../safe-bash/command-chunks/chunk-PK36TVXB.js";
5
5
  import {
6
6
  evalSyncPatch
7
7
  } from "../safe-bash/command-chunks/chunk-KSY3QHLY.js";
8
- import "../safe-bash/command-chunks/chunk-JKLOBSMP.js";
9
- import "../safe-bash/command-chunks/chunk-2VLAXKTS.js";
10
- import "../safe-bash/command-chunks/chunk-MOZD7RUY.js";
8
+ import "../safe-bash/command-chunks/chunk-CTDC4LJT.js";
9
+ import "../safe-bash/command-chunks/chunk-JORIVUPM.js";
11
10
  import "../safe-bash/command-chunks/chunk-OQNX2OOS.js";
12
11
  import "../safe-bash/command-chunks/chunk-AJEQUVDN.js";
13
- import "../safe-bash/command-chunks/chunk-JYTESTBS.js";
12
+ import "../safe-bash/command-chunks/chunk-63EMPQ7Z.js";
13
+ import "../safe-bash/command-chunks/chunk-73NYFNAS.js";
14
14
  import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
15
15
 
16
16
  // packages/safe-bash-command-patch/src/index.ts
@@ -1,7 +1,57 @@
1
- import {
2
- unwrapPatch
3
- } from "../safe-bash/command-chunks/chunk-JKLOBSMP.js";
4
1
  import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
2
+
3
+ // packages/safe-bash-command-patch/src/patch-envelope.ts
4
+ import { ToolError } from "../safe-bash-diff-engine/shared.js";
5
+ async function normalizeTransport(text, budget) {
6
+ const lines = [];
7
+ let position = 0;
8
+ while (position < text.length) {
9
+ const end = text.indexOf("\n", position);
10
+ budget.step(1 + end - position);
11
+ {
12
+ const c = budget.checkpoint();
13
+ if (c) await c;
14
+ }
15
+ if (end <= position || text[end - 1] !== "\r") return text;
16
+ lines.push(text.slice(position, end - 1), "\n");
17
+ if (lines.length / 2 > budget.limits.maxLines) throw new ToolError("transport line limit exceeded");
18
+ position = end + 1;
19
+ }
20
+ return lines.join("");
21
+ }
22
+ async function unwrapPatch(text, budget) {
23
+ if (text && !text.endsWith("\n")) throw new ToolError("patch is truncated: missing final LF");
24
+ text = await normalizeTransport(text, budget);
25
+ let position = 0;
26
+ let lines = 0;
27
+ const mail = /^(?:From [0-9a-f]{40,64} |(?:From|Date|Subject|To|Cc|MIME-Version|Content-Type):)/u.test(text);
28
+ if (mail) {
29
+ while (position < text.length) {
30
+ budget.step();
31
+ {
32
+ const c = budget.checkpoint();
33
+ if (c) await c;
34
+ }
35
+ const end = text.indexOf("\n", position);
36
+ const line = text.slice(position, end);
37
+ if (/^(?:--- |\*\*\* |diff |\d+(?:,\d+)?[acd]\d)/u.test(line)) break;
38
+ if (/^(?:old mode |new mode |new file mode |deleted file mode |rename |copy |similarity index |dissimilarity index |GIT binary patch|Binary files |index |@@|[+\\])/u.test(line)) throw new ToolError("unsupported or malformed mail patch metadata");
39
+ position = end + 1;
40
+ if (++lines > budget.limits.maxLines) throw new ToolError("mail preamble limit exceeded");
41
+ }
42
+ if (position === text.length) throw new ToolError("mail preamble without patch");
43
+ }
44
+ const body = text.slice(position);
45
+ const signature = body.indexOf("\n-- \n");
46
+ if (signature < 0) return body;
47
+ const trailer = body.slice(signature + 5);
48
+ if (trailer.split("\n").length > budget.limits.maxLines) throw new ToolError("mail signature limit exceeded");
49
+ for (const line of trailer.split("\n")) {
50
+ budget.step();
51
+ if (/^(?:diff |---|\+\+\+|\*\*\*|@@|index |old mode |new mode |new file mode |deleted file mode |rename |copy |similarity index |dissimilarity index |GIT binary patch|Binary files |[+\\]|\d+(?:,\d+)?[acd]\d)/u.test(line)) throw new ToolError("patch data after mail signature");
52
+ }
53
+ return body.slice(0, signature + 1);
54
+ }
5
55
  export {
6
56
  unwrapPatch
7
57
  };
@@ -1,7 +1,7 @@
1
- import { type FilePatch } from "./unified.js";
1
+ import { type FilePatch, type PatchInput } from "./unified.js";
2
2
  import { Budget } from "../safe-bash-diff-engine/shared.js";
3
3
  export type PatchFormat = "unified" | "normal" | "context";
4
4
  export interface ParseProgress {
5
5
  error?: unknown;
6
6
  }
7
- export declare function parsePatch(text: string, budget: Budget, format: PatchFormat | undefined, target: string | undefined, progress?: ParseProgress): Promise<FilePatch[]>;
7
+ export declare function parsePatch(text: string | PatchInput, budget: Budget, format: PatchFormat | undefined, target: string | undefined, progress?: ParseProgress, convert?: (source: AsyncIterable<string>) => Promise<FilePatch[]>): Promise<FilePatch[]>;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  parsePatch
3
- } from "../safe-bash/command-chunks/chunk-2VLAXKTS.js";
4
- import "../safe-bash/command-chunks/chunk-MOZD7RUY.js";
3
+ } from "../safe-bash/command-chunks/chunk-CTDC4LJT.js";
4
+ import "../safe-bash/command-chunks/chunk-JORIVUPM.js";
5
5
  import "../safe-bash/command-chunks/chunk-AJEQUVDN.js";
6
6
  import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
7
7
  export {
@@ -1,3 +1,4 @@
1
1
  import type { FilePatch, HunkOutcome } from "./unified.js";
2
2
  import type { Budget } from "../safe-bash-diff-engine/shared.js";
3
- export declare function rejectText(patch: FilePatch, outcomes: readonly HunkOutcome[], oldName: string | undefined, newName: string | undefined, indexName: string | undefined, reverse: boolean, budget: Budget, format?: "unified" | "context"): Promise<string>;
3
+ import type { ByteSource } from "../safe-bash-contracts/index.js";
4
+ export declare function rejectBytes(patch: FilePatch, outcomes: readonly HunkOutcome[], oldName: string | undefined, newName: string | undefined, indexName: string | undefined, reverse: boolean, budget: Budget, format?: "unified" | "context"): ByteSource;
@@ -1,7 +1,8 @@
1
1
  import {
2
- rejectText
3
- } from "../safe-bash/command-chunks/chunk-JYTESTBS.js";
2
+ rejectBytes
3
+ } from "../safe-bash/command-chunks/chunk-63EMPQ7Z.js";
4
+ import "../safe-bash/command-chunks/chunk-73NYFNAS.js";
4
5
  import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
5
6
  export {
6
- rejectText
7
+ rejectBytes
7
8
  };
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  PatchPublication
3
- } from "../safe-bash/command-chunks/chunk-ZEGNRZV2.js";
3
+ } from "../safe-bash/command-chunks/chunk-PK36TVXB.js";
4
+ import "../safe-bash/command-chunks/chunk-73NYFNAS.js";
4
5
  import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
5
6
  export {
6
7
  PatchPublication
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  patchCommand
3
- } from "../safe-bash/command-chunks/chunk-3Q247UDJ.js";
4
- import "../safe-bash/command-chunks/chunk-ZEGNRZV2.js";
5
- import "../safe-bash/command-chunks/chunk-JKLOBSMP.js";
6
- import "../safe-bash/command-chunks/chunk-2VLAXKTS.js";
7
- import "../safe-bash/command-chunks/chunk-MOZD7RUY.js";
3
+ } from "../safe-bash/command-chunks/chunk-PKLJRB7W.js";
4
+ import "../safe-bash/command-chunks/chunk-PK36TVXB.js";
5
+ import "../safe-bash/command-chunks/chunk-CTDC4LJT.js";
6
+ import "../safe-bash/command-chunks/chunk-JORIVUPM.js";
8
7
  import "../safe-bash/command-chunks/chunk-OQNX2OOS.js";
9
8
  import "../safe-bash/command-chunks/chunk-AJEQUVDN.js";
10
- import "../safe-bash/command-chunks/chunk-JYTESTBS.js";
9
+ import "../safe-bash/command-chunks/chunk-63EMPQ7Z.js";
10
+ import "../safe-bash/command-chunks/chunk-73NYFNAS.js";
11
11
  import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
12
12
  export {
13
13
  patchCommand
@@ -24,12 +24,20 @@ export interface FilePatch {
24
24
  readonly format?: "unified" | "normal" | "context";
25
25
  }
26
26
  export declare function startIndex(start: number, count: number): number;
27
+ export interface PatchInput {
28
+ readonly length: number;
29
+ read(index: number): Promise<string | undefined>;
30
+ }
27
31
  export interface UnifiedCursor {
28
32
  readonly lines: readonly string[];
29
33
  index: number;
30
34
  }
31
- export declare function parseUnified(text: string, budget: Budget): Promise<FilePatch[]>;
32
- export declare function parseUnifiedSection(cursor: UnifiedCursor, budget: Budget): Promise<FilePatch[]>;
35
+ export interface IndexedUnifiedCursor {
36
+ readonly input: PatchInput;
37
+ index: number;
38
+ }
39
+ export declare function parseUnified(text: string | PatchInput, budget: Budget): Promise<FilePatch[]>;
40
+ export declare function parseUnifiedSection(cursor: IndexedUnifiedCursor | UnifiedCursor, budget: Budget): Promise<FilePatch[]>;
33
41
  export declare function reversePatch(patch: FilePatch): FilePatch;
34
42
  export interface HunkOutcome {
35
43
  readonly hunk: Hunk;
@@ -4,7 +4,7 @@ import {
4
4
  parseUnifiedSection,
5
5
  reversePatch,
6
6
  startIndex
7
- } from "../safe-bash/command-chunks/chunk-MOZD7RUY.js";
7
+ } from "../safe-bash/command-chunks/chunk-JORIVUPM.js";
8
8
  import "../safe-bash/command-chunks/chunk-AJEQUVDN.js";
9
9
  import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
10
10
  export {
@@ -1,6 +1,5 @@
1
1
  import { type CommandDefinition } from "../safe-bash-contracts/command.js";
2
2
  import type { VirtualShellPlugin } from "../safe-bash-contracts/plugin.js";
3
- import { PdfDocument } from "../pdf-ast/index.js";
4
3
  export interface PdftkLimits {
5
4
  readonly maxInputBytes: number;
6
5
  }
@@ -23,7 +22,12 @@ export interface ExpandedPageSelection {
23
22
  readonly pageNumber: number;
24
23
  readonly rotation?: RotationSpec | undefined;
25
24
  }
26
- export declare function parsePdftkRangeToken(token: string, handles: ReadonlyMap<string, PdfDocument>, defaultHandle: string): ExpandedPageSelection[];
25
+ export declare function parsePdftkRangeToken(token: string, handles: ReadonlyMap<string, {
26
+ readonly pageCount: number;
27
+ }>, defaultHandle: string): ExpandedPageSelection[];
28
+ export declare function iteratePdftkRangeToken(token: string, handles: ReadonlyMap<string, {
29
+ readonly pageCount: number;
30
+ }>, defaultHandle: string): Generator<ExpandedPageSelection>;
27
31
  export declare function runPdftkCli(argv: readonly string[], files: Map<string, Uint8Array>, signal?: AbortSignal): Promise<PdftkCliResult>;
28
32
  export declare function runPdftkCliSync(argv: readonly string[], files: Map<string, Uint8Array>, signal?: AbortSignal): PdftkCliResult;
29
33
  export declare function createPdftkCommand(options?: PdftkCommandOptions): CommandDefinition;