@poe-platform/safe-bash 0.1.779 → 0.1.781

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 (112) hide show
  1. package/dist/image-ast/index.browser.js +200 -165
  2. package/dist/image-ast/index.js +200 -165
  3. package/dist/pdf-ast/index.js +200 -165
  4. package/dist/safe-bash/command-chunks/{chunk-ELX7X5SF.js → chunk-2MPJNOGU.js} +3 -3
  5. package/dist/safe-bash/command-chunks/{chunk-NT6N3KCA.js → chunk-36A7T7VI.js} +1 -1
  6. package/dist/safe-bash/command-chunks/{chunk-W7K4JN2M.js → chunk-3AQJQW6S.js} +1 -1
  7. package/dist/safe-bash/command-chunks/{chunk-T6ZPGCNJ.js → chunk-3DVCCMBJ.js} +2 -1
  8. package/dist/safe-bash/command-chunks/{chunk-XQZ3OG7K.js → chunk-442UWLQR.js} +1 -1
  9. package/dist/safe-bash/command-chunks/{chunk-W6UOCPP2.js → chunk-7THHNO2E.js} +1 -1
  10. package/dist/safe-bash/command-chunks/{chunk-ZY6PMCW5.js → chunk-ADBFNLLK.js} +2 -2
  11. package/dist/safe-bash/command-chunks/{chunk-ZMCVEYVX.js → chunk-AXO7RDN5.js} +1 -1
  12. package/dist/safe-bash/command-chunks/{chunk-PLOA5HZJ.js → chunk-BHOK6HA3.js} +4 -4
  13. package/dist/safe-bash/command-chunks/{chunk-TEVDQ3XP.js → chunk-C2JGBXOY.js} +2 -2
  14. package/dist/safe-bash/command-chunks/{chunk-MANR67FK.js → chunk-CD2SMRKD.js} +4 -4
  15. package/dist/safe-bash/command-chunks/{chunk-IFMCWC7A.js → chunk-CXDWDFFU.js} +2 -2
  16. package/dist/safe-bash/command-chunks/{chunk-TETIL2QG.js → chunk-FDJBYW3P.js} +1 -1
  17. package/dist/safe-bash/command-chunks/{chunk-OTTXGYBL.js → chunk-G3O44ZGT.js} +2 -2
  18. package/dist/safe-bash/command-chunks/{chunk-TUX2ZVRV.js → chunk-G5XIFXNF.js} +1 -1
  19. package/dist/safe-bash/command-chunks/{chunk-QLYJUVVM.js → chunk-GBHSE6ZO.js} +1 -1
  20. package/dist/safe-bash/command-chunks/{chunk-3PBP2NWM.js → chunk-GEHF4YAY.js} +1 -1
  21. package/dist/safe-bash/command-chunks/{chunk-3444RZLY.js → chunk-GZXLPWT5.js} +200 -165
  22. package/dist/safe-bash/command-chunks/{chunk-B7CSA2AN.js → chunk-KEMWQP25.js} +1 -1
  23. package/dist/safe-bash/command-chunks/{chunk-VGKASRY7.js → chunk-KI2XV6GF.js} +1 -1
  24. package/dist/safe-bash/command-chunks/{chunk-T4BURXBK.js → chunk-KL4ODNMV.js} +3 -3
  25. package/dist/safe-bash/command-chunks/{chunk-YRMCH7OE.js → chunk-LCR6YMBL.js} +1 -1
  26. package/dist/safe-bash/command-chunks/{chunk-YUBBOIPH.js → chunk-LP5NRR5O.js} +1 -1
  27. package/dist/safe-bash/command-chunks/{chunk-4SZIRINP.js → chunk-OEPERWLZ.js} +2 -1
  28. package/dist/safe-bash/command-chunks/{chunk-QYSAAJ6K.js → chunk-PUIGJ37F.js} +1 -1
  29. package/dist/safe-bash/command-chunks/{chunk-O4ARSYST.js → chunk-QSD4I3TT.js} +4 -3
  30. package/dist/safe-bash/command-chunks/{chunk-KDVJQQVT.js → chunk-QTKPEWR7.js} +4 -4
  31. package/dist/safe-bash/command-chunks/{chunk-EYRJX6FJ.js → chunk-TICYYKJB.js} +2 -1
  32. package/dist/safe-bash/command-chunks/{chunk-TKBJACLG.js → chunk-VXDCTI33.js} +1 -1
  33. package/dist/safe-bash/command-chunks/{chunk-MAZIL3QC.js → chunk-WQHCF6N6.js} +1 -1
  34. package/dist/safe-bash/command-chunks/{chunk-I7PJVVOO.js → chunk-XFQAGBAV.js} +1 -1
  35. package/dist/safe-bash/command-chunks/{chunk-DYCEVLVC.js → chunk-Y6YHBQIS.js} +1 -1
  36. package/dist/safe-bash/command-chunks/{chunk-OPRPIHKA.js → chunk-ZGBHQQGL.js} +1 -1
  37. package/dist/safe-bash/command-chunks/{chunk-6QG3YR2F.js → chunk-ZPQ5OCKE.js} +1 -1
  38. package/dist/safe-bash/commands/diff-patch/shared.d.ts +1 -0
  39. package/dist/safe-bash/commands/diff-patch/shared.js +2 -1
  40. package/dist/safe-bash/core.browser.js +2 -1
  41. package/dist/safe-bash/opt-in/commands/dd/index.js +2 -1
  42. package/dist/safe-bash/opt-in/commands/shuf/input.js +4 -2
  43. package/dist/safe-bash/opt-in/commands/shuf/shuf.js +4 -3
  44. package/dist/safe-bash-command-dd/index.js +2 -1
  45. package/dist/safe-bash-command-du/budget.js +1 -1
  46. package/dist/safe-bash-command-du/du.js +2 -2
  47. package/dist/safe-bash-command-du/index.js +2 -2
  48. package/dist/safe-bash-command-ffmpeg/index.js +5745 -5715
  49. package/dist/safe-bash-command-file/index.js +1 -1
  50. package/dist/safe-bash-command-file/shared.d.ts +1 -0
  51. package/dist/safe-bash-command-file/shared.js +1 -1
  52. package/dist/safe-bash-command-fmt/index.js +2 -1
  53. package/dist/safe-bash-command-html-to-markdown/budget.js +1 -1
  54. package/dist/safe-bash-command-html-to-markdown/entities.js +3 -3
  55. package/dist/safe-bash-command-html-to-markdown/index.js +6 -6
  56. package/dist/safe-bash-command-html-to-markdown/input.js +5 -5
  57. package/dist/safe-bash-command-html-to-markdown/parser.js +4 -4
  58. package/dist/safe-bash-command-html-to-markdown/render.js +5 -5
  59. package/dist/safe-bash-command-html-to-markdown/text.js +2 -2
  60. package/dist/safe-bash-command-iconv/command.js +5 -5
  61. package/dist/safe-bash-command-iconv/index.js +5 -5
  62. package/dist/safe-bash-command-iconv/internal.js +1 -1
  63. package/dist/safe-bash-command-iconv/lifecycle.js +2 -2
  64. package/dist/safe-bash-command-iconv/options.js +2 -2
  65. package/dist/safe-bash-command-iconv/reader.js +2 -2
  66. package/dist/safe-bash-command-imagemagick/index.js +2 -2
  67. package/dist/safe-bash-command-numfmt/index.js +5 -3
  68. package/dist/safe-bash-command-pandoc/command.js +3 -3
  69. package/dist/safe-bash-command-pandoc/index.js +3 -3
  70. package/dist/safe-bash-command-pdfimages/index.js +200 -165
  71. package/dist/safe-bash-command-pdfinfo/index.js +200 -165
  72. package/dist/safe-bash-command-pdftk/index.js +200 -165
  73. package/dist/safe-bash-command-pdftoppm/index.js +200 -165
  74. package/dist/safe-bash-command-pdftotext/index.js +200 -165
  75. package/dist/safe-bash-command-pr/command.js +5 -5
  76. package/dist/safe-bash-command-pr/format.js +2 -2
  77. package/dist/safe-bash-command-pr/index.js +5 -5
  78. package/dist/safe-bash-command-pr/internal.d.ts +1 -0
  79. package/dist/safe-bash-command-pr/internal.js +1 -1
  80. package/dist/safe-bash-command-pr/io.js +2 -2
  81. package/dist/safe-bash-command-pr/options.js +2 -2
  82. package/dist/safe-bash-command-qpdf/index.js +200 -165
  83. package/dist/safe-bash-command-shuf/input.js +4 -2
  84. package/dist/safe-bash-command-shuf/shuf.js +4 -3
  85. package/dist/safe-bash-command-sips/index.js +2 -2
  86. package/dist/safe-bash-command-soffice/index.js +1 -1
  87. package/dist/safe-bash-command-split/index.js +3 -3
  88. package/dist/safe-bash-command-split/io.d.ts +1 -0
  89. package/dist/safe-bash-command-split/io.js +1 -1
  90. package/dist/safe-bash-command-split/outputs.js +2 -2
  91. package/dist/safe-bash-command-split/split.js +3 -3
  92. package/dist/safe-bash-command-ssconvert/index.js +200 -165
  93. package/dist/safe-bash-command-tree/arguments.js +3 -3
  94. package/dist/safe-bash-command-tree/charset.js +1 -1
  95. package/dist/safe-bash-command-tree/index.js +4 -4
  96. package/dist/safe-bash-command-tree/io.js +1 -1
  97. package/dist/safe-bash-command-tree/pattern.js +2 -2
  98. package/dist/safe-bash-command-tree/tree.js +4 -4
  99. package/dist/safe-bash-command-tsort/command.js +4 -4
  100. package/dist/safe-bash-command-tsort/graph.js +2 -2
  101. package/dist/safe-bash-command-tsort/index.js +4 -4
  102. package/dist/safe-bash-command-tsort/internal.js +1 -1
  103. package/dist/safe-bash-command-tsort/io.js +2 -2
  104. package/dist/safe-bash-command-wkhtmltopdf/index.js +201 -165
  105. package/dist/safe-bash-io-engine/commands/archive/internal.js +2 -2
  106. package/dist/safe-bash-io-engine/shell/pattern.js +1 -1
  107. package/dist/safe-bash-io-engine/shell/string-operations.d.ts +1 -0
  108. package/dist/safe-bash-io-engine/shell/string-operations.js +1 -1
  109. package/dist/safe-bash-text-stream-engine/stream-format/shared.d.ts +1 -0
  110. package/dist/safe-bash-text-stream-engine/stream-format/shared.js +2 -1
  111. package/package.json +2 -2
  112. package/third-party/pdf-ast/THIRD_PARTY_NOTICES.md +73 -5
