@poe-platform/safe-bash 0.1.809 → 0.1.811

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 (316) hide show
  1. package/dist/audio-ast/flac-source.d.ts +13 -0
  2. package/dist/audio-ast/index.d.ts +2 -1
  3. package/dist/audio-ast/index.js +254 -179
  4. package/dist/audio-ast/wav-source.d.ts +7 -1
  5. package/dist/image-ast/index.js +1 -1
  6. package/dist/json-ast/backed-json-parser.d.ts +12 -1
  7. package/dist/json-ast/index.d.ts +1 -1
  8. package/dist/office-xml/index.d.ts +1 -0
  9. package/dist/office-xml/retained-xml-edits.d.ts +22 -0
  10. package/dist/pdf-ast/cos/mutable-object-store.d.ts +3 -0
  11. package/dist/pdf-ast/cos/qpdf-json-document.d.ts +43 -0
  12. package/dist/pdf-ast/cos/qpdf-json-values.d.ts +7 -0
  13. package/dist/pdf-ast/index.d.ts +1 -0
  14. package/dist/pdf-ast/index.js +653 -87
  15. package/dist/pdf-ast/retained-document.d.ts +5 -1
  16. package/dist/safe-bash/audio-ast.browser.js +2 -1
  17. package/dist/safe-bash/chunks/{chunk-RQCK77SC.js → chunk-BUYRKFW2.js} +9 -36
  18. package/dist/safe-bash/chunks/{chunk-SOFBGDXG.js → chunk-HHSOUC3Z.js} +32 -0
  19. package/dist/safe-bash/chunks/{chunk-WAZEELYB.js → chunk-TPG55BAQ.js} +10 -7
  20. package/dist/safe-bash/command-chunks/biff-3EFLKBAH-NYWZOYQS.js +4942 -0
  21. package/dist/safe-bash/command-chunks/{chunk-HEHGHIE2.js → chunk-22MOB45U.js} +6 -6
  22. package/dist/safe-bash/command-chunks/{chunk-6DEWZMOL.js → chunk-2CORNDGF.js} +2 -2
  23. package/dist/safe-bash/command-chunks/{chunk-62ZAHKFS.js → chunk-2VCKUNDZ.js} +130 -14
  24. package/dist/safe-bash/command-chunks/{chunk-6UHGIWFX.js → chunk-2ZFLMWOX.js} +1 -1
  25. package/dist/safe-bash/command-chunks/{chunk-HONWGFDA.js → chunk-33YCKZZX.js} +6 -6
  26. package/dist/safe-bash/command-chunks/{chunk-AXWPJRY6.js → chunk-36XGIPOG.js} +1 -1
  27. package/dist/safe-bash/command-chunks/{chunk-32ADKP5E.js → chunk-456PHA3L.js} +1 -1
  28. package/dist/safe-bash/command-chunks/{chunk-UJXP3T6R.js → chunk-4CKFNXRN.js} +1 -1
  29. package/dist/safe-bash/command-chunks/{chunk-5L6GHFRW.js → chunk-554Z6IKP.js} +2 -2
  30. package/dist/safe-bash/command-chunks/{chunk-ORZRWT62.js → chunk-56NYSX65.js} +9 -9
  31. package/dist/safe-bash/command-chunks/{chunk-53JP3S6H.js → chunk-5HPU7D36.js} +4 -4
  32. package/dist/safe-bash/command-chunks/{chunk-NB7JO7FE.js → chunk-5LI2DLNZ.js} +26 -26
  33. package/dist/safe-bash/command-chunks/{chunk-YJJBGN7U.js → chunk-5MB64DWR.js} +9 -9
  34. package/dist/safe-bash/command-chunks/{chunk-3ZWBBS6U.js → chunk-5OO2P27R.js} +340 -34
  35. package/dist/safe-bash/command-chunks/{chunk-IC5GJI7E.js → chunk-5Q22ZLNC.js} +6 -6
  36. package/dist/safe-bash/command-chunks/{chunk-YO3V5RLY.js → chunk-6CCQI6XZ.js} +12 -12
  37. package/dist/safe-bash/command-chunks/{chunk-EO2IVGV7.js → chunk-6M6TM5Z5.js} +3 -3
  38. package/dist/safe-bash/command-chunks/{chunk-Z54Z3KRN.js → chunk-6QBMND4A.js} +1 -1
  39. package/dist/safe-bash/command-chunks/{chunk-INX4JMQ6.js → chunk-6VPQ3CDZ.js} +5 -5
  40. package/dist/safe-bash/command-chunks/chunk-72C3TZ2U.js +826 -0
  41. package/dist/safe-bash/command-chunks/{chunk-VGXVN3BX.js → chunk-7GKKMNL6.js} +8 -8
  42. package/dist/safe-bash/command-chunks/{chunk-TZJC67W3.js → chunk-7PVHO47B.js} +6 -6
  43. package/dist/safe-bash/command-chunks/{chunk-CM3C7AXJ.js → chunk-A2CLZMQZ.js} +1 -1
  44. package/dist/safe-bash/command-chunks/{chunk-ASR27KHW.js → chunk-A5FZBR7X.js} +4 -4
  45. package/dist/safe-bash/command-chunks/{chunk-DMDHE5KC.js → chunk-AHA6IWAJ.js} +6 -6
  46. package/dist/safe-bash/command-chunks/{chunk-PTZ55XXN.js → chunk-APEWTWCC.js} +6 -6
  47. package/dist/safe-bash/command-chunks/{chunk-YUVH6CE4.js → chunk-ATTWQVR2.js} +17 -17
  48. package/dist/safe-bash/command-chunks/{chunk-JON5DB3Z.js → chunk-B5LDP7AA.js} +2 -2
  49. package/dist/safe-bash/command-chunks/{chunk-CHJL6JMU.js → chunk-COKYZUBW.js} +1 -1
  50. package/dist/safe-bash/command-chunks/{chunk-KCTV4NVX.js → chunk-CRV2Q3PB.js} +1 -1
  51. package/dist/safe-bash/command-chunks/{chunk-V3WXPCKN.js → chunk-CV7M2QJU.js} +7 -7
  52. package/dist/safe-bash/command-chunks/{chunk-D7XBUF76.js → chunk-D2ASPM7R.js} +109 -23
  53. package/dist/safe-bash/command-chunks/{chunk-VPDSQPSN.js → chunk-DM2CPMB4.js} +2 -2
  54. package/dist/safe-bash/command-chunks/{chunk-3DTDMEOP.js → chunk-EAGIJ4VW.js} +1 -1
  55. package/dist/safe-bash/command-chunks/{chunk-WFDG3N5R.js → chunk-ECDEPKKW.js} +1 -1
  56. package/dist/safe-bash/command-chunks/{chunk-JW6CMBF2.js → chunk-EHSM5ZQS.js} +8 -8
  57. package/dist/safe-bash/command-chunks/{chunk-WIOH7ZQN.js → chunk-ENT3IV2G.js} +12 -12
  58. package/dist/safe-bash/command-chunks/{chunk-5IE4LJGB.js → chunk-EUT24Y5Z.js} +8 -8
  59. package/dist/safe-bash/command-chunks/{chunk-COKZFXHG.js → chunk-FIIAYCWS.js} +2 -2
  60. package/dist/safe-bash/command-chunks/{chunk-MWVFP2HY.js → chunk-GEM47B2P.js} +7 -7
  61. package/dist/safe-bash/command-chunks/{chunk-OQCJGUI6.js → chunk-HARUYHH7.js} +10 -10
  62. package/dist/safe-bash/command-chunks/{chunk-EHL6B34L.js → chunk-HDJVJTCK.js} +9 -9
  63. package/dist/safe-bash/command-chunks/{chunk-JMM3MNAY.js → chunk-HKATEVAP.js} +6 -6
  64. package/dist/safe-bash/command-chunks/{chunk-NVBUC644.js → chunk-HKGNBH7Z.js} +2 -2
  65. package/dist/safe-bash/command-chunks/{chunk-VWY3EAVQ.js → chunk-HTVIYLVB.js} +4 -4
  66. package/dist/safe-bash/command-chunks/{chunk-Z4QJMDK3.js → chunk-IT7TAC3F.js} +16 -16
  67. package/dist/safe-bash/command-chunks/{chunk-EWS4KYJE.js → chunk-JFYWVQ4V.js} +8 -8
  68. package/dist/safe-bash/command-chunks/{chunk-ZCX63QWA.js → chunk-JOCFI7TG.js} +1 -1
  69. package/dist/safe-bash/command-chunks/{chunk-F5WTH4O4.js → chunk-JQVHUSDD.js} +5 -5
  70. package/dist/safe-bash/command-chunks/{chunk-O4VJEGL6.js → chunk-K5GB2YMN.js} +10 -10
  71. package/dist/safe-bash/command-chunks/{chunk-27C3NT5V.js → chunk-KB7DUBVL.js} +5 -5
  72. package/dist/safe-bash/command-chunks/{chunk-4DZ32PI7.js → chunk-KCOJA7EM.js} +7 -7
  73. package/dist/safe-bash/command-chunks/{chunk-6OKH4X67.js → chunk-KJ4XXZIL.js} +273 -10
  74. package/dist/safe-bash/command-chunks/{chunk-GLVD3JJG.js → chunk-KL3OIBKB.js} +4712 -4654
  75. package/dist/safe-bash/command-chunks/{chunk-U6QHTC5J.js → chunk-L5MCW6CM.js} +4 -4
  76. package/dist/safe-bash/command-chunks/{chunk-LVL3A7YE.js → chunk-LCZDBW55.js} +5 -5
  77. package/dist/safe-bash/command-chunks/{chunk-DJVRDUCA.js → chunk-LXLLA4PM.js} +17 -17
  78. package/dist/safe-bash/command-chunks/{chunk-K7AGAS3K.js → chunk-M7QE2MN7.js} +6 -6
  79. package/dist/safe-bash/command-chunks/chunk-MGBHGZEX.js +12 -0
  80. package/dist/safe-bash/command-chunks/{chunk-SWT6ILF2.js → chunk-MPUHH2KR.js} +3 -3
  81. package/dist/safe-bash/command-chunks/{chunk-DC3OJLRB.js → chunk-NQDIT667.js} +5 -5
  82. package/dist/safe-bash/command-chunks/{chunk-LWZVDDJA.js → chunk-NUGQQDGE.js} +5 -1
  83. package/dist/safe-bash/command-chunks/{chunk-MFLQZLFR.js → chunk-OA75SGN2.js} +7 -7
  84. package/dist/safe-bash/command-chunks/{chunk-5LATYOF7.js → chunk-OEJM666F.js} +5 -5
  85. package/dist/safe-bash/command-chunks/{chunk-AF25YYIO.js → chunk-PMAM4N33.js} +9 -9
  86. package/dist/safe-bash/command-chunks/{chunk-4557HE3J.js → chunk-PMWW7KSB.js} +161 -42
  87. package/dist/safe-bash/command-chunks/{chunk-KMMAJ6H6.js → chunk-PNGDJA6M.js} +2 -2
  88. package/dist/safe-bash/command-chunks/{chunk-62BHPSKJ.js → chunk-Q6S57NOQ.js} +7 -7
  89. package/dist/safe-bash/command-chunks/{chunk-KJ3PEDI2.js → chunk-Q73EMLLZ.js} +146 -4
  90. package/dist/safe-bash/command-chunks/{chunk-FXKBM5KJ.js → chunk-QC5RMGSA.js} +3 -3
  91. package/dist/safe-bash/command-chunks/{chunk-UQ6UIZMM.js → chunk-QD7ZRDUN.js} +1 -1
  92. package/dist/safe-bash/command-chunks/{chunk-JHUYZZGV.js → chunk-QYMEASQ6.js} +4 -4
  93. package/dist/safe-bash/command-chunks/{chunk-3GY5VDIX.js → chunk-QZZ73J2O.js} +6 -6
  94. package/dist/safe-bash/command-chunks/{chunk-S2CYIGWH.js → chunk-R6EGGK5M.js} +7 -7
  95. package/dist/safe-bash/command-chunks/{chunk-7AVN3OBH.js → chunk-RHYJVTJO.js} +2 -2
  96. package/dist/safe-bash/command-chunks/{chunk-EWGDSO6U.js → chunk-RID6VYS3.js} +8 -8
  97. package/dist/safe-bash/command-chunks/{chunk-MMBRBANA.js → chunk-RNSKXOG3.js} +6 -6
  98. package/dist/safe-bash/command-chunks/{chunk-D3ZRZTY5.js → chunk-RQIQ75W5.js} +5 -5
  99. package/dist/safe-bash/command-chunks/{chunk-DWKQPLRT.js → chunk-RRL3Y562.js} +11 -11
  100. package/dist/safe-bash/command-chunks/{chunk-JW3KIZU6.js → chunk-RUXY7GN5.js} +1 -1
  101. package/dist/safe-bash/command-chunks/{chunk-NXCMXD74.js → chunk-S6R3IB36.js} +1 -1
  102. package/dist/safe-bash/command-chunks/{chunk-XUPKFHAQ.js → chunk-SDTPO2VV.js} +7 -7
  103. package/dist/safe-bash/command-chunks/{chunk-PIAGKRFW.js → chunk-SPLOIABU.js} +3 -3
  104. package/dist/safe-bash/command-chunks/{chunk-KELMIFVV.js → chunk-TI52LKLL.js} +1 -1
  105. package/dist/safe-bash/command-chunks/{chunk-WLTJDNSQ.js → chunk-TVH4JORU.js} +3 -3
  106. package/dist/safe-bash/command-chunks/{chunk-6XVMWFHD.js → chunk-TW73OXPR.js} +6 -6
  107. package/dist/safe-bash/command-chunks/{chunk-SFO43CID.js → chunk-UAXSE3XE.js} +5 -5
  108. package/dist/safe-bash/command-chunks/{chunk-K35BSUHO.js → chunk-UYWSIIUX.js} +7 -7
  109. package/dist/safe-bash/command-chunks/{chunk-JJQ72P3V.js → chunk-VCML4T5D.js} +1 -1
  110. package/dist/safe-bash/command-chunks/{chunk-DCD32BEY.js → chunk-VU3EQF7F.js} +91 -53
  111. package/dist/safe-bash/command-chunks/{chunk-2E2YEDVB.js → chunk-W5YSINXC.js} +6 -6
  112. package/dist/safe-bash/command-chunks/{chunk-EYNT4OEJ.js → chunk-WGG6G2KG.js} +7 -7
  113. package/dist/safe-bash/command-chunks/chunk-WH3TIOTS.js +326 -0
  114. package/dist/safe-bash/command-chunks/{chunk-DVQBZXMQ.js → chunk-WJCN2IXI.js} +2 -2
  115. package/dist/safe-bash/command-chunks/{chunk-45FI2IPY.js → chunk-WQ6ABTJU.js} +3 -6
  116. package/dist/safe-bash/command-chunks/{chunk-XBZ4ZWGL.js → chunk-WVMHRNXZ.js} +3 -3
  117. package/dist/safe-bash/command-chunks/{chunk-7GXUCQI4.js → chunk-WXRYDALR.js} +4 -4
  118. package/dist/safe-bash/command-chunks/{chunk-S4IIOSRA.js → chunk-X7FA7ZD5.js} +8 -8
  119. package/dist/safe-bash/command-chunks/{chunk-SFCERNHU.js → chunk-XPD636C4.js} +3 -3
  120. package/dist/safe-bash/command-chunks/{chunk-HYDWQLJ3.js → chunk-XRVKWGVQ.js} +6 -6
  121. package/dist/safe-bash/command-chunks/{chunk-3UJWHRK4.js → chunk-XVP6V5K3.js} +6 -6
  122. package/dist/safe-bash/command-chunks/{chunk-KTI3BULE.js → chunk-XZ2FWFNV.js} +6 -6
  123. package/dist/safe-bash/command-chunks/{chunk-QK3CHRGL.js → chunk-Y4EYCZFT.js} +10 -10
  124. package/dist/safe-bash/command-chunks/{chunk-GTWVMFBK.js → chunk-YORJDX4V.js} +4 -4
  125. package/dist/safe-bash/command-chunks/{chunk-H6F5SN2N.js → chunk-YSMNXMAO.js} +4 -4
  126. package/dist/safe-bash/command-chunks/{chunk-GKYCV6BU.js → chunk-YSY6R6AS.js} +493 -183
  127. package/dist/safe-bash/command-chunks/{chunk-SE5SJ4JT.js → chunk-Z2JW6M2D.js} +3 -3
  128. package/dist/safe-bash/command-chunks/{chunk-5HGEXQVD.js → chunk-ZHRGYR7B.js} +7 -7
  129. package/dist/safe-bash/command-chunks/{chunk-HQYFRQ5W.js → chunk-ZIIO6GRY.js} +7 -7
  130. package/dist/safe-bash/command-chunks/{chunk-NTRZMQZP.js → chunk-ZMHEGDU2.js} +2 -2
  131. package/dist/safe-bash/command-chunks/{chunk-EYBXHGA6.js → chunk-ZXR6LXV5.js} +2 -2
  132. package/dist/safe-bash/command-chunks/{command-engine-P5DFM4OU.js → command-engine-BEWABZ75.js} +10 -3
  133. package/dist/safe-bash/command-chunks/{engine-RU4OFLPO-CPLFYD67.js → engine-AXXFTGCL-QBQNBI6K.js} +1 -1
  134. package/dist/safe-bash/command-chunks/pdf-XHHFTOT4-UJJYOYJ2.js +573 -0
  135. package/dist/safe-bash/commands/audio/index.browser.js +2 -14
  136. package/dist/safe-bash/commands/diff-patch/index.js +0 -5
  137. package/dist/safe-bash/commands/diff3/index.js +0 -2
  138. package/dist/safe-bash/commands/ffprobe/index.browser.js +2 -5
  139. package/dist/safe-bash/commands/pandoc/index.browser.js +3 -1
  140. package/dist/safe-bash/commands/text.js +10 -1
  141. package/dist/safe-bash/core.d.ts +2 -2
  142. package/dist/safe-bash/core.js +2 -2
  143. package/dist/safe-bash/full-core.browser.js +18 -22
  144. package/dist/safe-bash/lazy-optional.d.ts +9 -0
  145. package/dist/safe-bash/lazy-optional.js +24 -0
  146. package/dist/safe-bash/plugins/index.browser.js +5 -3
  147. package/dist/safe-bash/plugins/index.js +3 -1
  148. package/dist/safe-bash/plugins/portable-commands.d.ts +1 -1
  149. package/dist/safe-bash/plugins/portable-commands.js +5 -3
  150. package/dist/safe-bash/registry-entry.browser.js +1 -1
  151. package/dist/safe-bash-command-apply-patch/apply.js +2 -2
  152. package/dist/safe-bash-command-apply-patch/index.js +2 -2
  153. package/dist/safe-bash-command-apply-patch/parser.d.ts +20 -1
  154. package/dist/safe-bash-command-apply-patch/parser.js +1 -1
  155. package/dist/safe-bash-command-diff/index.js +0 -2
  156. package/dist/safe-bash-command-diff3/index.js +830 -56
  157. package/dist/safe-bash-command-ffmpeg/index.js +1 -1
  158. package/dist/safe-bash-command-ffprobe/index.js +3 -2
  159. package/dist/safe-bash-command-ffprobe/media.js +3 -2
  160. package/dist/safe-bash-command-ffprobe/options.d.ts +15 -0
  161. package/dist/safe-bash-command-ffprobe/options.js +7 -0
  162. package/dist/safe-bash-command-html-to-markdown/index.js +75 -21
  163. package/dist/safe-bash-command-media/index.js +2 -2
  164. package/dist/safe-bash-command-media/plugin.js +1 -1
  165. package/dist/safe-bash-command-media/remote.js +2 -2
  166. package/dist/safe-bash-command-pandoc/command.js +8 -8
  167. package/dist/safe-bash-command-pandoc/execution.d.ts +2 -2
  168. package/dist/safe-bash-command-pandoc/index.d.ts +1 -1
  169. package/dist/safe-bash-command-pandoc/index.js +37 -37
  170. package/dist/safe-bash-command-pandoc/lua-filters.js +2 -2
  171. package/dist/safe-bash-command-pandoc/types.d.ts +17 -2
  172. package/dist/safe-bash-command-patch/index.js +2 -2
  173. package/dist/safe-bash-command-patch/patch-publication.d.ts +2 -2
  174. package/dist/safe-bash-command-patch/patch-publication.js +1 -1
  175. package/dist/safe-bash-command-patch/patch.js +2 -2
  176. package/dist/safe-bash-command-pdftk/index.js +616 -265
  177. package/dist/safe-bash-command-pptx/engine.js +1 -1
  178. package/dist/safe-bash-command-qpdf/index.js +115 -9
  179. package/dist/safe-bash-command-soffice/index.js +1 -1
  180. package/dist/safe-bash-command-ssconvert/index.js +2 -2
  181. package/dist/safe-bash-command-xmllint/index.js +137 -30
  182. package/dist/safe-bash-command-xq/index.js +45 -29
  183. package/dist/safe-bash-compression-engine/bounded-codec.js +2 -2
  184. package/dist/safe-bash-compression-engine/codec-loader.js +1 -1
  185. package/dist/safe-bash-compression-engine/files.js +5 -5
  186. package/dist/safe-bash-compression-engine/index.js +4 -4
  187. package/dist/safe-bash-compression-engine/operand.js +5 -5
  188. package/dist/safe-bash-compression-engine/stream.js +4 -4
  189. package/dist/safe-bash-compression-engine/zstd-decode.js +3 -3
  190. package/dist/safe-bash-media-engine/imagemagick.d.ts +2 -0
  191. package/dist/safe-bash-media-engine/index.js +162 -72
  192. package/dist/safe-bash-network-engine/body.d.ts +1 -0
  193. package/dist/safe-bash-network-engine/body.js +1 -1
  194. package/dist/safe-bash-network-engine/transfer.js +11 -3
  195. package/dist/safe-bash-presentation-engine/accessibility.js +30 -30
  196. package/dist/safe-bash-presentation-engine/animation-editing.js +15 -15
  197. package/dist/safe-bash-presentation-engine/animations.js +15 -15
  198. package/dist/safe-bash-presentation-engine/backgrounds.js +16 -16
  199. package/dist/safe-bash-presentation-engine/bytes.js +3 -3
  200. package/dist/safe-bash-presentation-engine/chart-editing.js +33 -33
  201. package/dist/safe-bash-presentation-engine/chart-object-operations.js +24 -24
  202. package/dist/safe-bash-presentation-engine/charts.js +30 -30
  203. package/dist/safe-bash-presentation-engine/command-placeholder.js +55 -54
  204. package/dist/safe-bash-presentation-engine/comments.js +16 -16
  205. package/dist/safe-bash-presentation-engine/connector-operations.js +31 -31
  206. package/dist/safe-bash-presentation-engine/connectors.js +28 -28
  207. package/dist/safe-bash-presentation-engine/content-types.js +4 -4
  208. package/dist/safe-bash-presentation-engine/creation.js +6 -6
  209. package/dist/safe-bash-presentation-engine/diff.js +31 -31
  210. package/dist/safe-bash-presentation-engine/drawing-format.js +19 -19
  211. package/dist/safe-bash-presentation-engine/drawing-operations.js +30 -30
  212. package/dist/safe-bash-presentation-engine/drawing-schema.js +20 -20
  213. package/dist/safe-bash-presentation-engine/equations.js +16 -16
  214. package/dist/safe-bash-presentation-engine/errors.js +2 -2
  215. package/dist/safe-bash-presentation-engine/fields.js +16 -16
  216. package/dist/safe-bash-presentation-engine/font-metrics.js +3 -3
  217. package/dist/safe-bash-presentation-engine/image-extraction.js +19 -19
  218. package/dist/safe-bash-presentation-engine/image-formatting.js +31 -31
  219. package/dist/safe-bash-presentation-engine/image-insertion.js +17 -17
  220. package/dist/safe-bash-presentation-engine/image-replacement.js +20 -20
  221. package/dist/safe-bash-presentation-engine/image-value.js +4 -4
  222. package/dist/safe-bash-presentation-engine/images.js +18 -18
  223. package/dist/safe-bash-presentation-engine/index.d.ts +2 -2
  224. package/dist/safe-bash-presentation-engine/index.js +100 -93
  225. package/dist/safe-bash-presentation-engine/layouts.js +15 -15
  226. package/dist/safe-bash-presentation-engine/length.js +3 -3
  227. package/dist/safe-bash-presentation-engine/links.js +15 -15
  228. package/dist/safe-bash-presentation-engine/masters.js +14 -14
  229. package/dist/safe-bash-presentation-engine/media-editing.js +23 -23
  230. package/dist/safe-bash-presentation-engine/media-extraction.js +16 -16
  231. package/dist/safe-bash-presentation-engine/media.js +15 -15
  232. package/dist/safe-bash-presentation-engine/memberships.js +14 -14
  233. package/dist/safe-bash-presentation-engine/notes.js +15 -15
  234. package/dist/safe-bash-presentation-engine/ole-enum.js +4 -4
  235. package/dist/safe-bash-presentation-engine/ole-insertion.js +19 -19
  236. package/dist/safe-bash-presentation-engine/opaque-objects.js +9 -9
  237. package/dist/safe-bash-presentation-engine/package-reader.js +5 -5
  238. package/dist/safe-bash-presentation-engine/package-tools.js +15 -15
  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 +54 -53
  242. package/dist/safe-bash-presentation-engine/presentation-settings.js +13 -13
  243. package/dist/safe-bash-presentation-engine/properties.js +15 -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-inspection.js +12 -12
  247. package/dist/safe-bash-presentation-engine/retained-package.js +4 -4
  248. package/dist/safe-bash-presentation-engine/retained-slide-settings.d.ts +15 -0
  249. package/dist/safe-bash-presentation-engine/retained-text.js +19 -19
  250. package/dist/safe-bash-presentation-engine/retained-xml-parts.d.ts +26 -0
  251. package/dist/safe-bash-presentation-engine/sanitize.js +16 -16
  252. package/dist/safe-bash-presentation-engine/selectors.js +10 -10
  253. package/dist/safe-bash-presentation-engine/shape-groups.js +30 -30
  254. package/dist/safe-bash-presentation-engine/shape-operations.js +29 -29
  255. package/dist/safe-bash-presentation-engine/shape-path-operations.js +31 -31
  256. package/dist/safe-bash-presentation-engine/shape-paths.js +15 -15
  257. package/dist/safe-bash-presentation-engine/shape-presets.js +3 -3
  258. package/dist/safe-bash-presentation-engine/shape-selection.js +30 -30
  259. package/dist/safe-bash-presentation-engine/shape-transforms.js +17 -17
  260. package/dist/safe-bash-presentation-engine/shapes.js +26 -26
  261. package/dist/safe-bash-presentation-engine/slide-copy.js +16 -16
  262. package/dist/safe-bash-presentation-engine/slide-import.js +17 -17
  263. package/dist/safe-bash-presentation-engine/slide-merge-split.js +19 -19
  264. package/dist/safe-bash-presentation-engine/slide-model.js +42 -42
  265. package/dist/safe-bash-presentation-engine/slide-removal.js +17 -17
  266. package/dist/safe-bash-presentation-engine/slide-transfer-budget.js +9 -9
  267. package/dist/safe-bash-presentation-engine/slides.d.ts +2 -0
  268. package/dist/safe-bash-presentation-engine/slides.js +21 -16
  269. package/dist/safe-bash-presentation-engine/table-operations.js +32 -32
  270. package/dist/safe-bash-presentation-engine/table-spans.js +31 -31
  271. package/dist/safe-bash-presentation-engine/tables.js +30 -30
  272. package/dist/safe-bash-presentation-engine/tags.js +15 -15
  273. package/dist/safe-bash-presentation-engine/template-bindings.js +32 -32
  274. package/dist/safe-bash-presentation-engine/template-repeat.js +39 -39
  275. package/dist/safe-bash-presentation-engine/text-fitting.js +26 -26
  276. package/dist/safe-bash-presentation-engine/text-frames.js +26 -26
  277. package/dist/safe-bash-presentation-engine/text-paragraphs.js +26 -26
  278. package/dist/safe-bash-presentation-engine/text-reading.js +11 -11
  279. package/dist/safe-bash-presentation-engine/text-replacement.js +16 -16
  280. package/dist/safe-bash-presentation-engine/text-runs.js +19 -19
  281. package/dist/safe-bash-presentation-engine/themes.js +15 -15
  282. package/dist/safe-bash-presentation-engine/transitions.js +15 -15
  283. package/dist/safe-bash-presentation-engine/validation.js +9 -9
  284. package/dist/safe-bash-presentation-engine/xml-parts.d.ts +1 -0
  285. package/dist/safe-bash-presentation-engine/xml-parts.js +19 -13
  286. package/dist/safe-bash-presentation-engine/xml-view.js +3 -3
  287. package/dist/safe-bash-presentation-engine/xml.js +3 -3
  288. package/dist/safe-bash-xml-engine/document.js +1 -1
  289. package/dist/safe-bash-xml-engine/index.js +1 -1
  290. package/dist/safe-bash-xml-engine/json.d.ts +1 -0
  291. package/dist/safe-bash-xml-engine/json.js +203 -0
  292. package/dist/safe-bash-xml-engine/stored-json.d.ts +5 -0
  293. package/dist/spreadsheet-engine/rendering/print/bidi-runs.d.ts +5 -0
  294. package/dist/spreadsheet-engine/rendering/print/bidi-runs.js +35 -0
  295. package/dist/spreadsheet-engine/rendering/print/control-bidi.d.ts +8 -0
  296. package/dist/spreadsheet-engine/rendering/print/control-bidi.js +80 -0
  297. package/dist/spreadsheet-engine/rendering/print/tab-layout.d.ts +11 -0
  298. package/dist/spreadsheet-engine/rendering/print/tab-layout.js +15 -0
  299. package/dist/spreadsheet-engine/rendering/print/text-lines.d.ts +2 -2
  300. package/dist/spreadsheet-engine/rendering/print/text-lines.js +3 -3
  301. package/dist/spreadsheet-format-xls/biff-encrypted-properties.d.ts +5 -1
  302. package/dist/spreadsheet-format-xls/biff-encrypted-properties.js +151 -57
  303. package/dist/spreadsheet-format-xls/biff-encryption.d.ts +1 -1
  304. package/dist/spreadsheet-format-xls/biff-encryption.js +8 -3
  305. package/dist/spreadsheet-format-xls/biff-property-bytes.d.ts +4 -1
  306. package/dist/spreadsheet-format-xls/biff-property-bytes.js +3 -3
  307. package/dist/spreadsheet-format-xls/biff-range.js +1 -1
  308. package/dist/spreadsheet-format-xls/biff.js +11 -3
  309. package/package.json +6 -2
  310. package/dist/safe-bash/chunks/chunk-I2A5ZCPD.js +0 -17
  311. package/dist/safe-bash/chunks/chunk-PQTT2EZP.js +0 -8
  312. package/dist/safe-bash/command-chunks/biff-DS263V2K-2GP4GZT7.js +0 -4868
  313. package/dist/safe-bash/command-chunks/chunk-6ZFYWT3U.js +0 -581
  314. package/dist/safe-bash/command-chunks/chunk-S244SWDH.js +0 -153
  315. package/dist/safe-bash/command-chunks/pdf-T7AWYZGQ-KNAYJ7YF.js +0 -552
  316. /package/dist/safe-bash/command-chunks/{chunk-EMMSXKEJ.js → chunk-4Q4R3VZU.js} +0 -0
