comfy-ts 2.6.0 → 2.8.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.
Files changed (101) hide show
  1. package/README.md +22 -13
  2. package/dist/{DefinedWorkflow-BJgt5t0x.js → DefinedWorkflow-BatWaZO1.js} +199 -16
  3. package/dist/DefinedWorkflow-BatWaZO1.js.map +1 -0
  4. package/dist/{DraftsSt-dizp3VcC.js → LogsSt-DFxzQfDc.js} +152 -4
  5. package/dist/LogsSt-DFxzQfDc.js.map +1 -0
  6. package/dist/cli.js +8 -6
  7. package/dist/cli.js.map +1 -1
  8. package/dist/index.cjs +288 -35
  9. package/dist/index.cjs.map +1 -1
  10. package/dist/index.d.cts +128 -7
  11. package/dist/index.d.ts +128 -7
  12. package/dist/index.js +286 -37
  13. package/dist/index.js.map +1 -1
  14. package/dist/run-serve-_nrvJYyt.js +1948 -0
  15. package/dist/run-serve-_nrvJYyt.js.map +1 -0
  16. package/dist/{run-tui-idFhdO4f.js → run-tui-BPw-SZYW.js} +107 -158
  17. package/dist/run-tui-BPw-SZYW.js.map +1 -0
  18. package/dist/serve-web.js +434 -81
  19. package/dist/{state-C90kdjtB.js → state-B-boDz-Z.js} +184 -45
  20. package/dist/state-B-boDz-Z.js.map +1 -0
  21. package/dist/web.d.ts +112 -7
  22. package/dist/web.js +239 -36
  23. package/dist/web.js.map +1 -1
  24. package/examples/README.md +1 -0
  25. package/examples/comfy-cloud/sdk.d.ts +4066 -321
  26. package/examples/rvion/04-krea2-turbo-t2i.cflow.ts +18 -2
  27. package/examples/rvion/07-local-llm-text-gen.cflow.ts +220 -0
  28. package/examples/web/tsconfig.json +7 -1
  29. package/extra/README.md +32 -0
  30. package/extra/comfyui-textgen-stream/README.md +35 -0
  31. package/extra/comfyui-textgen-stream/__init__.py +166 -0
  32. package/extra/scripts/fetch_text_encoder.py +137 -0
  33. package/package.json +6 -3
  34. package/src/cli/comfy-ts-cli.ts +4 -2
  35. package/src/cli/serve/ServeApp.ts +825 -43
  36. package/src/cli/serve/applyVarPayload.ts +10 -3
  37. package/src/cli/serve/describeVar.ts +47 -7
  38. package/src/cli/serve/managerOnlyLoras.ts +27 -0
  39. package/src/cli/serve/run-serve.ts +58 -29
  40. package/src/cli/serve/serveSettings.ts +86 -0
  41. package/src/cli/serve/startupPrint.ts +111 -0
  42. package/src/cli/serve/web/api.ts +120 -1
  43. package/src/cli/serve/web/components/App.tsx +61 -22
  44. package/src/cli/serve/web/components/Gallery.tsx +243 -30
  45. package/src/cli/serve/web/components/Icon.tsx +160 -0
  46. package/src/cli/serve/web/components/PromptEnhancer.tsx +85 -38
  47. package/src/cli/serve/web/components/Sidebar.tsx +43 -19
  48. package/src/cli/serve/web/components/VarsForm.tsx +440 -80
  49. package/src/cli/serve/web/components/controls/BasicControls.tsx +38 -5
  50. package/src/cli/serve/web/components/controls/ImageControl.tsx +3 -2
  51. package/src/cli/serve/web/components/controls/LorasControl.tsx +498 -81
  52. package/src/cli/serve/web/components/controls/PresetPicker.tsx +60 -0
  53. package/src/cli/serve/web/components/controls/SeedControl.tsx +38 -20
  54. package/src/cli/serve/web/components/controls/SizeControl.tsx +3 -2
  55. package/src/cli/serve/web/llm.ts +254 -0
  56. package/src/cli/serve/web/logWeb.ts +6 -0
  57. package/src/cli/serve/web/state/EnhancerSt.ts +261 -157
  58. package/src/cli/serve/web/state/FormSt.ts +70 -18
  59. package/src/cli/serve/web/state/RunSt.ts +22 -1
  60. package/src/cli/serve/web/state/WebSt.ts +542 -13
  61. package/src/cli/serve/web/state/lightbox.ts +44 -0
  62. package/src/cli/serve/web/state/moduleTree.ts +52 -0
  63. package/src/cli/serve/web/state/payload.ts +44 -2
  64. package/src/cli/serve/web/state/urlSelection.ts +53 -0
  65. package/src/cli/serve/web/styles.ts +415 -57
  66. package/src/cli/serve/web/tsconfig.json +4 -0
  67. package/src/cli/tui/components/PickerOverlays.tsx +37 -0
  68. package/src/cli/tui/components/StatusBar.tsx +14 -1
  69. package/src/cli/tui/components/TuiApp.tsx +5 -2
  70. package/src/cli/tui/state/HostSt.ts +3 -2
  71. package/src/cli/tui/state/PickerSt.ts +48 -2
  72. package/src/cli/tui/state/TreeSt.ts +1 -1
  73. package/src/cli/tui/state/TuiSt.ts +2 -1
  74. package/src/coreExports.ts +8 -1
  75. package/src/graph/ComfyNode.ts +58 -1
  76. package/src/host/ComfyHost.ts +13 -2
  77. package/src/host/ComfyManager.ts +31 -13
  78. package/src/host/loraInfoCache.ts +35 -1
  79. package/src/host/loraManagerApi.ts +94 -0
  80. package/src/index.ts +2 -0
  81. package/src/promptEnhancers.ts +102 -0
  82. package/src/runner/ComfyExecution.ts +61 -6
  83. package/src/runner/ComfyWorkflow.ts +18 -4
  84. package/src/runner/ComfyWsApi.ts +3 -0
  85. package/src/runner/describePromptRejection.ts +34 -0
  86. package/src/sdk-generator/ComfySchema.ts +17 -4
  87. package/src/sdk-generator/comfyui-sdk-codegen.ts +56 -2
  88. package/src/state.ts +6 -0
  89. package/src/utils/ansi.ts +13 -0
  90. package/src/utils/matchesRegex.ts +13 -0
  91. package/src/utils/safeName.ts +29 -0
  92. package/src/utils/stringMap.ts +9 -0
  93. package/src/vars/ComfyVars.ts +61 -10
  94. package/src/vars/presets.ts +17 -0
  95. package/dist/DefinedWorkflow-BJgt5t0x.js.map +0 -1
  96. package/dist/DraftsSt-dizp3VcC.js.map +0 -1
  97. package/dist/run-serve-CVu39RNd.js +0 -1002
  98. package/dist/run-serve-CVu39RNd.js.map +0 -1
  99. package/dist/run-tui-idFhdO4f.js.map +0 -1
  100. package/dist/state-C90kdjtB.js.map +0 -1
  101. package/src/cli/serve/web/openrouter.ts +0 -142
