@almadar/integrations 2.35.0 → 2.36.0

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.
@@ -1908,6 +1908,53 @@ type RiggerActions = {
1908
1908
  }>;
1909
1909
  };
1910
1910
  };
1911
+ /** Build per-part cutout layer images (name, box, z-order, pivot) from a source image and rig. */
1912
+ buildLayers: {
1913
+ params: {
1914
+ /** Path to the source image. */
1915
+ imagePath: string;
1916
+ /** The rig definition (parts, boxes, pivots, …) as JSON. */
1917
+ rig: object;
1918
+ /** Output directory for the layer images. */
1919
+ outDir: string;
1920
+ };
1921
+ result: {
1922
+ layers: Array<{
1923
+ name: string;
1924
+ path: string;
1925
+ x: number;
1926
+ y: number;
1927
+ w: number;
1928
+ h: number;
1929
+ z: number;
1930
+ pivot: [number, number];
1931
+ isRest: boolean;
1932
+ }>;
1933
+ };
1934
+ };
1935
+ /** Sample a pose/animation preset into per-frame, per-part transforms for a rig. */
1936
+ pose: {
1937
+ params: {
1938
+ /** Path to the source image. */
1939
+ imagePath: string;
1940
+ /** The rig definition (parts, boxes, pivots, …) as JSON. */
1941
+ rig: object;
1942
+ /** Map of part name to preset bone role. */
1943
+ roles: Record<string, string>;
1944
+ /** Animation preset name. */
1945
+ preset?: string;
1946
+ /** Per-part motion overrides applied over the preset. */
1947
+ overrides?: object;
1948
+ };
1949
+ result: {
1950
+ fps: number;
1951
+ frames: Array<Record<string, {
1952
+ angle: number;
1953
+ bx: number;
1954
+ by: number;
1955
+ }>>;
1956
+ };
1957
+ };
1911
1958
  /** Generate one image on the local image server (text-to-image, or a Kontext edit conditioned on `sourcePath`). */
1912
1959
  generate: {
1913
1960
  params: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/integrations",
3
- "version": "2.35.0",
3
+ "version": "2.36.0",
4
4
  "description": "External service integrations for Almadar applications",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -33,7 +33,7 @@
33
33
  "access": "public"
34
34
  },
35
35
  "dependencies": {
36
- "@almadar/core": "^10.91.0",
36
+ "@almadar/core": "^10.92.0",
37
37
  "@almadar/llm": "^2.51.0",
38
38
  "@almadar/logger": "^1.12.0",
39
39
  "@aws-sdk/client-s3": "^3.700.0",