@@ -20,7 +20,7 @@ import {
20
20
  sliceMp4,
21
21
  srtAst,
22
22
  webvttAst
23
- } from "../safe-bash/command-chunks/chunk-DCD32BEY.js";
23
+ } from "../safe-bash/command-chunks/chunk-VU3EQF7F.js";
24
24
  import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
25
25
 
26
26
  // packages/safe-bash-command-ffmpeg/src/index.ts
@@ -1,7 +1,8 @@
1
1
  import {
2
2
  createFfprobeCommand
3
- } from "../safe-bash/command-chunks/chunk-GKYCV6BU.js";
4
- import "../safe-bash/command-chunks/chunk-DCD32BEY.js";
3
+ } from "../safe-bash/command-chunks/chunk-YSY6R6AS.js";
4
+ import "../safe-bash/command-chunks/chunk-MGBHGZEX.js";
5
+ import "../safe-bash/command-chunks/chunk-VU3EQF7F.js";
5
6
  import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
6
7
 
7
8
  // packages/safe-bash-command-ffprobe/src/index.ts
@@ -10,8 +10,9 @@ import {
10
10
  loadManifestResources,
11
11
  resolvePath,
12
12
  rethrowRuntimeError
13
- } from "../safe-bash/command-chunks/chunk-GKYCV6BU.js";
14
- import "../safe-bash/command-chunks/chunk-DCD32BEY.js";
13
+ } from "../safe-bash/command-chunks/chunk-YSY6R6AS.js";
14
+ import "../safe-bash/command-chunks/chunk-MGBHGZEX.js";
15
+ import "../safe-bash/command-chunks/chunk-VU3EQF7F.js";
15
16
  import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
