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.
@@ -850,7 +850,7 @@ var ComfySchema = class {
850
850
  };
851
851
  //#endregion
852
852
  //#region package.json
853
- var version = "2.8.0";
853
+ var version = "2.10.0";
854
854
  //#endregion
855
855
  //#region src/litegraph/LiteGraphLinkID.ts
856
856
  const asLiteGraphLinkID = (id) => id;
@@ -2078,8 +2078,15 @@ var ComfyNode = class ComfyNode {
2078
2078
  }
2079
2079
  _getExpectedTypeForField(name) {
2080
2080
  const input = this.$schema.inputs.find((i) => i.nameInComfy === name);
2081
- if (input == null) throw new Error("🔴 input not found asdf");
2082
- return input.typeName;
2081
+ if (input != null) return input.typeName;
2082
+ const dot = name.indexOf(".");
2083
+ const decl = dot > 0 ? this.$schema.inputs.find((i) => i.nameInComfy === name.slice(0, dot)) : void 0;
2084
+ if (decl != null) {
2085
+ const kind = classifySchemaInput(decl);
2086
+ const slotType = containerInstanceSlotType(decl.opts);
2087
+ if (kind.kind === "dynamic-container" && kind.instanceNames.includes(name.slice(dot + 1)) && slotType != null) return slotType;
2088
+ }
2089
+ throw new Error(`🔴 no input "${name}" on ${this.$schema.nodeKey}: cannot tell which output of the linked node to use`);
2083
2090
  }
2084
2091
  _getOutputForTypeOrCrash(type) {
2085
2092
  const i = this.$schema.outputs.find((i) => i.typeName === type);
@@ -4998,4 +5005,4 @@ var ComfyTS = class ComfyTS {
4998
5005
  //#endregion
4999
5006
  export { ComfySchema as a, importSharp as i, settingsPathFor as n, readableStringify as r, ComfyTS as t };
5000
5007
 
5001
- //# sourceMappingURL=state-B-boDz-Z.js.map
5008
+ //# sourceMappingURL=state-6RFDIQwJ.js.map