@poe-platform/safe-bash 0.1.772 → 0.1.773

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 (39) hide show
  1. package/dist/image-ast/index.browser.js +2801 -556
  2. package/dist/image-ast/index.js +2801 -556
  3. package/dist/pdf-ast/ast.d.ts +7 -0
  4. package/dist/pdf-ast/content/evaluator.d.ts +1 -0
  5. package/dist/pdf-ast/index.js +2845 -568
  6. package/dist/pdf-ast/render/raster.d.ts +1 -0
  7. package/dist/pdf-ast/vendor/pdfjs-fonts.d.mts +24 -0
  8. package/dist/pdf-ast/vendor/pdfjs-fonts.mjs +2621 -0
  9. package/dist/safe-bash/command-chunks/{chunk-M2XU2YCK.js → chunk-5VXZSNM2.js} +2 -2
  10. package/dist/safe-bash/command-chunks/{chunk-C4AAJTXF.js → chunk-B2MM5DIT.js} +2804 -556
  11. package/dist/safe-bash/command-chunks/{chunk-NBENXODJ.js → chunk-G3NVK25P.js} +1 -1
  12. package/dist/safe-bash/core.browser.js +38 -38
  13. package/dist/safe-bash/core.d.ts +1 -1
  14. package/dist/safe-bash/plugins/composition.d.ts +2 -0
  15. package/dist/safe-bash/plugins/composition.js +2 -1
  16. package/dist/safe-bash-command-ffmpeg/index.js +10968 -9719
  17. package/dist/safe-bash-command-gh/index.d.ts +1 -0
  18. package/dist/safe-bash-command-gh/index.js +43 -13
  19. package/dist/safe-bash-command-gh/types.d.ts +1 -0
  20. package/dist/safe-bash-command-git/git_rust.wasm +0 -0
  21. package/dist/safe-bash-command-git/index.js +22 -15
  22. package/dist/safe-bash-command-git/wasm.generated.js +1 -1
  23. package/dist/safe-bash-command-imagemagick/index.js +2 -2
  24. package/dist/safe-bash-command-pandoc/command.js +3 -3
  25. package/dist/safe-bash-command-pandoc/index.js +3 -3
  26. package/dist/safe-bash-command-pdfimages/index.js +2800 -510
  27. package/dist/safe-bash-command-pdfinfo/index.js +2842 -568
  28. package/dist/safe-bash-command-pdftk/index.js +2800 -510
  29. package/dist/safe-bash-command-pdftoppm/index.js +2847 -637
  30. package/dist/safe-bash-command-pdftotext/index.js +2800 -510
  31. package/dist/safe-bash-command-qpdf/index.js +2800 -510
  32. package/dist/safe-bash-command-sips/index.js +2 -2
  33. package/dist/safe-bash-command-soffice/index.js +1 -1
  34. package/dist/safe-bash-command-ssconvert/index.js +2811 -566
  35. package/dist/safe-bash-command-wkhtmltopdf/index.js +2833 -510
  36. package/dist/safe-bash-mcp/index.d.ts +8 -2
  37. package/dist/safe-bash-mcp/index.js +13 -6
  38. package/package.json +7 -7
  39. package/third-party/pdf-ast/THIRD_PARTY_NOTICES.md +62 -1
@@ -36,6 +36,7 @@ export declare function encodePbm(bitmap: RgbaBitmap): Uint8Array;
36
36
  export declare function rotateRgbaBitmapQuarterTurns(bitmap: RgbaBitmap, degrees: number): RgbaBitmap;
37
37
  export declare function cropRgbaBitmap(bitmap: RgbaBitmap, rect: PdfCropRect): RgbaBitmap;
38
38
  export declare function encodeRgbaToPng(width: number, height: number, rgba: Uint8Array): Uint8Array;
39
+ export declare function getDisplayListCropBox(list: PdfDisplayList): [number, number, number, number];
39
40
  export declare function renderDisplayListToBitmap(displayList: PdfDisplayList, options?: RenderToPngOptions): RgbaBitmap;
40
41
  export declare function renderDisplayListToPng(displayList: PdfDisplayList, options?: RenderToPngOptions): Uint8Array;
41
42
  export declare function renderDisplayListToSvg(displayList: PdfDisplayList, options?: RenderToPngOptions): string;
@@ -43,6 +43,28 @@ export const DrawOPS: { moveTo: number; lineTo: number; curveTo: number; quadrat
43
43
  export const WinAnsiEncoding: string[];
44
44
  export const MacStandardGlyphOrdering: string[];
45
45
  export function encodeToXmlString(value: string): string;
46
+ export class DeviceCmykCS {
47
+ getRgb(src: ArrayLike<number>, srcOffset: number): Uint8ClampedArray;
48
+ }
49
+ export class CalGrayCS {
50
+ constructor(whitePoint: number[], blackPoint?: number[], gamma?: number);
51
+ readonly name: "CalGray";
52
+ getRgb(src: ArrayLike<number>, srcOffset: number): Uint8ClampedArray;
53
+ }
54
+ export class CalRGBCS {
55
+ constructor(whitePoint: number[], blackPoint?: number[], gamma?: number[], matrix?: number[]);
56
+ readonly name: "CalRGB";
57
+ getRgb(src: ArrayLike<number>, srcOffset: number): Uint8ClampedArray;
58
+ }
59
+ export class LabCS {
60
+ constructor(whitePoint: number[], blackPoint?: number[], range?: number[]);
61
+ readonly name: "Lab";
62
+ readonly amin: number;
63
+ readonly amax: number;
64
+ readonly bmin: number;
65
+ readonly bmax: number;
66
+ getRgb(src: ArrayLike<number>, srcOffset: number): Uint8ClampedArray;
67
+ }
46
68
  export class PageViewport {
47
69
  constructor(options: { viewBox: number[]; userUnit: number; scale: number; rotation: number; offsetX?: number; offsetY?: number; dontFlip?: boolean });
48
70
  readonly width: number;
@@ -109,6 +131,8 @@ export class PDF17 {
109
131
  }
110
132
  export class PDF20 extends PDF17 {}
111
133
  export function saslPrep(value: string): string;
134
+ export function buildPostScriptJsFunction(source: string, domain: readonly number[], range: readonly number[]):
135
+ (src: readonly number[], srcOffset: number, dest: number[], destOffset: number) => void;
112
136
  export class CipherTransformFactory {
113
137
  constructor(dict: Dict, fileId: string, password?: string);
114
138
  readonly encryptionKey: Uint8Array | null;