package/dist/index.d.cts CHANGED
@@ -11941,6 +11941,7 @@ declare const types$1: import("arktype").Module<{
11941
11941
  subfolder: string;
11942
11942
  type: string;
11943
11943
  }[] | undefined;
11944
+ text?: unknown[] | undefined;
11944
11945
  };
11945
11946
  prompt_id: PromptID;
11946
11947
  };
@@ -12016,6 +12017,7 @@ declare const types$1: import("arktype").Module<{
12016
12017
  subfolder: string;
12017
12018
  type: string;
12018
12019
  }[] | undefined;
12020
+ text?: unknown[] | undefined;
12019
12021
  };
12020
12022
  prompt_id: PromptID;
12021
12023
  };
@@ -12077,6 +12079,7 @@ declare const types$1: import("arktype").Module<{
12077
12079
  subfolder: string;
12078
12080
  type: string;
12079
12081
  }[] | undefined;
12082
+ text?: unknown[] | undefined;
12080
12083
  };
12081
12084
  prompt_id: PromptID;
12082
12085
  };
@@ -12177,6 +12180,7 @@ declare const types$1: import("arktype").Module<{
12177
12180
  subfolder: string;
12178
12181
  type: string;
12179
12182
  }[] | undefined;
12183
+ text?: unknown[] | undefined;
12180
12184
  };
12181
12185
  prompt_id: PromptID;
12182
12186
  };
@@ -12662,10 +12666,26 @@ type ComfyExecutionData = {
12662
12666
  error?: WsMsgExecutionError | null;
12663
12667
  status?: ComfyExecutionStatus | null;
12664
12668
  };
12669
+ /** one text output as an output node published it (`nodeKey` is null when the node left the snapshot) */
12670
+ type ComfyTextOutput = {
12671
+ nodeId: ComfyNodeId;
12672
+ nodeKey: string | null;
12673
+ text: string;
12674
+ };
12665
12675
  type ExecutionProgress = ProgressReport & {
12666
12676
  promptId: PromptID;
12667
12677
  nodeName: string | null;
12668
12678
  elapsedMs: number;
12679
+ /** the executing node's OWN counter, in its own unit: sampler steps, or generated
12680
+ * tokens on a text node. Null between nodes. The global percent normalizes this away,
12681
+ * and the unit is the only live detail worth reading on a long node */
12682
+ nodeProgress: {
12683
+ value: number;
12684
+ max: number;
12685
+ } | null;
12686
+ /** the executing node's live display text, when it publishes one. A streaming generator
12687
+ * puts its partial answer here every few tokens */
12688
+ progressText: string | null;
12669
12689
  };
