comfy-ts 2.14.0 → 2.15.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/README.md +1 -0
- package/dist/{LogsSt-CUeo843w.js → LogsSt-C3UIWR-o.js} +2 -2
- package/dist/{LogsSt-CUeo843w.js.map → LogsSt-C3UIWR-o.js.map} +1 -1
- package/dist/cli.js +4 -4
- package/dist/index.cjs +213 -53
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +123 -21
- package/dist/index.d.ts +123 -21
- package/dist/index.js +207 -54
- package/dist/index.js.map +1 -1
- package/dist/{run-serve-DUqcn0h3.js → run-serve-B5PfIuhK.js} +108 -38
- package/dist/run-serve-B5PfIuhK.js.map +1 -0
- package/dist/{run-tui-D-LaSqgB.js → run-tui-D-N4_yyX.js} +15 -9
- package/dist/run-tui-D-N4_yyX.js.map +1 -0
- package/dist/{schemaDrift-E95iTF7E.js → schemaDrift-BkN8rLiZ.js} +163 -25
- package/dist/schemaDrift-BkN8rLiZ.js.map +1 -0
- package/dist/serve-web.js +62 -48
- package/dist/{state-BytbdZ8s.js → state-CZsYJqB6.js} +45 -35
- package/dist/state-CZsYJqB6.js.map +1 -0
- package/dist/web.d.ts +120 -21
- package/dist/web.js +196 -51
- package/dist/web.js.map +1 -1
- package/examples/media/README.md +8 -0
- package/examples/media/sine_440hz_3s.flac +0 -0
- package/examples/media/testsrc_256x256_3s.mp4 +0 -0
- package/examples/rvion/14-video-soundtrack.cflow.ts +47 -0
- package/guide-for-agents.md +2 -1
- package/package.json +2 -2
- package/src/cli/serve/ServeApp.ts +101 -30
- package/src/cli/serve/applyVarPayload.ts +5 -3
- package/src/cli/serve/describeVar.ts +5 -3
- package/src/cli/serve/resultHistory.ts +22 -6
- package/src/cli/serve/run-serve.ts +4 -1
- package/src/cli/serve/web/api.ts +4 -0
- package/src/cli/serve/web/components/Gallery.tsx +84 -4
- package/src/cli/serve/web/components/VarsForm.tsx +5 -3
- package/src/cli/serve/web/components/controls/MediaControl.tsx +111 -0
- package/src/cli/serve/web/state/FormSt.ts +70 -2
- package/src/cli/serve/web/state/host.ts +2 -0
- package/src/cli/serve/web/state/mediaDrop.ts +76 -0
- package/src/cli/serve/web/styles.ts +16 -2
- package/src/cli/tui/imagePicker/ImagePickerOverlay.tsx +4 -1
- package/src/cli/tui/imagePicker/ImagePickerSt.ts +15 -6
- package/src/cli/tui/state/TuiSt.ts +1 -1
- package/src/coreExports.ts +10 -0
- package/src/exampleAssets.ts +13 -3
- package/src/host/ComfyUploader.ts +34 -27
- package/src/index.ts +1 -1
- package/src/runner/ComfyExecution.ts +38 -20
- package/src/runner/ComfyWsApi.ts +3 -0
- package/src/runner/mediaKinds.ts +51 -0
- package/src/vars/ComfyVars.ts +96 -22
- package/dist/run-serve-DUqcn0h3.js.map +0 -1
- package/dist/run-tui-D-LaSqgB.js.map +0 -1
- package/dist/schemaDrift-E95iTF7E.js.map +0 -1
- package/dist/state-BytbdZ8s.js.map +0 -1
- package/src/cli/serve/web/components/controls/ImageControl.tsx +0 -72
package/dist/index.d.cts
CHANGED
|
@@ -11946,6 +11946,16 @@ declare const types$1: import("arktype").Module<{
|
|
|
11946
11946
|
subfolder: string;
|
|
11947
11947
|
type: string;
|
|
11948
11948
|
}[] | undefined;
|
|
11949
|
+
video?: {
|
|
11950
|
+
filename: string;
|
|
11951
|
+
subfolder: string;
|
|
11952
|
+
type: string;
|
|
11953
|
+
}[] | undefined;
|
|
11954
|
+
gifs?: {
|
|
11955
|
+
filename: string;
|
|
11956
|
+
subfolder: string;
|
|
11957
|
+
type: string;
|
|
11958
|
+
}[] | undefined;
|
|
11949
11959
|
text?: unknown[] | undefined;
|
|
11950
11960
|
};
|
|
11951
11961
|
prompt_id: PromptID;
|
|
@@ -12027,6 +12037,16 @@ declare const types$1: import("arktype").Module<{
|
|
|
12027
12037
|
subfolder: string;
|
|
12028
12038
|
type: string;
|
|
12029
12039
|
}[] | undefined;
|
|
12040
|
+
video?: {
|
|
12041
|
+
filename: string;
|
|
12042
|
+
subfolder: string;
|
|
12043
|
+
type: string;
|
|
12044
|
+
}[] | undefined;
|
|
12045
|
+
gifs?: {
|
|
12046
|
+
filename: string;
|
|
12047
|
+
subfolder: string;
|
|
12048
|
+
type: string;
|
|
12049
|
+
}[] | undefined;
|
|
12030
12050
|
text?: unknown[] | undefined;
|
|
12031
12051
|
};
|
|
12032
12052
|
prompt_id: PromptID;
|
|
@@ -12094,6 +12114,16 @@ declare const types$1: import("arktype").Module<{
|
|
|
12094
12114
|
subfolder: string;
|
|
12095
12115
|
type: string;
|
|
12096
12116
|
}[] | undefined;
|
|
12117
|
+
video?: {
|
|
12118
|
+
filename: string;
|
|
12119
|
+
subfolder: string;
|
|
12120
|
+
type: string;
|
|
12121
|
+
}[] | undefined;
|
|
12122
|
+
gifs?: {
|
|
12123
|
+
filename: string;
|
|
12124
|
+
subfolder: string;
|
|
12125
|
+
type: string;
|
|
12126
|
+
}[] | undefined;
|
|
12097
12127
|
text?: unknown[] | undefined;
|
|
12098
12128
|
};
|
|
12099
12129
|
prompt_id: PromptID;
|
|
@@ -12200,6 +12230,16 @@ declare const types$1: import("arktype").Module<{
|
|
|
12200
12230
|
subfolder: string;
|
|
12201
12231
|
type: string;
|
|
12202
12232
|
}[] | undefined;
|
|
12233
|
+
video?: {
|
|
12234
|
+
filename: string;
|
|
12235
|
+
subfolder: string;
|
|
12236
|
+
type: string;
|
|
12237
|
+
}[] | undefined;
|
|
12238
|
+
gifs?: {
|
|
12239
|
+
filename: string;
|
|
12240
|
+
subfolder: string;
|
|
12241
|
+
type: string;
|
|
12242
|
+
}[] | undefined;
|
|
12203
12243
|
text?: unknown[] | undefined;
|
|
12204
12244
|
};
|
|
12205
12245
|
prompt_id: PromptID;
|
|
@@ -12695,6 +12735,9 @@ type ComfyAudioOutput = {
|
|
|
12695
12735
|
bytes: Uint8Array;
|
|
12696
12736
|
absPath: AbsolutePath | null;
|
|
12697
12737
|
};
|
|
12738
|
+
/** one video file an output node published (SaveVideo, SaveWEBM, VHS_VideoCombine), same
|
|
12739
|
+
* shape and same retrieval as an audio file */
|
|
12740
|
+
type ComfyVideoOutput = ComfyAudioOutput;
|
|
12698
12741
|
/** one text output as an output node published it (`nodeKey` is null when the node left the snapshot) */
|
|
12699
12742
|
type ComfyTextOutput = {
|
|
12700
12743
|
nodeId: ComfyNodeId;
|
|
@@ -12766,7 +12809,14 @@ declare class ComfyExecution {
|
|
|
12766
12809
|
}[];
|
|
12767
12810
|
/** audio files retrieved for this execution, in arrival order (final once `done` resolves) */
|
|
12768
12811
|
audios: ComfyAudioOutput[];
|
|
12769
|
-
|
|
12812
|
+
/** video retrievals that failed (their files are missing from `videos`) */
|
|
12813
|
+
videoErrors: {
|
|
12814
|
+
video: ComfyImageInfo;
|
|
12815
|
+
error: unknown;
|
|
12816
|
+
}[];
|
|
12817
|
+
/** video files retrieved for this execution, in arrival order (final once `done` resolves) */
|
|
12818
|
+
videos: ComfyVideoOutput[];
|
|
12819
|
+
private retrieveFile;
|
|
12770
12820
|
/** image retrievals that failed (their images are missing from `images`);
|
|
12771
12821
|
* `image` is null for SaveImageWebsocket frames (no server-side file info exists) */
|
|
12772
12822
|
imageErrors: {
|
|
@@ -15885,12 +15935,29 @@ type ComfyUploadImageResult = {
|
|
|
15885
15935
|
declare class ComfyUploader {
|
|
15886
15936
|
host: ComfyHost;
|
|
15887
15937
|
constructor(host: ComfyHost);
|
|
15888
|
-
/**
|
|
15938
|
+
/** names this process already uploaded to this host: a LoadAudio or LoadVideo list is not
|
|
15939
|
+
* reloaded after an upload, so without it every run re-sent the same file */
|
|
15940
|
+
private uploaded;
|
|
15941
|
+
/** upload an image (hash-named, deduped against the host's LoadImage list) */
|
|
15889
15942
|
uploadImage: (img: MediaImage, p: {
|
|
15890
15943
|
type?: Maybe<'input' | 'temp' | 'output'>;
|
|
15891
15944
|
override?: Maybe<boolean>;
|
|
15892
15945
|
subfolder?: string;
|
|
15893
15946
|
}) => Promise<ComfyImageName>;
|
|
15947
|
+
/**
|
|
15948
|
+
* THE upload path: any file a loader node reads from the host's input folder. ComfyUI routes
|
|
15949
|
+
* audio and video through `/upload/image` too. `slot` is the loader input whose value list
|
|
15950
|
+
* says the file is already there (`LoadImage.image`, `LoadAudio.audio`, `LoadVideo.file`)
|
|
15951
|
+
*/
|
|
15952
|
+
uploadInput: (p: {
|
|
15953
|
+
blob: Blob;
|
|
15954
|
+
/** the name the file should get on the host, hash-derived by callers so reruns dedupe */
|
|
15955
|
+
name: string;
|
|
15956
|
+
slot: string;
|
|
15957
|
+
type?: Maybe<'input' | 'temp' | 'output'>;
|
|
15958
|
+
override?: Maybe<boolean>;
|
|
15959
|
+
subfolder?: string;
|
|
15960
|
+
}) => Promise<string>;
|
|
15894
15961
|
}
|
|
15895
15962
|
//#endregion
|
|
15896
15963
|
//#region src/host/hostUrl.d.ts
|
|
@@ -16078,6 +16145,9 @@ declare function toPresetList(spec: VarPresetSpec | undefined): VarPreset[];
|
|
|
16078
16145
|
/** which preset the value still IS, or null once it was hand-edited (trailing whitespace ignored) */
|
|
16079
16146
|
declare function activePresetLabel(presets: readonly VarPreset[], value: string): string | null;
|
|
16080
16147
|
//#endregion
|
|
16148
|
+
//#region src/runner/mediaKinds.d.ts
|
|
16149
|
+
type MediaKind = 'image' | 'audio' | 'video';
|
|
16150
|
+
//#endregion
|
|
16081
16151
|
//#region src/vars/ComfyVars.d.ts
|
|
16082
16152
|
/**
|
|
16083
16153
|
* the var's CLASS, and the only safe way to discriminate one: `instanceof` compares class
|
|
@@ -16087,7 +16157,7 @@ declare function activePresetLabel(presets: readonly VarPreset[], value: string)
|
|
|
16087
16157
|
* in a consumer app: "var 'prompt' has unsupported kind 'text'", for EVERY kind). A string tag
|
|
16088
16158
|
* crosses bundles; a class identity does not.
|
|
16089
16159
|
*/
|
|
16090
|
-
type VarKind = 'text' | 'prompt' | 'int' | 'float' | 'seed' | 'toggle' | 'choice' | 'loras' | 'size' |
|
|
16160
|
+
type VarKind = 'text' | 'prompt' | 'int' | 'float' | 'seed' | 'toggle' | 'choice' | 'loras' | 'size' | MediaKind;
|
|
16091
16161
|
/**
|
|
16092
16162
|
* full base: T is what's STORED/edited, Out what the GRAPH consumes at build
|
|
16093
16163
|
* time. They usually coincide — extend `ComfyVar<T>` for that. PromptVar is
|
|
@@ -16477,35 +16547,44 @@ declare class SizeVar extends ComfyVar<SizeValue> {
|
|
|
16477
16547
|
parse(raw: string): boolean;
|
|
16478
16548
|
display(): string;
|
|
16479
16549
|
}
|
|
16480
|
-
type
|
|
16550
|
+
type MediaVarOpts = {
|
|
16481
16551
|
/** where the TUI picker starts browsing AND what relative values resolve against (absPath) */
|
|
16482
16552
|
folder?: string;
|
|
16483
16553
|
/** picker listing filter, lowercase without dots; never affects the value. NOT a security
|
|
16484
|
-
* boundary: `comfy-ts serve` keeps its own floor of
|
|
16554
|
+
* boundary: `comfy-ts serve` keeps its own floor of media types it will read off the disk
|
|
16485
16555
|
* and upload, which this list may NARROW but never widen (emptying it changes the picker,
|
|
16486
16556
|
* not what the api accepts) */
|
|
16487
16557
|
extensions?: readonly string[];
|
|
16488
16558
|
label?: string;
|
|
16489
16559
|
};
|
|
16560
|
+
type ImageVarOpts = MediaVarOpts;
|
|
16561
|
+
type AudioVarOpts = MediaVarOpts;
|
|
16562
|
+
type VideoVarOpts = MediaVarOpts;
|
|
16490
16563
|
declare const DEFAULT_IMAGE_EXTENSIONS: readonly string[];
|
|
16491
|
-
|
|
16492
|
-
declare
|
|
16564
|
+
declare const DEFAULT_AUDIO_EXTENSIONS: readonly string[];
|
|
16565
|
+
declare const DEFAULT_VIDEO_EXTENSIONS: readonly string[];
|
|
16566
|
+
/** empty media var consumed at build time — typed so drivers surface it apart from real crashes */
|
|
16567
|
+
declare class MediaVarEmptyError extends Error {
|
|
16493
16568
|
readonly varName: string;
|
|
16569
|
+
readonly media: MediaKind;
|
|
16494
16570
|
/** name, not instanceof: the cli bundle and dist/index.js each define this class */
|
|
16495
|
-
readonly name
|
|
16496
|
-
constructor(varName: string);
|
|
16571
|
+
readonly name: string;
|
|
16572
|
+
constructor(varName: string, media?: MediaKind);
|
|
16497
16573
|
}
|
|
16574
|
+
/** the image-only name this error had first; the same class */
|
|
16575
|
+
declare const ImageVarEmptyError: typeof MediaVarEmptyError;
|
|
16576
|
+
type ImageVarEmptyError = MediaVarEmptyError;
|
|
16498
16577
|
/**
|
|
16499
|
-
* a local
|
|
16578
|
+
* a local media file path. The VALUE is a PLAIN PATH STRING — text-encodable,
|
|
16500
16579
|
* drafts persist it verbatim (toJSON = the string), hand-editable in the
|
|
16501
|
-
* draft json. Empty = unset: outValue()/absPath() throw
|
|
16502
|
-
* so a build never runs on a silent placeholder. The TUI opens the
|
|
16503
|
-
* picker overlay for kind
|
|
16504
|
-
*/
|
|
16505
|
-
declare class
|
|
16506
|
-
opts:
|
|
16507
|
-
readonly kind:
|
|
16508
|
-
constructor(defaultValue: string, opts?:
|
|
16580
|
+
* draft json. Empty = unset: outValue()/absPath() throw MediaVarEmptyError,
|
|
16581
|
+
* so a build never runs on a silent placeholder. The TUI opens the file
|
|
16582
|
+
* picker overlay for every media kind.
|
|
16583
|
+
*/
|
|
16584
|
+
declare abstract class MediaVar extends ComfyVar<string> {
|
|
16585
|
+
opts: MediaVarOpts;
|
|
16586
|
+
abstract readonly kind: MediaKind;
|
|
16587
|
+
constructor(defaultValue: string, opts?: MediaVarOpts);
|
|
16509
16588
|
/** what the picker lists (lowercase, no dots) */
|
|
16510
16589
|
get extensions(): readonly string[];
|
|
16511
16590
|
set(value: string): this;
|
|
@@ -16517,8 +16596,26 @@ declare class ImageVar extends ComfyVar<string> {
|
|
|
16517
16596
|
/** empty = unset: the build fails LOUD here (varValues calls outValue) */
|
|
16518
16597
|
outValue(): string;
|
|
16519
16598
|
display(): string;
|
|
16599
|
+
/** upload the file hash-named (reruns dedupe) and add this medium's loader node. A dry
|
|
16600
|
+
* build names the file by its hash and uploads nothing */
|
|
16601
|
+
protected loadVia(wf: ComfyWorkflow<string>): Promise<unknown>;
|
|
16602
|
+
}
|
|
16603
|
+
/** a local image path, loaded through LoadImage */
|
|
16604
|
+
declare class ImageVar extends MediaVar {
|
|
16605
|
+
readonly kind: 'image';
|
|
16606
|
+
loadInWorkflow<WID extends string>(wf: ComfyWorkflow<WID>): Promise<NodeOf<WID, 'LoadImage'>>;
|
|
16607
|
+
}
|
|
16608
|
+
/** a local audio path, loaded through LoadAudio */
|
|
16609
|
+
declare class AudioVar extends MediaVar {
|
|
16610
|
+
readonly kind: 'audio';
|
|
16611
|
+
loadInWorkflow<WID extends string>(wf: ComfyWorkflow<WID>): Promise<NodeOf<WID, 'LoadAudio'>>;
|
|
16612
|
+
}
|
|
16613
|
+
/** a local video path, loaded through LoadVideo */
|
|
16614
|
+
declare class VideoVar extends MediaVar {
|
|
16615
|
+
readonly kind: 'video';
|
|
16616
|
+
loadInWorkflow<WID extends string>(wf: ComfyWorkflow<WID>): Promise<NodeOf<WID, 'LoadVideo'>>;
|
|
16520
16617
|
}
|
|
16521
|
-
/** the var constructors: v.text / v.prompt / v.int / v.float / v.seed / v.toggle / v.choice / v.loras / v.size / v.image */
|
|
16618
|
+
/** the var constructors: v.text / v.prompt / v.int / v.float / v.seed / v.toggle / v.choice / v.loras / v.size / v.image / v.audio / v.video */
|
|
16522
16619
|
declare const v: {
|
|
16523
16620
|
text: (defaultValue: string, opts?: TextVarOpts | string) => TextVar;
|
|
16524
16621
|
prompt: (
|
|
@@ -16553,7 +16650,9 @@ declare const v: {
|
|
|
16553
16650
|
label?: string;
|
|
16554
16651
|
image?: ImageVar;
|
|
16555
16652
|
}) => SizeVar;
|
|
16556
|
-
image: (defaultValue: string, opts?:
|
|
16653
|
+
image: (defaultValue: string, opts?: MediaVarOpts) => ImageVar;
|
|
16654
|
+
audio: (defaultValue: string, opts?: MediaVarOpts) => AudioVar;
|
|
16655
|
+
video: (defaultValue: string, opts?: MediaVarOpts) => VideoVar;
|
|
16557
16656
|
};
|
|
16558
16657
|
/**
|
|
16559
16658
|
* structural face of any var: readonly `value` keeps ComfyVar<T> assignable
|
|
@@ -17877,6 +17976,9 @@ declare function loraTag<N extends string = string>(name: N, strength?: number,
|
|
|
17877
17976
|
* or the package's examples/ folder was pruned.
|
|
17878
17977
|
*/
|
|
17879
17978
|
declare function exampleImagePath(name: string): string;
|
|
17979
|
+
/** the same for a bundled `examples/media/` audio or video file, e.g.
|
|
17980
|
+
* `exampleMediaPath('sine_440hz_3s.flac')` — the default of audio and video example vars */
|
|
17981
|
+
declare function exampleMediaPath(name: string): string;
|
|
17880
17982
|
//#endregion
|
|
17881
17983
|
//#region src/promptEnhancers.d.ts
|
|
17882
17984
|
type PromptEnhancer = {
|
|
@@ -17897,5 +17999,5 @@ declare function promptEnhancerPresets(): VarPresetSpec;
|
|
|
17897
17999
|
//#region src/cli/tui-env.d.ts
|
|
17898
18000
|
declare function isTuiActive(): boolean;
|
|
17899
18001
|
//#endregion
|
|
17900
|
-
export { AbsolutePath, type ActiveLora, type ActiveLoraSource, type AnyChoiceVar, type AnyVar, BaseNode, BaseNodeFactory, BaseNodeInputs, BaseNodeOutputs, type BoundVars, Branded, type CanonicalGroup, type CanonicalInput, type CanonicalLink, type CanonicalNode, type CanonicalOutput, type CanonicalWidgetValues, type CanonicalWorkflow, type ChoiceSelect, ChoiceVar, type CodegenOptions, type ComfyApiJson, type ComfyApiNodeJson, type ComfyAudioOutput, ComfyExecution, type ComfyExecutionData, type ComfyExecutionStatus, ComfyHost, ComfyHostAuthError, type ComfyHostData, type ComfyHostID, ComfyHostUnreachableError, type ComfyImageName, ComfyManager, ComfyNode, type ComfyNodeId, type ComfyNodeIdMode, type ComfyNodeMetadata, ComfyNodeOutput, type ComfyNodeSchemaJSON, ComfySchema, type ComfySchemaJSON, ComfySdkBase, ComfySdkShape, type ComfyStorage, ComfyTS, type ComfyTextOutput, type ComfyUnionValue, type ComfyUploadImageResult, ComfyUploader, ComfyVar, ComfyVarBase, ComfyWorkflow, ComfyWorkflowBuilder, type ComfyWorkflowData, type ComfyWorkflowID, type ConnectOptions, ConvertibleImageFormat, DEFAULT_IMAGE_EXTENSIONS, DEFAULT_SIZE_PRESETS, DEFAULT_STARRED_SIZES, type DefineWorkflowSpec, DefinedWorkflow, Either, EmptyRecord, type ExecutionProgress, type ExecutionSnapshot, Flavor, FloatVar, HTMLContent, ImageVar, ImageVarEmptyError, type ImageVarOpts, IntVar, InvalidPromptError, IsEqual, type LiteGraphJSON, type LmLoraItem, type LoraEntry, type LoraLane, type LoraLanes, type LoraMirror, type LoraNameOf, type LoraRecord, type LoraStrength, type LoraSweep, type LorasHost, type LorasInput, LorasVar, MDContent, Maybe, MediaImage, type MediaImageData, MultiChoiceVar, type NodeMode, NodeOf, OptionalChoiceVar, type ParsedHostBase, PartialOmit, type PluginInstallStatus, type PluginSuggestion, type ProgressReport, type PromptEnhancer, type PromptID, type PromptInput, type PromptLane, type PromptLanes, type PromptRelated_WsMsg, type PromptTagsOpts, type PromptValue, PromptVar, type PromptVarOpts, type QualifiedNodeKey, RelativePath, type Requirements, ResilientWebSocketClient, Result, ResultFailure, type RunSettings, SD15_SIZE_PRESETS, SaveOptions, SdkForHost, SeedVar, type SizePreset, type SizeValue, SizeVar, Tagged, TextVar, type TextVarOpts, ToggleVar, type VarKind, type VarPreset, type VarPresetSpec, type VarUi, type VarValues, type VarsSpec, WorkflowConvertError, WorkflowNormalizeError, type WsLike, type WsMessageEvent, type WsMsg, __FAIL, __OK, activeLoras, activePresetLabel, asAbsolutePath, asHTMLContent, asMDContent, asRelativePath, auto, auto_, clearLoraKeywordOverride, codegenSDK, convertFlowToLiteGraphJSON, convertLiteGraphToPrompt, createMemoryStorage, exampleImagePath, getComfyStorage, getLoraDisplayName, getLoraInfo, getLoraKeyword, getLoraPreviewUrl, getLoraTriggerWords, hostIdToNamespace, isLoraKeywordFromMirror, isTuiActive, loraKey, loraKeywordFromMirror, loraMatchesFilter, loraSearchNames, loraSearchText, loraTag, normalizeWorkflow, number_Timestamp, parseHostBase, parseWorkflowJson, promptEnhancerPresets, readPromptEnhancers, refreshLoraInfoCacheIfChanged, reloadLoraInfoCache, renderHttpBase, renderWsUrl, resultFailure, resultSuccess, setDefaultComfyStorage, setLoraKeyword, sizePresetsFor, toPresetList, v };
|
|
18002
|
+
export { AbsolutePath, type ActiveLora, type ActiveLoraSource, type AnyChoiceVar, type AnyVar, AudioVar, type AudioVarOpts, BaseNode, BaseNodeFactory, BaseNodeInputs, BaseNodeOutputs, type BoundVars, Branded, type CanonicalGroup, type CanonicalInput, type CanonicalLink, type CanonicalNode, type CanonicalOutput, type CanonicalWidgetValues, type CanonicalWorkflow, type ChoiceSelect, ChoiceVar, type CodegenOptions, type ComfyApiJson, type ComfyApiNodeJson, type ComfyAudioOutput, ComfyExecution, type ComfyExecutionData, type ComfyExecutionStatus, ComfyHost, ComfyHostAuthError, type ComfyHostData, type ComfyHostID, ComfyHostUnreachableError, type ComfyImageName, ComfyManager, ComfyNode, type ComfyNodeId, type ComfyNodeIdMode, type ComfyNodeMetadata, ComfyNodeOutput, type ComfyNodeSchemaJSON, ComfySchema, type ComfySchemaJSON, ComfySdkBase, ComfySdkShape, type ComfyStorage, ComfyTS, type ComfyTextOutput, type ComfyUnionValue, type ComfyUploadImageResult, ComfyUploader, ComfyVar, ComfyVarBase, type ComfyVideoOutput, ComfyWorkflow, ComfyWorkflowBuilder, type ComfyWorkflowData, type ComfyWorkflowID, type ConnectOptions, ConvertibleImageFormat, DEFAULT_AUDIO_EXTENSIONS, DEFAULT_IMAGE_EXTENSIONS, DEFAULT_SIZE_PRESETS, DEFAULT_STARRED_SIZES, DEFAULT_VIDEO_EXTENSIONS, type DefineWorkflowSpec, DefinedWorkflow, Either, EmptyRecord, type ExecutionProgress, type ExecutionSnapshot, Flavor, FloatVar, HTMLContent, ImageVar, ImageVarEmptyError, type ImageVarOpts, IntVar, InvalidPromptError, IsEqual, type LiteGraphJSON, type LmLoraItem, type LoraEntry, type LoraLane, type LoraLanes, type LoraMirror, type LoraNameOf, type LoraRecord, type LoraStrength, type LoraSweep, type LorasHost, type LorasInput, LorasVar, MDContent, Maybe, MediaImage, type MediaImageData, MediaVar, MediaVarEmptyError, type MediaVarOpts, MultiChoiceVar, type NodeMode, NodeOf, OptionalChoiceVar, type ParsedHostBase, PartialOmit, type PluginInstallStatus, type PluginSuggestion, type ProgressReport, type PromptEnhancer, type PromptID, type PromptInput, type PromptLane, type PromptLanes, type PromptRelated_WsMsg, type PromptTagsOpts, type PromptValue, PromptVar, type PromptVarOpts, type QualifiedNodeKey, RelativePath, type Requirements, ResilientWebSocketClient, Result, ResultFailure, type RunSettings, SD15_SIZE_PRESETS, SaveOptions, SdkForHost, SeedVar, type SizePreset, type SizeValue, SizeVar, Tagged, TextVar, type TextVarOpts, ToggleVar, type VarKind, type VarPreset, type VarPresetSpec, type VarUi, type VarValues, type VarsSpec, VideoVar, type VideoVarOpts, WorkflowConvertError, WorkflowNormalizeError, type WsLike, type WsMessageEvent, type WsMsg, __FAIL, __OK, activeLoras, activePresetLabel, asAbsolutePath, asHTMLContent, asMDContent, asRelativePath, auto, auto_, clearLoraKeywordOverride, codegenSDK, convertFlowToLiteGraphJSON, convertLiteGraphToPrompt, createMemoryStorage, exampleImagePath, exampleMediaPath, getComfyStorage, getLoraDisplayName, getLoraInfo, getLoraKeyword, getLoraPreviewUrl, getLoraTriggerWords, hostIdToNamespace, isLoraKeywordFromMirror, isTuiActive, loraKey, loraKeywordFromMirror, loraMatchesFilter, loraSearchNames, loraSearchText, loraTag, normalizeWorkflow, number_Timestamp, parseHostBase, parseWorkflowJson, promptEnhancerPresets, readPromptEnhancers, refreshLoraInfoCacheIfChanged, reloadLoraInfoCache, renderHttpBase, renderWsUrl, resultFailure, resultSuccess, setDefaultComfyStorage, setLoraKeyword, sizePresetsFor, toPresetList, v };
|
|
17901
18003
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -11946,6 +11946,16 @@ declare const types$1: import("arktype").Module<{
|
|
|
11946
11946
|
subfolder: string;
|
|
11947
11947
|
type: string;
|
|
11948
11948
|
}[] | undefined;
|
|
11949
|
+
video?: {
|
|
11950
|
+
filename: string;
|
|
11951
|
+
subfolder: string;
|
|
11952
|
+
type: string;
|
|
11953
|
+
}[] | undefined;
|
|
11954
|
+
gifs?: {
|
|
11955
|
+
filename: string;
|
|
11956
|
+
subfolder: string;
|
|
11957
|
+
type: string;
|
|
11958
|
+
}[] | undefined;
|
|
11949
11959
|
text?: unknown[] | undefined;
|
|
11950
11960
|
};
|
|
11951
11961
|
prompt_id: PromptID;
|
|
@@ -12027,6 +12037,16 @@ declare const types$1: import("arktype").Module<{
|
|
|
12027
12037
|
subfolder: string;
|
|
12028
12038
|
type: string;
|
|
12029
12039
|
}[] | undefined;
|
|
12040
|
+
video?: {
|
|
12041
|
+
filename: string;
|
|
12042
|
+
subfolder: string;
|
|
12043
|
+
type: string;
|
|
12044
|
+
}[] | undefined;
|
|
12045
|
+
gifs?: {
|
|
12046
|
+
filename: string;
|
|
12047
|
+
subfolder: string;
|
|
12048
|
+
type: string;
|
|
12049
|
+
}[] | undefined;
|
|
12030
12050
|
text?: unknown[] | undefined;
|
|
12031
12051
|
};
|
|
12032
12052
|
prompt_id: PromptID;
|
|
@@ -12094,6 +12114,16 @@ declare const types$1: import("arktype").Module<{
|
|
|
12094
12114
|
subfolder: string;
|
|
12095
12115
|
type: string;
|
|
12096
12116
|
}[] | undefined;
|
|
12117
|
+
video?: {
|
|
12118
|
+
filename: string;
|
|
12119
|
+
subfolder: string;
|
|
12120
|
+
type: string;
|
|
12121
|
+
}[] | undefined;
|
|
12122
|
+
gifs?: {
|
|
12123
|
+
filename: string;
|
|
12124
|
+
subfolder: string;
|
|
12125
|
+
type: string;
|
|
12126
|
+
}[] | undefined;
|
|
12097
12127
|
text?: unknown[] | undefined;
|
|
12098
12128
|
};
|
|
12099
12129
|
prompt_id: PromptID;
|
|
@@ -12200,6 +12230,16 @@ declare const types$1: import("arktype").Module<{
|
|
|
12200
12230
|
subfolder: string;
|
|
12201
12231
|
type: string;
|
|
12202
12232
|
}[] | undefined;
|
|
12233
|
+
video?: {
|
|
12234
|
+
filename: string;
|
|
12235
|
+
subfolder: string;
|
|
12236
|
+
type: string;
|
|
12237
|
+
}[] | undefined;
|
|
12238
|
+
gifs?: {
|
|
12239
|
+
filename: string;
|
|
12240
|
+
subfolder: string;
|
|
12241
|
+
type: string;
|
|
12242
|
+
}[] | undefined;
|
|
12203
12243
|
text?: unknown[] | undefined;
|
|
12204
12244
|
};
|
|
12205
12245
|
prompt_id: PromptID;
|
|
@@ -12695,6 +12735,9 @@ type ComfyAudioOutput = {
|
|
|
12695
12735
|
bytes: Uint8Array;
|
|
12696
12736
|
absPath: AbsolutePath | null;
|
|
12697
12737
|
};
|
|
12738
|
+
/** one video file an output node published (SaveVideo, SaveWEBM, VHS_VideoCombine), same
|
|
12739
|
+
* shape and same retrieval as an audio file */
|
|
12740
|
+
type ComfyVideoOutput = ComfyAudioOutput;
|
|
12698
12741
|
/** one text output as an output node published it (`nodeKey` is null when the node left the snapshot) */
|
|
12699
12742
|
type ComfyTextOutput = {
|
|
12700
12743
|
nodeId: ComfyNodeId;
|
|
@@ -12766,7 +12809,14 @@ declare class ComfyExecution {
|
|
|
12766
12809
|
}[];
|
|
12767
12810
|
/** audio files retrieved for this execution, in arrival order (final once `done` resolves) */
|
|
12768
12811
|
audios: ComfyAudioOutput[];
|
|
12769
|
-
|
|
12812
|
+
/** video retrievals that failed (their files are missing from `videos`) */
|
|
12813
|
+
videoErrors: {
|
|
12814
|
+
video: ComfyImageInfo;
|
|
12815
|
+
error: unknown;
|
|
12816
|
+
}[];
|
|
12817
|
+
/** video files retrieved for this execution, in arrival order (final once `done` resolves) */
|
|
12818
|
+
videos: ComfyVideoOutput[];
|
|
12819
|
+
private retrieveFile;
|
|
12770
12820
|
/** image retrievals that failed (their images are missing from `images`);
|
|
12771
12821
|
* `image` is null for SaveImageWebsocket frames (no server-side file info exists) */
|
|
12772
12822
|
imageErrors: {
|
|
@@ -15885,12 +15935,29 @@ type ComfyUploadImageResult = {
|
|
|
15885
15935
|
declare class ComfyUploader {
|
|
15886
15936
|
host: ComfyHost;
|
|
15887
15937
|
constructor(host: ComfyHost);
|
|
15888
|
-
/**
|
|
15938
|
+
/** names this process already uploaded to this host: a LoadAudio or LoadVideo list is not
|
|
15939
|
+
* reloaded after an upload, so without it every run re-sent the same file */
|
|
15940
|
+
private uploaded;
|
|
15941
|
+
/** upload an image (hash-named, deduped against the host's LoadImage list) */
|
|
15889
15942
|
uploadImage: (img: MediaImage, p: {
|
|
15890
15943
|
type?: Maybe<'input' | 'temp' | 'output'>;
|
|
15891
15944
|
override?: Maybe<boolean>;
|
|
15892
15945
|
subfolder?: string;
|
|
15893
15946
|
}) => Promise<ComfyImageName>;
|
|
15947
|
+
/**
|
|
15948
|
+
* THE upload path: any file a loader node reads from the host's input folder. ComfyUI routes
|
|
15949
|
+
* audio and video through `/upload/image` too. `slot` is the loader input whose value list
|
|
15950
|
+
* says the file is already there (`LoadImage.image`, `LoadAudio.audio`, `LoadVideo.file`)
|
|
15951
|
+
*/
|
|
15952
|
+
uploadInput: (p: {
|
|
15953
|
+
blob: Blob;
|
|
15954
|
+
/** the name the file should get on the host, hash-derived by callers so reruns dedupe */
|
|
15955
|
+
name: string;
|
|
15956
|
+
slot: string;
|
|
15957
|
+
type?: Maybe<'input' | 'temp' | 'output'>;
|
|
15958
|
+
override?: Maybe<boolean>;
|
|
15959
|
+
subfolder?: string;
|
|
15960
|
+
}) => Promise<string>;
|
|
15894
15961
|
}
|
|
15895
15962
|
//#endregion
|
|
15896
15963
|
//#region src/host/hostUrl.d.ts
|
|
@@ -16078,6 +16145,9 @@ declare function toPresetList(spec: VarPresetSpec | undefined): VarPreset[];
|
|
|
16078
16145
|
/** which preset the value still IS, or null once it was hand-edited (trailing whitespace ignored) */
|
|
16079
16146
|
declare function activePresetLabel(presets: readonly VarPreset[], value: string): string | null;
|
|
16080
16147
|
//#endregion
|
|
16148
|
+
//#region src/runner/mediaKinds.d.ts
|
|
16149
|
+
type MediaKind = 'image' | 'audio' | 'video';
|
|
16150
|
+
//#endregion
|
|
16081
16151
|
//#region src/vars/ComfyVars.d.ts
|
|
16082
16152
|
/**
|
|
16083
16153
|
* the var's CLASS, and the only safe way to discriminate one: `instanceof` compares class
|
|
@@ -16087,7 +16157,7 @@ declare function activePresetLabel(presets: readonly VarPreset[], value: string)
|
|
|
16087
16157
|
* in a consumer app: "var 'prompt' has unsupported kind 'text'", for EVERY kind). A string tag
|
|
16088
16158
|
* crosses bundles; a class identity does not.
|
|
16089
16159
|
*/
|
|
16090
|
-
type VarKind = 'text' | 'prompt' | 'int' | 'float' | 'seed' | 'toggle' | 'choice' | 'loras' | 'size' |
|
|
16160
|
+
type VarKind = 'text' | 'prompt' | 'int' | 'float' | 'seed' | 'toggle' | 'choice' | 'loras' | 'size' | MediaKind;
|
|
16091
16161
|
/**
|
|
16092
16162
|
* full base: T is what's STORED/edited, Out what the GRAPH consumes at build
|
|
16093
16163
|
* time. They usually coincide — extend `ComfyVar<T>` for that. PromptVar is
|
|
@@ -16477,35 +16547,44 @@ declare class SizeVar extends ComfyVar<SizeValue> {
|
|
|
16477
16547
|
parse(raw: string): boolean;
|
|
16478
16548
|
display(): string;
|
|
16479
16549
|
}
|
|
16480
|
-
type
|
|
16550
|
+
type MediaVarOpts = {
|
|
16481
16551
|
/** where the TUI picker starts browsing AND what relative values resolve against (absPath) */
|
|
16482
16552
|
folder?: string;
|
|
16483
16553
|
/** picker listing filter, lowercase without dots; never affects the value. NOT a security
|
|
16484
|
-
* boundary: `comfy-ts serve` keeps its own floor of
|
|
16554
|
+
* boundary: `comfy-ts serve` keeps its own floor of media types it will read off the disk
|
|
16485
16555
|
* and upload, which this list may NARROW but never widen (emptying it changes the picker,
|
|
16486
16556
|
* not what the api accepts) */
|
|
16487
16557
|
extensions?: readonly string[];
|
|
16488
16558
|
label?: string;
|
|
16489
16559
|
};
|
|
16560
|
+
type ImageVarOpts = MediaVarOpts;
|
|
16561
|
+
type AudioVarOpts = MediaVarOpts;
|
|
16562
|
+
type VideoVarOpts = MediaVarOpts;
|
|
16490
16563
|
declare const DEFAULT_IMAGE_EXTENSIONS: readonly string[];
|
|
16491
|
-
|
|
16492
|
-
declare
|
|
16564
|
+
declare const DEFAULT_AUDIO_EXTENSIONS: readonly string[];
|
|
16565
|
+
declare const DEFAULT_VIDEO_EXTENSIONS: readonly string[];
|
|
16566
|
+
/** empty media var consumed at build time — typed so drivers surface it apart from real crashes */
|
|
16567
|
+
declare class MediaVarEmptyError extends Error {
|
|
16493
16568
|
readonly varName: string;
|
|
16569
|
+
readonly media: MediaKind;
|
|
16494
16570
|
/** name, not instanceof: the cli bundle and dist/index.js each define this class */
|
|
16495
|
-
readonly name
|
|
16496
|
-
constructor(varName: string);
|
|
16571
|
+
readonly name: string;
|
|
16572
|
+
constructor(varName: string, media?: MediaKind);
|
|
16497
16573
|
}
|
|
16574
|
+
/** the image-only name this error had first; the same class */
|
|
16575
|
+
declare const ImageVarEmptyError: typeof MediaVarEmptyError;
|
|
16576
|
+
type ImageVarEmptyError = MediaVarEmptyError;
|
|
16498
16577
|
/**
|
|
16499
|
-
* a local
|
|
16578
|
+
* a local media file path. The VALUE is a PLAIN PATH STRING — text-encodable,
|
|
16500
16579
|
* drafts persist it verbatim (toJSON = the string), hand-editable in the
|
|
16501
|
-
* draft json. Empty = unset: outValue()/absPath() throw
|
|
16502
|
-
* so a build never runs on a silent placeholder. The TUI opens the
|
|
16503
|
-
* picker overlay for kind
|
|
16504
|
-
*/
|
|
16505
|
-
declare class
|
|
16506
|
-
opts:
|
|
16507
|
-
readonly kind:
|
|
16508
|
-
constructor(defaultValue: string, opts?:
|
|
16580
|
+
* draft json. Empty = unset: outValue()/absPath() throw MediaVarEmptyError,
|
|
16581
|
+
* so a build never runs on a silent placeholder. The TUI opens the file
|
|
16582
|
+
* picker overlay for every media kind.
|
|
16583
|
+
*/
|
|
16584
|
+
declare abstract class MediaVar extends ComfyVar<string> {
|
|
16585
|
+
opts: MediaVarOpts;
|
|
16586
|
+
abstract readonly kind: MediaKind;
|
|
16587
|
+
constructor(defaultValue: string, opts?: MediaVarOpts);
|
|
16509
16588
|
/** what the picker lists (lowercase, no dots) */
|
|
16510
16589
|
get extensions(): readonly string[];
|
|
16511
16590
|
set(value: string): this;
|
|
@@ -16517,8 +16596,26 @@ declare class ImageVar extends ComfyVar<string> {
|
|
|
16517
16596
|
/** empty = unset: the build fails LOUD here (varValues calls outValue) */
|
|
16518
16597
|
outValue(): string;
|
|
16519
16598
|
display(): string;
|
|
16599
|
+
/** upload the file hash-named (reruns dedupe) and add this medium's loader node. A dry
|
|
16600
|
+
* build names the file by its hash and uploads nothing */
|
|
16601
|
+
protected loadVia(wf: ComfyWorkflow<string>): Promise<unknown>;
|
|
16602
|
+
}
|
|
16603
|
+
/** a local image path, loaded through LoadImage */
|
|
16604
|
+
declare class ImageVar extends MediaVar {
|
|
16605
|
+
readonly kind: 'image';
|
|
16606
|
+
loadInWorkflow<WID extends string>(wf: ComfyWorkflow<WID>): Promise<NodeOf<WID, 'LoadImage'>>;
|
|
16607
|
+
}
|
|
16608
|
+
/** a local audio path, loaded through LoadAudio */
|
|
16609
|
+
declare class AudioVar extends MediaVar {
|
|
16610
|
+
readonly kind: 'audio';
|
|
16611
|
+
loadInWorkflow<WID extends string>(wf: ComfyWorkflow<WID>): Promise<NodeOf<WID, 'LoadAudio'>>;
|
|
16612
|
+
}
|
|
16613
|
+
/** a local video path, loaded through LoadVideo */
|
|
16614
|
+
declare class VideoVar extends MediaVar {
|
|
16615
|
+
readonly kind: 'video';
|
|
16616
|
+
loadInWorkflow<WID extends string>(wf: ComfyWorkflow<WID>): Promise<NodeOf<WID, 'LoadVideo'>>;
|
|
16520
16617
|
}
|
|
16521
|
-
/** the var constructors: v.text / v.prompt / v.int / v.float / v.seed / v.toggle / v.choice / v.loras / v.size / v.image */
|
|
16618
|
+
/** the var constructors: v.text / v.prompt / v.int / v.float / v.seed / v.toggle / v.choice / v.loras / v.size / v.image / v.audio / v.video */
|
|
16522
16619
|
declare const v: {
|
|
16523
16620
|
text: (defaultValue: string, opts?: TextVarOpts | string) => TextVar;
|
|
16524
16621
|
prompt: (
|
|
@@ -16553,7 +16650,9 @@ declare const v: {
|
|
|
16553
16650
|
label?: string;
|
|
16554
16651
|
image?: ImageVar;
|
|
16555
16652
|
}) => SizeVar;
|
|
16556
|
-
image: (defaultValue: string, opts?:
|
|
16653
|
+
image: (defaultValue: string, opts?: MediaVarOpts) => ImageVar;
|
|
16654
|
+
audio: (defaultValue: string, opts?: MediaVarOpts) => AudioVar;
|
|
16655
|
+
video: (defaultValue: string, opts?: MediaVarOpts) => VideoVar;
|
|
16557
16656
|
};
|
|
16558
16657
|
/**
|
|
16559
16658
|
* structural face of any var: readonly `value` keeps ComfyVar<T> assignable
|
|
@@ -17877,6 +17976,9 @@ declare function loraTag<N extends string = string>(name: N, strength?: number,
|
|
|
17877
17976
|
* or the package's examples/ folder was pruned.
|
|
17878
17977
|
*/
|
|
17879
17978
|
declare function exampleImagePath(name: string): string;
|
|
17979
|
+
/** the same for a bundled `examples/media/` audio or video file, e.g.
|
|
17980
|
+
* `exampleMediaPath('sine_440hz_3s.flac')` — the default of audio and video example vars */
|
|
17981
|
+
declare function exampleMediaPath(name: string): string;
|
|
17880
17982
|
//#endregion
|
|
17881
17983
|
//#region src/promptEnhancers.d.ts
|
|
17882
17984
|
type PromptEnhancer = {
|
|
@@ -17897,5 +17999,5 @@ declare function promptEnhancerPresets(): VarPresetSpec;
|
|
|
17897
17999
|
//#region src/cli/tui-env.d.ts
|
|
17898
18000
|
declare function isTuiActive(): boolean;
|
|
17899
18001
|
//#endregion
|
|
17900
|
-
export { AbsolutePath, type ActiveLora, type ActiveLoraSource, type AnyChoiceVar, type AnyVar, BaseNode, BaseNodeFactory, BaseNodeInputs, BaseNodeOutputs, type BoundVars, Branded, type CanonicalGroup, type CanonicalInput, type CanonicalLink, type CanonicalNode, type CanonicalOutput, type CanonicalWidgetValues, type CanonicalWorkflow, type ChoiceSelect, ChoiceVar, type CodegenOptions, type ComfyApiJson, type ComfyApiNodeJson, type ComfyAudioOutput, ComfyExecution, type ComfyExecutionData, type ComfyExecutionStatus, ComfyHost, ComfyHostAuthError, type ComfyHostData, type ComfyHostID, ComfyHostUnreachableError, type ComfyImageName, ComfyManager, ComfyNode, type ComfyNodeId, type ComfyNodeIdMode, type ComfyNodeMetadata, ComfyNodeOutput, type ComfyNodeSchemaJSON, ComfySchema, type ComfySchemaJSON, ComfySdkBase, ComfySdkShape, type ComfyStorage, ComfyTS, type ComfyTextOutput, type ComfyUnionValue, type ComfyUploadImageResult, ComfyUploader, ComfyVar, ComfyVarBase, ComfyWorkflow, ComfyWorkflowBuilder, type ComfyWorkflowData, type ComfyWorkflowID, type ConnectOptions, ConvertibleImageFormat, DEFAULT_IMAGE_EXTENSIONS, DEFAULT_SIZE_PRESETS, DEFAULT_STARRED_SIZES, type DefineWorkflowSpec, DefinedWorkflow, Either, EmptyRecord, type ExecutionProgress, type ExecutionSnapshot, Flavor, FloatVar, HTMLContent, ImageVar, ImageVarEmptyError, type ImageVarOpts, IntVar, InvalidPromptError, IsEqual, type LiteGraphJSON, type LmLoraItem, type LoraEntry, type LoraLane, type LoraLanes, type LoraMirror, type LoraNameOf, type LoraRecord, type LoraStrength, type LoraSweep, type LorasHost, type LorasInput, LorasVar, MDContent, Maybe, MediaImage, type MediaImageData, MultiChoiceVar, type NodeMode, NodeOf, OptionalChoiceVar, type ParsedHostBase, PartialOmit, type PluginInstallStatus, type PluginSuggestion, type ProgressReport, type PromptEnhancer, type PromptID, type PromptInput, type PromptLane, type PromptLanes, type PromptRelated_WsMsg, type PromptTagsOpts, type PromptValue, PromptVar, type PromptVarOpts, type QualifiedNodeKey, RelativePath, type Requirements, ResilientWebSocketClient, Result, ResultFailure, type RunSettings, SD15_SIZE_PRESETS, SaveOptions, SdkForHost, SeedVar, type SizePreset, type SizeValue, SizeVar, Tagged, TextVar, type TextVarOpts, ToggleVar, type VarKind, type VarPreset, type VarPresetSpec, type VarUi, type VarValues, type VarsSpec, WorkflowConvertError, WorkflowNormalizeError, type WsLike, type WsMessageEvent, type WsMsg, __FAIL, __OK, activeLoras, activePresetLabel, asAbsolutePath, asHTMLContent, asMDContent, asRelativePath, auto, auto_, clearLoraKeywordOverride, codegenSDK, convertFlowToLiteGraphJSON, convertLiteGraphToPrompt, createMemoryStorage, exampleImagePath, getComfyStorage, getLoraDisplayName, getLoraInfo, getLoraKeyword, getLoraPreviewUrl, getLoraTriggerWords, hostIdToNamespace, isLoraKeywordFromMirror, isTuiActive, loraKey, loraKeywordFromMirror, loraMatchesFilter, loraSearchNames, loraSearchText, loraTag, normalizeWorkflow, number_Timestamp, parseHostBase, parseWorkflowJson, promptEnhancerPresets, readPromptEnhancers, refreshLoraInfoCacheIfChanged, reloadLoraInfoCache, renderHttpBase, renderWsUrl, resultFailure, resultSuccess, setDefaultComfyStorage, setLoraKeyword, sizePresetsFor, toPresetList, v };
|
|
18002
|
+
export { AbsolutePath, type ActiveLora, type ActiveLoraSource, type AnyChoiceVar, type AnyVar, AudioVar, type AudioVarOpts, BaseNode, BaseNodeFactory, BaseNodeInputs, BaseNodeOutputs, type BoundVars, Branded, type CanonicalGroup, type CanonicalInput, type CanonicalLink, type CanonicalNode, type CanonicalOutput, type CanonicalWidgetValues, type CanonicalWorkflow, type ChoiceSelect, ChoiceVar, type CodegenOptions, type ComfyApiJson, type ComfyApiNodeJson, type ComfyAudioOutput, ComfyExecution, type ComfyExecutionData, type ComfyExecutionStatus, ComfyHost, ComfyHostAuthError, type ComfyHostData, type ComfyHostID, ComfyHostUnreachableError, type ComfyImageName, ComfyManager, ComfyNode, type ComfyNodeId, type ComfyNodeIdMode, type ComfyNodeMetadata, ComfyNodeOutput, type ComfyNodeSchemaJSON, ComfySchema, type ComfySchemaJSON, ComfySdkBase, ComfySdkShape, type ComfyStorage, ComfyTS, type ComfyTextOutput, type ComfyUnionValue, type ComfyUploadImageResult, ComfyUploader, ComfyVar, ComfyVarBase, type ComfyVideoOutput, ComfyWorkflow, ComfyWorkflowBuilder, type ComfyWorkflowData, type ComfyWorkflowID, type ConnectOptions, ConvertibleImageFormat, DEFAULT_AUDIO_EXTENSIONS, DEFAULT_IMAGE_EXTENSIONS, DEFAULT_SIZE_PRESETS, DEFAULT_STARRED_SIZES, DEFAULT_VIDEO_EXTENSIONS, type DefineWorkflowSpec, DefinedWorkflow, Either, EmptyRecord, type ExecutionProgress, type ExecutionSnapshot, Flavor, FloatVar, HTMLContent, ImageVar, ImageVarEmptyError, type ImageVarOpts, IntVar, InvalidPromptError, IsEqual, type LiteGraphJSON, type LmLoraItem, type LoraEntry, type LoraLane, type LoraLanes, type LoraMirror, type LoraNameOf, type LoraRecord, type LoraStrength, type LoraSweep, type LorasHost, type LorasInput, LorasVar, MDContent, Maybe, MediaImage, type MediaImageData, MediaVar, MediaVarEmptyError, type MediaVarOpts, MultiChoiceVar, type NodeMode, NodeOf, OptionalChoiceVar, type ParsedHostBase, PartialOmit, type PluginInstallStatus, type PluginSuggestion, type ProgressReport, type PromptEnhancer, type PromptID, type PromptInput, type PromptLane, type PromptLanes, type PromptRelated_WsMsg, type PromptTagsOpts, type PromptValue, PromptVar, type PromptVarOpts, type QualifiedNodeKey, RelativePath, type Requirements, ResilientWebSocketClient, Result, ResultFailure, type RunSettings, SD15_SIZE_PRESETS, SaveOptions, SdkForHost, SeedVar, type SizePreset, type SizeValue, SizeVar, Tagged, TextVar, type TextVarOpts, ToggleVar, type VarKind, type VarPreset, type VarPresetSpec, type VarUi, type VarValues, type VarsSpec, VideoVar, type VideoVarOpts, WorkflowConvertError, WorkflowNormalizeError, type WsLike, type WsMessageEvent, type WsMsg, __FAIL, __OK, activeLoras, activePresetLabel, asAbsolutePath, asHTMLContent, asMDContent, asRelativePath, auto, auto_, clearLoraKeywordOverride, codegenSDK, convertFlowToLiteGraphJSON, convertLiteGraphToPrompt, createMemoryStorage, exampleImagePath, exampleMediaPath, getComfyStorage, getLoraDisplayName, getLoraInfo, getLoraKeyword, getLoraPreviewUrl, getLoraTriggerWords, hostIdToNamespace, isLoraKeywordFromMirror, isTuiActive, loraKey, loraKeywordFromMirror, loraMatchesFilter, loraSearchNames, loraSearchText, loraTag, normalizeWorkflow, number_Timestamp, parseHostBase, parseWorkflowJson, promptEnhancerPresets, readPromptEnhancers, refreshLoraInfoCacheIfChanged, reloadLoraInfoCache, renderHttpBase, renderWsUrl, resultFailure, resultSuccess, setDefaultComfyStorage, setLoraKeyword, sizePresetsFor, toPresetList, v };
|
|
17901
18003
|
//# sourceMappingURL=index.d.ts.map
|