@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
@@ -1,8 +1,5 @@
1
- import {
2
- createFfprobeCommand,
3
- createFfprobeCommands,
4
- ffprobeCommands
5
- } from "../../chunks/chunk-PQTT2EZP.js";
1
+ // packages/safe-bash/src/commands/ffprobe/index.ts
2
+ import { createFfprobeCommand, createFfprobeCommands, ffprobeCommands } from "../../../safe-bash-command-ffprobe/index.js";
6
3
  export {
7
4
  createFfprobeCommand,
8
5
  createFfprobeCommands,
@@ -2,7 +2,9 @@ import {
2
2
  createPandocCommand,
3
3
  createPandocCommands,
4
4
  pandocCommands
5
- } from "../../chunks/chunk-SOFBGDXG.js";
5
+ } from "../../chunks/chunk-HHSOUC3Z.js";
6
+ import "../../chunks/chunk-4KYUJ3GC.js";
7
+ import "../../chunks/chunk-6E4SGHLU.js";
6
8
  import "../../chunks/chunk-JQ3O3I4G.js";
7
9
 
8
10
  // packages/safe-bash/src/commands/pandoc/index.ts
@@ -805,7 +805,16 @@ async function executeUniqGeneral(context, preReadSource) {
805
805
  if (outUsed > 0)
806
806
  yield outBuf.subarray(0, outUsed);
807
807
  })();
808
- await emitRecords(context, records, parsed.operands[1]);
808
+ try {
809
+ await emitRecords(context, records, parsed.operands[1]);
810
+ }
811
+ catch (error) {
812
+ context.signal.throwIfAborted();
813
+ const consumer = parsed.operands[1] === undefined ? context.stdout.ownedOutput?.consumerClosed : undefined;
814
+ if (consumer?.aborted && consumer.reason === error && error instanceof FsError && error.code === "EPIPE")
815
+ return { exitCode: 141 };
816
+ throw error;
817
+ }
809
818
  return { exitCode: 0 };
810
819
  }
