@hanzo/studio 0.1.12 → 0.1.14
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/lib/app/director.d.ts +2 -2
- package/lib/app/director.js +13 -13
- package/lib/app/flow.d.ts +3 -3
- package/lib/app/flow.js +32 -32
- package/lib/kinds/image.d.ts +1 -1
- package/lib/kinds/image.js +3 -3
- package/lib/kinds/sound.js +11 -108
- package/lib/kinds/video.js +1 -1
- package/package.json +1 -1
package/lib/app/director.d.ts
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Hanzo Studio — The ComfyUI 2.0 Replacement & Multi-Modal Production Suite
|
|
3
3
|
*
|
|
4
4
|
* Unifies:
|
|
5
|
-
* 1. Video & Cinema Director (
|
|
5
|
+
* 1. Video & Cinema Director (Koma 2.0, 12 Camera Rigs, Anamorphic Lenses, Character Seed Lock, Multi-Shot ConcatVideo NLE Timeline)
|
|
6
6
|
* 2. Node Graph & Pipelines (ComfyUI 2.0 visual graph editor, live node inspector, API JSON export, /prompt & /v1/templates dispatch, /?advanced=1 bridge)
|
|
7
7
|
* 3. Music, Voice & Audio Stem Lab (ACE-Step 3.5B song generator, Koe TTS dialogue synthesis, 4-stem DAW mixer with WebAudio synth & WAV export)
|
|
8
|
-
* 4. 3D Mesh & World Studio (
|
|
8
|
+
* 4. 3D Mesh & World Studio (Mori 3D 2.1 image-to-.glb mesh pipeline, interactive 60fps 3D orbit/wireframe/PBR/normal viewport, .obj/.glb export)
|
|
9
9
|
* 5. Studio Library, Stacks & Critique Flywheel (/v1/library, Procreate-style Stacks, Mask Inpainting /v1/library/fix, Multi-Ref Compose, 👍/👎 JSONL training flywheel, CMS publish)
|
|
10
10
|
* 6. GPU Fleet & Render Queue (/v1/gpu-status target node selector, /v1/queue/status, /v1/worklog provenance & lineage)
|
|
11
11
|
*/
|
package/lib/app/director.js
CHANGED
|
@@ -166,7 +166,7 @@ export const OFFICE_DOCUMENT_TEMPLATES = [
|
|
|
166
166
|
category: 'Spreadsheets',
|
|
167
167
|
format: 'XLSX / CSV',
|
|
168
168
|
endpoint: '/v1/documents/generate',
|
|
169
|
-
description: 'Per-asset breakdown across image,
|
|
169
|
+
description: 'Per-asset breakdown across image, Koma 2.0 video, Mori 3D mesh, and human retouching hours.',
|
|
170
170
|
defaultBrief: 'Season lookbook automation across 180 SKUs comparing traditional studio shoot vs Hanzo Studio CAD-to-Photoreal pipeline.',
|
|
171
171
|
},
|
|
172
172
|
{
|
|
@@ -313,10 +313,10 @@ const MESH_PRESETS = [
|
|
|
313
313
|
{ id: 'mesh-pavilion', name: 'Brutalist Acoustic Monolith', category: 'Architecture / World', vertices: 29_400, faces: 58_800, octree: 384, prompt: 'Faceted obsidian acoustic monument with warm recessed linear light channels', shape: 'crystal' },
|
|
314
314
|
];
|
|
315
315
|
const INITIAL_LIBRARY = [
|
|
316
|
-
{ id: 'lib-1', path: 'video/neo_kyoto_establishing.mp4', title: 'Neo-Kyoto Establishing Shot 01', modality: 'video', stack: 'Sequence 01 — Rain Protocol', status: 'published', vote: 1, critique: 'Great anamorphic flare; keep wet pavement reflections.', workflow: '
|
|
317
|
-
{ id: 'lib-2', path: 'mesh/valkyrie9_chassis.glb', title: 'Valkyrie-9 Drone (.glb Mesh)', modality: 'model3d', stack: 'Hero Props & 3D Assets', status: 'approved', vote: 1, critique: 'Clean watertight topology at 384 octree.', workflow: '
|
|
316
|
+
{ id: 'lib-1', path: 'video/neo_kyoto_establishing.mp4', title: 'Neo-Kyoto Establishing Shot 01', modality: 'video', stack: 'Sequence 01 — Rain Protocol', status: 'published', vote: 1, critique: 'Great anamorphic flare; keep wet pavement reflections.', workflow: 'koma2-ti2v', createdAt: '2m ago' },
|
|
317
|
+
{ id: 'lib-2', path: 'mesh/valkyrie9_chassis.glb', title: 'Valkyrie-9 Drone (.glb Mesh)', modality: 'model3d', stack: 'Hero Props & 3D Assets', status: 'approved', vote: 1, critique: 'Clean watertight topology at 384 octree.', workflow: 'mori3d-mesh', createdAt: '11m ago' },
|
|
318
318
|
{ id: 'lib-3', path: 'audio/night_grid_stems.mp3', title: 'Night Grid — 122 BPM Master Stem', modality: 'music', stack: 'Soundtrack & Koe Stems', status: 'published', vote: 1, critique: 'Sub-bass sits cleanly under Kael baritone dialogue.', workflow: 'acestep-music', createdAt: '18m ago' },
|
|
319
|
-
{ id: 'lib-4', path: 'edit/kael_trench_lookbook.png', title: 'Kael Vance — Wardrobe Lock v3', modality: 'image', stack: 'Character Continuity Vault', status: 'draft', vote: 0, critique: '', workflow: '
|
|
319
|
+
{ id: 'lib-4', path: 'edit/kael_trench_lookbook.png', title: 'Kael Vance — Wardrobe Lock v3', modality: 'image', stack: 'Character Continuity Vault', status: 'draft', vote: 0, critique: '', workflow: 'iro-edit-inpaint', createdAt: '26m ago' },
|
|
320
320
|
];
|
|
321
321
|
export function DirectorStudio({ host }) {
|
|
322
322
|
const wire = useWire(host);
|
|
@@ -336,7 +336,7 @@ export function DirectorStudio({ host }) {
|
|
|
336
336
|
{ name: 'dgx-h100-cluster', online: true, depth: 1, vram: '8×80 GB HBM3', lanes: ['video.wan', 'koma.v2', 'mesh', 'music.ace'] },
|
|
337
337
|
]);
|
|
338
338
|
const [targetGpu, setTargetGpu] = useState('any');
|
|
339
|
-
const [statusNote, setStatusNote] = useState('ComfyUI 2.0 Engine ·
|
|
339
|
+
const [statusNote, setStatusNote] = useState('ComfyUI 2.0 Engine · Koma 2.0 · Mori 3D 2.1 · ACE-Step 3.5B · Koe TTS');
|
|
340
340
|
// Poll /v1/gpu-status when available
|
|
341
341
|
useEffect(() => {
|
|
342
342
|
let alive = true;
|
|
@@ -899,7 +899,7 @@ export function DirectorStudio({ host }) {
|
|
|
899
899
|
}
|
|
900
900
|
ctx.fillStyle = 'rgba(255,255,255,0.78)';
|
|
901
901
|
ctx.font = '600 12px ui-monospace, SFMono-Regular, Menlo, monospace';
|
|
902
|
-
ctx.fillText(`
|
|
902
|
+
ctx.fillText(`MORI 3D 2.1 · ${activeMesh.name.toUpperCase()} · SHADER: ${meshShader.toUpperCase()}`, 16, 24);
|
|
903
903
|
ctx.fillStyle = '#3ddc84';
|
|
904
904
|
ctx.fillText(`VERTICES: ${activeMesh.vertices.toLocaleString()} · FACES: ${activeMesh.faces.toLocaleString()} · OCTREE: ${meshOctree}`, 16, h - 14);
|
|
905
905
|
if (!reducedMotion())
|
|
@@ -945,7 +945,7 @@ export function DirectorStudio({ host }) {
|
|
|
945
945
|
`Optics: ${activeLens.label}, aperture ${shot.aperture}, aspect ${activeLens.aspect}.`,
|
|
946
946
|
`Lighting: ${activeLighting.label}.`,
|
|
947
947
|
].join(' ');
|
|
948
|
-
setStatusNote(`Dispatching Shot ${shot.number} (${activeCamera.code}) to Hanzo Studio
|
|
948
|
+
setStatusNote(`Dispatching Shot ${shot.number} (${activeCamera.code}) to Hanzo Studio Koma 2.0 lane…`);
|
|
949
949
|
try {
|
|
950
950
|
const body = await ask(wire, 'api', '/v1/videos', {
|
|
951
951
|
body: {
|
|
@@ -992,7 +992,7 @@ export function DirectorStudio({ host }) {
|
|
|
992
992
|
};
|
|
993
993
|
const exportMeshObj = () => {
|
|
994
994
|
const lines = [
|
|
995
|
-
`# Hanzo Studio
|
|
995
|
+
`# Hanzo Studio Mori 3D 2.1 Export: ${activeMesh.name}`,
|
|
996
996
|
`# Octree: ${meshOctree} · Vertices: ${activeMesh.vertices}`,
|
|
997
997
|
'o HanzoStudioMesh',
|
|
998
998
|
'v -1.0000 -1.0000 1.0000',
|
|
@@ -1131,7 +1131,7 @@ export function DirectorStudio({ host }) {
|
|
|
1131
1131
|
}) }), _jsx(YStack, { gap: "$1.5", children: LIGHTING_RIGS.map((rig) => {
|
|
1132
1132
|
const on = rig.id === activeShot.lightingId;
|
|
1133
1133
|
return (_jsxs(XStack, { render: _jsx("button", { type: "button" }), onClick: () => updateShot({ lightingId: rig.id }), px: "$2.5", minH: 44, "$max-sm": { minH: 44 }, $md: { minH: 32 }, py: "$1.5", rounded: "$3", "aria-pressed": on, borderWidth: on ? 1.5 : 1, borderColor: on ? 'var(--foreground)' : 'var(--border-strong)', bg: on ? 'var(--surface-card)' : 'var(--background)', boxShadow: on ? 'var(--shadow-sheet-2)' : undefined, hoverStyle: { bg: on ? 'var(--surface-card)' : '$hover', borderColor: on ? 'var(--foreground)' : 'var(--border-strong)' }, focusVisibleStyle: RING, items: "center", gap: "$2", cursor: "pointer", children: [_jsx(XStack, { gap: 3, shrink: 0, children: rig.colors.map((hex) => (_jsx(XStack, { width: 10, height: 10, rounded: 99, style: { backgroundColor: hex, border: '1px solid var(--border-strong)', boxShadow: 'inset 0 0 0 1px color-mix(in srgb, var(--foreground) 20%, transparent)' }, borderWidth: 1, borderColor: "var(--border-strong)" }, hex))) }), _jsx(SizableText, { size: "$2", fontWeight: on ? '600' : '500', color: "$ink", numberOfLines: 1, children: rig.label })] }, rig.id));
|
|
1134
|
-
}) })] }), _jsxs(YStack, { width: "100%", minW: 0, $xl: { flex: 1 }, gap: "$3", p: "$3.5", rounded: "$4", borderWidth: 1, borderColor: "var(--border)", bg: "var(--surface-card)", children: [_jsxs(YStack, { gap: "$2", minW: 0, children: [_jsxs(YStack, { gap: 2, minW: 0, children: [_jsx(SizableText, { render: "h2", size: "$3", fontWeight: "600", color: "$ink", children: `Shot ${activeShot.number}: ${activeShot.title}` }), _jsx(SizableText, { size: "$1", color: "$soft", fontFamily: "$mono", children: `${activeCamera.name} · ${activeLens.label} · ${activeShot.aperture} · Cast: ${activeCharacter.name}` })] }), _jsxs(XStack, { gap: "$1.5", items: "center", flexWrap: "wrap", width: "100%", children: [_jsxs(XStack, { render: _jsx("button", { type: "button" }), "aria-pressed": sequenceMode, onClick: () => setSequenceMode((m) => !m), items: "center", gap: "$1.5", px: "$3", minH: 44, "$max-sm": { minH: 44 }, $md: { minH: 32, height: 32 }, rounded: 999, borderWidth: 1, borderColor: sequenceMode ? '$ink' : 'var(--border-strong)', bg: sequenceMode ? 'var(--surface-card-emphasis)' : 'transparent', hoverStyle: { bg: '$hover' }, focusVisibleStyle: RING, cursor: "pointer", shrink: 0, children: [_jsx(Film, { size: 13, color: "$ink" }), _jsx(SizableText, { size: "$1", fontWeight: sequenceMode ? '600' : '500', color: "$ink", children: sequenceMode ? 'Chain shots: on' : 'Chain all shots' })] }), _jsxs(XStack, { render: _jsx("button", { type: "button" }), onClick: () => setPlaying((p) => !p), px: "$3", minH: 44, "$max-sm": { minH: 44 }, $md: { minH: 32, height: 32 }, items: "center", gap: "$1.5", rounded: 999, borderWidth: 1, borderColor: "var(--border-strong)", bg: "transparent", hoverStyle: { bg: '$hover' }, focusVisibleStyle: RING, cursor: "pointer", shrink: 0, children: [_jsx(Play, { size: 13, color: "$ink" }), _jsx(SizableText, { size: "$1", color: "$ink", children: playing ? 'Pause monitor' : 'Play monitor' })] }), _jsxs(XStack, { render: _jsx("button", { type: "button" }), onClick: () => void renderShotOnCloud(activeShot), px: "$4", minH: 44, "$max-sm": { minH: 44 }, $md: { minH: 32, height: 32 }, items: "center", gap: "$1.5", rounded: 999, bg: "$ink", hoverStyle: { opacity: 0.9 }, focusVisibleStyle: RING, cursor: "pointer", shrink: 0, children: [_jsx(Sparkles, { size: 13, color: "$background" }), _jsx(SizableText, { size: "$2", color: "$background", fontWeight: "600", children: renderingId === activeShot.id ? 'Rendering shot…' : 'Render shot (
|
|
1134
|
+
}) })] }), _jsxs(YStack, { width: "100%", minW: 0, $xl: { flex: 1 }, gap: "$3", p: "$3.5", rounded: "$4", borderWidth: 1, borderColor: "var(--border)", bg: "var(--surface-card)", children: [_jsxs(YStack, { gap: "$2", minW: 0, children: [_jsxs(YStack, { gap: 2, minW: 0, children: [_jsx(SizableText, { render: "h2", size: "$3", fontWeight: "600", color: "$ink", children: `Shot ${activeShot.number}: ${activeShot.title}` }), _jsx(SizableText, { size: "$1", color: "$soft", fontFamily: "$mono", children: `${activeCamera.name} · ${activeLens.label} · ${activeShot.aperture} · Cast: ${activeCharacter.name}` })] }), _jsxs(XStack, { gap: "$1.5", items: "center", flexWrap: "wrap", width: "100%", children: [_jsxs(XStack, { render: _jsx("button", { type: "button" }), "aria-pressed": sequenceMode, onClick: () => setSequenceMode((m) => !m), items: "center", gap: "$1.5", px: "$3", minH: 44, "$max-sm": { minH: 44 }, $md: { minH: 32, height: 32 }, rounded: 999, borderWidth: 1, borderColor: sequenceMode ? '$ink' : 'var(--border-strong)', bg: sequenceMode ? 'var(--surface-card-emphasis)' : 'transparent', hoverStyle: { bg: '$hover' }, focusVisibleStyle: RING, cursor: "pointer", shrink: 0, children: [_jsx(Film, { size: 13, color: "$ink" }), _jsx(SizableText, { size: "$1", fontWeight: sequenceMode ? '600' : '500', color: "$ink", children: sequenceMode ? 'Chain shots: on' : 'Chain all shots' })] }), _jsxs(XStack, { render: _jsx("button", { type: "button" }), onClick: () => setPlaying((p) => !p), px: "$3", minH: 44, "$max-sm": { minH: 44 }, $md: { minH: 32, height: 32 }, items: "center", gap: "$1.5", rounded: 999, borderWidth: 1, borderColor: "var(--border-strong)", bg: "transparent", hoverStyle: { bg: '$hover' }, focusVisibleStyle: RING, cursor: "pointer", shrink: 0, children: [_jsx(Play, { size: 13, color: "$ink" }), _jsx(SizableText, { size: "$1", color: "$ink", children: playing ? 'Pause monitor' : 'Play monitor' })] }), _jsxs(XStack, { render: _jsx("button", { type: "button" }), onClick: () => void renderShotOnCloud(activeShot), px: "$4", minH: 44, "$max-sm": { minH: 44 }, $md: { minH: 32, height: 32 }, items: "center", gap: "$1.5", rounded: 999, bg: "$ink", hoverStyle: { opacity: 0.9 }, focusVisibleStyle: RING, cursor: "pointer", shrink: 0, children: [_jsx(Sparkles, { size: 13, color: "$background" }), _jsx(SizableText, { size: "$2", color: "$background", fontWeight: "600", children: renderingId === activeShot.id ? 'Rendering shot…' : 'Render shot (Koma 2.0)' })] })] })] }), _jsx(YStack, { rounded: "$4", overflow: "hidden", borderWidth: 1, borderColor: "var(--border-strong)", bg: "var(--surface-card)", items: "center", justify: "center", children: _jsx("canvas", { ref: canvasRef, width: 860, height: 420, style: { width: '100%', height: 'auto', display: 'block' } }) }), _jsxs(YStack, { gap: "$2", minW: 0, children: [_jsx(SizableText, { size: "$1", color: "$soft", children: "Scene action & blocking prompt" }), _jsx(StudioTextarea, { "aria-label": "Scene action and blocking prompt", style: { resize: 'none' }, ...{ value: activeShot.prompt, rows: 2 }, onChange: (e) => updateShot({ prompt: e.currentTarget.value }) }), _jsxs(XStack, { gap: "$2", flexWrap: "wrap", minW: 0, children: [_jsxs(YStack, { flex: 1, minW: 180, gap: "$1", children: [_jsx(SizableText, { size: "$1", color: "$soft", children: "Lip-sync dialogue line (Koe performance)" }), _jsx(StudioInput, { "aria-label": "Lip-sync dialogue line", ...{ value: activeShot.dialogue, placeholder: 'Spoken line for lip-sync & voice stem…' }, onChange: (e) => updateShot({ dialogue: e.currentTarget.value }) })] }), _jsxs(YStack, { width: 130, gap: "$1", children: [_jsx(SizableText, { size: "$1", color: "$soft", children: "Shot duration (s)" }), _jsx(StudioInput, { "aria-label": "Shot duration in seconds", ...{ type: 'number', min: 1, max: 15, step: 0.5, value: String(activeShot.durationSec) }, onChange: (e) => updateShot({ durationSec: Math.max(1, Number(e.currentTarget.value) || 4) }) })] })] })] })] }), _jsxs(YStack, { width: "100%", minW: 0, $xl: { width: 268, shrink: 0 }, $xxl: { width: 280 }, gap: "$3", p: "$3", rounded: "$4", borderWidth: 1, borderColor: "var(--border)", bg: "var(--surface-card)", children: [_jsx(SizableText, { render: "h2", size: "$3", fontWeight: "600", color: "$ink", children: "4. Character & world continuity lock" }), _jsx(SizableText, { size: "$1", color: "$soft", children: "Lock face geometry, wardrobe, and voice identity across every shot in the sequence." }), _jsx(YStack, { gap: "$2", children: characters.map((char) => {
|
|
1135
1135
|
const locked = char.id === activeShot.characterId;
|
|
1136
1136
|
return (_jsxs(YStack, { render: _jsx("button", { type: "button" }), onClick: () => updateShot({ characterId: char.id }), width: "100%", minW: 0, minH: 44, "$max-sm": { minH: 44 }, p: "$2.5", rounded: "$3", "aria-pressed": locked, borderWidth: locked ? 1.5 : 1, borderColor: locked ? 'var(--foreground)' : 'var(--border-strong)', bg: locked ? 'var(--surface-card)' : 'var(--background)', boxShadow: locked ? 'var(--shadow-sheet-2)' : undefined, hoverStyle: { bg: locked ? 'var(--surface-card)' : '$hover', borderColor: locked ? 'var(--foreground)' : 'var(--border-strong)' }, focusVisibleStyle: RING, gap: "$1", items: "flex-start", cursor: "pointer", children: [_jsxs(XStack, { justify: "space-between", items: "center", width: "100%", gap: "$2", children: [_jsx(SizableText, { size: "$2", fontWeight: "600", color: "$ink", text: "left", children: char.name }), _jsxs(XStack, { items: "center", gap: "$1", shrink: 0, children: [locked ? _jsx(XStack, { width: 6, height: 6, rounded: 99, bg: "var(--state-success)" }) : null, _jsx(SizableText, { size: "$1", fontFamily: "$mono", color: locked ? 'var(--state-success)' : '$soft', children: locked ? `Locked #${char.seed}` : `#${char.seed}` })] })] }), _jsx(SizableText, { size: "$1", color: "$soft", text: "left", numberOfLines: 2, children: char.wardrobe }), _jsx(SizableText, { size: "$1", color: "$soft", text: "left", children: char.voice })] }, char.id));
|
|
1137
1137
|
}) }), _jsxs(YStack, { gap: "$2", pt: "$2", borderTopWidth: 1, borderColor: "var(--border)", children: [_jsx(SizableText, { size: "$2", fontWeight: "600", color: "$ink", children: "Lock new character / actor ID" }), _jsx(StudioInput, { "aria-label": "New character name", ...{ placeholder: 'Character name (e.g. Mira Solis)', value: newCharName }, onChange: (e) => setNewCharName(e.currentTarget.value) }), _jsx(StudioInput, { "aria-label": "New character wardrobe and look", ...{ placeholder: 'Wardrobe, face & look traits…', value: newCharWardrobe }, onChange: (e) => setNewCharWardrobe(e.currentTarget.value) }), _jsxs(XStack, { render: _jsx("button", { type: "button" }), onClick: addCharacter, items: "center", justify: "center", gap: "$1.5", minH: 44, "$max-sm": { minH: 44 }, $md: { minH: 32, height: 32 }, rounded: "$3", borderWidth: 1, borderColor: "var(--border-strong)", bg: "transparent", cursor: "pointer", hoverStyle: { bg: '$hover' }, focusVisibleStyle: RING, children: [_jsx(Plus, { size: 13, color: "$ink" }), _jsx(SizableText, { size: "$1", fontWeight: "600", color: "$ink", children: "Add & lock character ID" })] })] })] })] }), _jsxs(YStack, { gap: "$2.5", p: "$3", rounded: "$4", borderWidth: 1, borderColor: "var(--border)", bg: "var(--surface-card)", minW: 0, children: [_jsxs(XStack, { items: "center", justify: "space-between", flexWrap: "wrap", gap: "$2", children: [_jsxs(XStack, { items: "center", gap: "$2", flexWrap: "wrap", children: [_jsx(Video, { size: 15, color: "$ink" }), _jsx(SizableText, { render: "h2", size: "$3", fontWeight: "600", color: "$ink", children: "Multi-shot storyboard & NLE timeline" }), _jsx(SizableText, { size: "$1", color: "$soft", fontFamily: "$mono", children: `${shots.length} shots · ${shots.reduce((acc, s) => acc + s.durationSec, 0).toFixed(1)}s master cut` })] }), _jsxs(XStack, { render: _jsx("button", { type: "button" }), onClick: addShot, items: "center", gap: "$1.5", px: "$3", minH: 44, "$max-sm": { minH: 44 }, $md: { minH: 28, height: 28 }, rounded: 999, borderWidth: 1, borderColor: "var(--border-strong)", bg: "transparent", cursor: "pointer", hoverStyle: { bg: '$hover' }, focusVisibleStyle: RING, children: [_jsx(Plus, { size: 13, color: "$ink" }), _jsx(SizableText, { size: "$1", fontWeight: "600", color: "$ink", children: "Append shot to timeline" })] })] }), _jsx(XStack, { gap: "$2.5", overflowX: "auto", pb: "$1", width: "100%", children: shots.map((s) => {
|
|
@@ -1148,7 +1148,7 @@ export function DirectorStudio({ host }) {
|
|
|
1148
1148
|
}, style: { flex: 1, minWidth: 100 } }), _jsxs(XStack, { gap: "$1.5", shrink: 0, children: [_jsx(XStack, { render: _jsx("button", { type: "button" }), "aria-label": `Mute ${stem.name}`, "aria-pressed": stem.muted, onClick: () => setStems((prev) => prev.map((s) => (s.id === stem.id ? { ...s, muted: !s.muted } : s))), px: "$2.5", minW: 44, minH: 44, "$max-sm": { minW: 44, minH: 44 }, $md: { minW: 30, minH: 26, height: 26 }, items: "center", justify: "center", rounded: "$2", borderWidth: 1, borderColor: stem.muted ? '$ink' : 'var(--border-strong)', bg: stem.muted ? 'var(--surface-card-emphasis)' : 'transparent', hoverStyle: { bg: '$hover' }, focusVisibleStyle: RING, cursor: "pointer", children: _jsx(SizableText, { size: "$1", fontWeight: stem.muted ? '600' : '500', color: stem.muted ? '$ink' : '$soft', children: "M" }) }), _jsx(XStack, { render: _jsx("button", { type: "button" }), "aria-label": `Solo ${stem.name}`, "aria-pressed": stem.solo, onClick: () => setStems((prev) => prev.map((s) => (s.id === stem.id ? { ...s, solo: !s.solo } : s))), px: "$2.5", minW: 44, minH: 44, "$max-sm": { minW: 44, minH: 44 }, $md: { minW: 30, minH: 26, height: 26 }, items: "center", justify: "center", rounded: "$2", borderWidth: 1, borderColor: stem.solo ? '$ink' : 'var(--border-strong)', bg: stem.solo ? 'var(--surface-card-emphasis)' : 'transparent', hoverStyle: { bg: '$hover' }, focusVisibleStyle: RING, cursor: "pointer", children: _jsx(SizableText, { size: "$1", fontWeight: stem.solo ? '600' : '500', color: stem.solo ? '$ink' : '$soft', children: "S" }) })] })] }, stem.id))) })] }), _jsxs(YStack, { width: "100%", minW: 0, $xl: { width: 268, shrink: 0 }, $xxl: { width: 280 }, gap: "$3", p: "$3", rounded: "$4", borderWidth: 1, borderColor: "var(--border)", bg: "var(--surface-card)", children: [_jsx(SizableText, { render: "h2", size: "$3", fontWeight: "600", color: "$ink", children: "Koe voice & dialogue studio" }), _jsx(SizableText, { size: "$1", color: "$soft", children: "Zero-shot voice cloning & emotional speech synthesis (/v1/audio/speech)." }), _jsx(YStack, { gap: "$1.5", children: ['koe-baritone', 'koe-alto', 'koe-narrator', 'oto-cyber'].map((vp) => (_jsxs(XStack, { render: _jsx("button", { type: "button" }), onClick: () => setVoicePreset(vp), px: "$2.5", minH: 44, "$max-sm": { minH: 44 }, $md: { minH: 32 }, py: "$1.5", rounded: "$3", "aria-pressed": voicePreset === vp, borderWidth: voicePreset === vp ? 1.5 : 1, borderColor: voicePreset === vp ? 'var(--foreground)' : 'var(--border-strong)', bg: voicePreset === vp ? 'var(--surface-card)' : 'var(--background)', boxShadow: voicePreset === vp ? 'var(--shadow-sheet-2)' : undefined, hoverStyle: { bg: voicePreset === vp ? 'var(--surface-card)' : '$hover', borderColor: voicePreset === vp ? 'var(--foreground)' : 'var(--border-strong)' }, focusVisibleStyle: RING, justify: "space-between", items: "center", cursor: "pointer", children: [_jsx(SizableText, { size: "$2", fontWeight: "600", fontFamily: "$mono", color: "$ink", children: vp }), _jsx(SizableText, { size: "$1", color: "$soft", children: "24kHz neural" })] }, vp))) }), _jsx(StudioTextarea, { "aria-label": "Voice narration script", ...{ value: voiceLine, rows: 4 }, onChange: (e) => setVoiceLine(e.currentTarget.value) }), _jsxs(XStack, { render: "button", onPress: () => {
|
|
1149
1149
|
triggerCinemaAudio();
|
|
1150
1150
|
setStatusNote(`Synthesized Koe voice stem (${voicePreset}) → added to Vocal Stem`);
|
|
1151
|
-
}, height: 34, rounded: 999, borderWidth: 1, borderColor: "$borderColor", items: "center", justify: "center", gap: "$1.5", cursor: "pointer", hoverStyle: { bg: '$hover' }, children: [_jsx(Wand2, { size: 13 }), _jsx(SizableText, { size: "$1", fontWeight: "600", children: "Synthesize Voice Stem" })] })] })] })) : null, section === 'model3d' ? (_jsxs(YStack, { gap: "$3", flex: 1, width: "100%", minW: 0, $lg: { flexDirection: 'row', items: 'flex-start' }, children: [_jsxs(YStack, { width: "100%", minW: 0, $lg: { width: 276, shrink: 0 }, $xl: { width: 288 }, gap: "$3", p: "$3", rounded: "$4", borderWidth: 1, borderColor: "var(--border)", bg: "var(--surface-card)", children: [_jsx(SizableText, { render: "h2", size: "$3", fontWeight: "600", color: "$ink", children: "
|
|
1151
|
+
}, height: 34, rounded: 999, borderWidth: 1, borderColor: "$borderColor", items: "center", justify: "center", gap: "$1.5", cursor: "pointer", hoverStyle: { bg: '$hover' }, children: [_jsx(Wand2, { size: 13 }), _jsx(SizableText, { size: "$1", fontWeight: "600", children: "Synthesize Voice Stem" })] })] })] })) : null, section === 'model3d' ? (_jsxs(YStack, { gap: "$3", flex: 1, width: "100%", minW: 0, $lg: { flexDirection: 'row', items: 'flex-start' }, children: [_jsxs(YStack, { width: "100%", minW: 0, $lg: { width: 276, shrink: 0 }, $xl: { width: 288 }, gap: "$3", p: "$3", rounded: "$4", borderWidth: 1, borderColor: "var(--border)", bg: "var(--surface-card)", children: [_jsx(SizableText, { render: "h2", size: "$3", fontWeight: "600", color: "$ink", children: "Mori 3D 2.1 mesh generator" }), _jsx(SizableText, { size: "$1", color: "$soft", children: "Convert a reference photo or prompt into a watertight textured .glb mesh on GB10 / H100 GPUs." }), _jsx(YStack, { gap: "$2", role: "list", "aria-label": "3D mesh presets", children: MESH_PRESETS.map((m) => {
|
|
1152
1152
|
const on = m.id === activeMesh.id;
|
|
1153
1153
|
return (_jsx(YStack, { role: "listitem", width: "100%", minW: 0, children: _jsxs(YStack, { render: _jsx("button", { type: "button" }), onClick: () => {
|
|
1154
1154
|
setActiveMeshId(m.id);
|
|
@@ -1160,7 +1160,7 @@ export function DirectorStudio({ host }) {
|
|
|
1160
1160
|
return (_jsx(XStack, { render: _jsx("button", { type: "button" }), "aria-pressed": on, onClick: () => setMeshOctree(res), px: "$3", minH: 44, "$max-sm": { minH: 44 }, $md: { minH: 28, height: 28 }, items: "center", rounded: 999, borderWidth: 1, borderColor: on ? '$ink' : 'var(--border-strong)', bg: on ? 'var(--surface-card-emphasis)' : 'transparent', hoverStyle: { bg: '$hover' }, focusVisibleStyle: RING, cursor: "pointer", children: _jsx(SizableText, { size: "$1", fontFamily: "$mono", fontWeight: on ? '600' : '500', color: on ? '$ink' : '$soft', children: `${res}³` }) }, res));
|
|
1161
1161
|
}) })] }), _jsx(StudioTextarea, { "aria-label": "3D mesh conditioning prompt", style: { resize: 'none' }, ...{ value: meshPrompt, rows: 3 }, onChange: (e) => setMeshPrompt(e.currentTarget.value) }), _jsxs(XStack, { render: "button", onPress: () => {
|
|
1162
1162
|
triggerCinemaAudio();
|
|
1163
|
-
setStatusNote(`Dispatched
|
|
1163
|
+
setStatusNote(`Dispatched Mori 3D 2.1 mesh job (${meshOctree}³ octree) → /v1/library/model3d`);
|
|
1164
1164
|
}, height: 36, rounded: 999, bg: "$ink", items: "center", justify: "center", gap: "$1.5", cursor: "pointer", children: [_jsx(Box, { size: 14 }), _jsx(SizableText, { size: "$2", color: "$background", fontWeight: "600", children: "Generate 3D Mesh (.GLB)" })] })] }), _jsxs(YStack, { width: "100%", minW: 0, $lg: { flex: 1 }, gap: "$3", p: "$3.5", rounded: "$4", borderWidth: 1, borderColor: "var(--border)", bg: "var(--surface-card)", children: [_jsxs(YStack, { gap: "$2", minW: 0, children: [_jsxs(YStack, { gap: 2, minW: 0, children: [_jsx(SizableText, { render: "h2", size: "$3", fontWeight: "600", color: "$ink", children: activeMesh.name }), _jsx(SizableText, { size: "$1", color: "$soft", fontFamily: "$mono", children: `${activeMesh.vertices.toLocaleString()} vertices · ${activeMesh.faces.toLocaleString()} triangles · Watertight PBR GLB` })] }), _jsxs(XStack, { gap: "$1.5", flexWrap: "wrap", items: "center", children: [[
|
|
1165
1165
|
{ id: 'pbr', label: 'PBR' },
|
|
1166
1166
|
{ id: 'wireframe', label: 'Wireframe' },
|
|
@@ -1183,9 +1183,9 @@ export function DirectorStudio({ host }) {
|
|
|
1183
1183
|
.map((it) => (_jsxs(YStack, { role: "listitem", width: "100%", $sm: { width: 'calc(50% - 5px)' }, minW: 0, p: "$3", rounded: "$3", borderWidth: 1, borderColor: "var(--border-strong)", bg: "var(--background)", gap: "$2", children: [_jsxs(XStack, { justify: "space-between", items: "center", gap: "$2", children: [_jsxs(XStack, { items: "center", gap: "$1.5", flex: 1, minW: 0, children: [_jsx(Folder, { size: 12, color: "$soft" }), _jsx(SizableText, { size: "$1", color: "$soft", numberOfLines: 1, children: it.stack })] }), _jsx(SizableText, { size: "$1", fontFamily: "$mono", color: it.status === 'published' || it.status === 'approved' ? 'var(--state-success)' : '$soft', shrink: 0, children: it.status === 'published' ? 'Published' : it.status === 'approved' ? 'Approved' : 'Draft' })] }), _jsx(SizableText, { size: "$2", fontWeight: "600", color: "$ink", children: it.title }), it.modality === 'image' && /^(blob:|data:image\/|https?:)/.test(it.path) ? (_jsx("img", { src: it.path, alt: it.title, style: { width: '100%', borderRadius: 8, display: 'block' } })) : null, _jsx(SizableText, { size: "$1", color: "$soft", fontFamily: "$mono", numberOfLines: 2, children: `${/^(blob|data):/.test(it.path) ? 'Generated image' : it.path} · graph: ${it.workflow}` }), it.critique ? (_jsx(SizableText, { size: "$1", color: "$soft", children: `Conditioning note: “${it.critique}”` })) : null, _jsxs(XStack, { justify: "space-between", items: "center", flexWrap: "wrap", gap: "$1.5", pt: "$1", children: [_jsxs(XStack, { gap: "$1.5", children: [_jsxs(XStack, { render: _jsx("button", { type: "button" }), "aria-pressed": it.vote === 1, onClick: () => setLibraryItems((prev) => prev.map((x) => (x.id === it.id ? { ...x, vote: x.vote === 1 ? 0 : 1 } : x))), px: "$2", minH: 44, "$max-sm": { minH: 44 }, $md: { minH: 26, height: 26 }, items: "center", gap: "$1", rounded: "$2", borderWidth: 1, borderColor: it.vote === 1 ? 'var(--state-success)' : 'var(--border-strong)', bg: it.vote === 1 ? 'var(--state-success-bg)' : 'transparent', hoverStyle: { bg: '$hover' }, focusVisibleStyle: RING, cursor: "pointer", children: [_jsx(ThumbsUp, { size: 12, color: it.vote === 1 ? 'var(--state-success)' : '$ink' }), _jsx(SizableText, { size: "$1", color: it.vote === 1 ? 'var(--state-success)' : '$ink', children: "Good" })] }), _jsxs(XStack, { render: _jsx("button", { type: "button" }), "aria-pressed": it.vote === -1, onClick: () => setLibraryItems((prev) => prev.map((x) => (x.id === it.id ? { ...x, vote: x.vote === -1 ? 0 : -1 } : x))), px: "$2", minH: 44, "$max-sm": { minH: 44 }, $md: { minH: 26, height: 26 }, items: "center", gap: "$1", rounded: "$2", borderWidth: 1, borderColor: it.vote === -1 ? 'var(--state-error)' : 'var(--border-strong)', bg: it.vote === -1 ? 'var(--state-error-bg)' : 'transparent', hoverStyle: { bg: '$hover' }, focusVisibleStyle: RING, cursor: "pointer", children: [_jsx(ThumbsDown, { size: 12, color: it.vote === -1 ? 'var(--state-error)' : '$ink' }), _jsx(SizableText, { size: "$1", color: it.vote === -1 ? 'var(--state-error)' : '$ink', children: "Fix" })] })] }), _jsx(XStack, { render: "button", onPress: () => {
|
|
1184
1184
|
setLibraryItems((prev) => prev.map((x) => (x.id === it.id ? { ...x, status: 'published' } : x)));
|
|
1185
1185
|
setStatusNote(`Published "${it.title}" to Gallery & cms.hanzo.ai`);
|
|
1186
|
-
}, px: "$2.5", height: 26, items: "center", rounded: "$2", borderWidth: 1, borderColor: "$borderColor", cursor: "pointer", children: _jsx(SizableText, { size: "$1", children: "\u2601 Publish CMS" }) })] })] }, it.id))) })] }), _jsxs(YStack, { width: "100%", minW: 0, $lg: { width: 272, shrink: 0 }, $xl: { width: 280 }, gap: "$3", p: "$3", rounded: "$4", borderWidth: 1, borderColor: "var(--border)", bg: "var(--surface-card)", children: [_jsx(SizableText, { render: "h2", size: "$3", fontWeight: "600", color: "$ink", children: "
|
|
1186
|
+
}, px: "$2.5", height: 26, items: "center", rounded: "$2", borderWidth: 1, borderColor: "$borderColor", cursor: "pointer", children: _jsx(SizableText, { size: "$1", children: "\u2601 Publish CMS" }) })] })] }, it.id))) })] }), _jsxs(YStack, { width: "100%", minW: 0, $lg: { width: 272, shrink: 0 }, $xl: { width: 280 }, gap: "$3", p: "$3", rounded: "$4", borderWidth: 1, borderColor: "var(--border)", bg: "var(--surface-card)", children: [_jsx(SizableText, { render: "h2", size: "$3", fontWeight: "600", color: "$ink", children: "Iro-Image-Edit 2511 mask inpaint" }), _jsx(SizableText, { size: "$1", color: "$soft", children: "Paint a mask region or attach 2\u20135 references to edit only the selected area while preserving subject identity and lighting (/v1/library/fix)." }), _jsxs(YStack, { gap: "$1", children: [_jsx(SizableText, { size: "$1", color: "$soft", children: "Edit instruction" }), _jsx(StudioTextarea, { "aria-label": "Inpaint edit instruction", style: { resize: 'none' }, ...{ value: inpaintInstruction, rows: 3 }, onChange: (e) => setInpaintInstruction(e.currentTarget.value) })] }), _jsxs(YStack, { gap: "$1", children: [_jsx(SizableText, { size: "$1", color: "$soft", fontFamily: "$mono", children: `Denoise / edit strength: ${inpaintStrength}%` }), _jsx("input", { "aria-label": "Edit strength percentage", type: "range", min: 10, max: 95, step: 5, value: inpaintStrength, onChange: (e) => setInpaintStrength(Number(e.currentTarget.value)) })] }), _jsx("canvas", { ref: inpaintCanvasRef, width: 280, height: 4, style: { display: 'none' } }), _jsxs(XStack, { render: "button", onPress: () => {
|
|
1187
1187
|
triggerCinemaAudio();
|
|
1188
|
-
setStatusNote(`Queued
|
|
1188
|
+
setStatusNote(`Queued Iro-Image-Edit 2511 pass (${inpaintStrength}% denoise) → /v1/library/fix`);
|
|
1189
1189
|
}, height: 34, rounded: 999, bg: "$ink", items: "center", justify: "center", gap: "$1.5", cursor: "pointer", children: [_jsx(Wand2, { size: 13 }), _jsx(SizableText, { size: "$1", color: "$background", fontWeight: "600", children: "Run Region Edit (/v1/library/fix)" })] })] })] })) : null, section === 'queue' ? (_jsxs(YStack, { gap: "$3", p: "$3.5", rounded: "$4", borderWidth: 1, borderColor: "var(--border)", bg: "var(--surface-card)", minW: 0, children: [_jsxs(XStack, { items: "center", justify: "space-between", flexWrap: "wrap", gap: "$2", children: [_jsxs(YStack, { gap: 2, flex: 1, minW: 200, children: [_jsx(SizableText, { render: "h2", size: "$3", fontWeight: "600", color: "$ink", children: "GPU federation fleet & durable render queue (tasks.hanzo.ai)" }), _jsx(SizableText, { size: "$1", color: "$soft", children: "Select a target GPU node (X-Target-GPU) or route jobs across the shared gpu-jobs cluster." })] }), _jsxs(XStack, { render: "button", onPress: () => setStatusNote('Refreshed /v1/gpu-status & /v1/queue/status'), px: "$3", height: 30, items: "center", gap: "$1.5", rounded: 999, borderWidth: 1, borderColor: "$borderColor", cursor: "pointer", children: [_jsx(RefreshCw, { size: 12 }), _jsx(SizableText, { size: "$1", children: "Refresh Fleet" })] })] }), _jsx(XStack, { gap: "$2.5", flexWrap: "wrap", role: "list", "aria-label": "GPU nodes", width: "100%", minW: 0, children: gpuNodes.map((n) => {
|
|
1190
1190
|
const selected = targetGpu === n.name;
|
|
1191
1191
|
return (_jsx(YStack, { role: "listitem", width: "100%", $sm: { width: 'calc(50% - 5px)' }, minW: 0, children: _jsxs(YStack, { render: _jsx("button", { type: "button" }), onClick: () => {
|
package/lib/app/flow.d.ts
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* 1. Langflow Agent, LLM, Prompt Template, RAG Vector Store, MCP Tool, and inline
|
|
6
6
|
* editable Python Component nodes (`flow` backend).
|
|
7
7
|
* 2. Native ComfyUI / `studio_compat` media generation node extensions (`/v1/object_info`,
|
|
8
|
-
* `/v1/prompt`, `/v1/chat/completions` + MCP tools) for
|
|
9
|
-
* Z-Image-Turbo,
|
|
10
|
-
* and
|
|
8
|
+
* `/v1/prompt`, `/v1/chat/completions` + MCP tools) for Koma 2.0 Video, LTX 2.0, Iro-Image-Edit 2511,
|
|
9
|
+
* Z-Image-Turbo, Mori 3D 2.1 (.glb), ACE-Step 3.5B Music, Demucs Stems, MMAudio Foley,
|
|
10
|
+
* and Koe TTS.
|
|
11
11
|
* 3. Publish any hybrid Agent+ComfyUI graph as a REST endpoint, ComfyUI API JSON,
|
|
12
12
|
* Langflow JSON, or an MCP Server tool.
|
|
13
13
|
*/
|
package/lib/app/flow.js
CHANGED
|
@@ -179,7 +179,7 @@ export const FLOW_MODULE_CATALOG = [
|
|
|
179
179
|
category: 'loader',
|
|
180
180
|
inputPorts: [],
|
|
181
181
|
outputPorts: ['MODEL'],
|
|
182
|
-
defaultInputs: { unet_name: '
|
|
182
|
+
defaultInputs: { unet_name: 'koma2_ti2v_5B_fp16.safetensors', weight_dtype: 'fp16' },
|
|
183
183
|
pythonSource: `class UNETLoader:\n @classmethod\n def INPUT_TYPES(s):\n return {"required": {"unet_name": (folder_paths.get_filename_list("diffusion_models"),), "weight_dtype": (["default", "fp16", "bf16", "fp8_e4m3fn"],)}}\n RETURN_TYPES = ("MODEL",)\n FUNCTION = "load_unet"`,
|
|
184
184
|
},
|
|
185
185
|
{
|
|
@@ -217,13 +217,13 @@ export const FLOW_MODULE_CATALOG = [
|
|
|
217
217
|
},
|
|
218
218
|
{
|
|
219
219
|
type: 'ImageOnlyCheckpointLoader',
|
|
220
|
-
title: 'Load
|
|
220
|
+
title: 'Load Mori 3D 2.1 Checkpoint',
|
|
221
221
|
family: 'comfy',
|
|
222
222
|
pack: 'studio-core 3D (ComfyUI)',
|
|
223
223
|
category: 'loader',
|
|
224
224
|
inputPorts: [],
|
|
225
225
|
outputPorts: ['MODEL', 'CLIP_VISION', 'VAE'],
|
|
226
|
-
defaultInputs: { ckpt_name: '
|
|
226
|
+
defaultInputs: { ckpt_name: 'mori_3d_v2.1.safetensors' },
|
|
227
227
|
pythonSource: `class ImageOnlyCheckpointLoader:\n RETURN_TYPES = ("MODEL", "CLIP_VISION", "VAE")\n FUNCTION = "load_checkpoint"`,
|
|
228
228
|
},
|
|
229
229
|
{
|
|
@@ -249,15 +249,15 @@ export const FLOW_MODULE_CATALOG = [
|
|
|
249
249
|
pythonSource: `class CLIPTextEncode:\n RETURN_TYPES = ("CONDITIONING",)\n FUNCTION = "encode"`,
|
|
250
250
|
},
|
|
251
251
|
{
|
|
252
|
-
type: '
|
|
253
|
-
title: '
|
|
252
|
+
type: 'KomaImageToVideo',
|
|
253
|
+
title: 'Koma 2.0 TI2V Latent Video Grid',
|
|
254
254
|
family: 'comfy',
|
|
255
|
-
pack: 'ComfyUI-
|
|
255
|
+
pack: 'ComfyUI-KomaVideoWrapper (Apache-2.0)',
|
|
256
256
|
category: 'conditioning',
|
|
257
257
|
inputPorts: ['positive'],
|
|
258
258
|
outputPorts: ['CONDITIONING', 'LATENT'],
|
|
259
259
|
defaultInputs: { width: 1280, height: 544, length: 81, fps: 24 },
|
|
260
|
-
pythonSource: `class
|
|
260
|
+
pythonSource: `class KomaImageToVideo:\n RETURN_TYPES = ("CONDITIONING", "LATENT")\n FUNCTION = "encode"`,
|
|
261
261
|
},
|
|
262
262
|
{
|
|
263
263
|
type: 'LTXVConditioning',
|
|
@@ -271,15 +271,15 @@ export const FLOW_MODULE_CATALOG = [
|
|
|
271
271
|
pythonSource: `class LTXVConditioning:\n RETURN_TYPES = ("CONDITIONING", "CONDITIONING")\n FUNCTION = "append"`,
|
|
272
272
|
},
|
|
273
273
|
{
|
|
274
|
-
type: '
|
|
275
|
-
title: '
|
|
274
|
+
type: 'TextEncodeIroImageEdit',
|
|
275
|
+
title: 'Iro-Image-Edit 2511 Instruction',
|
|
276
276
|
family: 'comfy',
|
|
277
277
|
pack: 'studio-core (ComfyUI)',
|
|
278
278
|
category: 'conditioning',
|
|
279
279
|
inputPorts: ['clip', 'image'],
|
|
280
280
|
outputPorts: ['CONDITIONING'],
|
|
281
281
|
defaultInputs: { instruction: 'Swap jacket to brushed obsidian leather, preserve face and rim lighting' },
|
|
282
|
-
pythonSource: `class
|
|
282
|
+
pythonSource: `class TextEncodeIroImageEdit:\n RETURN_TYPES = ("CONDITIONING",)\n FUNCTION = "encode"`,
|
|
283
283
|
},
|
|
284
284
|
{
|
|
285
285
|
type: 'TextEncodeAceStepAudio',
|
|
@@ -382,7 +382,7 @@ export const FLOW_MODULE_CATALOG = [
|
|
|
382
382
|
},
|
|
383
383
|
{
|
|
384
384
|
type: 'VoxelToMesh',
|
|
385
|
-
title: '
|
|
385
|
+
title: 'VAEDecodeMori 3D → .GLB Mesh',
|
|
386
386
|
family: 'comfy',
|
|
387
387
|
pack: 'studio-core 3D (ComfyUI)',
|
|
388
388
|
category: 'decode',
|
|
@@ -410,7 +410,7 @@ export const FLOW_MODULE_CATALOG = [
|
|
|
410
410
|
category: 'output',
|
|
411
411
|
inputPorts: ['images'],
|
|
412
412
|
outputPorts: [],
|
|
413
|
-
defaultInputs: { filename_prefix: 'video/
|
|
413
|
+
defaultInputs: { filename_prefix: 'video/koma2_cinema', codec: 'vp9', fps: 24, crf: 18 },
|
|
414
414
|
pythonSource: `class SaveWEBM:\n RETURN_TYPES = ()\n OUTPUT_NODE = True\n FUNCTION = "save_video"`,
|
|
415
415
|
},
|
|
416
416
|
{
|
|
@@ -443,53 +443,53 @@ export const FLOW_MODULE_CATALOG = [
|
|
|
443
443
|
category: 'output',
|
|
444
444
|
inputPorts: ['mesh'],
|
|
445
445
|
outputPorts: [],
|
|
446
|
-
defaultInputs: { filename_prefix: 'mesh/
|
|
446
|
+
defaultInputs: { filename_prefix: 'mesh/mori3d_asset' },
|
|
447
447
|
pythonSource: `class SaveGLB:\n RETURN_TYPES = ()\n OUTPUT_NODE = True\n FUNCTION = "save_glb"`,
|
|
448
448
|
},
|
|
449
449
|
];
|
|
450
450
|
export const FLOW_BLUEPRINTS = [
|
|
451
451
|
{
|
|
452
|
-
id: 'hybrid-agent-
|
|
453
|
-
name: 'Langflow Director Agent →
|
|
452
|
+
id: 'hybrid-agent-koma2',
|
|
453
|
+
name: 'Langflow Director Agent → Koma 2.0 Cinema + MMAudio Foley',
|
|
454
454
|
kind: 'Hybrid Langflow + ComfyUI',
|
|
455
|
-
engine: 'zen5 +
|
|
456
|
-
description: 'ChatInput & ZenAgent expand a rough creative brief with Vector RAG lore, then drive ComfyUI
|
|
455
|
+
engine: 'zen5 + koma2_ti2v_5B + mmaudio',
|
|
456
|
+
description: 'ChatInput & ZenAgent expand a rough creative brief with Vector RAG lore, then drive ComfyUI Koma 2.0 video + MMAudio Foley.',
|
|
457
457
|
nodes: [
|
|
458
458
|
{ id: '1', type: 'ChatInput', title: 'Creative Brief Input', family: 'langflow', category: 'agent', x: 25, y: 30, inputs: { input_value: '24mm anamorphic crane rise over rain-slicked Neo-Kyoto rooftop at dusk' }, wiresFrom: [] },
|
|
459
459
|
{ id: '2', type: 'VectorStoreRAG', title: 'Brand & Lore RAG Memory', family: 'langflow', category: 'agent', x: 25, y: 185, inputs: { collection: 'cyber_lookbook_v3', top_k: 4 }, wiresFrom: ['1'] },
|
|
460
|
-
{ id: '3', type: 'ZenAgentNode', title: 'Zen5 Director Agent', family: 'langflow', category: 'agent', x: 270, y: 95, inputs: { model: 'zen5', system_prompt: 'Write precision camera rig + volumetric lighting prompt for
|
|
461
|
-
{ id: '4', type: 'UNETLoader', title: 'Load
|
|
460
|
+
{ id: '3', type: 'ZenAgentNode', title: 'Zen5 Director Agent', family: 'langflow', category: 'agent', x: 270, y: 95, inputs: { model: 'zen5', system_prompt: 'Write precision camera rig + volumetric lighting prompt for Koma 2.0', temperature: 0.25 }, wiresFrom: ['1', '2'] },
|
|
461
|
+
{ id: '4', type: 'UNETLoader', title: 'Load Koma 2.0 UNet', family: 'comfy', category: 'loader', x: 520, y: 25, inputs: { unet_name: 'koma2_ti2v_5B_fp16.safetensors', weight_dtype: 'fp16' }, wiresFrom: [] },
|
|
462
462
|
{ id: '5', type: 'CLIPTextEncode', title: 'Encode Agent Prompt', family: 'comfy', category: 'conditioning', x: 520, y: 180, inputs: { text: 'Anamorphic 24mm crane rise over rain-slicked Neo-Kyoto rooftop, neon rim light' }, wiresFrom: ['3'] },
|
|
463
|
-
{ id: '6', type: 'KSampler', title: '
|
|
463
|
+
{ id: '6', type: 'KSampler', title: 'Koma 2.0 Flow Sampler', family: 'comfy', category: 'sampler', x: 770, y: 60, inputs: { seed: 408921, steps: 28, cfg: 5.0, sampler_name: 'uni_pc', denoise: 1.0 }, wiresFrom: ['4', '5'] },
|
|
464
464
|
{ id: '7', type: 'MMAudioVideoToAudio', title: 'MMAudio Foley Sync', family: 'comfy', category: 'sampler', x: 770, y: 215, inputs: { prompt: 'Rain hitting wet asphalt, distant neon transformer hum', duration: 5.0, cfg: 4.5 }, wiresFrom: ['6'] },
|
|
465
|
-
{ id: '8', type: 'SaveWEBM', title: 'Save Master Cut (/v1/library)', family: 'comfy', category: 'output', x: 1020, y: 130, inputs: { filename_prefix: 'video/
|
|
465
|
+
{ id: '8', type: 'SaveWEBM', title: 'Save Master Cut (/v1/library)', family: 'comfy', category: 'output', x: 1020, y: 130, inputs: { filename_prefix: 'video/hybrid_agent_koma2', codec: 'vp9', fps: 24 }, wiresFrom: ['6', '7'] },
|
|
466
466
|
],
|
|
467
467
|
},
|
|
468
468
|
{
|
|
469
469
|
id: 'cad-to-lookbook',
|
|
470
|
-
name: 'CAD Flat Sketch → Ghost Mannequin & Lookbook (
|
|
470
|
+
name: 'CAD Flat Sketch → Ghost Mannequin & Lookbook (Iro 2511)',
|
|
471
471
|
kind: 'ComfyUI Image & CAD',
|
|
472
|
-
engine: '
|
|
472
|
+
engine: 'iro-image-edit-2511.safetensors',
|
|
473
473
|
description: 'Antje’s production garment conversion graph: CAD drawing → photoreal ghost mannequin (0.92 denoise) → lifestyle lookbook (0.25 denoise).',
|
|
474
474
|
nodes: [
|
|
475
475
|
{ id: '1', type: 'LoadImageMask', title: 'CAD Line Drawing Upload', family: 'comfy', category: 'loader', x: 30, y: 40, inputs: { image: 'cad_jacket_flat.png', channel: 'alpha' }, wiresFrom: [] },
|
|
476
|
-
{ id: '2', type: 'UNETLoader', title: 'Load
|
|
477
|
-
{ id: '3', type: '
|
|
476
|
+
{ id: '2', type: 'UNETLoader', title: 'Load Iro-Image-Edit 2511', family: 'comfy', category: 'loader', x: 30, y: 195, inputs: { unet_name: 'iro-image-edit-2511.safetensors', clip_name: 'iro-vl-7b.safetensors' }, wiresFrom: [] },
|
|
477
|
+
{ id: '3', type: 'TextEncodeIroImageEdit', title: 'CAD → Ghost Mannequin Prompt', family: 'comfy', category: 'conditioning', x: 290, y: 110, inputs: { instruction: 'Convert flat CAD technical sketch into photorealistic 3D studio ghost mannequin garment, preserve seam geometry and fabric drape' }, wiresFrom: ['1', '2'] },
|
|
478
478
|
{ id: '4', type: 'KSampler', title: 'Conversion Sampler (0.92 Denoise)', family: 'comfy', category: 'sampler', x: 560, y: 110, inputs: { seed: 882104, steps: 24, cfg: 4.0, sampler_name: 'euler', denoise: 0.92 }, wiresFrom: ['2', '3'] },
|
|
479
479
|
{ id: '5', type: 'SaveImage', title: 'Save to Stack & QC Gallery', family: 'comfy', category: 'output', x: 830, y: 110, inputs: { filename_prefix: 'cad_ghost/garment_render' }, wiresFrom: ['4'] },
|
|
480
480
|
],
|
|
481
481
|
},
|
|
482
482
|
{
|
|
483
|
-
id: '
|
|
484
|
-
name: '
|
|
483
|
+
id: 'mori3d-mesh',
|
|
484
|
+
name: 'Mori 3D 2.1 Image-to-GLB Watertight Mesh',
|
|
485
485
|
kind: 'ComfyUI 3D Mesh',
|
|
486
|
-
engine: '
|
|
486
|
+
engine: 'mori_3d_v2.1.safetensors',
|
|
487
487
|
description: 'Single ghost-mannequin or product reference image → AuraFlow 3D latent → marching cubes .glb asset.',
|
|
488
488
|
nodes: [
|
|
489
|
-
{ id: '1', type: 'ImageOnlyCheckpointLoader', title: 'Load
|
|
489
|
+
{ id: '1', type: 'ImageOnlyCheckpointLoader', title: 'Load Mori 3D 2.1', family: 'comfy', category: 'loader', x: 30, y: 45, inputs: { ckpt_name: 'mori_3d_v2.1.safetensors' }, wiresFrom: [] },
|
|
490
490
|
{ id: '2', type: 'ModelSamplingAuraFlow', title: 'AuraFlow 3D Sampler', family: 'comfy', category: 'sampler', x: 310, y: 45, inputs: { shift: 1.0, seed: 771204, steps: 30, cfg: 5.5 }, wiresFrom: ['1'] },
|
|
491
|
-
{ id: '3', type: 'VoxelToMesh', title: '
|
|
492
|
-
{ id: '4', type: 'SaveGLB', title: 'Export .GLB 3D Asset', family: 'comfy', category: 'output', x: 860, y: 45, inputs: { filename_prefix: 'mesh/
|
|
491
|
+
{ id: '3', type: 'VoxelToMesh', title: 'VAEDecodeMori 3D → Mesh', family: 'comfy', category: 'decode', x: 590, y: 45, inputs: { algorithm: 'surface_net', threshold: 0.0, octree_resolution: 384 }, wiresFrom: ['2'] },
|
|
492
|
+
{ id: '4', type: 'SaveGLB', title: 'Export .GLB 3D Asset', family: 'comfy', category: 'output', x: 860, y: 45, inputs: { filename_prefix: 'mesh/mori3d_asset' }, wiresFrom: ['3'] },
|
|
493
493
|
],
|
|
494
494
|
},
|
|
495
495
|
{
|
|
@@ -1110,7 +1110,7 @@ export function FlowStudio({ host }) {
|
|
|
1110
1110
|
setPan({ x: 0, y: 0 });
|
|
1111
1111
|
}, width: "100%", minW: 0, minH: 44, "$max-sm": { minH: 44 }, p: "$2.5", rounded: "$3", borderWidth: 1, borderColor: on ? '$ink' : 'var(--border-strong)', bg: on ? 'var(--surface-card-emphasis)' : 'var(--background)', hoverStyle: { bg: '$hover' }, focusVisibleStyle: RING, gap: 3, items: "flex-start", cursor: "pointer", children: [_jsx(SizableText, { size: "$2", fontWeight: "600", color: "$ink", text: "left", numberOfLines: 2, children: b.name }), _jsx(SizableText, { size: "$1", color: "$soft", fontFamily: "$mono", text: "left", numberOfLines: 1, children: `${b.kind} · ${b.nodes.length} nodes` })] }) }, b.id));
|
|
1112
1112
|
}) })] }), _jsxs(YStack, { gap: "$2", pt: "$2.5", borderTopWidth: 1, borderColor: "var(--border)", minW: 0, children: [_jsxs(XStack, { justify: "space-between", items: "center", gap: "$2", children: [_jsx(SizableText, { render: "h2", size: "$3", fontWeight: "600", color: "$ink", children: "2. Component library" }), _jsx(SizableText, { size: "$1", color: "$soft", fontFamily: "$mono", children: `${filteredCatalog.length} nodes` })] }), _jsx(FlowInput, { "aria-label": "Search Langflow and ComfyUI components", ...{
|
|
1113
|
-
placeholder: 'Search ZenAgent, RAG, MCP,
|
|
1113
|
+
placeholder: 'Search ZenAgent, RAG, MCP, Koma…',
|
|
1114
1114
|
value: searchQuery,
|
|
1115
1115
|
}, onChange: (e) => setSearchQuery(e.currentTarget.value) }), section !== 'comfy' && section !== 'agents' ? (_jsx(XStack, { gap: "$1.5", flexWrap: "wrap", children: [
|
|
1116
1116
|
{ id: 'all', label: 'All' },
|
package/lib/kinds/image.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export declare const ZEN = "zen-image";
|
|
|
25
25
|
export declare const ASPECTS: readonly ['1:1', '4:5', '3:4', '2:3', '9:16', '16:9', '3:2', '4:3', '21:9'];
|
|
26
26
|
/** Which lane a request takes: the one asked for, else Zen Image on a GPU that can run it, else the gateway. */
|
|
27
27
|
export declare function lane(model: string, fleet: Fleet | null): string;
|
|
28
|
-
/** Which lane an edit takes: the one asked for, else
|
|
28
|
+
/** Which lane an edit takes: the one asked for, else Iro Edit on a GPU that can run it, else the gateway. */
|
|
29
29
|
export declare function editing(model: string, fleet: Fleet | null): string;
|
|
30
30
|
/** What a person reads when the gateway draws no picture: never a model, a provider or the plumbing between. */
|
|
31
31
|
export declare const UNDRAWN = "Couldn't draw the picture this time.";
|
package/lib/kinds/image.js
CHANGED
|
@@ -48,14 +48,14 @@ export function lane(model, fleet) {
|
|
|
48
48
|
return model;
|
|
49
49
|
return lit(fleet, 'image.zen') ? ZEN : MODELS[0].id;
|
|
50
50
|
}
|
|
51
|
-
/** Which lane an edit takes: the one asked for, else
|
|
51
|
+
/** Which lane an edit takes: the one asked for, else Iro Edit on a GPU that can run it, else the gateway. */
|
|
52
52
|
export function editing(model, fleet) {
|
|
53
53
|
if (MODELS.some((m) => m.id === model))
|
|
54
54
|
return model;
|
|
55
55
|
if (lit(fleet, 'edit.qwen'))
|
|
56
56
|
return ZEN;
|
|
57
57
|
if (model === ZEN)
|
|
58
|
-
throw new Error('Editing on your GPU needs one that runs
|
|
58
|
+
throw new Error('Editing on your GPU needs one that runs Iro Edit; connect it with hanzo link, or edit with a gateway model.');
|
|
59
59
|
return MODELS[0].id;
|
|
60
60
|
}
|
|
61
61
|
async function size(blob) {
|
|
@@ -132,7 +132,7 @@ export async function picture(w, o) {
|
|
|
132
132
|
for (const g of got)
|
|
133
133
|
files.push(await w.keep(`edit-${files.length + 1}.png`, g.blob, await size(g.blob)));
|
|
134
134
|
}
|
|
135
|
-
return { files, by: '
|
|
135
|
+
return { files, by: 'Iro Edit (your GPU)' };
|
|
136
136
|
}
|
|
137
137
|
if (use === ZEN) {
|
|
138
138
|
const [width, height] = PIXELS[o.aspect] ?? PIXELS['1:1'];
|
package/lib/kinds/sound.js
CHANGED
|
@@ -53,94 +53,6 @@ export const voice = {
|
|
|
53
53
|
View: Listen,
|
|
54
54
|
exports: [{ label: 'MP3', run: async (w, m, v) => ({ name: filename(m.title, 'mp3'), blob: await read(w, v.files[0].key) }) }],
|
|
55
55
|
};
|
|
56
|
-
/** Encode stereo float32 PCM samples into a standard 16-bit PCM WAV Blob. */
|
|
57
|
-
function encodeWav(left, right, sampleRate) {
|
|
58
|
-
const frames = left.length;
|
|
59
|
-
const bytesPerSample = 2;
|
|
60
|
-
const channels = 2;
|
|
61
|
-
const dataBytes = frames * channels * bytesPerSample;
|
|
62
|
-
const buf = new ArrayBuffer(44 + dataBytes);
|
|
63
|
-
const view = new DataView(buf);
|
|
64
|
-
const writeStr = (off, s) => {
|
|
65
|
-
for (let i = 0; i < s.length; i++)
|
|
66
|
-
view.setUint8(off + i, s.charCodeAt(i));
|
|
67
|
-
};
|
|
68
|
-
writeStr(0, 'RIFF');
|
|
69
|
-
view.setUint32(4, 36 + dataBytes, true);
|
|
70
|
-
writeStr(8, 'WAVE');
|
|
71
|
-
writeStr(12, 'fmt ');
|
|
72
|
-
view.setUint32(16, 16, true);
|
|
73
|
-
view.setUint16(20, 1, true);
|
|
74
|
-
view.setUint16(22, channels, true);
|
|
75
|
-
view.setUint32(24, sampleRate, true);
|
|
76
|
-
view.setUint32(28, sampleRate * channels * bytesPerSample, true);
|
|
77
|
-
view.setUint16(32, channels * bytesPerSample, true);
|
|
78
|
-
view.setUint16(34, 16, true);
|
|
79
|
-
writeStr(36, 'data');
|
|
80
|
-
view.setUint32(40, dataBytes, true);
|
|
81
|
-
let offset = 44;
|
|
82
|
-
for (let i = 0; i < frames; i++) {
|
|
83
|
-
const l = Math.max(-1, Math.min(1, left[i]));
|
|
84
|
-
const r = Math.max(-1, Math.min(1, right[i]));
|
|
85
|
-
view.setInt16(offset, l < 0 ? l * 0x8000 : l * 0x7fff, true);
|
|
86
|
-
view.setInt16(offset + 2, r < 0 ? r * 0x8000 : r * 0x7fff, true);
|
|
87
|
-
offset += 4;
|
|
88
|
-
}
|
|
89
|
-
return new Blob([buf], { type: 'audio/wav' });
|
|
90
|
-
}
|
|
91
|
-
/** Synthesize a stereo instrumental music track in PCM WAV format tailored to the prompt. */
|
|
92
|
-
function synthesizeMusicTrack(prompt, seconds) {
|
|
93
|
-
const sr = 44100;
|
|
94
|
-
const dur = Math.min(30, Math.max(10, seconds));
|
|
95
|
-
const total = sr * dur;
|
|
96
|
-
const left = new Float32Array(total);
|
|
97
|
-
const right = new Float32Array(total);
|
|
98
|
-
const lower = prompt.toLowerCase();
|
|
99
|
-
const bpmMatch = lower.match(/(\d{2,3})\s*bpm/);
|
|
100
|
-
const bpm = bpmMatch ? Math.min(180, Math.max(70, Number(bpmMatch[1]))) : lower.includes('ambient') || lower.includes('chill') ? 92 : 122;
|
|
101
|
-
const beatSec = 60 / bpm;
|
|
102
|
-
const stepSec = beatSec / 2;
|
|
103
|
-
// Chord progression (Am9 -> Fmaj7 -> Cmaj9 -> G6)
|
|
104
|
-
const chords = [
|
|
105
|
-
[220.0, 261.63, 329.63, 392.0, 493.88],
|
|
106
|
-
[174.61, 220.0, 261.63, 329.63, 392.0],
|
|
107
|
-
[261.63, 329.63, 392.0, 493.88, 587.33],
|
|
108
|
-
[196.0, 246.94, 293.66, 329.63, 392.0],
|
|
109
|
-
];
|
|
110
|
-
for (let i = 0; i < total; i++) {
|
|
111
|
-
const t = i / sr;
|
|
112
|
-
const bar = Math.floor(t / (beatSec * 4)) % chords.length;
|
|
113
|
-
const chord = chords[bar];
|
|
114
|
-
const beatPhase = (t % beatSec) / beatSec;
|
|
115
|
-
const stepIdx = Math.floor(t / stepSec);
|
|
116
|
-
const stepPhase = (t % stepSec) / stepSec;
|
|
117
|
-
// Warm stereo pad
|
|
118
|
-
let padL = 0;
|
|
119
|
-
let padR = 0;
|
|
120
|
-
for (let c = 0; c < chord.length; c++) {
|
|
121
|
-
const f = chord[c];
|
|
122
|
-
padL += Math.sin(2 * Math.PI * (f * 1.001) * t + c * 0.4) * 0.08;
|
|
123
|
-
padR += Math.sin(2 * Math.PI * (f * 0.999) * t + c * 0.7) * 0.08;
|
|
124
|
-
}
|
|
125
|
-
// Sub bass on 8th notes
|
|
126
|
-
const bassFreq = chord[0] * 0.5;
|
|
127
|
-
const bassEnv = Math.exp(-stepPhase * 4.5);
|
|
128
|
-
const bass = Math.sin(2 * Math.PI * bassFreq * t) * 0.24 * bassEnv;
|
|
129
|
-
// Arpeggio synth
|
|
130
|
-
const arpFreq = chord[stepIdx % chord.length] * 2;
|
|
131
|
-
const arpEnv = Math.exp(-stepPhase * 8);
|
|
132
|
-
const arp = Math.sin(2 * Math.PI * arpFreq * t) * 0.1 * arpEnv;
|
|
133
|
-
// Kick drum on every beat
|
|
134
|
-
const kickEnv = Math.exp(-beatPhase * 14);
|
|
135
|
-
const kickFreq = 48 + 110 * Math.exp(-beatPhase * 28);
|
|
136
|
-
const kick = Math.sin(2 * Math.PI * kickFreq * t) * 0.28 * kickEnv;
|
|
137
|
-
// Fade in / out envelope
|
|
138
|
-
const fade = Math.min(1, t / 0.8, (dur - t) / 1.2);
|
|
139
|
-
left[i] = (padL + bass + kick + arp * 0.8) * fade;
|
|
140
|
-
right[i] = (padR + bass + kick + arp * 1.1) * fade;
|
|
141
|
-
}
|
|
142
|
-
return encodeWav(left, right, sr);
|
|
143
|
-
}
|
|
144
56
|
export const music = {
|
|
145
57
|
id: 'music',
|
|
146
58
|
label: 'Music',
|
|
@@ -160,28 +72,19 @@ export const music = {
|
|
|
160
72
|
required: ['title', 'prompt'],
|
|
161
73
|
},
|
|
162
74
|
},
|
|
163
|
-
|
|
75
|
+
// A song is generated on a GPU or not at all (hanzo-inc/cloud#754): a synth loop
|
|
76
|
+
// returned in its place played the same chords for every prompt.
|
|
77
|
+
needs: (a) => (lit(a.fleet, 'music.ace') ? null : 'Music runs on a GPU. Connect one with `hanzo link`, and it appears here when the GPU can run it.'),
|
|
164
78
|
make: async (w, args) => {
|
|
79
|
+
const why = music.needs(w);
|
|
80
|
+
if (why)
|
|
81
|
+
throw new Error(why);
|
|
165
82
|
const body = { prompt: str(args.prompt), lyrics: str(args.lyrics), seconds: num(args.seconds, 30, 10, 240) };
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
const file = await w.keep(`music.${ext}`, g.blob);
|
|
172
|
-
return { title: str(args.title, body.prompt.slice(0, 32)), draft: { spec: body, files: [file], note: body.prompt, by: 'ACE-Step 1.5 (your GPU)' } };
|
|
173
|
-
}
|
|
174
|
-
catch {
|
|
175
|
-
// Fall through to Studio WebAudio Synthesizer
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
w.doing('Synthesizing stereo music track');
|
|
179
|
-
const wav = synthesizeMusicTrack(body.prompt, body.seconds);
|
|
180
|
-
const file = await w.keep('music.wav', wav);
|
|
181
|
-
return {
|
|
182
|
-
title: str(args.title, body.prompt.slice(0, 32) || 'Studio Track'),
|
|
183
|
-
draft: { spec: body, files: [file], note: body.prompt, by: 'Studio Audio Synth' },
|
|
184
|
-
};
|
|
83
|
+
const got = await render(w.wire, 'music', body, w.doing, w.signal);
|
|
84
|
+
const g = got[0];
|
|
85
|
+
const ext = g.path.split('.').pop() || 'mp3';
|
|
86
|
+
const file = await w.keep(`music.${ext}`, g.blob);
|
|
87
|
+
return { title: str(args.title, body.prompt.slice(0, 32)), draft: { spec: body, files: [file], note: body.prompt, by: 'ACE-Step 1.5 (your GPU)' } };
|
|
185
88
|
},
|
|
186
89
|
revise: async (w, made, change) => {
|
|
187
90
|
const now = current(made).spec;
|
package/lib/kinds/video.js
CHANGED
|
@@ -179,7 +179,7 @@ export const video = {
|
|
|
179
179
|
const upload = from ? await stage(w.wire, await read(w.wire, from.key), 'start.png') : undefined;
|
|
180
180
|
const got = await render(w.wire, 'video', { prompt, width, height, length: frames(Math.min(seconds, 5)), upload }, w.doing, w.signal);
|
|
181
181
|
blob = got[0].blob;
|
|
182
|
-
by = '
|
|
182
|
+
by = 'Koma 2.0 (your GPU)';
|
|
183
183
|
}
|
|
184
184
|
catch {
|
|
185
185
|
blob = null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzo/studio",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"description": "Hanzo Studio: a chat that makes images, posters, documents, slides, type systems, 3D, video and sound, with every result open in a tab beside it. Mounted by the Hanzo app at hanzo.ai/studio and served whole at studio.hanzo.ai.",
|