@poe-platform/safe-bash 0.1.844 → 0.1.846

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 (43) hide show
  1. package/dist/image-ast/ast.d.ts +12 -2
  2. package/dist/image-ast/browser/ast.d.ts +12 -2
  3. package/dist/image-ast/browser/codecs/exif-metadata.d.ts +2 -0
  4. package/dist/image-ast/browser/codecs/exif.d.ts +2 -0
  5. package/dist/image-ast/browser/codecs/gif-metadata-storage.d.ts +1 -0
  6. package/dist/image-ast/browser/codecs/gif-metadata.d.ts +1 -0
  7. package/dist/image-ast/browser/codecs/gif-output-parts.d.ts +1 -1
  8. package/dist/image-ast/browser/codecs/jpeg.d.ts +1 -1
  9. package/dist/image-ast/browser/codecs/netpbm-storage.d.ts +2 -2
  10. package/dist/image-ast/browser/codecs/netpbm.d.ts +4 -4
  11. package/dist/image-ast/browser/codecs/png-storage.d.ts +9 -1
  12. package/dist/image-ast/browser/codecs/png.d.ts +1 -0
  13. package/dist/image-ast/browser/codecs/tiff-layout.d.ts +3 -2
  14. package/dist/image-ast/codecs/exif-metadata.d.ts +2 -0
  15. package/dist/image-ast/codecs/exif.d.ts +2 -0
  16. package/dist/image-ast/codecs/gif-metadata-storage.d.ts +1 -0
  17. package/dist/image-ast/codecs/gif-metadata.d.ts +1 -0
  18. package/dist/image-ast/codecs/gif-output-parts.d.ts +1 -1
  19. package/dist/image-ast/codecs/jpeg.d.ts +1 -1
  20. package/dist/image-ast/codecs/netpbm-storage.d.ts +2 -2
  21. package/dist/image-ast/codecs/netpbm.d.ts +4 -4
  22. package/dist/image-ast/codecs/png-storage.d.ts +9 -1
  23. package/dist/image-ast/codecs/png.d.ts +1 -0
  24. package/dist/image-ast/codecs/tiff-layout.d.ts +3 -2
  25. package/dist/image-ast/index.js +554 -163
  26. package/dist/mp4-ast/types.d.ts +2 -0
  27. package/dist/safe-bash/command-chunks/{chunk-LORSYIAF.js → chunk-CSJHADNR.js} +31 -7
  28. package/dist/safe-bash/command-chunks/{chunk-KSCVKF7I.js → chunk-F42YLXD4.js} +3 -3
  29. package/dist/safe-bash/command-chunks/{chunk-2EEIB5O3.js → chunk-HUE2ATJY.js} +3 -3
  30. package/dist/safe-bash/command-chunks/{chunk-3SWIXYXT.js → chunk-NBQWCUOP.js} +1 -1
  31. package/dist/safe-bash/command-chunks/{chunk-U5TQVW64.js → chunk-ZTEK2JJD.js} +1 -1
  32. package/dist/safe-bash-command-ffmpeg/index.js +535 -88
  33. package/dist/safe-bash-command-ffprobe/index.js +2 -2
  34. package/dist/safe-bash-command-ffprobe/media.js +2 -2
  35. package/dist/safe-bash-command-imagemagick/compare-file.d.ts +3 -2
  36. package/dist/safe-bash-command-imagemagick/index.d.ts +1 -0
  37. package/dist/safe-bash-command-imagemagick/index.js +895 -276
  38. package/dist/safe-bash-command-imagemagick/raw-output.d.ts +10 -0
  39. package/dist/safe-bash-command-python/executor.js +3 -3
  40. package/dist/safe-bash-command-python/index.js +3 -3
  41. package/dist/safe-bash-command-python/jspi.js +2 -2
  42. package/dist/safe-bash-command-python/worker.js +1 -1
  43. package/package.json +2 -2
