comfy-ts 2.8.0 → 2.10.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 CHANGED
@@ -448,8 +448,10 @@ Start with the didactic sequence in [`examples/rvion/`](examples/rvion/):
448
448
  | [`05-comfy-cloud`](examples/rvion/05-comfy-cloud.cflow.ts) | the same code on Comfy Cloud: `url` + `apiKey` host, typechecked against the committed catalog SDK |
449
449
  | [`06-qwen-image-edit`](examples/rvion/06-qwen-image-edit.cflow.ts) | Qwen Image Edit 2511, lightning 4-step lora toggle |
450
450
  | [`07-local-llm-text-gen`](examples/rvion/07-local-llm-text-gen.cflow.ts) | a local LLM through core `TextGenerate`, text back in `execution.text`; `--sweep` probes every text encoder on the host |
451
+ | [`08-qwen-image-21-t2i`](examples/rvion/08-qwen-image-21-t2i.cflow.ts) | Qwen Image 2.1 text to image: int8 model, Qwen3-VL 8b encoder |
452
+ | [`09-qwen-image-21-edit`](examples/rvion/09-qwen-image-21-edit.cflow.ts) | Qwen Image 2.1 edit: the reference image feeds an autogrow slot, output keeps its size; a remove-background preset |
451
453
 
452
- ### The model zoo: 46 cloud workflows, 32 model families
454
+ ### The model zoo: 49 cloud workflows, 34 model families
453
455
 
454
456
  [`examples/comfy-cloud/`](examples/comfy-cloud/) holds one runnable example per family × mode (`<family>-<mode>.cflow.ts`), each transcribed from the official ComfyUI template of that model, typechecked against the committed cloud catalog, and runnable on [Comfy Cloud](https://cloud.comfy.org) with one env var (`COMFY_CLOUD_API_KEY`). Image, video and audio:
455
457
 
@@ -457,9 +459,9 @@ Start with the didactic sequence in [`examples/rvion/`](examples/rvion/):
457
459
  | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
458
460
  | **t2i** text→image | sd15 (= example 05), sdxl, sd35, flux1, flux2, qwen-image, z-image, chroma, hidream, omnigen2, kandinsky5, capybara, krea2, lens, ernie, longcat, ovis, pixeldit, anima, newbie, ideogram4 |
459
461
  | **i2i** image edit | flux1, flux2, qwen-image, hidream, omnigen2, capybara, longcat, boogu, firered |
460
- | **t2v** text→video | wan21, wan22, wan22-5b, ltxv, hunyuan-video, kandinsky5 |
461
- | **i2v** image→video | wan21, wan22, ltxv, hunyuan-video, kandinsky5, capybara, svd |
462
- | **t2a** text→audio | ace-step (song), stable-audio (sfx/music), chatterbox (tts) |
462
+ | **t2v** text→video | wan21, wan22, wan22-5b, ltxv, ltx25 (with sound), hunyuan-video, kandinsky5 |
463
+ | **i2v** image→video | wan21, wan22, ltxv, ltx25 (with sound), hunyuan-video, kandinsky5, capybara, svd |
464
+ | **t2a** text→audio | ace-step (song), minimax-music3 (song), stable-audio (sfx/music), chatterbox (tts) |
463
465
 
464
466
  Every zoo file imports offline and headless (no key, no cache needed — CI proves it), builds a validated graph, and doubles as a TUI app with typed knobs: prompt, seed, steps, size, input image, …
465
467
 
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { A as lmModelName, C as fetchLoraList, P as lmTrainedWords, _ as readLoraMirror, b as writeLoraMirror, u as buildLoraMirror } from "./DefinedWorkflow-BatWaZO1.js";
3
- import { a as ComfySchema, r as readableStringify, t as ComfyTS } from "./state-B-boDz-Z.js";
3
+ import { a as ComfySchema, r as readableStringify, t as ComfyTS } from "./state-6RFDIQwJ.js";
4
4
  import { spawnSync } from "node:child_process";
5
5
  import { fileURLToPath } from "node:url";
6
6
  import { existsSync, mkdirSync, readFileSync, readdirSync, rmdirSync, writeFileSync } from "node:fs";
@@ -281,7 +281,7 @@ async function main() {
281
281
  const { runServe } = await import("./run-serve-_nrvJYyt.js");
282
282
  return runServe(rest);
283
283
  }
284
- const { runTui } = await import("./run-tui-BPw-SZYW.js");
284
+ const { runTui } = await import("./run-tui-Atvf9vb3.js");
285
285
  return runTui(rest);
286
286
  }
287
287
  console.log(HELP);
package/dist/index.cjs CHANGED
@@ -134,7 +134,7 @@ function createNodeStorage() {
134
134
  }
135
135
  //#endregion
136
136
  //#region package.json
137
- var version = "2.8.0";
137
+ var version = "2.10.0";
138
138
  //#endregion
139
139
  //#region src/litegraph/LiteGraphLinkID.ts
140
140
  const asLiteGraphLinkID = (id) => id;
@@ -1611,8 +1611,15 @@ var ComfyNode = class ComfyNode {
1611
1611
  }
1612
1612
  _getExpectedTypeForField(name) {
1613
1613
  const input = this.$schema.inputs.find((i) => i.nameInComfy === name);
1614
- if (input == null) throw new Error("🔴 input not found asdf");
1615
- return input.typeName;
1614
+ if (input != null) return input.typeName;
1615
+ const dot = name.indexOf(".");
1616
+ const decl = dot > 0 ? this.$schema.inputs.find((i) => i.nameInComfy === name.slice(0, dot)) : void 0;
1617
+ if (decl != null) {
1618
+ const kind = classifySchemaInput(decl);
1619
+ const slotType = containerInstanceSlotType(decl.opts);
1620
+ if (kind.kind === "dynamic-container" && kind.instanceNames.includes(name.slice(dot + 1)) && slotType != null) return slotType;
1621
+ }
1622
+ throw new Error(`🔴 no input "${name}" on ${this.$schema.nodeKey}: cannot tell which output of the linked node to use`);
1616
1623
  }
1617
1624
  _getOutputForTypeOrCrash(type) {
1618
1625
  const i = this.$schema.outputs.find((i) => i.typeName === type);