811
820
  export function textCommands() {
@@ -203,9 +203,9 @@ export { createRsvgConvertCommand, createRsvgConvertCommands, rsvgConvertCommand
203
203
  export { createNeatoCommand, createNeatoCommands, neatoCommands, type NeatoCommandsOptions, type NeatoLimits } from "./commands/neato/index.js";
204
204
  export { createSvgoCommand, createSvgoCommands, svgoCommands, type SvgoCommandsOptions, type SvgoLimits } from "./commands/svgo/index.js";
205
205
  export { createGraphvizCommands, graphvizCommands, type GraphvizCommandsOptions } from "./commands/graphviz/index.js";
206
- export { createFfprobeCommands, ffprobeCommands, type FfprobeCommandsOptions, type FfprobeLimits } from "./commands/ffprobe/index.js";
206
+ export { createFfprobeCommands, ffprobeCommands, type FfprobeCommandsOptions, type FfprobeLimits } from "./lazy-optional.js";
207
207
  export { createSoxCommand, createSoxCommands, soxCommands, type SoxCommandsOptions, type SoxLimits } from "./commands/sox/index.js";
208
208
  export { createSoxiCommand, createSoxiCommands, soxiCommands, type SoxiCommandsOptions, type SoxiLimits } from "./commands/soxi/index.js";
209
- export { createAudioCommand, createAudioCommands, audioCommands, type AudioCommandsOptions } from "./commands/audio/index.js";
209
+ export { createAudioCommand, createAudioCommands, audioCommands, type AudioCommandsOptions } from "./lazy-optional.js";
210
210
  export { createSortCommand, createSortCommands, sortCommands, defaultSortLimits, type SortCommandsOptions, type SortLimits } from "./commands/sort/index.js";
211
211
  //# sourceMappingURL=core.d.ts.map
@@ -184,9 +184,9 @@ export { createRsvgConvertCommand, createRsvgConvertCommands, rsvgConvertCommand
184
184
  export { createNeatoCommand, createNeatoCommands, neatoCommands } from "./commands/neato/index.js";
185
185
  export { createSvgoCommand, createSvgoCommands, svgoCommands } from "./commands/svgo/index.js";
186
186
  export { createGraphvizCommands, graphvizCommands } from "./commands/graphviz/index.js";
187
- export { createFfprobeCommands, ffprobeCommands } from "./commands/ffprobe/index.js";
187
+ export { createFfprobeCommands, ffprobeCommands } from "./lazy-optional.js";
188
188
  export { createSoxCommand, createSoxCommands, soxCommands } from "./commands/sox/index.js";
189
189
  export { createSoxiCommand, createSoxiCommands, soxiCommands } from "./commands/soxi/index.js";
190
- export { createAudioCommand, createAudioCommands, audioCommands } from "./commands/audio/index.js";
190
+ export { createAudioCommand, createAudioCommands, audioCommands } from "./lazy-optional.js";
191
191
  export { createSortCommand, createSortCommands, sortCommands, defaultSortLimits } from "./commands/sort/index.js";
192
192
  //# sourceMappingURL=core.js.map
@@ -33,7 +33,7 @@ import {
33
33
  htmlqCommands,
34
34
  mmdcCommands,
35
35
  unrtfCommands
36
- } from "./chunks/chunk-RQCK77SC.js";
36
+ } from "./chunks/chunk-BUYRKFW2.js";
37
37
  import {
38
38
  createMikeYqCommand,
39
39
  createMikeYqCommands,
@@ -225,7 +225,7 @@ import {
225
225
  xanCommands,
226
226
  xxdCommands,
227
227
  yesCommands
228
- } from "./chunks/chunk-WAZEELYB.js";
228
+ } from "./chunks/chunk-TPG55BAQ.js";
229
229
  import {
230
230
  createDos2unixCommand,
231
231
  createDos2unixCommands,
@@ -374,25 +374,6 @@ import {
374
374
  createGraphvizCommands,
375
375
  graphvizCommands
376
376
  } from "./chunks/chunk-AZMPNCQT.js";
377
- import {
378
- audioCommands,
379
- createAudioCommand,
380
- createAudioCommands
381
- } from "./chunks/chunk-I2A5ZCPD.js";
382
- import {
383
- createFfprobeCommands,
384
- ffprobeCommands
385
- } from "./chunks/chunk-PQTT2EZP.js";
386
- import {
387
- createSoxCommand,
388
- createSoxCommands,
389
- soxCommands
390
- } from "./chunks/chunk-4KYUJ3GC.js";
391
- import {
392
- createSoxiCommand,
393
- createSoxiCommands,
394
- soxiCommands
395
- } from "./chunks/chunk-6E4SGHLU.js";
396
377
  import {
397
378
  createHtmlToMarkdownCommand,
398
379
  createHtmlToMarkdownCommands,
@@ -489,6 +470,9 @@ import {
489
470
  createCallerCommands
490
471
  } from "./chunks/chunk-WO7UWBQW.js";
491
472
  import {
473
+ audioCommands,
474
+ createAudioCommand,
475
+ createAudioCommands,
492
476
  createCompareCommand,
493
477
  createCompositeCommand,
494
478
  createConvertCommand,
@@ -497,6 +481,7 @@ import {
497
481
  createFfmpegCommand,
498
482
  createFfmpegCommands,
499
483
  createFfprobeCommand,
484
+ createFfprobeCommands,
500
485
  createFormatInspectionCommand,
501
486
  createGhCommand,
502
487
  createGhCommands,
@@ -545,6 +530,7 @@ import {
545
530
  createWkhtmltopdfCommands,
546
531
  csvkitCommands,
547
532
  ffmpegCommands,
533
+ ffprobeCommands,
548
534
  ghCommands,
549
535
  gitCommands,
550
536
  imagemagickCommands,
@@ -565,7 +551,17 @@ import {
565
551
  sofficeCommands,
566
552
  ssconvertCommands,
567
553
  wkhtmltopdfCommands
568
- } from "./chunks/chunk-SOFBGDXG.js";
554
+ } from "./chunks/chunk-HHSOUC3Z.js";
555
+ import {
556
+ createSoxCommand,
557
+ createSoxCommands,
558
+ soxCommands
559
+ } from "./chunks/chunk-4KYUJ3GC.js";
560
+ import {
561
+ createSoxiCommand,
562
+ createSoxiCommands,
563
+ soxiCommands
564
+ } from "./chunks/chunk-6E4SGHLU.js";
569
565
  import {
570
566
  createSearchCommands,
571
567
  evalSyncRg,
@@ -8,6 +8,15 @@ export declare const createFfmpegCommands: ffmpegModule["createFfmpegCommands"];
8
8
  export declare const ffmpegCommands: ffmpegModule["ffmpegCommands"];
9
9
  export type { FfmpegCommandsOptions } from "./commands/ffmpeg/index.js";
10
10
  export type { FfmpegCommandPair } from "./commands/ffmpeg/index.js";
11
+ type ffprobeModule = typeof import("./commands/ffprobe/index.js");
12
+ export declare const createFfprobeCommands: ffprobeModule["createFfprobeCommands"];
13
+ export declare const ffprobeCommands: ffprobeModule["ffprobeCommands"];
14
+ export type { FfprobeCommandsOptions, FfprobeLimits } from "./commands/ffprobe/index.js";
15
+ type audioModule = typeof import("./commands/audio/index.js");
16
+ export declare const createAudioCommands: audioModule["createAudioCommands"];
17
+ export declare const createAudioCommand: audioModule["createAudioCommand"];
18
+ export declare const audioCommands: audioModule["audioCommands"];
19
+ export type { AudioCommandsOptions } from "./commands/audio/index.js";
11
20
  type gitModule = typeof import("./commands/git/index.js");
12
21
  export declare const gitCommands: gitModule["gitCommands"];
13
22
  export declare const createGitCommands: gitModule["createGitCommands"];
@@ -1,5 +1,8 @@
1
1
  import { createGhCommands, ghMetadata } from "./lazy-gh.js";
2
2
  import { validatePandocOptions } from "../safe-bash-command-pandoc/options.js";
3
+ import { resolveFfprobeLimits } from "../safe-bash-command-ffprobe/options.js";
4
+ import { createSoxCommand } from "./commands/sox/index.js";
5
+ import { createSoxiCommand } from "./commands/soxi/index.js";
3
6
  import { createLazyCommandLoader, createLazyCommands, lazyCommandPlugin } from "./plugins/lazy-command.js";
4
7
  import { CommandRegistry } from "./contracts/command.js";
5
8
  const loadffmpeg = /* @__PURE__ */ createLazyCommandLoader(() => import("./commands/ffmpeg/index.js"));
@@ -42,6 +45,27 @@ export const createFfmpegCommands = (...args) => {
42
45
  }));
43
46
  };
44
47
  export const ffmpegCommands = (options = {}) => lazyCommandPlugin("ffmpeg-commands", createFfmpegCommands(options), options.replace ?? false);
48
+ const loadffprobe = /* @__PURE__ */ createLazyCommandLoader(() => import("./commands/ffprobe/index.js"));
49
+ export const createFfprobeCommands = (options = {}) => {
50
+ resolveFfprobeLimits(options.limits);
51
+ return createLazyCommands([ffmpegMetadata[1]], async () => {
52
+ const module = await loadffprobe();
53
+ return () => module.createFfprobeCommands(options);
54
+ }, options);
55
+ };
56
+ export const ffprobeCommands = (options = {}) => lazyCommandPlugin("ffprobe-commands", createFfprobeCommands(options), options.replace ?? false);
57
+ export const createAudioCommands = (options = {}) => [
58
+ ...createFfprobeCommands(options.ffprobe),
59
+ createSoxCommand(options.sox),
60
+ createSoxiCommand(options.sox)
61
+ ];
62
+ export const createAudioCommand = (options = {}, name = "sox") => {
63
+ const command = createAudioCommands(options).find(entry => entry.name === name);
64
+ if (!command)
65
+ throw new TypeError(`Audio command not configured: ${name}`);
66
+ return command;
67
+ };
68
+ export const audioCommands = (options = {}) => lazyCommandPlugin("audio-commands", createAudioCommands(options), options.replace ?? false);
45
69
  const loadgit = /* @__PURE__ */ createLazyCommandLoader(() => import("./commands/git/index.js"));
46
70
  const gitMetadata = [
47
71
  {
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  agentCommands,
3
3
  createAgentCommands
4
- } from "../chunks/chunk-RQCK77SC.js";
4
+ } from "../chunks/chunk-BUYRKFW2.js";
5
5
  import "../chunks/chunk-XDDXXCBG.js";
6
6
  import {
7
7
  baseAgentCommands
8
- } from "../chunks/chunk-WAZEELYB.js";
8
+ } from "../chunks/chunk-TPG55BAQ.js";
9
9
  import "../chunks/chunk-Z6R76REA.js";
10
10
  import "../chunks/chunk-5ICB3H25.js";
11
11
  import "../chunks/chunk-GXEFNZGD.js";
@@ -28,7 +28,9 @@ import "../chunks/chunk-R6ASA7FI.js";
28
28
  import "../chunks/chunk-JQILKYVZ.js";
29
29
  import "../chunks/chunk-N2L4CKND.js";
30
30
  import "../chunks/chunk-F76MF5GT.js";
31
- import "../chunks/chunk-SOFBGDXG.js";
31
+ import "../chunks/chunk-HHSOUC3Z.js";
32
+ import "../chunks/chunk-4KYUJ3GC.js";
33
+ import "../chunks/chunk-6E4SGHLU.js";
32
34
  import "../chunks/chunk-LFKUWFZT.js";
33
35
  import "../chunks/chunk-5JCZEXEM.js";
34
36
  import "../chunks/chunk-N4CQ5E3G.js";
@@ -15,11 +15,13 @@ export function createAgentCommands(options = {}) {
15
15
  }
16
16
  export function agentCommands(options = {}) {
17
17
  const regex = Object.freeze({ ...options.regex });
18
- const base = createAgentCommandPlugin({ ...options, regex }, createRegexExecutors({ ...options, regex }), createGhCommands(options.gh), createPortableAgentCommands());
18
+ let hasCommand;
19
+ const base = createAgentCommandPlugin({ ...options, regex }, createRegexExecutors({ ...options, regex }), createGhCommands(options.gh), createPortableAgentCommands(name => hasCommand?.(name) ?? false));
19
20
  const recipe = captureAgentWorkerRecipe(options);
20
21
  const plugin = {
21
22
  name: "agent-commands",
22
23
  setup(host) {
24
+ hasCommand = name => host.commands.has(name);
23
25
  const previous = new Map(host.commands.list().map(command => [command.name, command.execute]));
24
26
  base.setup(host);
25
27
  if (recipe)
@@ -1,3 +1,3 @@
1
1
  import { type CommandDefinition } from "../contracts/index.js";
2
- export declare function createPortableAgentCommands(): readonly CommandDefinition[];
2
+ export declare function createPortableAgentCommands(hasCommand?: (name: string) => boolean): readonly CommandDefinition[];
3
3
  //# sourceMappingURL=portable-commands.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { CommandRegistry } from "../contracts/index.js";
2
- import { createOptionalCommands } from "../lazy-optional.js";
2
+ import { createOptionalCommands, createPandocCommand } from "../lazy-optional.js";
3
3
  import { createMmdcCommands } from "../lazy-mmdc.js";
4
4
  import { createYqCommands } from "../commands/yq/index.js";
5
5
  import { createHtmlqCommands } from "../commands/htmlq/index.js";
@@ -9,7 +9,7 @@ import { createUnrtfCommands } from "../commands/unrtf/index.js";
9
9
  import { createCsvcutCommands } from "../commands/csvcut/index.js";
10
10
  import { createCsvgrepCommands } from "../commands/csvgrep/index.js";
11
11
  import { createOpCommands } from "../commands/op/index.js";
12
- export function createPortableAgentCommands() {
12
+ export function createPortableAgentCommands(hasCommand) {
13
13
  return new CommandRegistry([
14
14
  ...createYqCommands(),
15
15
  ...createHtmlqCommands(),
@@ -18,8 +18,10 @@ export function createPortableAgentCommands() {
18
18
  ...createUnrtfCommands(),
19
19
  ...createMmdcCommands(),
20
20
  ...createOpCommands(),
21
+ ...createOptionalCommands({ families: ["ffmpeg", "soffice"] }),
22
+ createPandocCommand({}, hasCommand),
21
23
  ...createOptionalCommands({ families: [
22
- "ffmpeg", "soffice", "pandoc", "ssconvert", "pdfinfo", "pdftotext",
24
+ "ssconvert", "pdfinfo", "pdftotext",
23
25
  "pdfimages", "pdftoppm", "pdftk", "qpdf", "sips", "imagemagick",
24
26
  "wkhtmltopdf", "csvkit",
25
27
  ] }),
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  baseAgentCommands
3
- } from "./chunks/chunk-WAZEELYB.js";
3
+ } from "./chunks/chunk-TPG55BAQ.js";
4
4
  import "./chunks/chunk-Z6R76REA.js";
5
5
  import "./chunks/chunk-5ICB3H25.js";
6
6
  import "./chunks/chunk-GXEFNZGD.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  execute
3
- } from "../safe-bash/command-chunks/chunk-62ZAHKFS.js";
3
+ } from "../safe-bash/command-chunks/chunk-2VCKUNDZ.js";
4
4
  import "../safe-bash/command-chunks/chunk-Z5QOVRVH.js";
5
5
  import "../safe-bash/command-chunks/chunk-66QPYWEF.js";
6
- import "../safe-bash/command-chunks/chunk-OQCJGUI6.js";
6
+ import "../safe-bash/command-chunks/chunk-HARUYHH7.js";
7
7
  import "../safe-bash/command-chunks/chunk-DPR5CYQV.js";
8
8
  import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
9
9
  export {
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  execute
3
- } from "../safe-bash/command-chunks/chunk-62ZAHKFS.js";
3
+ } from "../safe-bash/command-chunks/chunk-2VCKUNDZ.js";
4
4
  import "../safe-bash/command-chunks/chunk-Z5QOVRVH.js";
5
5
  import {
6
6
  settings
7
7
  } from "../safe-bash/command-chunks/chunk-66QPYWEF.js";
8
- import "../safe-bash/command-chunks/chunk-OQCJGUI6.js";
8
+ import "../safe-bash/command-chunks/chunk-HARUYHH7.js";
9
9
  import "../safe-bash/command-chunks/chunk-DPR5CYQV.js";
10
10
  import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
11
11
 
@@ -17,6 +17,25 @@ export interface PatchFile<T = string> {
17
17
  readonly added: T[];
18
18
  readonly hunks: Hunk<T>[];
19
19
  }
20
+ export interface StoredItems<T> extends AsyncIterable<T> {
21
+ readonly length: number;
22
+ push(value: T): Promise<void>;
23
+ }
24
+ export type PatchItems<T> = T[] | StoredItems<T>;
25
+ export interface ParsedHunk<T> {
26
+ readonly anchors: PatchItems<T>;
27
+ readonly lines: PatchItems<ChangeLine<T>>;
28
+ eof: boolean;
29
+ }
30
+ export interface ParsedFile<T> extends Omit<PatchFile<T>, "added" | "hunks"> {
31
+ readonly added: PatchItems<T>;
32
+ readonly hunks: PatchItems<ParsedHunk<T>>;
33
+ }
34
+ export interface PatchCollections<T> {
35
+ texts(): PatchItems<T>;
36
+ lines(): PatchItems<ChangeLine<T>>;
37
+ hunks(): PatchItems<ParsedHunk<T>>;
38
+ }
20
39
  export declare function targetPath(value: string, work: Work): Promise<string>;
21
40
  export declare function parse(text: string, work: Work): Promise<PatchFile[]>;
22
41
  export interface PatchRecord<T> {
@@ -28,4 +47,4 @@ export interface PatchRecord<T> {
28
47
  export declare function parseRecords<T>(lines: {
29
48
  readonly length: number;
30
49
  get(index: number): Promise<PatchRecord<T>>;
31
- }, work: Work): Promise<PatchFile<T>[]>;
50
+ }, work: Work, collections?: PatchCollections<T>): Promise<ParsedFile<T>[]>;
@@ -2,7 +2,7 @@ import {
2
2
  parse,
3
3
  parseRecords,
4
4
  targetPath
5
- } from "../safe-bash/command-chunks/chunk-OQCJGUI6.js";
5
+ } from "../safe-bash/command-chunks/chunk-HARUYHH7.js";
6
6
  import "../safe-bash/command-chunks/chunk-DPR5CYQV.js";
7
7
  import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
8
8
  export {
@@ -10,7 +10,6 @@ import "../safe-bash/command-chunks/chunk-VXIC7SS3.js";
10
10
  import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
11
11
 
12
12
  // packages/safe-bash-command-diff/src/index.ts
13
- import { syncCommandEvaluators } from "../safe-bash-contracts/runtime-control.js";
14
13
  function createDiffCommands(options = {}) {
15
14
  return [diffCommand(options)];
16
15
  }
@@ -23,7 +22,6 @@ function diffCommands(options = {}) {
23
22
  for (const command of commands) host.commands.register(command, { replace: options.replace ?? false });
24
23
  } };
25
24
  }
26
- syncCommandEvaluators.evalSyncDiff = evalSyncDiff;
27
25
  export {
28
26
  diffCommand as createDiffCommand,
29
27
  createDiffCommands,