@almadar/integrations 2.33.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.
- package/dist/index.d.ts +19 -3
- package/dist/index.js +179 -1
- package/dist/index.js.map +1 -1
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/index.js +184 -0
- package/dist/runtime/index.js.map +1 -1
- package/dist/{store-C5nb44iS.d.ts → store-BGNfuoFd.d.ts} +136 -0
- package/package.json +3 -3
|
@@ -1802,6 +1802,141 @@ type ArxivActions = {
|
|
|
1802
1802
|
};
|
|
1803
1803
|
};
|
|
1804
1804
|
};
|
|
1805
|
+
type RiggerActions = {
|
|
1806
|
+
/** Liveness probe of the local rigger service. */
|
|
1807
|
+
health: {
|
|
1808
|
+
params: Record<string, never>;
|
|
1809
|
+
result: {
|
|
1810
|
+
ok: boolean;
|
|
1811
|
+
};
|
|
1812
|
+
};
|
|
1813
|
+
/** Build a rigged mesh bundle from a source image via the local rigger service. */
|
|
1814
|
+
buildMesh: {
|
|
1815
|
+
params: {
|
|
1816
|
+
/** Path to the source image. */
|
|
1817
|
+
imagePath: string;
|
|
1818
|
+
/** The rig definition (parts, boxes, pivots, …) as JSON. */
|
|
1819
|
+
rig: object;
|
|
1820
|
+
};
|
|
1821
|
+
result: {
|
|
1822
|
+
bundlePath: string;
|
|
1823
|
+
boneCount: number;
|
|
1824
|
+
vertexCount: number;
|
|
1825
|
+
triangleCount: number;
|
|
1826
|
+
clips: string[];
|
|
1827
|
+
};
|
|
1828
|
+
};
|
|
1829
|
+
/** Render a rigged mesh bundle to output files via the local rigger service. */
|
|
1830
|
+
render: {
|
|
1831
|
+
params: {
|
|
1832
|
+
/** Path to the source image. */
|
|
1833
|
+
imagePath: string;
|
|
1834
|
+
/** The rig definition (parts, boxes, pivots, …) as JSON. */
|
|
1835
|
+
rig: object;
|
|
1836
|
+
/** Render preset name. */
|
|
1837
|
+
preset: string;
|
|
1838
|
+
/** Output directory for rendered files. */
|
|
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;
|
|
1937
|
+
};
|
|
1938
|
+
};
|
|
1939
|
+
};
|
|
1805
1940
|
/**
|
|
1806
1941
|
* Maps each integration name (as used in `registerIntegration`) to its action
|
|
1807
1942
|
* map type. Use with `ServiceContract<IntegrationContracts[K]>` to get a fully
|
|
@@ -1844,6 +1979,7 @@ type IntegrationContracts = {
|
|
|
1844
1979
|
wikimedia: WikimediaActions;
|
|
1845
1980
|
iconify: IconifyActions;
|
|
1846
1981
|
arxiv: ArxivActions;
|
|
1982
|
+
rigger: RiggerActions;
|
|
1847
1983
|
};
|
|
1848
1984
|
/** Integration name literal union. */
|
|
1849
1985
|
type IntegrationName = keyof IntegrationContracts;
|
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,8 +33,8 @@
|
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@almadar/core": "^10.
|
|
37
|
-
"@almadar/llm": "^2.
|
|
36
|
+
"@almadar/core": "^10.91.0",
|
|
37
|
+
"@almadar/llm": "^2.51.0",
|
|
38
38
|
"@almadar/logger": "^1.12.0",
|
|
39
39
|
"@aws-sdk/client-s3": "^3.700.0",
|
|
40
40
|
"@aws-sdk/s3-request-presigner": "^3.700.0",
|