12670
12690
  declare class ComfyExecution {
12671
12691
  workflow: ComfyWorkflow;
@@ -12736,6 +12756,21 @@ declare class ComfyExecution {
12736
12756
  private storeWsImage;
12737
12757
  /** images retrieved for this execution, in arrival order (final once `done` resolves) */
12738
12758
  images: MediaImage[];
12759
+ /** text outputs emitted for this execution, in arrival order (final once `done` resolves) */
12760
+ texts: ComfyTextOutput[];
12761
+ /** live display text per node WHILE it runs, newest wins (`send_progress_text` is a
12762
+ * replacement, not a delta). This is the only channel carrying text DURING a node: a
12763
+ * generator that streams its tokens shows up here, and nowhere in the final outputs */
12764
+ progressTexts: Map<string, string>;
12765
+ /** the node that most recently published live text — what "watch it work" means */
12766
+ progressText: string | null;
12767
+ /** @internal a live-text frame for one node */
12768
+ onProgressText(p: {
12769
+ nodeId: string;
12770
+ text: string;
12771
+ }): void;
12772
+ /** the last text output, the one a single-generator workflow means by "the result" */
12773
+ get text(): string | null;
12739
12774
  update(data: Partial<ComfyExecutionData>): void;
12740
12775
  private alreadyDone;
12741
12776
  private _finish;
@@ -15767,7 +15802,17 @@ declare class ComfyManager {
15767
15802
  getModelInfoFinalFilePath: (mi: ComfyManagerModelInfo) => string;
15768
15803
  waitForHostToBeBackOnline(maxAttempt: 10): Promise<true>;
15769
15804
  rebootComfyUIAndUpdateHostPluginsAndModelsAfter10Seconds(): Promise<void>;
15770
- restartComfyUI: () => Promise<unknown>;
15805
+ /**
15806
+ * reboot the ComfyUI process (ComfyUI-Manager).
15807
+ *
15808
+ * The server dies mid-request, so a DROPPED CONNECTION is the success shape and the only
15809
+ * one most callers ever see. A 404 is not: the route is POST from Manager V3 on (verified
15810
+ * against V3.41), and a GET there answers 404 while the process keeps running — a caller
15811
+ * that treats every failure as "expected mid-reboot disconnect" then reports a reboot that
15812
+ * never happened. Both verbs are tried so an old and a new Manager both work, and anything
15813
+ * that is neither a disconnect nor a 404 throws with what the host actually said.
15814
+ */
15815
+ restartComfyUI: () => Promise<void>;
15771
15816
  modelList: Maybe<ComfyManagerAPIModelList>;
15772
15817
  fetchModels: () => Promise<ComfyManagerAPIModelList>;
15773
15818
  fetchLogs: () => Promise<any>;
@@ -15923,6 +15968,17 @@ declare class ResilientWebSocketClient {
15923
15968
  private flushMessageBuffer;
15924
15969
  }
15925
15970
  //#endregion
15971
+ //#region src/vars/presets.d.ts
15972
+ type VarPreset = {
15973
+ label: string;
15974
+ text: string;
15975
+ };
15976
+ /** authored shape: `{ 'terse one-liner': 'reply with one sentence…' }`. Key order is display order */
15977
+ type VarPresetSpec = Record<string, string>;
15978
+ declare function toPresetList(spec: VarPresetSpec | undefined): VarPreset[];
15979
+ /** which preset the value still IS, or null once it was hand-edited (trailing whitespace ignored) */
15980
+ declare function activePresetLabel(presets: readonly VarPreset[], value: string): string | null;
15981
+ //#endregion
15926
15982
  //#region src/vars/ComfyVars.d.ts
15927
15983
  /**
15928
15984
  * the var's CLASS, and the only safe way to discriminate one: `instanceof` compares class
@@ -15971,8 +16027,23 @@ declare abstract class ComfyVarBase<T, Out> {
15971
16027
  declare abstract class ComfyVar<T> extends ComfyVarBase<T, T> {
15972
16028
  outValue(): T;
15973
16029
  }
16030
+ type TextVarOpts = {
16031
+ label?: string;
16032
+ /** render as a box you can write paragraphs in, not a one-line field. Some text IS long by
16033
+ * nature (an llm instruction, a system prompt) and a single line hides all but its start */
16034
+ multiline?: boolean;
16035
+ /** named starting texts, `{ label: text }`. The TUI and the web panel offer them behind one
16036
+ * button and picking one REPLACES the value, so a preset is a shortcut, never a mode */
16037
+ presets?: VarPresetSpec;
16038
+ };
15974
16039
  declare class TextVar extends ComfyVar<string> {
15975
16040
  readonly kind: 'text';
16041
+ /** normalized `opts.presets`, in authored order */
16042
+ readonly presets: VarPreset[];
16043
+ readonly opts: TextVarOpts;
16044
+ /** a bare label string was the whole second parameter before opts existed: a published
16045
+ * consumer passing one must keep working, exactly as SeedVar does */
16046
+ constructor(defaultValue: string, opts?: string | TextVarOpts);
15976
16047
  parse(raw: string): boolean;
15977
16048
  }
15978
16049
  /** what PromptVar needs from a loras var: covariant face, so LorasVar<'a'|'b'> fits.
@@ -16002,11 +16073,15 @@ declare class PromptVar extends ComfyVarBase<string, PromptValue> {
16002
16073
  promptOpts: {
16003
16074
  label?: string;
16004
16075
  loraKeywordsFrom?: ActiveLoraSource;
16076
+ presets?: VarPresetSpec;
16005
16077
  };
16006
16078
  readonly kind: 'prompt';
16079
+ /** normalized `promptOpts.presets`, in authored order (TextVarOpts.presets owns the WHY) */
16080
+ readonly presets: VarPreset[];
16007
16081
  constructor(defaultValue: string, promptOpts?: {
16008
16082
  label?: string;
16009
16083
  loraKeywordsFrom?: ActiveLoraSource;
16084
+ presets?: VarPresetSpec;
16010
16085
  });
16011
16086
  parse(raw: string): boolean;
16012
16087
  static isCommentLine(line: string): boolean;
@@ -16059,7 +16134,12 @@ declare class SeedVar extends ComfyVar<number> {
16059
16134
  /** the mode a reset() restores — the SPEC default, never the live one (introspection
16060
16135
  * reads this: a running mode must not masquerade as the var's default) */
16061
16136
  readonly defaultMode: SeedMode;
16062
- constructor(defaultValue?: number, label?: string);
16137
+ /** `opts` is the modern shape; a bare label string stays accepted, since that was the
16138
+ * signature before a workflow could declare the mode it wants to run in */
16139
+ constructor(defaultValue?: number, opts?: string | {
16140
+ label?: string;
16141
+ mode?: SeedMode;
16142
+ });
16063
16143
  setMode(mode: SeedMode): this;
16064
16144
  randomize(): this;
16065
16145
  set(value: number): this;
@@ -16126,6 +16206,10 @@ declare class LorasVar<T extends string> extends ComfyVar<Partial<Record<T, Lora
16126
16206
  /** which host these loras live on, so their metadata is read from ITS mirror */
16127
16207
  hostId: string | undefined;
16128
16208
  constructor(optionsSource: readonly T[] | RegExp, initial?: Partial<Record<T, LoraStrength>>, label?: string);
16209
+ /** the filter the workflow declared, when it declared one (`v.loras(/krea-?2/i)`). Public so
16210
+ * a UI can SHOW it, and so serve applies the same narrowing to loras only its lora-manager
16211
+ * mirror knows, an unfiltered union would put the whole catalog back in a filtered picker */
16212
+ get optionsFilter(): RegExp | null;
16129
16213
  get options(): readonly T[];
16130
16214
  /** DefinedWorkflow binds the host at define time: a RegExp source resolves here.
16131
16215
  * cast: whitelist family 1 (agent/coding.md) — getLoras() returns the runtime
@@ -16181,7 +16265,10 @@ declare class SizeVar extends ComfyVar<SizeValue> {
16181
16265
  type ImageVarOpts = {
16182
16266
  /** where the TUI picker starts browsing AND what relative values resolve against (absPath) */
16183
16267
  folder?: string;
16184
- /** picker listing filter, lowercase without dots; never affects the value */
16268
+ /** picker listing filter, lowercase without dots; never affects the value. NOT a security
16269
+ * boundary: `comfy-ts serve` keeps its own floor of image types it will read off the disk
16270
+ * and upload, which this list may NARROW but never widen (emptying it changes the picker,
16271
+ * not what the api accepts) */
16185
16272
  extensions?: readonly string[];
16186
16273
  label?: string;
16187
16274
  };
@@ -16218,10 +16305,11 @@ declare class ImageVar extends ComfyVar<string> {
16218
16305
  }
16219
16306
  /** the var constructors: v.text / v.prompt / v.int / v.float / v.seed / v.toggle / v.choice / v.loras / v.size / v.image */
16220
16307
  declare const v: {
16221
- text: (defaultValue: string, label?: string) => TextVar;
16308
+ text: (defaultValue: string, opts?: TextVarOpts | string) => TextVar;
16222
16309
  prompt: (defaultValue: string, opts?: {
16223
16310
  label?: string;
16224
16311
  loraKeywordsFrom?: ActiveLoraSource;
16312
+ presets?: VarPresetSpec;
16225
16313
  }) => PromptVar;
16226
16314
  int: (defaultValue: number, opts?: {
16227
16315
  min?: number;
@@ -16233,7 +16321,12 @@ declare const v: {
16233
16321
  max?: number;
16234
16322
  label?: string;
16235
16323
  }) => FloatVar;
16236
- seed: (defaultValue?: number, label?: string) => SeedVar;
16324
+ /** `mode` is the SPEC default the workflow runs in: `'+'` makes every run step the seed,
16325
+ * which is what a tuning session wants, and reset()/revert come back to it */
16326
+ seed: (defaultValue?: number, opts?: string | {
16327
+ label?: string;
16328
+ mode?: SeedMode;
16329
+ }) => SeedVar;
16237
16330
  toggle: (defaultValue: boolean, label?: string) => ToggleVar;
16238
16331
  choice: <const T extends string>(choices: readonly T[], defaultValue: T, label?: string) => ChoiceVar<T>;
16239
16332
  loras: <T extends string = string>(options: readonly T[] | RegExp, initial?: Partial<Record<T, LoraStrength>>, label?: string) => LorasVar<T>;
@@ -16575,6 +16668,12 @@ declare class ComfyHost<ID extends string = string> {
16575
16668
  mime: string;
16576
16669
  promptID: Maybe<PromptID>;
16577
16670
  }) => void>;
16671
+ /** a node's live display text, as it produces it (`PromptServer.send_progress_text`) */
16672
+ onProgressText: Maybe<(p: {
16673
+ nodeId: string;
16674
+ text: string;
16675
+ promptID: Maybe<PromptID>;
16676
+ }) => void>;
16578
16677
  /** fires on every ws 'status' message (queue length lives there) */
16579
16678
  onStatus: Maybe<(p: {
16580
16679
  queueRemaining: number;
@@ -16965,6 +17064,10 @@ declare class ComfyNode<ComfyNode_input extends object = object, ComfyNode_outpu
16965
17064
  constructor(graph: ComfyWorkflow, uid: ComfyNodeUID // = graph.getUID(),
16966
17065
  , jsonExt: ComfyApiNodeJson, meta?: ComfyNodeMetadata);
16967
17066
  _convertPromptExtToPrompt(promptExt: ComfyApiNodeJson): ComfyApiNodeJson;
17067
+ /** dynamic combo → the key plus ONLY the selected branch's dotted inputs, absent ones
17068
+ * filled from the schema (agent/architecture.md, dynamic-combo fill). The host declares
17069
+ * those branch inputs required and default-fills none of them */
17070
+ private _writeDynamicCombo;
16968
17071
  /** return the list of nodes piped into this node */
16969
17072
  _incomingNodes(): ComfyNodeId[];
16970
17073
  _primitives(): {
@@ -17163,11 +17266,14 @@ declare class ComfyTS {
17163
17266
  * .comfy-ts/hosts/<id>/{object_info.json, embeddings.json, sdk.d.ts}
17164
17267
  * .comfy-ts/outputs/... generated images & workflows
17165
17268
  * .comfy-ts/drafts/<workflow-id>/<draft>.json TUI var snapshots (local, gitignored)
17269
+ * .comfy-ts/prompt-enhancers/<name>.md serve web ui master prompts (local, gitignored)
17166
17270
  */
17167
17271
  baseFolder: AbsolutePath;
17168
17272
  hostsFolder: AbsolutePath;
17169
17273
  outputPath: AbsolutePath;
17170
17274
  resolveFromDrafts(relativePath: string): AbsolutePath;
17275
+ /** master prompts of the serve web ui's prompt enhancer — hand-editable markdown */
17276
+ resolveFromPromptEnhancers(relativePath: string): AbsolutePath;
17171
17277
  resolveFromCache(relativePath: string): AbsolutePath;
17172
17278
  /** local TUI settings (preview mode, last draft per workflow) — gitignored */
17173
17279
  get settingsPath(): AbsolutePath;
@@ -17477,7 +17583,6 @@ declare function getLoraTriggerWords(name: string, hostId?: string): string[];
17477
17583
  declare function getLoraDisplayName(name: string, hostId?: string): string;
17478
17584
  /** server-relative preview url from the mirror, null when unsynced/unknown */
17479
17585
  declare function getLoraPreviewUrl(name: string, hostId?: string): string | null;
17480
- /** the lora's NAMES: the file, and the model name a human would call it by */
17481
17586
  declare function loraSearchNames(name: string, hostId?: string): string[];
17482
17587
  /** the lora's FREE TEXT: tags, base model, trigger words */
17483
17588
  declare function loraSearchText(name: string, hostId?: string): string[];
@@ -17514,8 +17619,24 @@ declare function loraTag<N extends string = string>(name: N, strength?: number,
17514
17619
  */
17515
17620
  declare function exampleImagePath(name: string): string;
17516
17621
  //#endregion
17622
+ //#region src/promptEnhancers.d.ts
17623
+ type PromptEnhancer = {
17624
+ name: string;
17625
+ text: string;
17626
+ };
17627
+ /** the PURE read: no seeding, no writing. What a workflow calls at define time, since importing
17628
+ * a module must never create files in someone's project */
17629
+ declare function readPromptEnhancers(): PromptEnhancer[];
17630
+ /**
17631
+ * the same master prompts, shaped for `v.text(x, { presets })` / `v.prompt`: file name → text.
17632
+ * The point is that ONE library of texts serves the ✨ enhancer and every var that wants them,
17633
+ * so a paragraph you tuned in the panel is offered by the workflow too, with no copy.
17634
+ * Empty when the folder is absent, so a var keeps whatever presets it declares inline.
17635
+ */
17636
+ declare function promptEnhancerPresets(): VarPresetSpec;
17637
+ //#endregion
17517
17638
  //#region src/cli/tui-env.d.ts
17518
17639
  declare function isTuiActive(): boolean;
17519
17640
  //#endregion
17520
- export { AbsolutePath, type ActiveLora, type ActiveLoraSource, type AnyVar, BaseNode, BaseNodeFactory, BaseNodeInputs, BaseNodeOutputs, type BoundVars, Branded, type CanonicalGroup, type CanonicalInput, type CanonicalLink, type CanonicalNode, type CanonicalOutput, type CanonicalWidgetValues, type CanonicalWorkflow, ChoiceVar, type CodegenOptions, type ComfyApiJson, type ComfyApiNodeJson, 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 ComfyUnionValue, type ComfyUploadImageResult, ComfyUploader, ComfyVar, ComfyVarBase, ComfyWorkflow, ComfyWorkflowBuilder, type ComfyWorkflowData, type ComfyWorkflowID, type ConnectOptions, ConvertibleImageFormat, DEFAULT_IMAGE_EXTENSIONS, DEFAULT_SIZE_PRESETS, type DefineWorkflowSpec, DefinedWorkflow, Either, EmptyRecord, type ExecutionProgress, type ExecutionSnapshot, Flavor, FloatVar, HTMLContent, ImageVar, ImageVarEmptyError, type ImageVarOpts, IntVar, InvalidPromptError, IsEqual, type LiteGraphJSON, type LmLoraItem, type LoraMirror, type LoraNameOf, type LoraStrength, type LoraSweep, type LorasHost, LorasVar, MDContent, Maybe, MediaImage, type MediaImageData, type NodeMode, NodeOf, type ParsedHostBase, PartialOmit, type PluginInstallStatus, type PluginSuggestion, type ProgressReport, type PromptID, type PromptRelated_WsMsg, type PromptValue, PromptVar, type QualifiedNodeKey, RelativePath, type Requirements, ResilientWebSocketClient, Result, ResultFailure, type RunSettings, SaveOptions, SdkForHost, SeedVar, type SizePreset, type SizeValue, SizeVar, Tagged, TextVar, ToggleVar, type VarKind, type VarValues, type VarsSpec, WorkflowConvertError, WorkflowNormalizeError, type WsLike, type WsMessageEvent, type WsMsg, __FAIL, __OK, activeLoras, 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, refreshLoraInfoCacheIfChanged, reloadLoraInfoCache, renderHttpBase, renderWsUrl, resultFailure, resultSuccess, setDefaultComfyStorage, setLoraKeyword, v };
17641
+ export { AbsolutePath, type ActiveLora, type ActiveLoraSource, type AnyVar, BaseNode, BaseNodeFactory, BaseNodeInputs, BaseNodeOutputs, type BoundVars, Branded, type CanonicalGroup, type CanonicalInput, type CanonicalLink, type CanonicalNode, type CanonicalOutput, type CanonicalWidgetValues, type CanonicalWorkflow, ChoiceVar, type CodegenOptions, type ComfyApiJson, type ComfyApiNodeJson, 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, type DefineWorkflowSpec, DefinedWorkflow, Either, EmptyRecord, type ExecutionProgress, type ExecutionSnapshot, Flavor, FloatVar, HTMLContent, ImageVar, ImageVarEmptyError, type ImageVarOpts, IntVar, InvalidPromptError, IsEqual, type LiteGraphJSON, type LmLoraItem, type LoraMirror, type LoraNameOf, type LoraStrength, type LoraSweep, type LorasHost, LorasVar, MDContent, Maybe, MediaImage, type MediaImageData, type NodeMode, NodeOf, type ParsedHostBase, PartialOmit, type PluginInstallStatus, type PluginSuggestion, type ProgressReport, type PromptEnhancer, type PromptID, type PromptRelated_WsMsg, type PromptValue, PromptVar, type QualifiedNodeKey, RelativePath, type Requirements, ResilientWebSocketClient, Result, ResultFailure, type RunSettings, SaveOptions, SdkForHost, SeedVar, type SizePreset, type SizeValue, SizeVar, Tagged, TextVar, type TextVarOpts, ToggleVar, type VarKind, type VarPreset, type VarPresetSpec, 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, toPresetList, v };
17521
17642
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.ts CHANGED
@@ -11941,6 +11941,7 @@ declare const types$1: import("arktype").Module<{
11941
11941
  subfolder: string;
11942
11942
  type: string;
11943
11943
  }[] | undefined;
11944
+ text?: unknown[] | undefined;
11944
11945
  };
11945
11946
  prompt_id: PromptID;
11946
11947
  };
@@ -12016,6 +12017,7 @@ declare const types$1: import("arktype").Module<{
12016
12017
  subfolder: string;
12017
12018
  type: string;
12018
12019
  }[] | undefined;
12020
+ text?: unknown[] | undefined;
12019
12021
  };
12020
12022
  prompt_id: PromptID;
12021
12023
  };
@@ -12077,6 +12079,7 @@ declare const types$1: import("arktype").Module<{
12077
12079
  subfolder: string;
12078
12080
  type: string;
12079
12081
  }[] | undefined;
12082
+ text?: unknown[] | undefined;
12080
12083
  };
12081
12084
  prompt_id: PromptID;
12082
12085
  };
@@ -12177,6 +12180,7 @@ declare const types$1: import("arktype").Module<{
12177
12180
  subfolder: string;
12178
12181
  type: string;
12179
12182
  }[] | undefined;
12183
+ text?: unknown[] | undefined;
12180
12184
  };
12181
12185
  prompt_id: PromptID;
12182
12186
  };