16
17
  export {
17
18
  createFfprobeCommand,
@@ -0,0 +1,15 @@
1
+ import type { MediaResourceLimits } from "../mp4-ast/index.js";
2
+ /** Normalize registration limits without evaluating the media engines. */
3
+ export declare function resolveFfprobeLimits(options: MediaResourceLimits | undefined): {
4
+ maxInputBytes: number | undefined;
5
+ maxOutputBytes: number | undefined;
6
+ maxMemoryBytes?: number | undefined;
7
+ maxFrames?: number | undefined;
8
+ maxPixelsPerFrame?: number | undefined;
9
+ maxDurationSeconds?: number | undefined;
10
+ maxStreams?: number | undefined;
11
+ maxSamplesPerTrack?: number | undefined;
12
+ maxConcatInputs?: number | undefined;
13
+ maxBoxDepth?: number | undefined;
14
+ maxCpuMs?: number | undefined;
15
+ };
@@ -0,0 +1,7 @@
1
+ import {
2
+ resolveFfprobeLimits
3
+ } from "../safe-bash/command-chunks/chunk-MGBHGZEX.js";
4
+ import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
5
+ export {
6
+ resolveFfprobeLimits
7
+ };
@@ -92,7 +92,7 @@ var StoredBuilder = class {
92
92
  // packages/safe-bash-command-html-to-markdown/src/stored-destination.ts
93
93
  var alpha = (character) => character >= "A" && character <= "Z" || character >= "a" && character <= "z";
94
94
  var digit = (character) => character >= "0" && character <= "9";
95
- async function asciiHost(text, root, budget) {
95
+ async function asciiHost(text, root, budget, validatePunycode = true) {
96
96
  const parts = [];
97
97
  let count = 0, length = 0, prefix = "", radix = 10, valid = true, decimal = true, value = 0;
98
98
  let previous, last;
@@ -120,7 +120,7 @@ async function asciiHost(text, root, budget) {
120
120
  continue;
121
121
  }
122
122
  if (prefix.length < 4) prefix += character.toLowerCase();
123
- if (prefix === "xn--") return void 0;
123
+ if (validatePunycode && prefix === "xn--") return void 0;
124
124
  decimal &&= digit(character);
125
125
  if (length === 0 && character === "0") radix = 8;
126
126
  if (length === 1 && prefix === "0x") radix = 16;
@@ -185,29 +185,83 @@ async function decodeHost(text, root, budget) {
185
185
  if (percent || !await flush(true)) return 0;
186
186
  return result.finish();
187
187
  }
188
+ async function idnaHost(text, root, budget) {
189
+ const domain = text.builder();
190
+ let unicode = false;
191
+ for await (const character of text.characters(root)) {
192
+ budget.work(character.length);
193
+ const checkpoint = budget.checkpoint();
194
+ if (checkpoint) await checkpoint;
195
+ if (character.codePointAt(0) > 127) {
196
+ unicode = true;
197
+ break;
198
+ }
199
+ }
200
+ const suffix = unicode ? "\xE9" : "invalid", mappedSuffix = unicode ? ".xn--9ca" : ".invalid";
201
+ let label = text.builder(), native = false, prefix = "";
202
+ const finish = async () => {
203
+ const value = await label.finish();
204
+ if (native) {
205
+ let input = "";
206
+ for await (const chunk of text.chunks(value)) {
207
+ budget.work(chunk.length);
208
+ input += chunk;
209
+ const checkpoint = budget.checkpoint();
210
+ if (checkpoint) await checkpoint;
211
+ }
212
+ let mapped;
213
+ try {
214
+ const hostname2 = new URL(`http://${input}.${suffix}/`).hostname;
215
+ if (!hostname2.endsWith(mappedSuffix)) return false;
216
+ mapped = hostname2.slice(0, -mappedSuffix.length);
217
+ } catch {
218
+ return false;
219
+ }
220
+ await domain.write(mapped);
221
+ } else await domain.append(value);
222
+ label = text.builder();
223
+ native = false;
224
+ prefix = "";
225
+ return true;
226
+ };
227
+ for await (const character of text.characters(root)) {
228
+ budget.work(character.length);
229
+ const checkpoint = budget.checkpoint();
230
+ if (checkpoint) await checkpoint;
231
+ const code = character.codePointAt(0);
232
+ if (code <= 32 || code === 127 || "#%/:<>?@[\\]^|".includes(character)) return 0;
233
+ if (character === "." || character === "\u3002" || character === "\uFF0E" || character === "\uFF61") {
234
+ if (!await finish()) return 0;
235
+ await domain.write(".");
236
+ } else {
237
+ if (prefix.length < 4) prefix += character.toLowerCase();
238
+ native ||= code > 127 || prefix === "xn--";
239
+ await label.write(character);
240
+ }
241
+ }
242
+ return await finish() ? domain.finish() : 0;
243
+ }
188
244
  async function hostname(text, root, budget) {
189
245
  if (!root) return false;
190
246
  const first = await text.at(root, 0);
191
- if (first !== "[") {
192
- if (await text.includes(root, "%")) {
193
- root = await decodeHost(text, root, budget);
194
- if (!root) return false;
195
- }
196
- const ascii = await asciiHost(text, root, budget);
197
- if (ascii !== void 0) return ascii;
198
- } else if ((await text.info(root)).length > 47) return false;
199
- let host = "";
200
- for await (const chunk of text.chunks(root)) {
201
- budget.work(chunk.length);
202
- host += chunk;
203
- const checkpoint = budget.checkpoint();
204
- if (checkpoint) await checkpoint;
247
+ if (first === "[") {
248
+ if ((await text.info(root)).length > 47) return false;
249
+ let host = "";
250
+ for await (const chunk of text.chunks(root)) host += chunk;
251
+ try {
252
+ return Boolean(new URL(`http://${host}/`).hostname);
253
+ } catch {
254
+ return false;
255
+ }
205
256
  }
206
- try {
207
- return Boolean(new URL(`http://${host}/`).hostname);
208
- } catch {
209
- return false;
257
+ if (await text.includes(root, "%")) {
258
+ root = await decodeHost(text, root, budget);
259
+ if (!root) return false;
210
260
  }
261
+ const ascii = await asciiHost(text, root, budget);
262
+ if (ascii !== void 0) return ascii;
263
+ const mapped = await idnaHost(text, root, budget);
264
+ return mapped !== 0 && await asciiHost(text, mapped, budget, false) === true;
211
265
  }
212
266
  async function authority(text, root, start, budget) {
213
267
  let offset = start, first = start, last = start, hostStart = start, began = false;
@@ -789,7 +843,7 @@ var TextStore = class {
789
843
  storage;
790
844
  cooperate;
791
845
  encoder = new TextEncoder();
792
- decoder = new TextDecoder();
846
+ decoder = new TextDecoder("utf-8", { ignoreBOM: true });
793
847
  async info(root) {
794
848
  if (!root) return empty;
795
849
  const bytes = await this.storage.read(root, 48);
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createRemoteMediaCommands
3
- } from "../safe-bash/command-chunks/chunk-JJQ72P3V.js";
3
+ } from "../safe-bash/command-chunks/chunk-VCML4T5D.js";
4
4
  import "../safe-bash/command-chunks/chunk-NLTTN4CJ.js";
5
5
  import "../safe-bash/command-chunks/chunk-7WIC7SFR.js";
6
6
  import {
7
7
  createMediaCommand,
8
8
  createMediaCommands,
9
9
  mediaCommands
10
- } from "../safe-bash/command-chunks/chunk-45FI2IPY.js";
10
+ } from "../safe-bash/command-chunks/chunk-WQ6ABTJU.js";
11
11
  import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
12
12
 
13
13
  // packages/safe-bash-command-media/src/index.ts
@@ -2,7 +2,7 @@ import {
2
2
  createMediaCommand,
3
3
  createMediaCommands,
4
4
  mediaCommands
5
- } from "../safe-bash/command-chunks/chunk-45FI2IPY.js";
5
+ } from "../safe-bash/command-chunks/chunk-WQ6ABTJU.js";
6
6
  import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
7
7
  export {
8
8
  createMediaCommand,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createRemoteMediaCommands,
3
3
  mediaFrontendContract
4
- } from "../safe-bash/command-chunks/chunk-JJQ72P3V.js";
4
+ } from "../safe-bash/command-chunks/chunk-VCML4T5D.js";
5
5
  import "../safe-bash/command-chunks/chunk-NLTTN4CJ.js";
6
6
  import "../safe-bash/command-chunks/chunk-7WIC7SFR.js";
7
- import "../safe-bash/command-chunks/chunk-45FI2IPY.js";
7
+ import "../safe-bash/command-chunks/chunk-WQ6ABTJU.js";
8
8
  import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
9
9
  export {
10
10
  createRemoteMediaCommands,
@@ -1,22 +1,22 @@
1
1
  import {
2
- Mh,
3
2
  eR,
4
- tR
5
- } from "../safe-bash/command-chunks/chunk-GLVD3JJG.js";
3
+ iR,
4
+ jh
5
+ } from "../safe-bash/command-chunks/chunk-KL3OIBKB.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";
9
- import "../safe-bash/command-chunks/chunk-3DTDMEOP.js";
10
- import "../safe-bash/command-chunks/chunk-LWZVDDJA.js";
9
+ import "../safe-bash/command-chunks/chunk-EAGIJ4VW.js";
10
+ import "../safe-bash/command-chunks/chunk-NUGQQDGE.js";
11
11
  import "../safe-bash/command-chunks/chunk-Z2T7E4ID.js";
12
12
  import "../safe-bash/command-chunks/chunk-MO4CWGBR.js";
13
13
  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
- Mh as createPandocCommand,
18
- tR as createPandocCommands,
19
- eR as pandocCommands
17
+ jh as createPandocCommand,
18
+ eR as createPandocCommands,
19
+ iR as pandocCommands
20
20
  };
21
21
  /*!
22
22
  MIT License
@@ -1,4 +1,4 @@
1
- import type { AdapterContext, ConversionContext, Diagnostic, DiagnosticCode, Limits, Operation } from "./types.js";
1
+ import type { AdapterContext, ConversionContext, Diagnostic, DiagnosticCode, Limits, Operation, ResourceIdentifier } from "./types.js";
2
2
  /** Resource budgets are opt-in. No ambient environment settings. */
3
3
  export declare const defaultLimits: Limits;
4
4
  type Chunks = AsyncIterable<Uint8Array> | Iterable<Uint8Array>;
@@ -42,7 +42,7 @@ export declare class ExecutionContext implements AdapterContext {
42
42
  call<T>(callback: () => Promise<T>): Promise<T>;
43
43
  consume(chunks: Chunks, accept: (bytes: Uint8Array) => Promise<void>, budgets?: readonly (keyof Limits)[], retain?: boolean): Promise<void>;
44
44
  /** Consume a custom resource directly into the caller-owned destination. */
45
- consumeResource(id: string, base: string | undefined, accept: (bytes: Uint8Array) => Promise<void>): Promise<number>;
45
+ consumeResource(id: string | ResourceIdentifier, base: string | undefined, accept: (bytes: Uint8Array) => Promise<void>): Promise<number>;
46
46
  acquire(chunks: Chunks, additionalBudget?: keyof Limits): Promise<Uint8Array>;
47
47
  decodeUtf8(chunks: Chunks): Promise<string>;
48
48
  decodeUtf8To(chunks: Chunks, accept: (text: string) => Promise<void>, budgets?: readonly (keyof Limits)[], retainInput?: boolean): Promise<void>;
@@ -3,7 +3,7 @@ export { evalSyncPandoc } from "./sync.js";
3
3
  export { convert, convertToOutput, convertSync, readDocument, writeDocument, PandocError } from "./engine.js";
4
4
  export { createFormatRegistry, coreFormats, formatCapabilities } from "./formats.js";
5
5
  export type { FormatCapability, FormatDescriptor, FormatSelection, Direction } from "./formats.js";
6
- export type { AdapterContext, ConversionContext, ConversionSummary, OutputConversionContext, WorkingStorageOptions, ConversionOptions, FilterRequest, FilterCapability, JsonFilterStreams, MetadataObject, MetadataValue, ConversionResult, Diagnostic, DiagnosticCode, Document, Input, InputSource, StreamingInput, Limits, Node, Operation, OutputCapability, StreamingOutputCapability, ReadOptions, ReaderCapability, Resource, ResourceCapability, StreamingResourceCapability, ResourceFileSystem, SerializedDocument, WriteOptions, PdfOptions, EpubOptions, WriterCapability } from "./types.js";
6
+ export type { AdapterContext, ConversionContext, ConversionSummary, OutputConversionContext, WorkingStorageOptions, ConversionOptions, FilterRequest, FilterCapability, JsonFilterStreams, MetadataObject, MetadataValue, ConversionResult, Diagnostic, DiagnosticCode, Document, Input, InputSource, StreamingInput, Limits, Node, Operation, OutputCapability, StreamingOutputCapability, ReadOptions, ReaderCapability, Resource, ResourceCapability, StreamingResourceCapability, SourceResourceCapability, ResourceIdentifier, ResourceFileSystem, SerializedDocument, WriteOptions, PdfOptions, EpubOptions, WriterCapability } from "./types.js";
7
7
  export { createJsonFilterCapability } from "./json-filters.js";
8
8
  export type { JsonFilterRuntime, JsonStreamFilterRuntime } from "./json-filters.js";
9
9
  export { createLuaFilterCapability } from "./lua-filters.js";
@@ -1,37 +1,37 @@
1
1
  import {
2
- $a,
3
2
  $h,
4
3
  Al,
5
4
  El,
6
- Gv,
7
- Ie,
5
+ Fh,
6
+ La,
8
7
  Lh,
9
- Mh,
10
- Nh,
8
+ Pe,
11
9
  Qo,
10
+ SP,
12
11
  TP,
12
+ Xv,
13
13
  Zi,
14
- cE,
15
14
  dh,
16
- dn,
17
15
  eR,
18
- eh,
19
- er,
20
- kP,
21
- lf,
16
+ fE,
17
+ fn,
18
+ iR,
19
+ ih,
20
+ jh,
21
+ ld,
22
+ mE,
22
23
  nr,
23
- pE,
24
- tR,
25
24
  tl,
25
+ tr,
26
26
  vP
27
- } from "../safe-bash/command-chunks/chunk-GLVD3JJG.js";
27
+ } from "../safe-bash/command-chunks/chunk-KL3OIBKB.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";
31
31
  import {
32
32
  _r
33
- } from "../safe-bash/command-chunks/chunk-3DTDMEOP.js";
34
- import "../safe-bash/command-chunks/chunk-LWZVDDJA.js";
33
+ } from "../safe-bash/command-chunks/chunk-EAGIJ4VW.js";
34
+ import "../safe-bash/command-chunks/chunk-NUGQQDGE.js";
35
35
  import {
36
36
  yr
37
37
  } from "../safe-bash/command-chunks/chunk-Z2T7E4ID.js";
@@ -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: P, destination: d, limits: R } = await $h(e2.args, s, e2.signal, i), A = (P ?? [{ chunks: e2.stdin }]).map((t2) => ({ ...t2, ...t2.base === void 0 && e2.cwd !== void 0 ? { base: e2.cwd } : {} })), F = { ...i, limits: R, 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 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) {
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 Nh(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 Lh(A, S, { ...F, output: v }) : await El(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 = er(i.args, u);
101
+ e2 = tr(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}
@@ -110,36 +110,36 @@ function Z(u = {}) {
110
110
  var export_assertNever = Zi.assertNever;
111
111
  export {
112
112
  e as AstError,
113
- dn as ExecutionContext,
113
+ fn as ExecutionContext,
114
114
  t as PandocError,
115
115
  export_assertNever as assertNever,
116
116
  El as convert,
117
- TP as convertSync,
118
- Nh as convertToOutput,
117
+ SP as convertSync,
118
+ Lh as convertToOutput,
119
119
  Qo as coreFormats,
120
120
  yr as createCiteprocFilterCapability,
121
- pE as createExecutionContext,
121
+ mE as createExecutionContext,
122
122
  Al as createFileOutput,
123
123
  Z as createFormatInspectionCommand,
124
- Ie as createFormatRegistry,
124
+ Pe as createFormatRegistry,
125
125
  dh as createJsonFilterCapability,
126
126
  _r as createLuaFilterCapability,
127
- Mh as createPandocCommand,
128
- tR as createPandocCommands,
127
+ jh as createPandocCommand,
128
+ eR as createPandocCommands,
129
129
  K as createStandalonePandocCommand,
130
- $a as defaultLimits,
131
- Lh as evalSyncPandoc,
132
- Gv as formatCapabilities,
130
+ La as defaultLimits,
131
+ $h as evalSyncPandoc,
132
+ Xv as formatCapabilities,
133
133
  tl as inspectCommand,
134
- er as inspectFormats,
135
- cE as normalizeDocument,
136
- eh as normalizeDocumentCooperatively,
137
- eR as pandocCommands,
134
+ tr as inspectFormats,
135
+ fE as normalizeDocument,
136
+ ih as normalizeDocumentCooperatively,
137
+ iR as pandocCommands,
138
138
  nr as parseConversionArgs,
139
- lf as pdfReader,
140
- kP as readDocument,
141
- $h as resolveConversionArgs,
142
- vP as writeDocument
139
+ ld as pdfReader,
140
+ vP as readDocument,
141
+ Fh as resolveConversionArgs,
142
+ TP as writeDocument
143
143
  };
144
144
  /*!
145
145
  MIT License
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  _r
3
- } from "../safe-bash/command-chunks/chunk-3DTDMEOP.js";
4
- import "../safe-bash/command-chunks/chunk-LWZVDDJA.js";
3
+ } from "../safe-bash/command-chunks/chunk-EAGIJ4VW.js";
4
+ import "../safe-bash/command-chunks/chunk-NUGQQDGE.js";
5
5
  import "../safe-bash/command-chunks/chunk-5NKZJEUI.js";
6
6
  import "../safe-bash/command-chunks/chunk-QIFS4QHZ.js";
7
7
  import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
@@ -224,15 +224,30 @@ export interface AdapterContext {
224
224
  /** Strictly advancing cursor for pagination and other iterative layouts. */
225
225
  progress(id: string, cursor: number): void;
226
226
  }
227
+ /** Replayable UTF-16 identifier. Valid until the resolver's byte stream finishes.
228
+ * Chunks contain at most 4096 code units and may split a surrogate pair. */
229
+ export interface ResourceIdentifier {
230
+ readonly length: number;
231
+ chunks(): AsyncIterable<string>;
232
+ }
233
+ /** Custom resolver that accepts a caller-backed identifier without collecting it. */
234
+ export interface SourceResourceCapability {
235
+ resolveSource(id: ResourceIdentifier, base: string | undefined, signal: AbortSignal | undefined): AsyncIterable<Uint8Array>;
236
+ resolveStream?: StreamingResourceCapability["resolveStream"];
237
+ resolve?: ResourceCapability["resolve"];
238
+ }
227
239
  /** Custom resource source for retained conversions. Yielded chunks are borrowed
228
240
  * until the next pull; conversion awaits storage before advancing the producer. */
229
241
  export interface StreamingResourceCapability {
242
+ resolveSource?: SourceResourceCapability["resolveSource"];
230
243
  resolveStream(id: string, base: string | undefined, signal: AbortSignal | undefined): AsyncIterable<Uint8Array>;
231
244
  /** Optional convenience resolver for adapters that require complete bytes. */
232
245
  resolve?: ResourceCapability["resolve"];
233
246
  }
234
247
  export interface ResourceCapability {
235
- /** Preferred by retained image writers when supplied. */
248
+ /** Preferred by retained image writers; keeps identifiers in caller storage. */
249
+ resolveSource?: SourceResourceCapability["resolveSource"];
250
+ /** Streaming byte fallback when resolveSource is absent. */
236
251
  resolveStream?: StreamingResourceCapability["resolveStream"];
237
252
  resolve(id: string, base: string | undefined, signal: AbortSignal | undefined): Promise<Uint8Array>;
238
253
  }
@@ -281,7 +296,7 @@ export interface ConversionContext {
281
296
  readonly resourceCwd?: string;
282
297
  readonly reader?: ReaderCapability;
283
298
  readonly writer?: WriterCapability;
284
- readonly resources?: ResourceCapability | StreamingResourceCapability;
299
+ readonly resources?: ResourceCapability | StreamingResourceCapability | SourceResourceCapability;
285
300
  readonly output?: OutputCapability | StreamingOutputCapability;
286
301
  readonly limits?: Partial<Limits>;
287
302
  readonly signal?: AbortSignal;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  patchCommand
3
- } from "../safe-bash/command-chunks/chunk-6ZFYWT3U.js";
4
- import "../safe-bash/command-chunks/chunk-S244SWDH.js";
3
+ } from "../safe-bash/command-chunks/chunk-72C3TZ2U.js";
4
+ import "../safe-bash/command-chunks/chunk-WH3TIOTS.js";
5
5
  import {
6
6
  evalSyncPatch
7
7
  } from "../safe-bash/command-chunks/chunk-KSY3QHLY.js";
@@ -1,4 +1,4 @@
1
- import { type CommandContext, type FileStat } from "../safe-bash-contracts/index.js";
1
+ import { type ByteSource, type CommandContext, type FileStat } from "../safe-bash-contracts/index.js";
2
2
  /** Retains admission receipts; trusted host staging requires external tree isolation. */
3
3
  export declare class PatchPublication {
4
4
  private readonly context;
@@ -10,7 +10,7 @@ export declare class PatchPublication {
10
10
  capture(path: string, prune?: readonly string[]): Promise<void>;
11
11
  private validate;
12
12
  mkdir(path: string): Promise<void>;
13
- write(path: string, text: string, destination: FileStat | undefined, mode?: number, mtimeMs?: number): Promise<void>;
13
+ write(path: string, source: ByteSource | string, destination: FileStat | undefined, mode?: number, mtimeMs?: number): Promise<void>;
14
14
  remove(path: string, expected: FileStat): Promise<void>;
15
15
  prune(path: string): Promise<void>;
16
16
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  PatchPublication
3
- } from "../safe-bash/command-chunks/chunk-S244SWDH.js";
3
+ } from "../safe-bash/command-chunks/chunk-WH3TIOTS.js";
4
4
  import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
5
5
  export {
6
6
  PatchPublication
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  patchCommand
3
- } from "../safe-bash/command-chunks/chunk-6ZFYWT3U.js";
4
- import "../safe-bash/command-chunks/chunk-S244SWDH.js";
3
+ } from "../safe-bash/command-chunks/chunk-72C3TZ2U.js";
4
+ import "../safe-bash/command-chunks/chunk-WH3TIOTS.js";
5
5
  import "../safe-bash/command-chunks/chunk-JKLOBSMP.js";
6
6
  import "../safe-bash/command-chunks/chunk-2VLAXKTS.js";
7
7
  import "../safe-bash/command-chunks/chunk-MOZD7RUY.js";