@hanzo/studio 0.1.8 → 0.1.11
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 +137 -0
- package/lib/app/director.js +1263 -0
- package/lib/app/flow.d.ts +58 -0
- package/lib/app/flow.js +948 -0
- package/lib/chat/turn.js +19 -11
- package/lib/home.d.ts +3 -1
- package/lib/home.js +3 -3
- package/lib/index.d.ts +6 -0
- package/lib/index.js +5 -0
- package/lib/kinds/app.d.ts +40 -0
- package/lib/kinds/app.js +907 -0
- package/lib/kinds/document.js +256 -19
- package/lib/kinds/image.d.ts +3 -0
- package/lib/kinds/image.js +82 -10
- package/lib/kinds/index.js +2 -1
- package/lib/kinds/sound.js +109 -10
- package/lib/kinds/video.js +146 -17
- package/lib/live.d.ts +11 -0
- package/lib/live.js +10 -0
- package/lib/made.d.ts +2 -1
- package/lib/made.js +1 -0
- package/lib/pdf.js +1 -1
- package/lib/places.d.ts +0 -3
- package/lib/places.js +1 -11
- package/lib/route.d.ts +12 -0
- package/lib/route.js +17 -0
- package/lib/starters.d.ts +21 -0
- package/lib/starters.js +33 -2
- package/lib/studio.js +1 -1
- package/lib/talk.js +61 -23
- package/lib/wire.d.ts +2 -6
- package/lib/wire.js +16 -3
- package/package.json +1 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hanzo Flow (/flow) — Langflow + ComfyUI Native-Compat Visual Workflow & Node Graph UI.
|
|
3
|
+
*
|
|
4
|
+
* Clean BSD-3-Clause / MIT visual workflow builder that unifies:
|
|
5
|
+
* 1. Langflow Agent, LLM, Prompt Template, RAG Vector Store, MCP Tool, and inline
|
|
6
|
+
* editable Python Component nodes (`flow` backend).
|
|
7
|
+
* 2. Native ComfyUI / `studio_compat` media generation node extensions (`/v1/object_info`,
|
|
8
|
+
* `/v1/prompt`, `/v1/chat/completions` + MCP tools) for Wan 2.2 Video, LTX 2.0, Qwen-Image-Edit 2511,
|
|
9
|
+
* Z-Image-Turbo, Hunyuan3D-2.1 (.glb), ACE-Step 3.5B Music, Demucs Stems, MMAudio Foley,
|
|
10
|
+
* and Kokoro/CosyVoice TTS.
|
|
11
|
+
* 3. Publish any hybrid Agent+ComfyUI graph as a REST endpoint, ComfyUI API JSON,
|
|
12
|
+
* Langflow JSON, or an MCP Server tool.
|
|
13
|
+
*/
|
|
14
|
+
import type { Host } from '@hanzo/build';
|
|
15
|
+
import type { RailLink } from '@hanzo/ui/chat';
|
|
16
|
+
export type FlowSection = 'canvas' | 'hybrid' | 'comfy' | 'agents' | 'code' | 'publish';
|
|
17
|
+
export declare function parseFlowSection(path?: string): FlowSection;
|
|
18
|
+
export declare function flowNav(host: Host, go: (path: string) => void): {
|
|
19
|
+
id: 'make';
|
|
20
|
+
label: string;
|
|
21
|
+
links: RailLink[];
|
|
22
|
+
}[];
|
|
23
|
+
export interface FlowModuleSpec {
|
|
24
|
+
type: string;
|
|
25
|
+
title: string;
|
|
26
|
+
family: 'langflow' | 'comfy';
|
|
27
|
+
pack: string;
|
|
28
|
+
category: 'agent' | 'loader' | 'conditioning' | 'sampler' | 'decode' | 'output';
|
|
29
|
+
inputPorts: string[];
|
|
30
|
+
outputPorts: string[];
|
|
31
|
+
defaultInputs: Record<string, string | number>;
|
|
32
|
+
pythonSource: string;
|
|
33
|
+
}
|
|
34
|
+
export declare const FLOW_MODULE_CATALOG: readonly FlowModuleSpec[];
|
|
35
|
+
export interface FlowGraphNode {
|
|
36
|
+
id: string;
|
|
37
|
+
type: string;
|
|
38
|
+
title: string;
|
|
39
|
+
family: 'langflow' | 'comfy';
|
|
40
|
+
category: FlowModuleSpec['category'];
|
|
41
|
+
x: number;
|
|
42
|
+
y: number;
|
|
43
|
+
inputs: Record<string, string | number>;
|
|
44
|
+
wiresFrom: string[];
|
|
45
|
+
pythonCode?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface FlowBlueprint {
|
|
48
|
+
id: string;
|
|
49
|
+
name: string;
|
|
50
|
+
kind: 'Hybrid Langflow + ComfyUI' | 'ComfyUI Video' | 'ComfyUI Image & CAD' | 'ComfyUI 3D Mesh' | 'ComfyUI Audio & Music' | 'Langflow Multi-Agent';
|
|
51
|
+
engine: string;
|
|
52
|
+
description: string;
|
|
53
|
+
nodes: FlowGraphNode[];
|
|
54
|
+
}
|
|
55
|
+
export declare const FLOW_BLUEPRINTS: readonly FlowBlueprint[];
|
|
56
|
+
export declare function FlowStudio({ host }: {
|
|
57
|
+
host: Host;
|
|
58
|
+
}): import("react").JSX.Element;
|