comfy-ts 2.9.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 +6 -4
- package/dist/cli.js +2 -2
- package/dist/index.cjs +10 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -3
- package/dist/index.js.map +1 -1
- package/dist/{run-tui-BLEdTsOX.js → run-tui-Atvf9vb3.js} +2 -2
- package/dist/{run-tui-BLEdTsOX.js.map → run-tui-Atvf9vb3.js.map} +1 -1
- package/dist/{state-BbgJeCe6.js → state-6RFDIQwJ.js} +11 -4
- package/dist/state-6RFDIQwJ.js.map +1 -0
- package/dist/web.js +10 -3
- package/dist/web.js.map +1 -1
- package/examples/README.md +1 -0
- package/examples/comfy-cloud/ltx25-i2v.cflow.ts +152 -0
- package/examples/comfy-cloud/ltx25-t2v.cflow.ts +126 -0
- package/examples/comfy-cloud/minimax-music3-t2a.cflow.ts +95 -0
- package/examples/comfy-cloud/sdk.d.ts +30724 -24404
- package/examples/rvion/08-qwen-image-21-t2i.cflow.ts +64 -0
- package/examples/rvion/09-qwen-image-21-edit.cflow.ts +83 -0
- package/package.json +1 -1
- package/src/graph/ComfyNode.ts +19 -3
- package/dist/state-BbgJeCe6.js.map +0 -1
package/dist/web.js
CHANGED
|
@@ -101,7 +101,7 @@ function getComfyStorage() {
|
|
|
101
101
|
}
|
|
102
102
|
//#endregion
|
|
103
103
|
//#region package.json
|
|
104
|
-
var version = "2.
|
|
104
|
+
var version = "2.10.0";
|
|
105
105
|
//#endregion
|
|
106
106
|
//#region src/litegraph/LiteGraphLinkID.ts
|
|
107
107
|
const asLiteGraphLinkID = (id) => id;
|
|
@@ -1578,8 +1578,15 @@ var ComfyNode = class ComfyNode {
|
|
|
1578
1578
|
}
|
|
1579
1579
|
_getExpectedTypeForField(name) {
|
|
1580
1580
|
const input = this.$schema.inputs.find((i) => i.nameInComfy === name);
|
|
1581
|
-
if (input
|
|
1582
|
-
|
|
1581
|
+
if (input != null) return input.typeName;
|
|
1582
|
+
const dot = name.indexOf(".");
|
|
1583
|
+
const decl = dot > 0 ? this.$schema.inputs.find((i) => i.nameInComfy === name.slice(0, dot)) : void 0;
|
|
1584
|
+
if (decl != null) {
|
|
1585
|
+
const kind = classifySchemaInput(decl);
|
|
1586
|
+
const slotType = containerInstanceSlotType(decl.opts);
|
|
1587
|
+
if (kind.kind === "dynamic-container" && kind.instanceNames.includes(name.slice(dot + 1)) && slotType != null) return slotType;
|
|
1588
|
+
}
|
|
1589
|
+
throw new Error(`🔴 no input "${name}" on ${this.$schema.nodeKey}: cannot tell which output of the linked node to use`);
|
|
1583
1590
|
}
|
|
1584
1591
|
_getOutputForTypeOrCrash(type) {
|
|
1585
1592
|
const i = this.$schema.outputs.find((i) => i.typeName === type);
|