@@ -0,0 +1,10 @@
1
+ import { encodeImage as encodeRaster, encodeStoredImage as encodeStoredRaster, type ImageFormat as RasterFormat, type OutputEncodeOptions as RasterOptions, type RgbaImage, type StoredRgbaImage, type ImageByteStorage } from "../image-ast/portable.js";
2
+ export type RawCoder = "rgb" | "rgba" | "bgr" | "bgra" | "gray";
3
+ export type ImageFormat = RasterFormat | RawCoder;
4
+ export type OutputEncodeOptions = Omit<RasterOptions, "format"> & {
5
+ format: ImageFormat;
6
+ endian?: string | undefined;
7
+ };
8
+ export declare function isRawCoder(format: string | undefined): format is RawCoder;
9
+ export declare function encodeImage(image: RgbaImage, options: OutputEncodeOptions): ReturnType<typeof encodeRaster>;
10
+ export declare function encodeStoredImage(image: StoredRgbaImage, storage: ImageByteStorage, signal: AbortSignal, options: OutputEncodeOptions): ReturnType<typeof encodeStoredRaster>;
@@ -14,7 +14,7 @@ import {
14
14
  installPythonLlmPackages,
15
15
  pythonExecutorCommands,
16
16
  pythonLlmPackages
17
- } from "../safe-bash/command-chunks/chunk-2EEIB5O3.js";
17
+ } from "../safe-bash/command-chunks/chunk-HUE2ATJY.js";
18
18
  import {
19
19
  PythonPackageConflictError,
20
20
  createPythonPackageCache,
@@ -33,9 +33,9 @@ import {
33
33
  } from "../safe-bash/command-chunks/chunk-IOZTDDNT.js";
34
34
  import {
35
35
  createPythonJspiExecutor
36
- } from "../safe-bash/command-chunks/chunk-U5TQVW64.js";
36
+ } from "../safe-bash/command-chunks/chunk-ZTEK2JJD.js";
37
37
  import "../safe-bash/command-chunks/chunk-FXWKMNX2.js";
38
- import "../safe-bash/command-chunks/chunk-KSCVKF7I.js";
38
+ import "../safe-bash/command-chunks/chunk-F42YLXD4.js";
39
39
  import "../safe-bash/command-chunks/chunk-HS2L7I4N.js";
40
40
  import "../safe-bash/command-chunks/chunk-UCE77LYV.js";
41
41
  import {
@@ -14,7 +14,7 @@ import {
14
14
  installPythonLlmPackages,
15
15
  pythonExecutorCommands,
16
16
  pythonLlmPackages
17
- } from "../safe-bash/command-chunks/chunk-2EEIB5O3.js";
17
+ } from "../safe-bash/command-chunks/chunk-HUE2ATJY.js";
18
18
  import {
19
19
  PythonPackageConflictError,
20
20
  createPythonPackageCache,
@@ -33,9 +33,9 @@ import {
33
33
  } from "../safe-bash/command-chunks/chunk-IOZTDDNT.js";
34
34
  import {
35
35
  createPythonJspiExecutor
36
- } from "../safe-bash/command-chunks/chunk-U5TQVW64.js";
36
+ } from "../safe-bash/command-chunks/chunk-ZTEK2JJD.js";
37
37
  import "../safe-bash/command-chunks/chunk-FXWKMNX2.js";
38
- import "../safe-bash/command-chunks/chunk-KSCVKF7I.js";
38
+ import "../safe-bash/command-chunks/chunk-F42YLXD4.js";
39
39
  import "../safe-bash/command-chunks/chunk-HS2L7I4N.js";
40
40
  import "../safe-bash/command-chunks/chunk-UCE77LYV.js";
41
41
  import {
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  createPythonJspiExecutor
3
- } from "../safe-bash/command-chunks/chunk-U5TQVW64.js";
3
+ } from "../safe-bash/command-chunks/chunk-ZTEK2JJD.js";
4
4
  import "../safe-bash/command-chunks/chunk-FXWKMNX2.js";
5
- import "../safe-bash/command-chunks/chunk-KSCVKF7I.js";
5
+ import "../safe-bash/command-chunks/chunk-F42YLXD4.js";
6
6
  import "../safe-bash/command-chunks/chunk-HS2L7I4N.js";
7
7
  import "../safe-bash/command-chunks/chunk-UCE77LYV.js";
8
8
  import "../safe-bash/command-chunks/chunk-P56KGNW7.js";
@@ -3,7 +3,7 @@ import {
3
3
  loadPythonRuntimePrograms,
4
4
  parsePythonInvocation,
5
5
  pythonExecution
6
- } from "../safe-bash/command-chunks/chunk-KSCVKF7I.js";
6
+ } from "../safe-bash/command-chunks/chunk-F42YLXD4.js";
7
7
  import "../safe-bash/command-chunks/chunk-HS2L7I4N.js";
8
8
  import "../safe-bash/command-chunks/chunk-UCE77LYV.js";
9
9
  import {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poe-platform/safe-bash",
3
- "version": "0.1.844",
3
+ "version": "0.1.846",
4
4
  "description": "Extensible virtual shell with pluggable filesystems and streaming commands",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -1415,7 +1415,7 @@
1415
1415
  "access": "public"
1416
1416
  },
1417
1417
  "dependencies": {
1418
- "@poe-platform/safe-fs": "0.1.844",
1418
+ "@poe-platform/safe-fs": "0.1.846",
1419
1419
  "pdf-lib": "1.17.1",
1420
1420
  "@types/node": "^25.2.2",
1421
1421
  "@formatjs/intl-numberformat": "9.4.0",