@@ -12662,10 +12666,26 @@ type ComfyExecutionData = {
12662
12666
  error?: WsMsgExecutionError | null;
12663
12667
  status?: ComfyExecutionStatus | null;
12664
12668
  };
12669
+ /** one text output as an output node published it (`nodeKey` is null when the node left the snapshot) */
12670
+ type ComfyTextOutput = {
12671
+ nodeId: ComfyNodeId;
12672
+ nodeKey: string | null;
12673
+ text: string;
12674
+ };
12665
12675
  type ExecutionProgress = ProgressReport & {
12666
12676
  promptId: PromptID;
12667
12677
  nodeName: string | null;
12668
12678
  elapsedMs: number;
12679
+ /** the executing node's OWN counter, in its own unit: sampler steps, or generated
12680
+ * tokens on a text node. Null between nodes. The global percent normalizes this away,
12681
+ * and the unit is the only live detail worth reading on a long node */
12682
+ nodeProgress: {
12683
+ value: number;
12684
+ max: number;
12685
+ } | null;
12686
+ /** the executing node's live display text, when it publishes one. A streaming generator
12687
+ * puts its partial answer here every few tokens */
12688
+ progressText: string | null;
12669
12689
  };
12670
12690
  declare class ComfyExecution {
12671
12691
  workflow: ComfyWorkflow;
@@ -12736,6 +12756,21 @@ declare class ComfyExecution {
12736
12756
  private storeWsImage;
12737
12757
  /** images retrieved for this execution, in arrival order (final once `done` resolves) */
12738
12758
  images: MediaImage[];
12759
+ /** text outputs emitted for this execution, in arrival order (final once `done` resolves) */
12760
+ texts: ComfyTextOutput[];
12761
+ /** live display text per node WHILE it runs, newest wins (`send_progress_text` is a
12762
+ * replacement, not a delta). This is the only channel carrying text DURING a node: a
12763
+ * generator that streams its tokens shows up here, and nowhere in the final outputs */
12764
+ progressTexts: Map<string, string>;
12765
+ /** the node that most recently published live text — what "watch it work" means */
12766
+ progressText: string | null;
12767
+ /** @internal a live-text frame for one node */
12768
+ onProgressText(p: {
12769
+ nodeId: string;
12770
+ text: string;
12771
+ }): void;
12772
+ /** the last text output, the one a single-generator workflow means by "the result" */
12773
+ get text(): string | null;
12739
12774
  update(data: Partial<ComfyExecutionData>): void;
12740
12775
  private alreadyDone;
12741
12776
  private _finish;
@@ -15767,7 +15802,17 @@ declare class ComfyManager {
15767
15802
  getModelInfoFinalFilePath: (mi: ComfyManagerModelInfo) => string;
15768
15803
  waitForHostToBeBackOnline(maxAttempt: 10): Promise<true>;
15769
15804
  rebootComfyUIAndUpdateHostPluginsAndModelsAfter10Seconds(): Promise<void>;
15770
- restartComfyUI: () => Promise<unknown>;
15805
+ /**
15806
+ * reboot the ComfyUI process (ComfyUI-Manager).
15807
+ *
15808
+ * The server dies mid-request, so a DROPPED CONNECTION is the success shape and the only
15809
+ * one most callers ever see. A 404 is not: the route is POST from Manager V3 on (verified
15810
+ * against V3.41), and a GET there answers 404 while the process keeps running — a caller
15811
+ * that treats every failure as "expected mid-reboot disconnect" then reports a reboot that
15812
+ * never happened. Both verbs are tried so an old and a new Manager both work, and anything
15813
+ * that is neither a disconnect nor a 404 throws with what the host actually said.
15814
+ */
15815
+ restartComfyUI: () => Promise<void>;
15771
15816
  modelList: Maybe<ComfyManagerAPIModelList>;
15772
15817
  fetchModels: () => Promise<ComfyManagerAPIModelList>;
15773
15818
  fetchLogs: () => Promise<any>;
@@ -15923,6 +15968,17 @@ declare class ResilientWebSocketClient {
15923
15968
  private flushMessageBuffer;
15924
15969
  }
15925
15970
  //#endregion
15971
+ //#region src/vars/presets.d.ts
15972
+ type VarPreset = {
15973
+ label: string;
15974
+ text: string;
15975
+ };
15976
+ /** authored shape: `{ 'terse one-liner': 'reply with one sentence…' }`. Key order is display order */
15977
+ type VarPresetSpec = Record<string, string>;
15978
+ declare function toPresetList(spec: VarPresetSpec | undefined): VarPreset[];
15979
+ /** which preset the value still IS, or null once it was hand-edited (trailing whitespace ignored) */
15980
+ declare function activePresetLabel(presets: readonly VarPreset[], value: string): string | null;
15981
+ //#endregion
15926
15982
  //#region src/vars/ComfyVars.d.ts
15927
15983
  /**
15928
15984
  * the var's CLASS, and the only safe way to discriminate one: `instanceof` compares class
@@ -15971,8 +16027,23 @@ declare abstract class ComfyVarBase<T, Out> {
15971
16027
  declare abstract class ComfyVar<T> extends ComfyVarBase<T, T> {
15972
16028
  outValue(): T;
15973
16029
  }
16030
+ type TextVarOpts = {
16031
+ label?: string;
16032
+ /** render as a box you can write paragraphs in, not a one-line field. Some text IS long by
16033
+ * nature (an llm instruction, a system prompt) and a single line hides all but its start */
16034
+ multiline?: boolean;
16035
+ /** named starting texts, `{ label: text }`. The TUI and the web panel offer them behind one
16036
+ * button and picking one REPLACES the value, so a preset is a shortcut, never a mode */
16037
+ presets?: VarPresetSpec;
16038
+ };
15974
16039
  declare class TextVar extends ComfyVar<string> {
15975
16040
  readonly kind: 'text';
16041
+ /** normalized `opts.presets`, in authored order */
16042
+ readonly presets: VarPreset[];
16043
+ readonly opts: TextVarOpts;
16044
+ /** a bare label string was the whole second parameter before opts existed: a published
16045
+ * consumer passing one must keep working, exactly as SeedVar does */
16046
+ constructor(defaultValue: string, opts?: string | TextVarOpts);
15976
16047
  parse(raw: string): boolean;
15977
16048
  }
15978
16049
  /** what PromptVar needs from a loras var: covariant face, so LorasVar<'a'|'b'> fits.
@@ -16002,11 +16073,15 @@ declare class PromptVar extends ComfyVarBase<string, PromptValue> {
16002
16073
  promptOpts: {
16003
16074
  label?: string;
16004
16075
  loraKeywordsFrom?: ActiveLoraSource;
16076
+ presets?: VarPresetSpec;
16005
16077
  };
16006
16078
  readonly kind: 'prompt';
16079
+ /** normalized `promptOpts.presets`, in authored order (TextVarOpts.presets owns the WHY) */
16080
+ readonly presets: VarPreset[];
16007
16081
  constructor(defaultValue: string, promptOpts?: {
16008
16082
  label?: string;
16009
16083
  loraKeywordsFrom?: ActiveLoraSource;
16084
+ presets?: VarPresetSpec;
16010
16085
  });
16011
16086
  parse(raw: string): boolean;
16012
16087
  static isCommentLine(line: string): boolean;
@@ -16059,7 +16134,12 @@ declare class SeedVar extends ComfyVar<number> {
16059
16134
  /** the mode a reset() restores — the SPEC default, never the live one (introspection
16060
16135
  * reads this: a running mode must not masquerade as the var's default) */
16061
16136
  readonly defaultMode: SeedMode;
16062
- constructor(defaultValue?: number, label?: string);
16137
+ /** `opts` is the modern shape; a bare label string stays accepted, since that was the
16138
+ * signature before a workflow could declare the mode it wants to run in */
16139
+ constructor(defaultValue?: number, opts?: string | {
16140
+ label?: string;
16141
+ mode?: SeedMode;
16142
+ });
16063
16143
  setMode(mode: SeedMode): this;
16064
16144
  randomize(): this;
16065
16145
  set(value: number): this;
@@ -16126,6 +16206,10 @@ declare class LorasVar<T extends string> extends ComfyVar<Partial<Record<T, Lora
16126
16206
  /** which host these loras live on, so their metadata is read from ITS mirror */
16127
16207
  hostId: string | undefined;
16128
16208
  constructor(optionsSource: readonly T[] | RegExp, initial?: Partial<Record<T, LoraStrength>>, label?: string);
16209
+ /** the filter the workflow declared, when it declared one (`v.loras(/krea-?2/i)`). Public so
16210
+ * a UI can SHOW it, and so serve applies the same narrowing to loras only its lora-manager
16211
+ * mirror knows, an unfiltered union would put the whole catalog back in a filtered picker */
16212
+ get optionsFilter(): RegExp | null;
16129
16213
  get options(): readonly T[];
16130
16214
  /** DefinedWorkflow binds the host at define time: a RegExp source resolves here.
16131
16215
  * cast: whitelist family 1 (agent/coding.md) — getLoras() returns the runtime
@@ -16181,7 +16265,10 @@ declare class SizeVar extends ComfyVar<SizeValue> {
16181
16265
  type ImageVarOpts = {
16182
16266
  /** where the TUI picker starts browsing AND what relative values resolve against (absPath) */
16183
16267
  folder?: string;
16184
- /** picker listing filter, lowercase without dots; never affects the value */
16268
+ /** picker listing filter, lowercase without dots; never affects the value. NOT a security
16269
+ * boundary: `comfy-ts serve` keeps its own floor of image types it will read off the disk
16270
+ * and upload, which this list may NARROW but never widen (emptying it changes the picker,
16271
+ * not what the api accepts) */
16185
16272
  extensions?: readonly string[];
16186
16273
  label?: string;
16187
16274
  };
@@ -16218,10 +16305,11 @@ declare class ImageVar extends ComfyVar<string> {
16218
16305
  }
16219
16306
  /** the var constructors: v.text / v.prompt / v.int / v.float / v.seed / v.toggle / v.choice / v.loras / v.size / v.image */
16220
16307
  declare const v: {
16221
- text: (defaultValue: string, label?: string) => TextVar;
16308
+ text: (defaultValue: string, opts?: TextVarOpts | string) => TextVar;
16222
16309
  prompt: (defaultValue: string, opts?: {
16223
16310
  label?: string;
16224
16311
  loraKeywordsFrom?: ActiveLoraSource;
16312
+ presets?: VarPresetSpec;
16225
16313
  }) => PromptVar;
16226
16314
  int: (defaultValue: number, opts?: {
16227
16315
  min?: number;
@@ -16233,7 +16321,12 @@ declare const v: {
16233
16321
  max?: number;
16234
16322
  label?: string;
16235
16323
  }) => FloatVar;
16236
- seed: (defaultValue?: number, label?: string) => SeedVar;
16324
+ /** `mode` is the SPEC default the workflow runs in: `'+'` makes every run step the seed,
16325
+ * which is what a tuning session wants, and reset()/revert come back to it */
16326
+ seed: (defaultValue?: number, opts?: string | {
16327
+ label?: string;
16328
+ mode?: SeedMode;
16329
+ }) => SeedVar;
16237
16330
  toggle: (defaultValue: boolean, label?: string) => ToggleVar;
16238
16331
  choice: <const T extends string>(choices: readonly T[], defaultValue: T, label?: string) => ChoiceVar<T>;
16239
16332
  loras: <T extends string = string>(options: readonly T[] | RegExp, initial?: Partial<Record<T, LoraStrength>>, label?: string) => LorasVar<T>;
@@ -16575,6 +16668,12 @@ declare class ComfyHost<ID extends string = string> {
16575
16668
  mime: string;
16576
16669
  promptID: Maybe<PromptID>;
16577
16670
  }) => void>;
16671
+ /** a node's live display text, as it produces it (`PromptServer.send_progress_text`) */
16672
+ onProgressText: Maybe<(p: {
16673
+ nodeId: string;
16674
+ text: string;
16675
+ promptID: Maybe<PromptID>;
16676
+ }) => void>;
16578
16677
  /** fires on every ws 'status' message (queue length lives there) */
16579
16678
  onStatus: Maybe<(p: {
16580
16679
  queueRemaining: number;
@@ -16965,6 +17064,10 @@ declare class ComfyNode<ComfyNode_input extends object = object, ComfyNode_outpu
16965
17064
  constructor(graph: ComfyWorkflow, uid: ComfyNodeUID // = graph.getUID(),
16966
17065
  , jsonExt: ComfyApiNodeJson, meta?: ComfyNodeMetadata);
16967
17066
  _convertPromptExtToPrompt(promptExt: ComfyApiNodeJson): ComfyApiNodeJson;
17067
+ /** dynamic combo → the key plus ONLY the selected branch's dotted inputs, absent ones
17068
+ * filled from the schema (agent/architecture.md, dynamic-combo fill). The host declares
17069
+ * those branch inputs required and default-fills none of them */
17070
+ private _writeDynamicCombo;
16968
17071
  /** return the list of nodes piped into this node */
16969
17072
  _incomingNodes(): ComfyNodeId[];
16970
17073
  _primitives(): {
@@ -17163,11 +17266,14 @@ declare class ComfyTS {
17163
17266
  * .comfy-ts/hosts/<id>/{object_info.json, embeddings.json, sdk.d.ts}
17164
17267
  * .comfy-ts/outputs/... generated images & workflows
17165
17268
  * .comfy-ts/drafts/<workflow-id>/<draft>.json TUI var snapshots (local, gitignored)
17269
+ * .comfy-ts/prompt-enhancers/<name>.md serve web ui master prompts (local, gitignored)
17166
17270
  */
17167
17271
  baseFolder: AbsolutePath;
17168
17272
  hostsFolder: AbsolutePath;
17169
17273
  outputPath: AbsolutePath;
17170
17274
  resolveFromDrafts(relativePath: string): AbsolutePath;
17275
+ /** master prompts of the serve web ui's prompt enhancer — hand-editable markdown */
17276
+ resolveFromPromptEnhancers(relativePath: string): AbsolutePath;
17171
17277
  resolveFromCache(relativePath: string): AbsolutePath;
17172
17278
  /** local TUI settings (preview mode, last draft per workflow) — gitignored */
17173
17279
  get settingsPath(): AbsolutePath;
@@ -17477,7 +17583,6 @@ declare function getLoraTriggerWords(name: string, hostId?: string): string[];
17477
17583
  declare function getLoraDisplayName(name: string, hostId?: string): string;
17478
17584
  /** server-relative preview url from the mirror, null when unsynced/unknown */
17479
17585
  declare function getLoraPreviewUrl(name: string, hostId?: string): string | null;
17480
- /** the lora's NAMES: the file, and the model name a human would call it by */
17481
17586
  declare function loraSearchNames(name: string, hostId?: string): string[];
17482
17587
  /** the lora's FREE TEXT: tags, base model, trigger words */
17483
17588
  declare function loraSearchText(name: string, hostId?: string): string[];
@@ -17514,8 +17619,24 @@ declare function loraTag<N extends string = string>(name: N, strength?: number,
17514
17619
  */
17515
17620
  declare function exampleImagePath(name: string): string;
17516
17621
  //#endregion
17622
+ //#region src/promptEnhancers.d.ts
17623
+ type PromptEnhancer = {
17624
+ name: string;
17625
+ text: string;
17626
+ };
17627
+ /** the PURE read: no seeding, no writing. What a workflow calls at define time, since importing
17628
+ * a module must never create files in someone's project */
17629
+ declare function readPromptEnhancers(): PromptEnhancer[];
17630
+ /**
17631
+ * the same master prompts, shaped for `v.text(x, { presets })` / `v.prompt`: file name → text.
17632
+ * The point is that ONE library of texts serves the ✨ enhancer and every var that wants them,
17633
+ * so a paragraph you tuned in the panel is offered by the workflow too, with no copy.
17634
+ * Empty when the folder is absent, so a var keeps whatever presets it declares inline.
17635
+ */
17636
+ declare function promptEnhancerPresets(): VarPresetSpec;
17637
+ //#endregion
17517
17638
  //#region src/cli/tui-env.d.ts
17518
17639
  declare function isTuiActive(): boolean;
17519
17640
  //#endregion
17520
- export { AbsolutePath, type ActiveLora, type ActiveLoraSource, type AnyVar, BaseNode, BaseNodeFactory, BaseNodeInputs, BaseNodeOutputs, type BoundVars, Branded, type CanonicalGroup, type CanonicalInput, type CanonicalLink, type CanonicalNode, type CanonicalOutput, type CanonicalWidgetValues, type CanonicalWorkflow, ChoiceVar, type CodegenOptions, type ComfyApiJson, type ComfyApiNodeJson, 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 ComfyUnionValue, type ComfyUploadImageResult, ComfyUploader, ComfyVar, ComfyVarBase, ComfyWorkflow, ComfyWorkflowBuilder, type ComfyWorkflowData, type ComfyWorkflowID, type ConnectOptions, ConvertibleImageFormat, DEFAULT_IMAGE_EXTENSIONS, DEFAULT_SIZE_PRESETS, type DefineWorkflowSpec, DefinedWorkflow, Either, EmptyRecord, type ExecutionProgress, type ExecutionSnapshot, Flavor, FloatVar, HTMLContent, ImageVar, ImageVarEmptyError, type ImageVarOpts, IntVar, InvalidPromptError, IsEqual, type LiteGraphJSON, type LmLoraItem, type LoraMirror, type LoraNameOf, type LoraStrength, type LoraSweep, type LorasHost, LorasVar, MDContent, Maybe, MediaImage, type MediaImageData, type NodeMode, NodeOf, type ParsedHostBase, PartialOmit, type PluginInstallStatus, type PluginSuggestion, type ProgressReport, type PromptID, type PromptRelated_WsMsg, type PromptValue, PromptVar, type QualifiedNodeKey, RelativePath, type Requirements, ResilientWebSocketClient, Result, ResultFailure, type RunSettings, SaveOptions, SdkForHost, SeedVar, type SizePreset, type SizeValue, SizeVar, Tagged, TextVar, ToggleVar, type VarKind, type VarValues, type VarsSpec, WorkflowConvertError, WorkflowNormalizeError, type WsLike, type WsMessageEvent, type WsMsg, __FAIL, __OK, activeLoras, 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, refreshLoraInfoCacheIfChanged, reloadLoraInfoCache, renderHttpBase, renderWsUrl, resultFailure, resultSuccess, setDefaultComfyStorage, setLoraKeyword, v };
17641
+ export { AbsolutePath, type ActiveLora, type ActiveLoraSource, type AnyVar, BaseNode, BaseNodeFactory, BaseNodeInputs, BaseNodeOutputs, type BoundVars, Branded, type CanonicalGroup, type CanonicalInput, type CanonicalLink, type CanonicalNode, type CanonicalOutput, type CanonicalWidgetValues, type CanonicalWorkflow, ChoiceVar, type CodegenOptions, type ComfyApiJson, type ComfyApiNodeJson, 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, type DefineWorkflowSpec, DefinedWorkflow, Either, EmptyRecord, type ExecutionProgress, type ExecutionSnapshot, Flavor, FloatVar, HTMLContent, ImageVar, ImageVarEmptyError, type ImageVarOpts, IntVar, InvalidPromptError, IsEqual, type LiteGraphJSON, type LmLoraItem, type LoraMirror, type LoraNameOf, type LoraStrength, type LoraSweep, type LorasHost, LorasVar, MDContent, Maybe, MediaImage, type MediaImageData, type NodeMode, NodeOf, type ParsedHostBase, PartialOmit, type PluginInstallStatus, type PluginSuggestion, type ProgressReport, type PromptEnhancer, type PromptID, type PromptRelated_WsMsg, type PromptValue, PromptVar, type QualifiedNodeKey, RelativePath, type Requirements, ResilientWebSocketClient, Result, ResultFailure, type RunSettings, SaveOptions, SdkForHost, SeedVar, type SizePreset, type SizeValue, SizeVar, Tagged, TextVar, type TextVarOpts, ToggleVar, type VarKind, type VarPreset, type VarPresetSpec, 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, toPresetList, v };
17521
17642
  //# sourceMappingURL=index.d.ts.map