@@ -404,15 +404,16 @@ and intermediate-surface state reset. Bitmap and SVG exports follow
404
404
  `beginDrawing` in keeping the viewer background outside page blend calculations.
405
405
  `src/render/transparency-group.test.ts` adds local opacity/blend/mask cases and
406
406
  ports the unchanged `transparency_group.pdf` and `bug1873345.pdf` equality
407
- fixtures, with independently obtained reference pixels. Full non-isolated
408
- backdrop compositing for groups with outer effects retains PDF.js's documented
409
- limitation.
407
+ fixtures, with independently obtained reference pixels. Non-isolated backdrop
408
+ compositing now uses PDFBox's group-alpha and backdrop-removal algorithm,
409
+ described below.
410
410
 
411
411
  Masked non-isolated Forms with inner blending or soft-mask effects follow
412
412
  PDF.js `beginGroup`'s `needsBackdropCopy && inSMaskMode` path. The raster adapter
413
413
  copies the existing page within the transformed Form BBox before painting the
414
- group; ordinary outer-opacity groups keep their transparent intermediate.
415
- `src/render/masked-group-backdrop.test.ts` covers this distinction and the
414
+ group. The PDFBox adaptation below extends this to ordinary outer-opacity
415
+ groups and removes the copied backdrop before final compositing.
416
+ `src/render/masked-group-backdrop.test.ts` covers these cases and the
416
417
  unchanged `issue13520.pdf` fixture. SVG uses a raster fallback for pages requiring
