@poe-platform/safe-bash 0.1.773 → 0.1.774

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 (31) hide show
  1. package/dist/image-ast/index.browser.js +742 -150
  2. package/dist/image-ast/index.js +742 -150
  3. package/dist/pdf-ast/index.js +742 -150
  4. package/dist/pdf-ast/vendor/pdfjs-fonts.d.mts +12 -0
  5. package/dist/pdf-ast/vendor/pdfjs-fonts.mjs +702 -0
  6. package/dist/safe-bash/command-chunks/{chunk-5VXZSNM2.js → chunk-4ZHDCMQX.js} +2 -2
  7. package/dist/safe-bash/command-chunks/{chunk-G3NVK25P.js → chunk-HH5QPKIN.js} +1 -1
  8. package/dist/safe-bash/command-chunks/{chunk-B2MM5DIT.js → chunk-PM63UJE6.js} +742 -150
  9. package/dist/safe-bash/core.browser.js +63 -7
  10. package/dist/safe-bash/shell/runtime.js +17 -9
  11. package/dist/safe-bash/shell/sync-posix-regex.d.ts +3 -0
  12. package/dist/safe-bash/shell/sync-posix-regex.js +48 -0
  13. package/dist/safe-bash-command-ffmpeg/index.js +7250 -7046
  14. package/dist/safe-bash-command-gpg/index.js +28 -7
  15. package/dist/safe-bash-command-imagemagick/index.js +2 -2
  16. package/dist/safe-bash-command-openssl/index.js +24 -6
  17. package/dist/safe-bash-command-pandoc/command.js +3 -3
  18. package/dist/safe-bash-command-pandoc/index.js +3 -3
  19. package/dist/safe-bash-command-pdfimages/index.js +742 -150
  20. package/dist/safe-bash-command-pdfinfo/index.js +742 -150
  21. package/dist/safe-bash-command-pdftk/index.js +742 -150
  22. package/dist/safe-bash-command-pdftoppm/index.js +742 -150
  23. package/dist/safe-bash-command-pdftotext/index.js +742 -150
  24. package/dist/safe-bash-command-qpdf/index.js +742 -150
  25. package/dist/safe-bash-command-sips/index.js +2 -2
  26. package/dist/safe-bash-command-soffice/index.js +1 -1
  27. package/dist/safe-bash-command-ssconvert/index.js +742 -150
  28. package/dist/safe-bash-command-ssh/index.js +124 -23
  29. package/dist/safe-bash-command-wkhtmltopdf/index.js +748 -150
  30. package/package.json +2 -2
  31. package/third-party/pdf-ast/THIRD_PARTY_NOTICES.md +22 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poe-platform/safe-bash",
3
- "version": "0.1.773",
3
+ "version": "0.1.774",
4
4
  "description": "Extensible virtual shell with pluggable filesystems and streaming commands",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -841,7 +841,7 @@
841
841
  "access": "public"
842
842
  },
843
843
  "dependencies": {
844
- "@poe-platform/safe-fs": "0.1.773",
844
+ "@poe-platform/safe-fs": "0.1.774",
845
845
  "pdf-lib": "1.17.1",
846
846
  "@noble/hashes": "2.4.0",
847
847
  "pako": "3.0.1",
@@ -475,3 +475,25 @@ streams follow `PartialEvaluator.readToUnicode` error recovery while retaining
475
475
  local resource-limit errors. `dictionary-recovery.test.ts` ports the original
476
476
  `issue11549` equality fixture and covers ordinary/compressed dictionaries,
477
477
  trailer metadata, strict mode, and explicit limits.
478
+
479
+ Mesh stream decoding, Coons/tensor patch tessellation, and vertex packing use
480
+ PDF.js `MeshStreamReader`, `MeshShading`, and their helpers from
481
+ `src/core/pattern.js` at the same revision (Mozilla Foundation, Apache-2.0).
482
+ The generator replaces only the constructor's PDF.js resource lookup with a
483
+ local stream/color adapter and uses equivalent ES2022 cache operations.
484
+ The decoding and geometry algorithms are unchanged. The local rasterizer
485
+ paints the resulting RGB triangles. `src/render/mesh-shading.test.ts` ports
486
+ the unchanged upstream equality fixtures `issue4227` and `issue6305-part-1`,
487
+ with independently rendered reference pixels recorded in the tests.
488
+
489
+ Function-shading BBox coordinates follow PDF.js `FunctionBasedShading` in
490
+ `src/core/pattern.js`, keeping the BBox separate from the function-domain
491
+ Matrix. The local evaluator transforms page pixels back into shading space
492
+ for clipping. `src/render/shading-bbox.test.ts` covers translated, rotated,
493
+ and sheared page transforms and the unchanged upstream equality fixture.
494
+
495
+ Declared stream lengths follow PDF.js `Parser.makeStream`/`tryShift` in
496
+ `src/core/parser.js`: the next token must be `endstream`, otherwise scan for
497
+ the actual terminator. `src/cos/stream-length.test.ts` covers direct/indirect
498
+ lengths, malformed tokens at the claimed end, delimiter text inside accurate
499
+ streams, and PDF.js's unchanged `xobject-image.pdf` through load/save/render.