@almadar/integrations 2.34.0 → 2.35.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.
|
@@ -1815,8 +1815,8 @@ type RiggerActions = {
|
|
|
1815
1815
|
params: {
|
|
1816
1816
|
/** Path to the source image. */
|
|
1817
1817
|
imagePath: string;
|
|
1818
|
-
/**
|
|
1819
|
-
rig:
|
|
1818
|
+
/** The rig definition (parts, boxes, pivots, …) as JSON. */
|
|
1819
|
+
rig: object;
|
|
1820
1820
|
};
|
|
1821
1821
|
result: {
|
|
1822
1822
|
bundlePath: string;
|
|
@@ -1831,14 +1831,110 @@ type RiggerActions = {
|
|
|
1831
1831
|
params: {
|
|
1832
1832
|
/** Path to the source image. */
|
|
1833
1833
|
imagePath: string;
|
|
1834
|
-
/**
|
|
1835
|
-
rig:
|
|
1834
|
+
/** The rig definition (parts, boxes, pivots, …) as JSON. */
|
|
1835
|
+
rig: object;
|
|
1836
1836
|
/** Render preset name. */
|
|
1837
1837
|
preset: string;
|
|
1838
1838
|
/** Output directory for rendered files. */
|
|
1839
1839
|
outDir: string;
|
|
1840
|
+
/** Render path: 'mesh' (skinned, deforming) or 'cutout' (rigid per-part layers). Defaults to 'mesh'. */
|
|
1841
|
+
mode?: string;
|
|
1842
|
+
/** Supersampling factor for the cutout path. Defaults to 1. */
|
|
1843
|
+
supersample?: number;
|
|
1844
|
+
};
|
|
1845
|
+
result: {
|
|
1846
|
+
outdir: string;
|
|
1847
|
+
frames: number;
|
|
1848
|
+
framePaths: string[];
|
|
1849
|
+
sheet: string;
|
|
1850
|
+
gif: string;
|
|
1851
|
+
atlas: string;
|
|
1852
|
+
};
|
|
1853
|
+
};
|
|
1854
|
+
/** List the available animation presets (name, fps, frame count, bone roles) from the local rigger service. */
|
|
1855
|
+
listPresets: {
|
|
1856
|
+
params: Record<string, never>;
|
|
1857
|
+
result: {
|
|
1858
|
+
presets: Array<{
|
|
1859
|
+
name: string;
|
|
1860
|
+
path: string;
|
|
1861
|
+
fps: number;
|
|
1862
|
+
frames: number;
|
|
1863
|
+
bones: object[];
|
|
1864
|
+
}>;
|
|
1865
|
+
};
|
|
1866
|
+
};
|
|
1867
|
+
/** Load a rig file, resolving `cloneOf` parts to concrete box/pivot geometry. */
|
|
1868
|
+
loadRig: {
|
|
1869
|
+
params: {
|
|
1870
|
+
/** Path to the rig JSON file. */
|
|
1871
|
+
rigPath: string;
|
|
1872
|
+
};
|
|
1873
|
+
result: {
|
|
1874
|
+
/** The rig file's JSON, verbatim. */
|
|
1875
|
+
rig: object;
|
|
1876
|
+
/** The rig with every part's box/pivot resolved (clones included) plus rig-level knobs. */
|
|
1877
|
+
resolved: object;
|
|
1878
|
+
};
|
|
1879
|
+
};
|
|
1880
|
+
/** Save a rig file; the server validates it and rejects a malformed part. */
|
|
1881
|
+
saveRig: {
|
|
1882
|
+
params: {
|
|
1883
|
+
/** Path to write the rig JSON file. */
|
|
1884
|
+
rigPath: string;
|
|
1885
|
+
/** The rig definition (parts, boxes, pivots, …) as JSON. */
|
|
1886
|
+
rig: object;
|
|
1887
|
+
};
|
|
1888
|
+
result: {
|
|
1889
|
+
rigPath: string;
|
|
1890
|
+
parts: number;
|
|
1891
|
+
};
|
|
1892
|
+
};
|
|
1893
|
+
/** Render the per-part pixel ownership map for a rig over a source image. */
|
|
1894
|
+
ownership: {
|
|
1895
|
+
params: {
|
|
1896
|
+
/** Path to the source image. */
|
|
1897
|
+
imagePath: string;
|
|
1898
|
+
/** The rig definition (parts, boxes, pivots, …) as JSON. */
|
|
1899
|
+
rig: object;
|
|
1900
|
+
/** Path to write the ownership-map PNG. */
|
|
1901
|
+
outPath: string;
|
|
1902
|
+
};
|
|
1903
|
+
result: {
|
|
1904
|
+
outPath: string;
|
|
1905
|
+
legend: Array<{
|
|
1906
|
+
name: string;
|
|
1907
|
+
color: string;
|
|
1908
|
+
}>;
|
|
1909
|
+
};
|
|
1910
|
+
};
|
|
1911
|
+
/** Generate one image on the local image server (text-to-image, or a Kontext edit conditioned on `sourcePath`). */
|
|
1912
|
+
generate: {
|
|
1913
|
+
params: {
|
|
1914
|
+
/** Generation model: 'z-image-turbo' (text-to-image) or 'kontext' (edit; requires sourcePath). */
|
|
1915
|
+
model: 'z-image-turbo' | 'kontext';
|
|
1916
|
+
/** The generation/edit prompt. */
|
|
1917
|
+
prompt: string;
|
|
1918
|
+
/** Random seed; omit for a fresh one each call. */
|
|
1919
|
+
seed?: number;
|
|
1920
|
+
/** Output image size, e.g. '1024x1024'. Defaults to '1024x1024'. */
|
|
1921
|
+
size?: string;
|
|
1922
|
+
/** Diffusion step count. */
|
|
1923
|
+
steps?: number;
|
|
1924
|
+
/** Path to the source image to edit; REQUIRED for 'kontext'. */
|
|
1925
|
+
sourcePath?: string;
|
|
1926
|
+
/** Output directory the generated PNG is written under. */
|
|
1927
|
+
outDir: string;
|
|
1928
|
+
};
|
|
1929
|
+
result: {
|
|
1930
|
+
outPath: string;
|
|
1931
|
+
model: string;
|
|
1932
|
+
prompt: string;
|
|
1933
|
+
seed: number | null;
|
|
1934
|
+
size: string;
|
|
1935
|
+
sourcePath: string | null;
|
|
1936
|
+
elapsedMs: number;
|
|
1840
1937
|
};
|
|
1841
|
-
result: Record<string, string>;
|
|
1842
1938
|
};
|
|
1843
1939
|
};
|
|
1844
1940
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@almadar/integrations",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.35.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.
|
|
36
|
+
"@almadar/core": "^10.91.0",
|
|
37
37
|
"@almadar/llm": "^2.51.0",
|
|
38
38
|
"@almadar/logger": "^1.12.0",
|
|
39
39
|
"@aws-sdk/client-s3": "^3.700.0",
|