417
418
  this backdrop copy; other Form groups retain their vector output.
418
419
 
@@ -504,3 +505,70 @@ or zero when absent. Standard-font widths apply only without an explicit
504
505
  Widths table. `src/fonts/explicit-widths.test.ts` covers Type1, TrueType and
505
506
  Type3 widths with and without ToUnicode, plus the unchanged upstream
506
507
  `Type3WordSpacing.pdf` fixture.
508
+
509
+ # Apache PDFBox rendering regressions
510
+
511
+ `src/render/pdfbox-patterns.test.ts` adapts `TestQuality.java` at revision
512
+ `c4d556abc9d5f0cbc486d459c84682321dd38ff4`, retaining its original page,
513
+ 100 dpi resolution, pixel coordinates, and assertions. Test fixture provenance
514
+ and checksums are recorded in `src/fixtures/SOURCES.md`. Licensed under
515
+ Apache-2.0; see `licenses/PDFJS-APACHE-2.0.txt`.
516
+
517
+ Source: https://github.com/apache/pdfbox
518
+
519
+ The pattern transform handling in `src/content/evaluator.ts` follows PDFBox
520
+ `TilingPaint` and `PageDrawer`: concatenate the containing stream initial
521
+ matrix with the pattern matrix, then clip the paint to the glyph or path.
522
+
523
+ Relevant upstream NOTICE:
524
+
525
+ Apache PDFBox
526
+ Copyright 2014 The Apache Software Foundation
527
+
528
+ This product includes software developed at
529
+ The Apache Software Foundation (http://www.apache.org/).
530
+
531
+ Based on source code originally developed in the PDFBox and
532
+ FontBox projects.
533
+
534
+ Copyright (c) 2002-2007, www.pdfbox.org
535
+
536
+ Based on source code originally developed in the PaDaF project.
537
+ Copyright (c) 2010 Atos Worldline SAS
538
+
539
+ `src/pdfbox-strings.test.ts` adapts `TestCOSString` and
540
+ `PDFDocEncodingTest` at the same PDFBox revision, retaining the Unicode inputs
541
+ and expected round trips, including all 256 PDFBOX-3864 characters. Local COS
542
+ nodes preserve byte representation, so decoded strings replace Java COSString
543
+ value equality. `src/ast.ts` follows `COSString` in using PDFDocEncoding only
544
+ for representable characters and UTF-16BE otherwise. The reverse encoding map
545
+ is derived from the existing decoder table. Apache-2.0, ASF notice above.
546
+
547
+ `src/cos/pdfbox-lexer.test.ts` adapts `TestCOSParser` and `TestCOSNumber`,
548
+ keeping the upstream literal, name, and numeric expectations through the local
549
+ token API. Java-specific number range and object identity checks are omitted.
550
+ Literal recovery in `src/cos/lexer.ts` follows `BaseParser.checkForEndOfString`;
551
+ the adapter defers the recovery until EOF to preserve balanced multiline
552
+ strings. Additional local cases check following fields and token budgets.
553
+
554
+ `src/edit/pdfbox-forms.test.ts` adapts `TestRadioButtons.testRadioButtonPDModel`
555
+ and the PDFBOX-4366/PDFBOX-6207 checkbox regressions. In-memory COS dictionaries
556
+ replace PDFBox model builders; field values and widget appearance states retain
557
+ the original expectations. Empty dictionaries stand in for unused appearances.
558
+ `src/render/pdfbox-blend-mode.test.ts` ports all four
559
+ `TestPDFRendererBlendMode` cases, preserving page dimensions, sample coordinates,
560
+ and expected blue/white pixels. Vitest replaces JUnit; bitmap RGBA values replace
561
+ Java packed ARGB integers. Both use the same PDFBox revision and ASF license.
562
+
563
+ Non-isolated group compositing in `src/render/raster.ts` adapts PDFBox
564
+ `PageDrawer.TransparencyGroup` and `GroupGraphics.removeBackdrop` at the same
565
+ revision. Each paint accumulates group-only alpha separately from its color
566
+ surface, which starts with the parent backdrop. Backdrop removal retains inner
567
+ blend effects and restores group alpha before applying outer opacity and masks.
568
+ The local implementation uses a Float32 alpha plane and straight RGBA bytes,
569
+ with a raster SVG fallback for affected pages. `transparency-group.test.ts`
570
+ checks opaque and partial backdrops, nested opacity, masks, overlapping paints,
571
+ strokes, images, untouched pixels, and normal/incremental/copied-page saves.
572
+ Opaque RGB expectations were independently checked using Poppler 26.08.0's
573
+ Splash renderer; transparent expectations also check the PDF compositing
574
+ formula. ASF, Apache-2.0, notices and license above.