Files
aigc-home/docs/hel-892/h3-chain-evidence/implementation.diff
T

6404 lines
209 KiB
Diff
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
diff --git a/calliope-backend/scripts/audit_reference_conversion.py b/calliope-backend/scripts/audit_reference_conversion.py
index 34cb588..05aae18 100644
--- a/calliope-backend/scripts/audit_reference_conversion.py
+++ b/calliope-backend/scripts/audit_reference_conversion.py
@@ -23,0 +24 @@ from calliope.comfyui.delivery_scope import exclusion_for
+from calliope.comfyui.h3_chain_reference import CHAIN_PROFILE
@@ -311,0 +313 @@ REFERENCE_PROFILES = (
+ CHAIN_PROFILE,
@@ -606 +608 @@ def h3_field_evidence(source, prompt):
-def core_field_evidence(source):
+def core_field_evidence(source, profile=CORE_PROFILE):
@@ -609,0 +612,11 @@ def core_field_evidence(source):
+ layouts = LAYOUTS
+ if profile == CHAIN_PROFILE:
+ from calliope.comfyui.h3_chain_reference import (
+ LAYOUTS as CHAIN_LAYOUTS,
+ )
+ from calliope.comfyui.h3_chain_reference import (
+ saved_values,
+ serialize_node,
+ )
+
+ layouts = {**layouts, **CHAIN_LAYOUTS}
@@ -618 +631 @@ def core_field_evidence(source):
- if ct not in LAYOUTS:
+ if ct not in layouts:
@@ -627 +640 @@ def core_field_evidence(source):
- wi = LAYOUTS[ct].index(name)
+ wi = layouts[ct].index(name)
@@ -660 +673 @@ def core_field_evidence(source):
- n.get("id") == edge[1] and n.get("type") in LAYOUTS
+ n.get("id") == edge[1] and n.get("type") in layouts
@@ -682 +695,3 @@ def core_field_evidence(source):
- "contract_manifest": "h3-core-reference/sources.json",
+ "contract_manifest": "h3-chain-reference/sources.json"
+ if profile == CHAIN_PROFILE
+ else "h3-core-reference/sources.json",
@@ -685,0 +701,32 @@ def core_field_evidence(source):
+ if profile == CHAIN_PROFILE:
+ # Rejected arrays remain opaque evidence; never drop or name an
+ # unproved third CreateVideo value to make the instance pass.
+ evidence[-1]["raw_saved_values"] = [
+ {
+ "pointer": f"/nodes/{i}/widgets_values/{wi}",
+ "value": value,
+ "json_type": type(value).__name__,
+ }
+ for wi, value in enumerate(node.get("widgets_values", []))
+ ]
+ evidence[-1]["effective_field_evidence"] = [
+ {
+ "field": field["field"],
+ "value": field["value"],
+ "json_type": field["json_type"],
+ "pointer": field["source_value_pointer"],
+ "origin": "saved_value",
+ }
+ for field in fields
+ if field["field"] not in {p["input"] for p in physical}
+ ] + [
+ {
+ "field": edge["input"],
+ "value": edge["endpoint"],
+ "json_type": "list",
+ "pointer": edge["link_pointer"],
+ "origin": "physical_edge_overrides_saved_value",
+ "endpoint_not_execution_eligibility": True,
+ }
+ for edge in physical
+ ]
@@ -696,0 +744 @@ def profile_attempt(source, profile):
+ CHAIN_PROFILE: "1.53.10",
@@ -877 +925 @@ def profile_attempt(source, profile):
- if profile == CORE_PROFILE:
+ if profile in (CORE_PROFILE, CHAIN_PROFILE):
@@ -893,0 +942,8 @@ def profile_attempt(source, profile):
+ if profile == CHAIN_PROFILE:
+ assumptions["reference_sources"].insert(0, "h3-chain-reference/sources.json")
+ assumptions["dynamic_model_membership"] = (
+ "unknown; preserve source string without path normalization"
+ )
+ assumptions["save_video_branch"] = (
+ "codec=auto only; no context-dependent filename replacement"
+ )
@@ -927 +983 @@ def profile_attempt(source, profile):
- if profile == CORE_PROFILE:
+ if profile in (CORE_PROFILE, CHAIN_PROFILE):
@@ -952,0 +1009 @@ def profile_attempt(source, profile):
+ CHAIN_PROFILE,
@@ -984,2 +1041,2 @@ def profile_attempt(source, profile):
- {"supported_node_evidence": core_field_evidence(source)}
- if profile == CORE_PROFILE
+ {"supported_node_evidence": core_field_evidence(source, profile)}
+ if profile in (CORE_PROFILE, CHAIN_PROFILE)
@@ -1005,2 +1062,2 @@ def profile_attempt(source, profile):
- {"supported_node_evidence": core_field_evidence(source)}
- if profile == CORE_PROFILE
+ {"supported_node_evidence": core_field_evidence(source, profile)}
+ if profile in (CORE_PROFILE, CHAIN_PROFILE)
@@ -1135 +1192,3 @@ def audit_library(repo: Path, profiles=REFERENCE_PROFILES, *, baseline_profiles=
- (CORE_PROFILE,)
+ (CHAIN_PROFILE,)
+ if CHAIN_PROFILE in profiles
+ else (CORE_PROFILE,)
diff --git a/calliope-backend/src/calliope/comfyui/h3_chain_reference.py b/calliope-backend/src/calliope/comfyui/h3_chain_reference.py
new file mode 100644
index 0000000..ee53f3e
--- /dev/null
+++ b/calliope-backend/src/calliope/comfyui/h3_chain_reference.py
@@ -0,0 +1,243 @@
+"""Ten core0.33.0 contracts combined with the unchanged first six contracts.
+
+Explicit reference assumptions only; dynamic model membership stays unknown.
+No upstream execution, path normalization, media inspection or output mapping.
+"""
+
+from . import h3_core_reference as first
+
+CHAIN_PROFILE = "comfy-frontend-1.53.10-core-0.33.0-h3-second-group-reference"
+LAYOUTS = {
+ "VAELoader": ("vae_name",),
+ "UNETLoader": ("unet_name", "weight_dtype"),
+ "CLIPLoader": ("clip_name", "type", "device"),
+ "KSamplerSelect": ("sampler_name",),
+ "BasicGuider": (),
+ "SamplerCustomAdvanced": (),
+ "VAEDecode": (),
+ "VAEDecodeAudio": (),
+ "CreateVideo": ("fps", "bit_depth"),
+ "SaveVideo": ("filename_prefix", "format", "codec"),
+}
+WEIGHT_DTYPES = ("default", "fp8_e4m3fn", "fp8_e4m3fn_fast", "fp8_e5m2")
+CLIP_TYPES = (
+ "stable_diffusion",
+ "stable_cascade",
+ "sd3",
+ "stable_audio",
+ "mochi",
+ "ltxv",
+ "pixart",
+ "cosmos",
+ "lumina2",
+ "wan",
+ "hidream",
+ "chroma",
+ "ace",
+ "omnigen2",
+ "qwen_image",
+ "hunyuan_image",
+ "flux2",
+ "ovis",
+ "longcat_image",
+ "cogvideox",
+ "lens",
+ "pixeldit",
+ "ideogram4",
+ "boogu",
+ "krea2",
+ "joyimage",
+ "mage",
+ "minimax",
+)
+SAMPLERS = (
+ "euler",
+ "euler_cfg_pp",
+ "euler_ancestral",
+ "euler_ancestral_cfg_pp",
+ "heun",
+ "heunpp2",
+ "exp_heun_2_x0",
+ "exp_heun_2_x0_sde",
+ "dpm_2",
+ "dpm_2_ancestral",
+ "lms",
+ "dpm_fast",
+ "dpm_adaptive",
+ "dpmpp_2s_ancestral",
+ "dpmpp_2s_ancestral_cfg_pp",
+ "dpmpp_sde",
+ "dpmpp_sde_gpu",
+ "dpmpp_2m",
+ "dpmpp_2m_cfg_pp",
+ "dpmpp_2m_sde",
+ "dpmpp_2m_sde_gpu",
+ "dpmpp_2m_sde_heun",
+ "dpmpp_2m_sde_heun_gpu",
+ "dpmpp_3m_sde",
+ "dpmpp_3m_sde_gpu",
+ "ddpm",
+ "lcm",
+ "ipndm",
+ "ipndm_v",
+ "deis",
+ "res_multistep",
+ "res_multistep_cfg_pp",
+ "res_multistep_ancestral",
+ "res_multistep_ancestral_cfg_pp",
+ "gradient_estimation",
+ "gradient_estimation_cfg_pp",
+ "er_sde",
+ "seeds_2",
+ "seeds_3",
+ "sa_solver",
+ "sa_solver_pece",
+ "ddim",
+ "uni_pc",
+ "uni_pc_bh2",
+)
+OUTPUT_NAMES = {
+ "VAELoader": ["VAE"],
+ "UNETLoader": ["MODEL"],
+ "CLIPLoader": ["CLIP"],
+ "KSamplerSelect": ["SAMPLER"],
+ "BasicGuider": ["GUIDER"],
+ "SamplerCustomAdvanced": ["output", "denoised_output"],
+ "VAEDecode": ["IMAGE"],
+ "VAEDecodeAudio": ["AUDIO"],
+ "CreateVideo": ["VIDEO"],
+ "SaveVideo": ["video"],
+}
+
+
+def definitions():
+ def spec(required, outputs, optional=None):
+ return {
+ "input": {
+ "required": {k: [v] for k, v in required.items()},
+ "optional": {k: [v] for k, v in (optional or {}).items()},
+ },
+ "output": outputs,
+ }
+
+ return {
+ **first.definitions(),
+ "VAELoader": spec({"vae_name": "COMBO"}, ["VAE"]),
+ "UNETLoader": spec({"unet_name": "COMBO", "weight_dtype": "COMBO"}, ["MODEL"]),
+ "CLIPLoader": spec({"clip_name": "COMBO", "type": "COMBO"}, ["CLIP"], {"device": "COMBO"}),
+ "KSamplerSelect": spec({"sampler_name": "COMBO"}, ["SAMPLER"]),
+ "BasicGuider": spec({"model": "MODEL", "conditioning": "CONDITIONING"}, ["GUIDER"]),
+ "SamplerCustomAdvanced": spec(
+ {
+ "noise": "NOISE",
+ "guider": "GUIDER",
+ "sampler": "SAMPLER",
+ "sigmas": "SIGMAS",
+ "latent_image": "LATENT",
+ },
+ ["LATENT", "LATENT"],
+ ),
+ "VAEDecode": spec({"samples": "LATENT", "vae": "VAE"}, ["IMAGE"]),
+ "VAEDecodeAudio": spec({"samples": "LATENT", "vae": "VAE"}, ["AUDIO"]),
+ "CreateVideo": spec(
+ {"images": "IMAGE", "fps": "FLOAT"}, ["VIDEO"], {"audio": "AUDIO", "bit_depth": "INT"}
+ ),
+ # Wire JSON uses flat codec="auto". Core dynamic_paths nests it only at execution.
+ "SaveVideo": spec(
+ {
+ "video": "VIDEO",
+ "filename_prefix": "STRING",
+ "format": "COMBO",
+ "codec": "COMFY_DYNAMICCOMBO_V3",
+ },
+ ["VIDEO"],
+ ),
+ }
+
+
+def saved_values(node):
+ ct = node.get("type")
+ if ct in first.LAYOUTS:
+ return first.saved_values(node)
+ if ct not in LAYOUTS:
+ raise ValueError("第二组只覆盖十类及已审第一组六类")
+ props = node.get("properties") or {}
+ for key, value in (("cnr_id", "comfy-core"), ("ver", "0.33.0")):
+ if key in props and props[key] != value:
+ raise ValueError("第二组提供方/core版本声明冲突;缺失仅参考假设")
+ if "aux_id" in props:
+ raise ValueError("第二组不解释其它来源身份")
+ if type(node.get("mode", 0)) is not int or node.get("mode", 0) != 0:
+ raise ValueError("第二组仅正常mode=0")
+ first.check_overrides(node)
+ first.check_overrides(props)
+ layout, values = LAYOUTS[ct], node.get("widgets_values")
+ if not isinstance(values, list) or len(values) != len(layout):
+ raise ValueError("第二组控件保存布局缺项/多项;不删未知保存值")
+ if "widgets_values_named" in node:
+ named = node["widgets_values_named"]
+ if not isinstance(named, dict) or set(named) != set(layout):
+ raise ValueError("第二组具名保存缺项/多项")
+ if any(type(named[k]) is not type(v) or named[k] != v for k, v in zip(layout, values)):
+ raise ValueError("第二组具名/数组恢复冲突")
+ result = dict(zip(layout, values))
+ for key in ("vae_name", "unet_name", "clip_name"):
+ if key in result and (type(result[key]) is not str or not result[key]):
+ raise ValueError("第二组动态模型名需非空源字符串;目录成员/存在未知")
+ enums = {
+ "weight_dtype": WEIGHT_DTYPES,
+ "type": CLIP_TYPES,
+ "device": ("default", "cpu"),
+ "sampler_name": SAMPLERS,
+ "format": ("auto", "mp4"),
+ }
+ for key, options in enums.items():
+ if key in result and (type(result[key]) is not str or result[key] not in options):
+ raise ValueError(f"第二组{key}静态枚举不符")
+ if ct == "CreateVideo":
+ fps = result["fps"]
+ if type(fps) not in (int, float) or not 1.0 <= fps <= 120.0:
+ raise ValueError("第二组fps有限JSON数需1..120")
+ if type(result["bit_depth"]) is not int or not 8 <= result["bit_depth"] <= 10:
+ raise ValueError("第二组bit_depth需INT 8..10;step仅UI步进")
+ if ct == "SaveVideo":
+ if result["codec"] != "auto" or type(result["codec"]) is not str:
+ raise ValueError("第二组仅证明codec=auto无子控件分支;其它动态布局拒绝")
+ prefix = result["filename_prefix"]
+ if type(prefix) is not str or "%" in prefix:
+ raise ValueError("第二组仅不含%的固定前缀;日期/节点/尺寸上下文替换拒绝")
+ return result
+
+
+def serialize_node(node):
+ if node.get("type") in first.LAYOUTS:
+ return first.serialize_node(node)
+ result = saved_values(node)
+ ct, spec = node["type"], definitions()[node["type"]]
+ outputs = node.get("outputs", [])
+ if [s.get("type") for s in outputs] != spec["output"] or [
+ s.get("name") for s in outputs
+ ] != OUTPUT_NAMES[ct]:
+ raise ValueError("第二组输出数量/名称/类型不符")
+ if any(
+ "slot_index" in s and (type(s["slot_index"]) is not int or s["slot_index"] != i)
+ for i, s in enumerate(outputs)
+ ):
+ raise ValueError("第二组输出slot_index不符")
+ declared = {**spec["input"]["required"], **spec["input"]["optional"]}
+ sockets = node.get("inputs", [])
+ names = [s.get("name") for s in sockets]
+ if len(names) != len(set(names)):
+ raise ValueError("第二组重复输入槽")
+ for s in sockets:
+ name = s.get("name")
+ if name not in declared or s.get("type") != declared[name][0]:
+ raise ValueError("第二组输入名称/类型或动态分支未证明")
+ if "widget" in s and s["widget"] != {"name": name}:
+ raise ValueError("第二组输入控件绑定不符")
+ if "slot_index" in s:
+ raise ValueError("第二组输入slot_index未证明")
+ # Dynamic selector connections could choose another branch after restore.
+ if ct == "SaveVideo" and name == "codec" and s.get("link") is not None:
+ raise ValueError("第二组codec动态外线选择未证明")
+ return result
diff --git a/calliope-backend/src/calliope/comfyui/serialization_reference.py b/calliope-backend/src/calliope/comfyui/serialization_reference.py
index e0e9d37..77d6e93 100644
--- a/calliope-backend/src/calliope/comfyui/serialization_reference.py
+++ b/calliope-backend/src/calliope/comfyui/serialization_reference.py
@@ -16,0 +17 @@ from typing import Any
+from .h3_chain_reference import CHAIN_PROFILE
@@ -491,0 +493,4 @@ def reference_definitions(profile: str = PROFILE) -> dict[str, Any]:
+ if profile == CHAIN_PROFILE:
+ from .h3_chain_reference import definitions
+
+ return definitions()
@@ -581,0 +587,4 @@ def serialize_reference_widgets(node: dict[str, Any], profile: str = PROFILE) ->
+ if profile == CHAIN_PROFILE:
+ from .h3_chain_reference import serialize_node
+
+ return serialize_node(node)
diff --git a/calliope-backend/src/calliope/comfyui/ui2api.py b/calliope-backend/src/calliope/comfyui/ui2api.py
index c16c208..437a35f 100644
--- a/calliope-backend/src/calliope/comfyui/ui2api.py
+++ b/calliope-backend/src/calliope/comfyui/ui2api.py
@@ -15,0 +16 @@ from typing import Any
+from .h3_chain_reference import CHAIN_PROFILE
@@ -81,0 +83 @@ def convert_reference(source: Any, profile: str = PROFILE) -> Conversion:
+ CHAIN_PROFILE,
@@ -106 +108 @@ def convert_reference(source: Any, profile: str = PROFILE) -> Conversion:
- if profile == CORE_PROFILE:
+ if profile in (CORE_PROFILE, CHAIN_PROFILE):
@@ -242 +244 @@ def convert_reference(source: Any, profile: str = PROFILE) -> Conversion:
- if profile in (GRID_PROFILE, H3_PROFILE, CORE_PROFILE):
+ if profile in (GRID_PROFILE, H3_PROFILE, CORE_PROFILE, CHAIN_PROFILE):
@@ -248,0 +251 @@ def convert_reference(source: Any, profile: str = PROFILE) -> Conversion:
+ CHAIN_PROFILE,
@@ -267 +270,6 @@ def _convert(
- if reference and reference_profile in (GRID_PROFILE, H3_PROFILE, CORE_PROFILE):
+ if reference and reference_profile in (
+ GRID_PROFILE,
+ H3_PROFILE,
+ CORE_PROFILE,
+ CHAIN_PROFILE,
+ ):
@@ -328,0 +337 @@ def _convert(
+ CHAIN_PROFILE: "1.53.10",
@@ -479 +488 @@ def _convert(
- and reference_profile == CORE_PROFILE
+ and reference_profile in (CORE_PROFILE, CHAIN_PROFILE)
diff --git a/calliope-backend/tests/test_h3_chain_reference.py b/calliope-backend/tests/test_h3_chain_reference.py
new file mode 100644
index 0000000..f7ffe51
--- /dev/null
+++ b/calliope-backend/tests/test_h3_chain_reference.py
@@ -0,0 +1,558 @@
+"""Saved state contracts; synthetic upstream helpers confer no public support."""
+
+import ast
+import copy
+import json
+from pathlib import Path
+
+import pytest
+from scripts import audit_reference_conversion as audit
+from scripts.verify_frontend_sources import verify
+
+from calliope.comfyui.h3_chain_reference import (
+ CHAIN_PROFILE,
+ CLIP_TYPES,
+ LAYOUTS,
+ SAMPLERS,
+ WEIGHT_DTYPES,
+ definitions,
+ saved_values,
+ serialize_node,
+)
+from calliope.comfyui.h3_core_reference import CORE_PROFILE
+from calliope.comfyui.ui2api import convert, convert_reference
+
+REPO = Path(__file__).resolve().parents[2]
+PATH = next((REPO / "example_ComfyUI_workflows").rglob("minimax-h3文生视频无审核版.json"))
+IDS = [119, 120, 127, 128, 135, 126, 125, 122, 121, 130, 92]
+
+
+def real():
+ return json.loads(PATH.read_bytes())
+
+
+def node(nid):
+ return copy.deepcopy(next(n for n in real()["nodes"] if n["id"] == nid))
+
+
+def single(nid):
+ n = node(nid)
+ for s in n["inputs"]:
+ s["link"] = None
+ for s in n["outputs"]:
+ s["links"] = None
+ return {"nodes": [n], "links": [], "extra": {}}
+
+
+def closed(g):
+ old = copy.deepcopy(g)
+ r = convert_reference(g, CHAIN_PROFILE)
+ assert r.prompt is None and r.issues and r.reference_only and g == old
+ assert all("pointer" in i for i in r.issues)
+ return r
+
+
+def test_actual_main_ten_types_eleven_instances_one_layout_conflict():
+ g = real()
+ nodes = [n for n in g["nodes"] if n["type"] in LAYOUTS]
+ assert len(LAYOUTS) == 10 and len(nodes) == 11 and len(definitions()) == 16
+ for n in nodes:
+ if n["id"] == 130:
+ with pytest.raises(ValueError, match="布局"):
+ serialize_node(n)
+ assert n["widgets_values"] == [24, 8, "sRGB"]
+ else:
+ assert serialize_node(n) == saved_values(n)
+ closed(g)
+ a = audit.profile_attempt(g, CHAIN_PROFILE)
+ es = a["supported_node_evidence"]
+ assert len(es) == 18 and sum(e["layout_accepted"] for e in es) == 15
+ second = [e for e in es if e["type"] in LAYOUTS]
+ assert len(second) == 11 and sum(e["layout_accepted"] for e in second) == 10
+ assert sum(len(e["saved_fields"]) for e in second) == 11
+ rejected = next(e for e in second if e["node_id"] == "130")
+ assert rejected["saved_fields"] == [] and len(rejected["raw_saved_values"]) == 3
+ assert rejected["raw_saved_values"][2]["value"] == "sRGB"
+ assert a["assumptions"]["dynamic_model_membership"].startswith("unknown")
+ assert convert(g).prompt is None
+
+
+@pytest.mark.parametrize("nid", IDS)
+@pytest.mark.parametrize(
+ "mutation",
+ [
+ "provider",
+ "version",
+ "aux",
+ "mode",
+ "ue",
+ "hook",
+ "short",
+ "long",
+ "named-missing",
+ "named-extra",
+ "named-conflict",
+ ],
+)
+def test_identity_restore_layout_coverage_conflicts(nid, mutation):
+ g = single(nid)
+ n = g["nodes"][0]
+ if nid == 130:
+ n["widgets_values"] = [24, 8] # synthetic fixed schema layout only
+ if mutation == "provider":
+ n["properties"]["cnr_id"] = "other"
+ elif mutation == "version":
+ n["properties"]["ver"] = "0.30.0"
+ elif mutation == "aux":
+ n["properties"]["aux_id"] = "other"
+ elif mutation == "mode":
+ n["mode"] = True
+ elif mutation == "ue":
+ n["properties"]["ue_properties"] = {}
+ elif mutation == "hook":
+ n["serializeValue"] = "unknown"
+ elif mutation == "short":
+ if n["widgets_values"]:
+ n["widgets_values"].pop()
+ else:
+ n["widgets_values"] = None
+ elif mutation == "long":
+ n["widgets_values"].append("extra")
+ else:
+ n["widgets_values_named"] = dict(zip(LAYOUTS[n["type"]], n["widgets_values"]))
+ if mutation == "named-extra":
+ n["widgets_values_named"]["extra"] = 0
+ elif LAYOUTS[n["type"]]:
+ k = LAYOUTS[n["type"]][0]
+ if mutation == "named-missing":
+ n["widgets_values_named"].pop(k)
+ else:
+ n["widgets_values_named"][k] = True
+ else:
+ n["widgets_values_named"] = None
+ with pytest.raises((ValueError, TypeError)):
+ serialize_node(n)
+ closed(g)
+
+
+@pytest.mark.parametrize(
+ "nid,index,value",
+ [
+ (119, 0, ""),
+ (119, 0, None),
+ (120, 0, True),
+ (127, 0, []),
+ (127, 1, "fp16"),
+ (128, 0, 17),
+ (128, 1, "unknown"),
+ (128, 2, "cuda"),
+ (135, 0, "unknown"),
+ (130, 0, True),
+ (130, 0, 0),
+ (130, 0, 121),
+ (130, 0, float("nan")),
+ (130, 0, float("inf")),
+ (130, 1, 8.0),
+ (130, 1, True),
+ (130, 1, 7),
+ (130, 1, 11),
+ (92, 0, "%date:yyyy%"),
+ (92, 0, "%name.value%"),
+ (92, 0, "%width%"),
+ (92, 0, "%"),
+ (92, 0, 0),
+ (92, 1, "webm"),
+ (92, 2, "h264"),
+ (92, 2, {"codec": "auto"}),
+ ],
+)
+def test_types_static_enums_ranges_dynamic_branches_and_context_prefix_rejected(nid, index, value):
+ n = node(nid)
+ if nid == 130:
+ n["widgets_values"] = [24, 8]
+ n["widgets_values"][index] = value
+ with pytest.raises(ValueError):
+ saved_values(n)
+
+
+@pytest.mark.parametrize("nid", [119, 120, 127, 128, 135, 126, 125, 122, 121, 92])
+@pytest.mark.parametrize(
+ "mutation",
+ [
+ "output-name",
+ "output-type",
+ "output-extra",
+ "output-index",
+ "input-duplicate",
+ "input-unknown",
+ "input-type",
+ "binding",
+ ],
+)
+def test_all_output_and_input_slots_strict(nid, mutation):
+ n = node(nid)
+ if mutation == "output-name":
+ n["outputs"][0]["name"] = "unknown"
+ elif mutation == "output-type":
+ n["outputs"][0]["type"] = "UNKNOWN"
+ elif mutation == "output-extra":
+ n["outputs"].append(copy.deepcopy(n["outputs"][0]))
+ elif mutation == "output-index":
+ n["outputs"][0]["slot_index"] = True
+ else:
+ spec = definitions()[n["type"]]["input"]
+ name, typ = next(iter({**spec["required"], **spec["optional"]}.items()))
+ n["inputs"] = [{"name": name, "type": typ[0], "link": None}]
+ if mutation == "input-duplicate":
+ n["inputs"] *= 2
+ elif mutation == "input-unknown":
+ n["inputs"][0]["name"] = "unknown"
+ elif mutation == "input-type":
+ n["inputs"][0]["type"] = "UNKNOWN"
+ else:
+ n["inputs"][0]["widget"] = {"name": "unknown"}
+ with pytest.raises(ValueError):
+ serialize_node(n)
+
+
+@pytest.mark.parametrize("nid", [119, 120, 127, 128, 135])
+def test_loaders_preserve_opaque_model_strings_and_explicit_identities(nid):
+ g = single(nid)
+ n = g["nodes"][0]
+ if nid != 135:
+ n["widgets_values"][0] = "folder\\literal/../原名.safetensors"
+ before = copy.deepcopy(g)
+ r = convert_reference(g, CHAIN_PROFILE)
+ assert r.prompt is not None and r.reference_only and g == before
+ assert r.prompt[str(nid)]["inputs"] == saved_values(n)
+ n["widgets_values_named"] = dict(zip(LAYOUTS[n["type"]], n["widgets_values"]))
+ n["properties"].update(cnr_id="comfy-core", ver="0.33.0")
+ g["extra"]["frontendVersion"] = "1.53.10"
+ assert convert_reference(g, CHAIN_PROFILE).prompt == r.prompt
+ assert convert_reference(g, CORE_PROFILE).prompt is None
+
+
+def synthetic_chain(monkeypatch, audio=True):
+ # Only this local test injects a schema+serializer. It is NOT publicly registered.
+ import calliope.comfyui.ui2api as ui
+
+ g = {"nodes": [node(n) for n in [125, 122, 121, 119, 120, 130, 92]], "links": [], "extra": {}}
+ for n in g["nodes"]:
+ for s in n["inputs"]:
+ s["link"] = None
+ for s in n["outputs"]:
+ s["links"] = None
+ if n["id"] == 130:
+ n["widgets_values"] = [24, 8]
+ helper = {
+ "id": 999,
+ "type": "TEST_ONLY_UPSTREAM",
+ "inputs": [],
+ "outputs": [
+ {"name": x, "type": x, "links": None}
+ for x in ["NOISE", "GUIDER", "SAMPLER", "SIGMAS", "LATENT"]
+ ],
+ "widgets_values": [],
+ "mode": 0,
+ }
+ g["nodes"].append(helper)
+
+ def connect(src, so, dst, name):
+ a = next(n for n in g["nodes"] if n["id"] == src)
+ b = next(n for n in g["nodes"] if n["id"] == dst)
+ si = next(i for i, s in enumerate(b["inputs"]) if s["name"] == name)
+ lid = len(g["links"]) + 1
+ a["outputs"][so]["links"] = (a["outputs"][so]["links"] or []) + [lid]
+ b["inputs"][si]["link"] = lid
+ g["links"].append([lid, src, so, dst, si, a["outputs"][so]["type"]])
+
+ for si, name in enumerate(["noise", "guider", "sampler", "sigmas", "latent_image"]):
+ connect(999, si, 125, name)
+ connect(125, 1, 122, "samples")
+ connect(119, 0, 122, "vae")
+ connect(125, 0, 121, "samples")
+ connect(120, 0, 121, "vae")
+ connect(122, 0, 130, "images")
+ if audio:
+ connect(121, 0, 130, "audio")
+ else:
+ g["nodes"] = [n for n in g["nodes"] if n["id"] not in [121, 120]]
+ g["links"] = [e for e in g["links"] if e[3] != 121]
+ g["nodes"][0]["outputs"][0]["links"] = None
+ connect(130, 0, 92, "video")
+ # Reject helper before installing local injection.
+ assert convert_reference(g, CHAIN_PROFILE).prompt is None
+ original_defs = ui.reference_definitions
+ original_ser = ui.serialize_reference_widgets
+
+ def defs(profile):
+ d = original_defs(profile)
+ if profile == CHAIN_PROFILE:
+ d["TEST_ONLY_UPSTREAM"] = {
+ "input": {"required": {}},
+ "output": [s["type"] for s in helper["outputs"]],
+ }
+ return d
+
+ monkeypatch.setattr(ui, "reference_definitions", defs)
+ monkeypatch.setattr(
+ ui,
+ "serialize_reference_widgets",
+ lambda n, p: {} if n["type"] == "TEST_ONLY_UPSTREAM" else original_ser(n, p),
+ )
+ return g
+
+
+@pytest.mark.parametrize("audio", [True, False])
+def test_synthetic_video_chain_nonzero_slot_optional_audio_and_instance_propagation(
+ monkeypatch, audio
+):
+ g = synthetic_chain(monkeypatch, audio)
+ r = convert_reference(g, CHAIN_PROFILE)
+ assert r.prompt is not None, r.issues
+ assert r.prompt["122"]["inputs"]["samples"] == ["125", 1]
+ assert ("audio" in r.prompt["130"]["inputs"]) == audio
+ assert r.prompt["92"]["inputs"]["codec"] == "auto"
+ for n in g["nodes"]:
+ if n["id"] == 125:
+ n["id"] = 888
+ for e in g["links"]:
+ if e[1] == 125:
+ e[1] = 888
+ if e[3] == 125:
+ e[3] = 888
+ r = convert_reference(g, CHAIN_PROFILE)
+ assert r.prompt is not None, r.issues
+ assert r.prompt["122"]["inputs"]["samples"] == ["888", 1]
+
+
+@pytest.mark.parametrize(
+ "mutation",
+ [
+ "frontend",
+ "ue",
+ "mode",
+ "duplicate",
+ "bad-ref",
+ "slot",
+ "type",
+ "reverse",
+ "cycle",
+ "codec-line",
+ ],
+)
+def test_synthetic_structure_closes_entire_graph(monkeypatch, mutation):
+ g = synthetic_chain(monkeypatch)
+ if mutation == "frontend":
+ g["extra"]["frontendVersion"] = "1.53.6"
+ elif mutation == "ue":
+ g["extra"]["ue_properties"] = {}
+ elif mutation == "mode":
+ g["nodes"][0]["mode"] = 4
+ elif mutation == "duplicate":
+ g["links"].append(g["links"][0])
+ elif mutation == "bad-ref":
+ g["links"][0][1] = 888
+ elif mutation == "slot":
+ g["links"][0][2] = 99
+ elif mutation == "type":
+ g["links"][0][5] = "UNKNOWN"
+ elif mutation == "reverse":
+ g["nodes"][0]["inputs"][0]["link"] = 999
+ elif mutation == "cycle":
+ g["links"].append([999, 125, 0, 125, 0, "LATENT"])
+ else:
+ n = next(n for n in g["nodes"] if n["id"] == 92)
+ n["inputs"].append({"name": "codec", "type": "COMFY_DYNAMICCOMBO_V3", "link": 1})
+ closed(g)
+
+
+def test_fixed_widget_physical_input_wins(monkeypatch):
+ g = single(133)
+ b = node(130)
+ b["widgets_values"] = [24, 8]
+ b["inputs"] = [{"name": "fps", "type": "FLOAT", "link": 1, "widget": {"name": "fps"}}]
+ # Local helper supplies IMAGE; all physical paths checked by real validator.
+ # First test the serializer/evidence independently of required IMAGE input.
+ assert serialize_node(b) == {"fps": 24, "bit_depth": 8}
+ g["nodes"].append(b)
+ g["nodes"][0]["outputs"][0]["links"] = [1]
+ g["links"] = [[1, 133, 0, 130, 0, "FLOAT"]]
+ a = audit.profile_attempt(g, CHAIN_PROFILE)
+ e = next(e for e in a["supported_node_evidence"] if e["node_id"] == "130")
+ assert next(f for f in e["effective_field_evidence"] if f["field"] == "fps")["value"] == [
+ "133",
+ 0,
+ ]
+ # Missing images still prevents ANY partial candidate.
+ closed(g)
+
+
+def test_old_27_profiles_every_attempt_gap_hash_and_comparison_frozen():
+ old = json.loads((REPO / "docs/hel-892/h3-core-evidence/library.json").read_bytes())
+ ps = tuple(old["profiles"])
+ assert len(ps) == 27 and ps == audit.REFERENCE_PROFILES[:27]
+ before = audit.audit_library(REPO, ps)
+ now = audit.audit_library(REPO, baseline_profiles=ps)
+ assert before["gap_groups"] == old["gap_groups"]
+ for a, b, c in zip(old["cases"], before["cases"], now["cases"]):
+ assert a["attempts"] == b["attempts"] == c["attempts"][:27]
+ assert a["candidate_hashes"] == c["candidate_hashes"]
+ assert a.get("comparisons") == b.get("comparisons") == c.get("comparisons")
+ assert now["coverage_delta"]["new_complete_paths"] == []
+ assert len(now["coverage_delta"]["current_complete_paths"]) == 9
+ for p in PATH.parent.glob("*.json"):
+ closed(json.loads(p.read_bytes()))
+
+
+def test_pinned_manifests_and_literal_enums_without_upstream_execution():
+ assert not verify(REPO / "docs/hel-892/h3-chain-reference")["upstream_code_executed"]
+ tree = ast.parse((REPO / "docs/hel-892/h3-core-reference/core__comfy__samplers.py").read_text())
+ assignment = next(
+ n
+ for n in tree.body
+ if isinstance(n, ast.Assign)
+ and any(isinstance(t, ast.Name) and t.id == "KSAMPLER_NAMES" for t in n.targets)
+ )
+ assert tuple(ast.literal_eval(assignment.value)) + ("ddim", "uni_pc", "uni_pc_bh2") == SAMPLERS
+ tree = ast.parse((REPO / "docs/hel-892/h3-core-reference/core__nodes.py").read_text())
+ for clsname, key, expected in [
+ ("UNETLoader", "weight_dtype", WEIGHT_DTYPES),
+ ("CLIPLoader", "type", CLIP_TYPES),
+ ]:
+ cls = next(n for n in tree.body if isinstance(n, ast.ClassDef) and n.name == clsname)
+ fn = next(n for n in cls.body if isinstance(n, ast.FunctionDef) and n.name == "INPUT_TYPES")
+ ret = next(n for n in fn.body if isinstance(n, ast.Return)).value
+ required = next(
+ v for k, v in zip(ret.keys, ret.values) if ast.literal_eval(k) == "required"
+ )
+ value = next(
+ v for k, v in zip(required.keys, required.values) if ast.literal_eval(k) == key
+ )
+ assert tuple(ast.literal_eval(value.elts[0])) == expected
+
+
+@pytest.mark.parametrize("dtype", WEIGHT_DTYPES)
+def test_all_static_precision_options(dtype):
+ n = node(127)
+ n["widgets_values"][1] = dtype
+ assert saved_values(n)["weight_dtype"] == dtype
+
+
+@pytest.mark.parametrize("kind", CLIP_TYPES)
+def test_all_static_clip_types(kind):
+ n = node(128)
+ n["widgets_values"][1] = kind
+ assert saved_values(n)["type"] == kind
+
+
+@pytest.mark.parametrize("sampler", SAMPLERS)
+def test_all_fixed_sampler_options(sampler):
+ n = node(135)
+ n["widgets_values"][0] = sampler
+ assert saved_values(n)["sampler_name"] == sampler
+
+
+def test_complete_synthetic_physical_fps_overrides_save_and_upstream_switch(monkeypatch):
+ g = synthetic_chain(monkeypatch)
+ f = single(133)["nodes"][0]
+ f["widgets_values"] = [60.0]
+ f["outputs"][0]["links"] = [100]
+ g["nodes"].append(f)
+ video = next(n for n in g["nodes"] if n["id"] == 130)
+ video["inputs"].append({"name": "fps", "type": "FLOAT", "link": 100, "widget": {"name": "fps"}})
+ g["links"].append([100, 133, 0, 130, 2, "FLOAT"])
+ r = convert_reference(g, CHAIN_PROFILE)
+ assert r.prompt is not None, r.issues
+ assert r.prompt["130"]["inputs"]["fps"] == ["133", 0]
+ assert video["widgets_values"] == [24, 8]
+ # Replace a LATENT upstream while retaining nonzero source slot semantics.
+ edge = next(e for e in g["links"] if e[3] == 122 and e[4] == 0)
+ sampler = next(n for n in g["nodes"] if n["id"] == 125)
+ helper = next(n for n in g["nodes"] if n["id"] == 999)
+ sampler["outputs"][1]["links"].remove(edge[0])
+ helper["outputs"][4]["links"].append(edge[0])
+ edge[1], edge[2] = 999, 4
+ r = convert_reference(g, CHAIN_PROFILE)
+ assert r.prompt is not None, r.issues
+ assert r.prompt["122"]["inputs"]["samples"] == ["999", 4]
+
+
+def test_ten_real_class_registrations_and_schema_field_orders_ast_only():
+ root = REPO / "docs/hel-892"
+ modules = {
+ "h3-core-reference/core__nodes.py": {
+ "VAELoader": ["vae_name"],
+ "UNETLoader": ["unet_name", "weight_dtype"],
+ "CLIPLoader": ["clip_name", "type", "device"],
+ "VAEDecode": ["samples", "vae"],
+ },
+ "h3-core-reference/core__comfy_extras__nodes_custom_sampler.py": {
+ "KSamplerSelect": ["sampler_name"],
+ "BasicGuider": ["model", "conditioning"],
+ "SamplerCustomAdvanced": ["noise", "guider", "sampler", "sigmas", "latent_image"],
+ },
+ "h3-chain-reference/core__comfy_extras__nodes_audio.py": {
+ "VAEDecodeAudio": ["samples", "vae"]
+ },
+ "h3-chain-reference/core__comfy_extras__nodes_video.py": {
+ "CreateVideo": ["images", "fps", "audio", "bit_depth"],
+ "SaveVideo": ["video", "filename_prefix", "format", "codec"],
+ },
+ }
+ for path, specs in modules.items():
+ tree = ast.parse((root / path).read_text())
+ if path.endswith("core__nodes.py"):
+ mapping = next(
+ n
+ for n in tree.body
+ if isinstance(n, ast.Assign)
+ and any(
+ isinstance(t, ast.Name) and t.id == "NODE_CLASS_MAPPINGS" for t in n.targets
+ )
+ )
+ registered = {
+ ast.literal_eval(k): v.id for k, v in zip(mapping.value.keys, mapping.value.values)
+ }
+ else:
+ fn = next(
+ n
+ for n in ast.walk(tree)
+ if isinstance(n, ast.AsyncFunctionDef) and n.name == "get_node_list"
+ )
+ registered = {
+ n.id: n.id for r in fn.body if isinstance(r, ast.Return) for n in r.value.elts
+ }
+ for name, expected in specs.items():
+ assert registered[name] == name
+ cls = next(n for n in tree.body if isinstance(n, ast.ClassDef) and n.name == name)
+ if path.endswith("core__nodes.py"):
+ fn = next(
+ n
+ for n in cls.body
+ if isinstance(n, ast.FunctionDef) and n.name == "INPUT_TYPES"
+ )
+ ret = next(n for n in fn.body if isinstance(n, ast.Return)).value
+ fields = [
+ ast.literal_eval(k)
+ for k, v in zip(ret.keys, ret.values)
+ if ast.literal_eval(k) in ("required", "optional")
+ for k in v.keys
+ ]
+ else:
+ fn = next(
+ n
+ for n in cls.body
+ if isinstance(n, ast.FunctionDef) and n.name == "define_schema"
+ )
+ schema = next(
+ n
+ for n in ast.walk(fn)
+ if isinstance(n, ast.Call)
+ and isinstance(n.func, ast.Attribute)
+ and n.func.attr == "Schema"
+ )
+ kw = {k.arg: k.value for k in schema.keywords}
+ assert ast.literal_eval(kw["node_id"]) == name
+ fields = [ast.literal_eval(n.args[0]) for n in kw["inputs"].elts]
+ assert fields == expected
diff --git a/docs/hel-892/h3-chain-evidence/recompute.py b/docs/hel-892/h3-chain-evidence/recompute.py
new file mode 100644
index 0000000..3c3c3e4
--- /dev/null
+++ b/docs/hel-892/h3-chain-evidence/recompute.py
@@ -0,0 +1,471 @@
+"""Recompute H3 core second-group reference evidence and protections without services or upstream execution."""
+
+from __future__ import annotations
+
+import argparse
+import hashlib
+import json
+import sqlite3
+import subprocess
+import sys
+import tarfile
+import zipfile
+from collections import Counter
+from pathlib import Path
+
+BASE = "07735679d8c6a76038e0782add081dff787ee7f7"
+
+
+def main():
+ parser = argparse.ArgumentParser(description=__doc__)
+ parser.add_argument("--repo", type=Path, required=True)
+ parser.add_argument("--db", type=Path, required=True)
+ parser.add_argument("--documents", type=Path, required=True)
+ args = parser.parse_args()
+ repo = args.repo.resolve()
+ sys.path.insert(0, str(repo / "calliope-backend"))
+ from calliope.comfyui.h3_chain_reference import CHAIN_PROFILE
+ from scripts import audit_reference_conversion as audit
+ from scripts.audit_library_documents import audit as audit_docs
+ from scripts.verify_frontend_sources import verify
+
+ out = repo / "docs/hel-892/h3-chain-evidence"
+
+ def write(name, value):
+ (out / name).write_text(json.dumps(value, ensure_ascii=False, indent=2) + "\n")
+
+ old = json.loads((repo / "docs/hel-892/h3-core-evidence/library.json").read_bytes())
+ profiles = tuple(old["profiles"])
+ assert len(profiles) == 27
+ assert profiles == tuple(p for p in audit.REFERENCE_PROFILES if p != CHAIN_PROFILE)
+ before = audit.audit_library(repo, profiles)
+ now = audit.audit_library(repo, baseline_profiles=profiles)
+ write("library.json", now)
+ for a, b, c in zip(old["cases"], before["cases"], now["cases"]):
+ assert a["source_path"] == b["source_path"] == c["source_path"]
+ assert a["attempts"] == b["attempts"] == c["attempts"][:27]
+ assert a.get("comparisons") == b.get("comparisons") == c.get("comparisons")
+ if a["candidate_hashes"]:
+ assert a["candidate_hashes"] == c["candidate_hashes"]
+ assert old["gap_groups"] == before["gap_groups"]
+ six = audit.audit(repo, "case04-batch-reference")
+ assert six == json.loads(
+ (repo / "docs/hel-892/media-evidence/protected-six-cases.json").read_bytes()
+ )
+ write(
+ "previous-protection.json",
+ {
+ "baseline_profiles": profiles,
+ "old_attempts_identical": True,
+ "old_gaps_identical": True,
+ "six_companion_differences_identical": True,
+ "old_candidate_hashes_identical": True,
+ },
+ )
+
+ def groups(report):
+ return {
+ tuple(
+ g[k]
+ for k in ("type", "provider", "version", "profile", "code", "rule_gap")
+ ): Counter(
+ (o["source_path"], o["node_pointer"], o["node_id"])
+ for o in g["occurrences"]
+ )
+ for g in report["gap_groups"]
+ }
+
+ def stats(report):
+ gs = groups(report)
+ return {
+ "groups": len(gs),
+ "raw_occurrences": sum(sum(c.values()) for c in gs.values()),
+ "unique_occurrences_per_group": sum(len(c) for c in gs.values()),
+ "unique_nodes": len({o for c in gs.values() for o in c}),
+ "unique_paths": len({o[0] for c in gs.values() for o in c}),
+ }
+
+ def diffrows(a, b):
+ return [
+ {
+ "key": list(k),
+ "occurrences": [
+ {
+ "source_path": o[0],
+ "node_pointer": o[1],
+ "node_id": o[2],
+ "count": n,
+ }
+ for o, n in sorted((v - b.get(k, Counter())).items(), key=str)
+ ],
+ }
+ for k, v in sorted(a.items(), key=str)
+ if v - b.get(k, Counter())
+ ]
+
+ def unavailable(report):
+ return sorted(
+ r["source_path"]
+ for r in report["cases"]
+ if all(a["status"] == "not_applicable" for a in r["attempts"])
+ )
+
+ removed_unavailable = sorted(set(unavailable(before)) - set(unavailable(now)))
+ added_unavailable = sorted(set(unavailable(now)) - set(unavailable(before)))
+ ga, gb = groups(before), groups(now)
+ added, removed = diffrows(gb, ga), diffrows(ga, gb)
+ write(
+ "coverage-delta.json",
+ {
+ "baseline_profiles": profiles,
+ "baseline": stats(before),
+ "current": stats(now),
+ "key_fields": [
+ "type",
+ "provider",
+ "version",
+ "profile",
+ "code",
+ "rule_gap",
+ ],
+ "occurrence_key": ["source_path", "node_pointer", "node_id"],
+ "added_groups": added,
+ "removed_groups": removed,
+ "added_occurrences": sum(
+ o["count"] for g in added for o in g["occurrences"]
+ ),
+ "removed_occurrences": sum(
+ o["count"] for g in removed for o in g["occurrences"]
+ ),
+ "new_complete_paths": now["coverage_delta"]["new_complete_paths"],
+ "complete_paths": now["coverage_delta"]["current_complete_paths"],
+ "closed_paths": [
+ r["source_path"] for r in now["cases"] if r["status"] == "blocked"
+ ],
+ "unavailable_frontend_before": unavailable(before),
+ "unavailable_frontend_after": unavailable(now),
+ "removed_unavailable_frontend_paths": removed_unavailable,
+ "added_unavailable_frontend_paths": added_unavailable,
+ "unavailable_frontend_change_reason": "new explicit missing-identity 1.53.10/core0.33.0 assumption; applicability is not source provenance or conversion success",
+ "attempt_counts": dict(
+ Counter(a["status"] for r in now["cases"] for a in r["attempts"])
+ ),
+ "conflicts": sum(r["status"] == "candidate_conflict" for r in now["cases"]),
+ },
+ )
+
+ from calliope.comfyui.ui2api import convert_reference
+
+ targets = sorted(
+ (repo / "example_ComfyUI_workflows/4-视频生成/uncensored").glob("*.json")
+ )
+ assert len(targets) == 3
+ actual_rows = []
+ for target in targets:
+ source = json.loads(target.read_bytes())
+ actual = convert_reference(source, CHAIN_PROFILE)
+ assert actual.prompt is None and actual.issues
+ row = next(
+ r
+ for r in now["cases"]
+ if r["source_path"] == target.relative_to(repo).as_posix()
+ )
+ assert row["comparison_status"] == "comparison_unavailable"
+ attempt = next(a for a in row["attempts"] if a["profile"] == CHAIN_PROFILE)
+ assert attempt["status"] == "rejected" and "candidate_prompt" not in attempt
+ actual_rows.append(
+ {
+ "source_path": row["source_path"],
+ "source_sha256": row["source_sha256"],
+ "profile": CHAIN_PROFILE,
+ "prompt": None,
+ "comparison_status": row["comparison_status"],
+ "execution_verified": False,
+ "original_bytes_modified": False,
+ "attempt": attempt,
+ }
+ )
+ write("actual-three-graphs.json", actual_rows)
+ main = next(
+ r
+ for r in actual_rows
+ if r["source_path"].endswith("minimax-h3文生视频无审核版.json")
+ )
+ evidence = main["attempt"]["supported_node_evidence"]
+ assert len(evidence) == 18 and sum(e["layout_accepted"] for e in evidence) == 15
+ assert sum(len(e["saved_fields"]) for e in evidence) == 22
+ main_source = json.loads((repo / main["source_path"]).read_bytes())
+
+ def pointer(doc, text):
+ for key in text.strip("/").split("/"):
+ doc = doc[int(key)] if isinstance(doc, list) else doc[key]
+ return doc
+
+ for r in actual_rows:
+ doc = json.loads((repo / r["source_path"]).read_bytes())
+ for e in r["attempt"]["supported_node_evidence"]:
+ for f in e["saved_fields"]:
+ value = pointer(doc, f["source_value_pointer"])
+ assert type(value).__name__ == f["json_type"] and value == f["value"]
+ for edge in e["physical_input_evidence"]:
+ original = pointer(doc, edge["link_pointer"])
+ assert edge["endpoint"] == [str(original[1]), original[2]]
+ write(
+ "main-node-evidence.json",
+ {
+ "source_path": main["source_path"],
+ "source_sha256": main["source_sha256"],
+ "source_entities": len(main_source["nodes"]),
+ "source_edges": len(main_source["links"]),
+ "profile": CHAIN_PROFILE,
+ "prompt": None,
+ "complete_candidates_added": 0,
+ "comparison_status": "comparison_unavailable",
+ "saved_fields_only": 22,
+ "layout_accepted_instances": 15,
+ "layout_rejected_instances": 3,
+ "supported_node_evidence": evidence,
+ "remaining_classes": sorted(
+ {
+ n["type"]
+ for n in main_source["nodes"]
+ if n["type"] not in {e["type"] for e in evidence}
+ }
+ ),
+ "remaining_instance_count": len(main_source["nodes"]) - len(evidence),
+ "issues": main["attempt"]["issues"],
+ "no_partial_prompt": True,
+ "execution_verified": False,
+ },
+ )
+ inventory = evidence
+ attempts = [
+ {
+ "source_path": r["source_path"],
+ "source_sha256": r["source_sha256"],
+ "declared_frontend": r["frontend_version"],
+ "attempt": r["attempts"][-1],
+ }
+ for r in now["cases"]
+ ]
+ assert all(r["attempt"]["profile"] == CHAIN_PROFILE for r in attempts)
+ write(
+ "profile-disposition.json",
+ {
+ "profile": CHAIN_PROFILE,
+ "counts": dict(Counter(r["attempt"]["status"] for r in attempts)),
+ "cases": attempts,
+ "proven_source_identity": False,
+ "complete_candidates_added": 0,
+ },
+ )
+
+ dirs = [
+ "serialization-evidence",
+ "structure-reference",
+ "controlnet-reference",
+ "promoted-reference",
+ "case04-reference",
+ "media-reference",
+ "separation-reference",
+ "crop-split-reference",
+ "vhs-reference",
+ "setget-reference",
+ "videoinfo-reference",
+ "scail-load-reference",
+ "grid-reference",
+ "h3-reference",
+ "h3-core-reference",
+ "h3-chain-reference",
+ ]
+ entries = []
+ counts = []
+ for name in dirs:
+ directory = repo / "docs/hel-892" / name
+ verify(directory)
+ rows = json.loads((directory / "sources.json").read_bytes())["sources"]
+ for entry in rows:
+ lines = (directory / entry["local_file"]).read_text().splitlines()
+ locations = entry.get("rule_locations", {})
+ for lo, hi in (
+ locations.values() if isinstance(locations, dict) else locations
+ ):
+ assert 1 <= lo <= hi <= len(lines)
+ counts.append(
+ {
+ "manifest": name,
+ "entries": len(rows),
+ "unique_ids": len({r["id"] for r in rows}),
+ }
+ )
+ entries.extend(rows)
+ write(
+ "cached-sources-check.json",
+ {
+ "manifests": counts,
+ "entries": len(entries),
+ "unique_ids_summed_per_manifest": sum(c["unique_ids"] for c in counts),
+ "global_distinct_id_strings": len({r["id"] for r in entries}),
+ "unique_url_and_hash": len({(r["raw_url"], r["sha256"]) for r in entries}),
+ "note": "ID counts are strings; URL+SHA256 is separately deduplicated; repeated frontend originals retained",
+ },
+ )
+
+ originals = json.loads(
+ (repo / "docs/hel-892/media-evidence/original-bytes.json").read_bytes()
+ )["files"]
+ for row in originals:
+ raw = (repo / row["path"]).read_bytes()
+ assert raw == subprocess.check_output(
+ ["git", "show", f"{BASE}:{row['path']}"], cwd=repo
+ )
+ assert len(originals) == 163
+ write(
+ "original-bytes.json",
+ {"base": BASE, "count": 163, "all_unchanged": True, "files": originals},
+ )
+ production = json.loads(
+ (repo / "docs/hel-892/setget-evidence/production-protection.json").read_bytes()
+ )["files"]
+ for row in production:
+ raw = (repo / row["path"]).read_bytes()
+ assert raw == subprocess.check_output(
+ ["git", "show", f"{BASE}:{row['path']}"], cwd=repo
+ )
+ assert hashlib.sha256(raw).hexdigest() == row["sha256"]
+ write("production-protection.json", {"base": BASE, "files": production})
+ db = sqlite3.connect(args.db)
+ db.row_factory = sqlite3.Row
+ rows = db.execute(
+ "SELECT * FROM workflows WHERE source_repo_path IS NOT NULL"
+ ).fetchall()
+ assert len(rows) == 155
+ assert Counter(r["import_state"] for r in rows) == {
+ "pending_check": 16,
+ "needs_conversion": 139,
+ }
+ assert not any(
+ r["is_enabled"] or r["doc_completed_at"] or r["exec_verified_at"] for r in rows
+ )
+ issues = Counter(i["code"] for r in rows for i in json.loads(r["import_issues"]))
+ companion_values = sum(
+ p.get("value_origin") == "supplied_api_companion"
+ for r in rows
+ for p in json.loads(r["doc_json"])["params"]
+ )
+ assert (
+ companion_values == 294
+ and issues["companion_unverified"] == 6
+ and issues["environment_unchecked"] == 16
+ )
+ write(
+ "isolation.json",
+ {
+ "states": dict(Counter(r["import_state"] for r in rows)),
+ "count": 155,
+ "enabled_or_completed_or_executed": 0,
+ "issue_counts": dict(issues),
+ "companion_named_values": companion_values,
+ "reference_candidates_written_to_db": False,
+ "user_whole_row_protection": "executed affected tests",
+ },
+ )
+ from calliope.comfyui.companions import load_companions
+ from calliope.comfyui.library import import_library
+
+ # A separate in-memory copy proves the complete user row is preserved;
+ # the fresh catalogue under audit is never mutated by this protection check.
+ protected = sqlite3.connect(":memory:")
+ db.backup(protected)
+ protected.row_factory = sqlite3.Row
+ wid = rows[0]["id"]
+ protected.execute(
+ "UPDATE workflows SET description='用户整行保护测试' WHERE id=?", (wid,)
+ )
+ protected.commit()
+ snapshot = dict(
+ protected.execute("SELECT * FROM workflows WHERE id=?", (wid,)).fetchone()
+ )
+ rerun = import_library(
+ protected,
+ repo / "example_ComfyUI_workflows",
+ source_commit=BASE,
+ companions=load_companions(repo / "docs/hel-892/supplied-api/manifest.json"),
+ )
+ assert rerun["counts"] == {"conflict": 1, "skipped": 154, "user_excluded": 1}
+ assert (
+ dict(protected.execute("SELECT * FROM workflows WHERE id=?", (wid,)).fetchone())
+ == snapshot
+ )
+ write(
+ "user-row-protection.json",
+ {
+ "isolated_in_memory_copy": True,
+ "counts": rerun["counts"],
+ "all_columns_identical": True,
+ "column_count": len(snapshot),
+ "fresh_catalogue_mutated": False,
+ },
+ )
+ protected.close()
+ db.close()
+ report = audit_docs(repo, args.documents.resolve())
+ summary = {k: v for k, v in report.items() if k != "files"}
+ assert (
+ summary["named_values_preserved"] == 1217
+ and summary["unnamed_widget_nodes"] == 3660
+ )
+ assert summary["full_documents_completed"] == 0 and summary["real_executions"] == 0
+ write("document-audit-summary.json", summary)
+ packages = []
+ with (
+ zipfile.ZipFile(next((repo / "calliope-backend/dist").glob("*.whl"))) as wh,
+ tarfile.open(next((repo / "calliope-backend/dist").glob("*.tar.gz"))) as sd,
+ ):
+ for name in [
+ "h3_chain_reference.py",
+ "h3_core_reference.py",
+ "structure_reference.py",
+ "serialization_reference.py",
+ "ui2api.py",
+ "protocol_references.json",
+ "source_reviews.json",
+ "delivery_scope.py",
+ "delivery_scope.json",
+ ]:
+ p = f"calliope-backend/src/calliope/comfyui/{name}"
+ raw = (repo / p).read_bytes()
+ assert wh.read(f"calliope/comfyui/{name}") == raw
+ member = next(
+ n for n in sd.getnames() if n.endswith(f"/src/calliope/comfyui/{name}")
+ )
+ assert sd.extractfile(member).read() == raw
+ packages.append(
+ {
+ "path": p,
+ "sha256": hashlib.sha256(raw).hexdigest(),
+ "wheel_matches": True,
+ "sdist_matches": True,
+ }
+ )
+ write("package-check.json", packages)
+ print(
+ json.dumps(
+ {
+ "ui": now["ui_total"],
+ "attempts": Counter(
+ a["status"] for r in now["cases"] for a in r["attempts"]
+ ),
+ "complete": len(now["coverage_delta"]["current_complete_paths"]),
+ "new_complete": now["coverage_delta"]["new_complete_paths"],
+ "inventory_nodes": len(inventory),
+ "inventory_paths": 1,
+ "gap_stats": stats(now),
+ },
+ ensure_ascii=False,
+ )
+ )
+
+
+if __name__ == "__main__":
+ main()
diff --git a/docs/hel-892/h3-chain-reference/core__comfy_api__latest___util__video_types.py b/docs/hel-892/h3-chain-reference/core__comfy_api__latest___util__video_types.py
new file mode 100644
index 0000000..6c9d6a5
--- /dev/null
+++ b/docs/hel-892/h3-chain-reference/core__comfy_api__latest___util__video_types.py
@@ -0,0 +1,50 @@
+from dataclasses import dataclass
+from enum import Enum
+from fractions import Fraction
+from typing import Optional
+from .._input import ImageInput, AudioInput, MaskInput
+
+class VideoCodec(str, Enum):
+ AUTO = "auto"
+ H264 = "h264"
+
+ @classmethod
+ def as_input(cls) -> list[str]:
+ """
+ Returns a list of codec names that can be used as node input.
+ """
+ return [member.value for member in cls]
+
+class VideoContainer(str, Enum):
+ AUTO = "auto"
+ MP4 = "mp4"
+
+ @classmethod
+ def as_input(cls) -> list[str]:
+ """
+ Returns a list of container names that can be used as node input.
+ """
+ return [member.value for member in cls]
+
+ @classmethod
+ def get_extension(cls, value) -> str:
+ """
+ Returns the file extension for the container.
+ """
+ if isinstance(value, str):
+ value = cls(value)
+ if value == VideoContainer.MP4 or value == VideoContainer.AUTO:
+ return "mp4"
+ return ""
+
+@dataclass
+class VideoComponents:
+ """
+ Dataclass representing the components of a video.
+ """
+
+ images: ImageInput
+ frame_rate: Fraction
+ audio: Optional[AudioInput] = None
+ metadata: Optional[dict] = None
+ alpha: Optional[MaskInput] = None
diff --git a/docs/hel-892/h3-chain-reference/core__comfy_extras__nodes_audio.py b/docs/hel-892/h3-chain-reference/core__comfy_extras__nodes_audio.py
new file mode 100644
index 0000000..1c6e91f
--- /dev/null
+++ b/docs/hel-892/h3-chain-reference/core__comfy_extras__nodes_audio.py
@@ -0,0 +1,896 @@
+import av
+import torchaudio
+import torch
+import comfy.model_management
+import folder_paths
+import os
+import hashlib
+import node_helpers
+import logging
+from typing_extensions import override
+from comfy_api.latest import ComfyExtension, IO, UI
+
+class EmptyLatentAudio(IO.ComfyNode):
+ @classmethod
+ def define_schema(cls):
+ return IO.Schema(
+ node_id="EmptyLatentAudio",
+ display_name="Empty Latent Audio",
+ category="model/latent",
+ essentials_category="Audio",
+ inputs=[
+ IO.Float.Input("seconds", default=47.6, min=1.0, max=1000.0, step=0.1),
+ IO.Int.Input(
+ "batch_size", default=1, min=1, max=4096, tooltip="The number of latent images in the batch.",
+ ),
+ ],
+ outputs=[IO.Latent.Output()],
+ )
+
+ @classmethod
+ def execute(cls, seconds, batch_size) -> IO.NodeOutput:
+ length = round((seconds * 44100 / 2048) / 2) * 2
+ latent = torch.zeros([batch_size, 64, length], device=comfy.model_management.intermediate_device())
+ return IO.NodeOutput({"samples": latent, "type": "audio", "downscale_ratio_temporal": 2048})
+
+ generate = execute # TODO: remove
+
+
+class ConditioningStableAudio(IO.ComfyNode):
+ @classmethod
+ def define_schema(cls):
+ return IO.Schema(
+ node_id="ConditioningStableAudio",
+ category="model/conditioning/stable audio",
+ inputs=[
+ IO.Conditioning.Input("positive"),
+ IO.Conditioning.Input("negative"),
+ IO.Float.Input("seconds_start", default=0.0, min=0.0, max=1000.0, step=0.1),
+ IO.Float.Input("seconds_total", default=47.0, min=0.0, max=1000.0, step=0.1),
+ ],
+ outputs=[
+ IO.Conditioning.Output(display_name="positive"),
+ IO.Conditioning.Output(display_name="negative"),
+ ],
+ )
+
+ @classmethod
+ def execute(cls, positive, negative, seconds_start, seconds_total) -> IO.NodeOutput:
+ positive = node_helpers.conditioning_set_values(positive, {"seconds_start": seconds_start, "seconds_total": seconds_total})
+ negative = node_helpers.conditioning_set_values(negative, {"seconds_start": seconds_start, "seconds_total": seconds_total})
+ return IO.NodeOutput(positive, negative)
+
+ append = execute # TODO: remove
+
+
+class VAEEncodeAudio(IO.ComfyNode):
+ @classmethod
+ def define_schema(cls):
+ return IO.Schema(
+ node_id="VAEEncodeAudio",
+ search_aliases=["audio to latent"],
+ display_name="VAE Encode Audio",
+ category="model/latent",
+ inputs=[
+ IO.Audio.Input("audio"),
+ IO.Vae.Input("vae"),
+ ],
+ outputs=[IO.Latent.Output()],
+ )
+
+ @classmethod
+ def execute(cls, vae, audio) -> IO.NodeOutput:
+ if audio is None:
+ raise ValueError("VAEEncodeAudio: input audio is None (source video may have no audio track).")
+ sample_rate = audio["sample_rate"]
+ vae_sample_rate = getattr(vae, "audio_sample_rate", 44100)
+ if vae_sample_rate != sample_rate:
+ waveform = torchaudio.functional.resample(audio["waveform"], sample_rate, vae_sample_rate)
+ else:
+ waveform = audio["waveform"]
+
+ t = vae.encode(waveform.movedim(1, -1))
+ return IO.NodeOutput({"samples": t})
+
+ encode = execute # TODO: remove
+
+
+def vae_decode_audio(vae, samples, tile=None, overlap=None):
+ latent = samples["samples"]
+ if latent.is_nested:
+ latent = latent.unbind()[-1]
+
+ if tile is not None:
+ audio = vae.decode_tiled(latent, tile_x=tile, tile_y=tile, overlap=overlap).movedim(-1, 1)
+ else:
+ audio = vae.decode(latent).movedim(-1, 1)
+
+ std = torch.std(audio, dim=[1, 2], keepdim=True) * 5.0
+ std[std < 1.0] = 1.0
+ audio /= std
+ vae_sample_rate = getattr(vae, "audio_sample_rate_output", getattr(vae, "audio_sample_rate", 44100))
+ return {"waveform": audio, "sample_rate": vae_sample_rate if "sample_rate" not in samples else samples["sample_rate"]}
+
+
+class VAEDecodeAudio(IO.ComfyNode):
+ @classmethod
+ def define_schema(cls):
+ return IO.Schema(
+ node_id="VAEDecodeAudio",
+ search_aliases=["latent to audio"],
+ display_name="VAE Decode Audio",
+ category="model/latent",
+ inputs=[
+ IO.Latent.Input("samples"),
+ IO.Vae.Input("vae"),
+ ],
+ outputs=[IO.Audio.Output()],
+ )
+
+ @classmethod
+ def execute(cls, vae, samples) -> IO.NodeOutput:
+ return IO.NodeOutput(vae_decode_audio(vae, samples))
+
+ decode = execute # TODO: remove
+
+
+class VAEDecodeAudioTiled(IO.ComfyNode):
+ @classmethod
+ def define_schema(cls):
+ return IO.Schema(
+ node_id="VAEDecodeAudioTiled",
+ search_aliases=["latent to audio"],
+ display_name="VAE Decode Audio (Tiled)",
+ category="model/latent",
+ inputs=[
+ IO.Latent.Input("samples"),
+ IO.Vae.Input("vae"),
+ IO.Int.Input("tile_size", default=512, min=32, max=8192, step=8),
+ IO.Int.Input("overlap", default=64, min=0, max=1024, step=8),
+ ],
+ outputs=[IO.Audio.Output()],
+ )
+
+ @classmethod
+ def execute(cls, vae, samples, tile_size, overlap) -> IO.NodeOutput:
+ return IO.NodeOutput(vae_decode_audio(vae, samples, tile_size, overlap))
+
+
+class SaveAudio(IO.ComfyNode):
+ @classmethod
+ def define_schema(cls):
+ return IO.Schema(
+ node_id="SaveAudio",
+ search_aliases=["export flac"],
+ display_name="Save Audio (FLAC) (DEPRECATED)",
+ category="audio",
+ essentials_category="Audio",
+ inputs=[
+ IO.Audio.Input("audio"),
+ IO.String.Input("filename_prefix", default="audio/ComfyUI"),
+ ],
+ hidden=[IO.Hidden.prompt, IO.Hidden.extra_pnginfo],
+ is_deprecated=True,
+ is_output_node=True,
+ outputs=[IO.Audio.Output("audio")]
+ )
+
+ @classmethod
+ def execute(cls, audio, filename_prefix="ComfyUI", format="flac") -> IO.NodeOutput:
+ if audio is None:
+ raise ValueError("SaveAudio: input audio is None (source video may have no audio track).")
+ return IO.NodeOutput(
+ audio,
+ ui=UI.AudioSaveHelper.get_save_audio_ui(audio, filename_prefix=filename_prefix, cls=cls, format=format)
+ )
+
+
+class SaveAudioMP3(IO.ComfyNode):
+ @classmethod
+ def define_schema(cls):
+ return IO.Schema(
+ node_id="SaveAudioMP3",
+ search_aliases=["export mp3"],
+ display_name="Save Audio (MP3) (DEPRECATED)",
+ category="audio",
+ essentials_category="Audio",
+ inputs=[
+ IO.Audio.Input("audio"),
+ IO.String.Input("filename_prefix", default="audio/ComfyUI"),
+ IO.Combo.Input("quality", options=["V0", "128k", "320k"], default="V0"),
+ ],
+ hidden=[IO.Hidden.prompt, IO.Hidden.extra_pnginfo],
+ is_deprecated=True,
+ is_output_node=True,
+ outputs=[IO.Audio.Output("audio")]
+ )
+
+ @classmethod
+ def execute(cls, audio, filename_prefix="ComfyUI", format="mp3", quality="128k") -> IO.NodeOutput:
+ if audio is None:
+ raise ValueError("SaveAudioMP3: input audio is None (source video may have no audio track).")
+ return IO.NodeOutput(
+ audio,
+ ui=UI.AudioSaveHelper.get_save_audio_ui(
+ audio, filename_prefix=filename_prefix, cls=cls, format=format, quality=quality
+ )
+ )
+
+
+class SaveAudioOpus(IO.ComfyNode):
+ @classmethod
+ def define_schema(cls):
+ return IO.Schema(
+ node_id="SaveAudioOpus",
+ search_aliases=["export opus"],
+ display_name="Save Audio (Opus) (DEPRECATED)",
+ category="audio",
+ inputs=[
+ IO.Audio.Input("audio"),
+ IO.String.Input("filename_prefix", default="audio/ComfyUI"),
+ IO.Combo.Input("quality", options=["64k", "96k", "128k", "192k", "320k"], default="128k"),
+ ],
+ hidden=[IO.Hidden.prompt, IO.Hidden.extra_pnginfo],
+ is_deprecated=True,
+ is_output_node=True,
+ outputs=[IO.Audio.Output("audio")]
+ )
+
+ @classmethod
+ def execute(cls, audio, filename_prefix="ComfyUI", format="opus", quality="V3") -> IO.NodeOutput:
+ if audio is None:
+ raise ValueError("SaveAudioOpus: input audio is None (source video may have no audio track).")
+ return IO.NodeOutput(
+ audio,
+ ui=UI.AudioSaveHelper.get_save_audio_ui(
+ audio, filename_prefix=filename_prefix, cls=cls, format=format, quality=quality
+ )
+ )
+
+
+class SaveAudioAdvanced(IO.ComfyNode):
+ @classmethod
+ def define_schema(cls):
+ return IO.Schema(
+ node_id="SaveAudioAdvanced",
+ search_aliases=["save audio", "export audio", "output audio", "write audio", "flac", "mp3", "opus"],
+ display_name="Save Audio (Advanced)",
+ description="Saves the input audio to your ComfyUI output directory.",
+ category="audio",
+ inputs=[
+ IO.Audio.Input("audio", tooltip="The audio to save."),
+ IO.String.Input(
+ "filename_prefix",
+ default="audio/ComfyUI",
+ tooltip=("The prefix for the file to save. May include formatting tokens such as %date:yyyy-MM-dd%."),
+ ),
+ IO.DynamicCombo.Input(
+ "format",
+ options=[
+ IO.DynamicCombo.Option("flac", []),
+ IO.DynamicCombo.Option("mp3", [
+ IO.Combo.Input("quality", options=["V0", "128k", "320k"], default="V0"),
+ ]),
+ IO.DynamicCombo.Option("opus", [
+ IO.Combo.Input("quality", options=["64k", "96k", "128k", "192k", "320k"], default="128k"),
+ ]),
+ ],
+ tooltip="The file format in which to save the audio.",
+ ),
+ ],
+ hidden=[IO.Hidden.prompt, IO.Hidden.extra_pnginfo],
+ is_output_node=True,
+ outputs=[IO.Audio.Output("audio")],
+ )
+
+ @classmethod
+ def execute(cls, audio, filename_prefix: str, format: dict) -> IO.NodeOutput:
+ file_format = format.get("format", None)
+ quality = format.get("quality", None)
+ if quality:
+ ui=UI.AudioSaveHelper.get_save_audio_ui(audio, filename_prefix=filename_prefix, cls=cls, format=file_format, quality=quality)
+ else:
+ ui=UI.AudioSaveHelper.get_save_audio_ui(audio, filename_prefix=filename_prefix, cls=cls, format=file_format)
+ return IO.NodeOutput(audio, ui=ui)
+
+
+class PreviewAudio(IO.ComfyNode):
+ @classmethod
+ def define_schema(cls):
+ return IO.Schema(
+ node_id="PreviewAudio",
+ search_aliases=["play audio"],
+ display_name="Preview Audio",
+ category="audio",
+ description="Preview the audio without saving it to the ComfyUI output directory.",
+ inputs=[
+ IO.Audio.Input("audio"),
+ ],
+ hidden=[IO.Hidden.prompt, IO.Hidden.extra_pnginfo],
+ is_output_node=True,
+ outputs=[IO.Audio.Output("audio")]
+ )
+
+ @classmethod
+ def execute(cls, audio) -> IO.NodeOutput:
+ if audio is None:
+ raise ValueError("PreviewAudio: input audio is None (source video may have no audio track).")
+ return IO.NodeOutput(audio, ui=UI.PreviewAudio(audio, cls=cls))
+
+ save_flac = execute # TODO: remove
+
+
+def f32_pcm(wav: torch.Tensor) -> torch.Tensor:
+ """Convert audio to float 32 bits PCM format."""
+ if wav.dtype.is_floating_point:
+ return wav
+ elif wav.dtype == torch.int16:
+ return wav.float() / (2 ** 15)
+ elif wav.dtype == torch.int32:
+ return wav.float() / (2 ** 31)
+ raise ValueError(f"Unsupported wav dtype: {wav.dtype}")
+
+def load(filepath: str) -> tuple[torch.Tensor, int]:
+ with av.open(filepath) as af:
+ if not af.streams.audio:
+ raise ValueError("No audio stream found in the file.")
+
+ stream = af.streams.audio[0]
+ sr = stream.codec_context.sample_rate
+ n_channels = stream.channels
+
+ frames = []
+ length = 0
+ for frame in af.decode(streams=stream.index):
+ buf = torch.from_numpy(frame.to_ndarray())
+ if buf.shape[0] != n_channels:
+ buf = buf.view(-1, n_channels).t()
+
+ frames.append(buf)
+ length += buf.shape[1]
+
+ if not frames:
+ raise ValueError("No audio frames decoded.")
+
+ wav = torch.cat(frames, dim=1)
+ wav = f32_pcm(wav)
+ return wav, sr
+
+class LoadAudio(IO.ComfyNode):
+ @classmethod
+ def define_schema(cls):
+ input_dir = folder_paths.get_input_directory()
+ os.makedirs(input_dir, exist_ok=True)
+ files = folder_paths.filter_files_content_types(os.listdir(input_dir), ["audio", "video"])
+ return IO.Schema(
+ node_id="LoadAudio",
+ search_aliases=["import audio", "open audio", "audio file"],
+ display_name="Load Audio",
+ category="audio",
+ essentials_category="Audio",
+ inputs=[
+ IO.Combo.Input("audio", upload=IO.UploadType.audio, options=sorted(files)),
+ ],
+ outputs=[IO.Audio.Output()],
+ )
+
+ @classmethod
+ def execute(cls, audio) -> IO.NodeOutput:
+ audio_path = folder_paths.get_annotated_filepath(audio)
+ waveform, sample_rate = load(audio_path)
+ audio = {"waveform": waveform.unsqueeze(0), "sample_rate": sample_rate}
+ return IO.NodeOutput(audio)
+
+ @classmethod
+ def fingerprint_inputs(cls, audio):
+ image_path = folder_paths.get_annotated_filepath(audio)
+ m = hashlib.sha256()
+ with open(image_path, 'rb') as f:
+ m.update(f.read())
+ return m.digest().hex()
+
+ @classmethod
+ def validate_inputs(cls, audio):
+ if not folder_paths.exists_annotated_filepath(audio):
+ return "Invalid audio file: {}".format(audio)
+ return True
+
+ load = execute # TODO: remove
+
+
+class RecordAudio(IO.ComfyNode):
+ @classmethod
+ def define_schema(cls):
+ return IO.Schema(
+ node_id="RecordAudio",
+ search_aliases=["microphone input", "audio capture", "voice input"],
+ display_name="Record Audio",
+ category="audio",
+ inputs=[
+ IO.Custom("AUDIO_RECORD").Input("audio"),
+ ],
+ outputs=[IO.Audio.Output()],
+ )
+
+ @classmethod
+ def execute(cls, audio) -> IO.NodeOutput:
+ audio_path = folder_paths.get_annotated_filepath(audio)
+
+ waveform, sample_rate = load(audio_path)
+ audio = {"waveform": waveform.unsqueeze(0), "sample_rate": sample_rate}
+ return IO.NodeOutput(audio)
+
+ load = execute # TODO: remove
+
+
+class TrimAudioDuration(IO.ComfyNode):
+ @classmethod
+ def define_schema(cls):
+ return IO.Schema(
+ node_id="TrimAudioDuration",
+ search_aliases=["cut audio", "audio clip", "shorten audio"],
+ display_name="Trim Audio Duration",
+ description="Trim audio tensor into chosen time range.",
+ category="audio",
+ inputs=[
+ IO.Audio.Input("audio"),
+ IO.Float.Input(
+ "start_index",
+ default=0.0,
+ min=-0xffffffffffffffff,
+ max=0xffffffffffffffff,
+ step=0.01,
+ tooltip="Start time in seconds, can be negative to count from the end (supports sub-seconds).",
+ ),
+ IO.Float.Input(
+ "duration",
+ default=60.0,
+ min=0.0,
+ step=0.01,
+ tooltip="Duration in seconds",
+ ),
+ ],
+ outputs=[IO.Audio.Output()],
+ )
+
+ @classmethod
+ def execute(cls, audio, start_index, duration) -> IO.NodeOutput:
+ if audio is None:
+ return IO.NodeOutput(None)
+ waveform = audio["waveform"]
+ sample_rate = audio["sample_rate"]
+ audio_length = waveform.shape[-1]
+
+ if audio_length == 0:
+ return IO.NodeOutput(audio)
+
+ if start_index < 0:
+ start_frame = audio_length + int(round(start_index * sample_rate))
+ else:
+ start_frame = int(round(start_index * sample_rate))
+ start_frame = max(0, min(start_frame, audio_length))
+
+ end_frame = start_frame + int(round(duration * sample_rate))
+ end_frame = max(0, min(end_frame, audio_length))
+
+ if start_frame >= end_frame:
+ raise ValueError("TrimAudioDuration: Start time must be less than end time and be within the audio length.")
+
+ return IO.NodeOutput({"waveform": waveform[..., start_frame:end_frame], "sample_rate": sample_rate})
+
+ trim = execute # TODO: remove
+
+
+class SplitAudioChannels(IO.ComfyNode):
+ @classmethod
+ def define_schema(cls):
+ return IO.Schema(
+ node_id="SplitAudioChannels",
+ search_aliases=["stereo to mono"],
+ display_name="Split Audio Channels",
+ description="Separates the audio into left and right channels.",
+ category="audio",
+ inputs=[
+ IO.Audio.Input("audio"),
+ ],
+ outputs=[
+ IO.Audio.Output(display_name="left"),
+ IO.Audio.Output(display_name="right"),
+ ],
+ )
+
+ @classmethod
+ def execute(cls, audio) -> IO.NodeOutput:
+ if audio is None:
+ return IO.NodeOutput(None, None)
+ waveform = audio["waveform"]
+ sample_rate = audio["sample_rate"]
+
+ if waveform.shape[1] != 2:
+ raise ValueError(f"AudioSplit: Input audio must be stereo (2 channels), got {waveform.shape[1]} channel(s).")
+
+ left_channel = waveform[..., 0:1, :]
+ right_channel = waveform[..., 1:2, :]
+
+ return IO.NodeOutput({"waveform": left_channel, "sample_rate": sample_rate}, {"waveform": right_channel, "sample_rate": sample_rate})
+
+ separate = execute # TODO: remove
+
+class JoinAudioChannels(IO.ComfyNode):
+ @classmethod
+ def define_schema(cls):
+ return IO.Schema(
+ node_id="JoinAudioChannels",
+ display_name="Join Audio Channels",
+ description="Joins left and right mono audio channels into a stereo audio.",
+ category="audio",
+ inputs=[
+ IO.Audio.Input("audio_left"),
+ IO.Audio.Input("audio_right"),
+ ],
+ outputs=[
+ IO.Audio.Output(display_name="audio"),
+ ],
+ )
+
+ @classmethod
+ def execute(cls, audio_left, audio_right) -> IO.NodeOutput:
+ if audio_left is None and audio_right is None:
+ return IO.NodeOutput(None)
+ if audio_left is None:
+ return IO.NodeOutput(audio_right)
+ if audio_right is None:
+ return IO.NodeOutput(audio_left)
+ waveform_left = audio_left["waveform"]
+ sample_rate_left = audio_left["sample_rate"]
+ waveform_right = audio_right["waveform"]
+ sample_rate_right = audio_right["sample_rate"]
+
+ if waveform_left.shape[1] != 1 or waveform_right.shape[1] != 1:
+ raise ValueError("AudioJoin: Both input audios must be mono.")
+
+ # Handle different sample rates by resampling to the higher rate
+ waveform_left, waveform_right, output_sample_rate = match_audio_sample_rates(
+ waveform_left, sample_rate_left, waveform_right, sample_rate_right
+ )
+
+ # Handle different lengths by trimming to the shorter length
+ length_left = waveform_left.shape[-1]
+ length_right = waveform_right.shape[-1]
+
+ if length_left != length_right:
+ min_length = min(length_left, length_right)
+ if length_left > min_length:
+ logging.info(f"JoinAudioChannels: Trimming left channel from {length_left} to {min_length} samples.")
+ waveform_left = waveform_left[..., :min_length]
+ if length_right > min_length:
+ logging.info(f"JoinAudioChannels: Trimming right channel from {length_right} to {min_length} samples.")
+ waveform_right = waveform_right[..., :min_length]
+
+ # Join the channels into stereo
+ left_channel = waveform_left[..., 0:1, :]
+ right_channel = waveform_right[..., 0:1, :]
+ stereo_waveform = torch.cat([left_channel, right_channel], dim=1)
+
+ return IO.NodeOutput({"waveform": stereo_waveform, "sample_rate": output_sample_rate})
+
+
+def match_audio_sample_rates(waveform_1, sample_rate_1, waveform_2, sample_rate_2):
+ if sample_rate_1 != sample_rate_2:
+ if sample_rate_1 > sample_rate_2:
+ waveform_2 = torchaudio.functional.resample(waveform_2, sample_rate_2, sample_rate_1)
+ output_sample_rate = sample_rate_1
+ logging.info(f"Resampling audio2 from {sample_rate_2}Hz to {sample_rate_1}Hz for merging.")
+ else:
+ waveform_1 = torchaudio.functional.resample(waveform_1, sample_rate_1, sample_rate_2)
+ output_sample_rate = sample_rate_2
+ logging.info(f"Resampling audio1 from {sample_rate_1}Hz to {sample_rate_2}Hz for merging.")
+ else:
+ output_sample_rate = sample_rate_1
+ return waveform_1, waveform_2, output_sample_rate
+
+
+class AudioConcat(IO.ComfyNode):
+ @classmethod
+ def define_schema(cls):
+ return IO.Schema(
+ node_id="AudioConcat",
+ search_aliases=["join audio", "combine audio", "append audio"],
+ display_name="Concatenate Audio",
+ description="Concatenates the audio1 to audio2 in the specified direction.",
+ category="audio",
+ inputs=[
+ IO.Audio.Input("audio1"),
+ IO.Audio.Input("audio2"),
+ IO.Combo.Input(
+ "direction",
+ options=['after', 'before'],
+ default="after",
+ tooltip="Whether to append audio2 after or before audio1.",
+ )
+ ],
+ outputs=[IO.Audio.Output()],
+ )
+
+ @classmethod
+ def execute(cls, audio1, audio2, direction) -> IO.NodeOutput:
+ if audio1 is None and audio2 is None:
+ return IO.NodeOutput(None)
+ if audio1 is None:
+ return IO.NodeOutput(audio2)
+ if audio2 is None:
+ return IO.NodeOutput(audio1)
+ waveform_1 = audio1["waveform"]
+ waveform_2 = audio2["waveform"]
+ sample_rate_1 = audio1["sample_rate"]
+ sample_rate_2 = audio2["sample_rate"]
+
+ if waveform_1.shape[1] == 1:
+ waveform_1 = waveform_1.repeat(1, 2, 1)
+ logging.info("AudioConcat: Converted mono audio1 to stereo by duplicating the channel.")
+ if waveform_2.shape[1] == 1:
+ waveform_2 = waveform_2.repeat(1, 2, 1)
+ logging.info("AudioConcat: Converted mono audio2 to stereo by duplicating the channel.")
+
+ waveform_1, waveform_2, output_sample_rate = match_audio_sample_rates(waveform_1, sample_rate_1, waveform_2, sample_rate_2)
+
+ if direction == 'after':
+ concatenated_audio = torch.cat((waveform_1, waveform_2), dim=2)
+ elif direction == 'before':
+ concatenated_audio = torch.cat((waveform_2, waveform_1), dim=2)
+
+ return IO.NodeOutput({"waveform": concatenated_audio, "sample_rate": output_sample_rate})
+
+ concat = execute # TODO: remove
+
+
+class AudioMerge(IO.ComfyNode):
+ @classmethod
+ def define_schema(cls):
+ return IO.Schema(
+ node_id="AudioMerge",
+ search_aliases=["mix audio", "overlay audio", "layer audio"],
+ display_name="Merge Audio",
+ description="Combine two audio tracks by overlaying their waveforms.",
+ category="audio",
+ inputs=[
+ IO.Audio.Input("audio1"),
+ IO.Audio.Input("audio2"),
+ IO.Combo.Input(
+ "merge_method",
+ options=["add", "mean", "subtract", "multiply"],
+ tooltip="The method used to combine the audio waveforms.",
+ )
+ ],
+ outputs=[IO.Audio.Output()],
+ )
+
+ @classmethod
+ def execute(cls, audio1, audio2, merge_method) -> IO.NodeOutput:
+ if audio1 is None and audio2 is None:
+ return IO.NodeOutput(None)
+ if audio1 is None:
+ return IO.NodeOutput(audio2)
+ if audio2 is None:
+ return IO.NodeOutput(audio1)
+ waveform_1 = audio1["waveform"]
+ waveform_2 = audio2["waveform"]
+ sample_rate_1 = audio1["sample_rate"]
+ sample_rate_2 = audio2["sample_rate"]
+
+ waveform_1, waveform_2, output_sample_rate = match_audio_sample_rates(waveform_1, sample_rate_1, waveform_2, sample_rate_2)
+
+ length_1 = waveform_1.shape[-1]
+ length_2 = waveform_2.shape[-1]
+
+ if length_1 == 0 or length_2 == 0:
+ return IO.NodeOutput({"waveform": waveform_1, "sample_rate": output_sample_rate})
+
+ if length_2 > length_1:
+ logging.info(f"AudioMerge: Trimming audio2 from {length_2} to {length_1} samples to match audio1 length.")
+ waveform_2 = waveform_2[..., :length_1]
+ elif length_2 < length_1:
+ logging.info(f"AudioMerge: Padding audio2 from {length_2} to {length_1} samples to match audio1 length.")
+ pad_shape = list(waveform_2.shape)
+ pad_shape[-1] = length_1 - length_2
+ pad_tensor = torch.zeros(pad_shape, dtype=waveform_2.dtype, device=waveform_2.device)
+ waveform_2 = torch.cat((waveform_2, pad_tensor), dim=-1)
+
+ if merge_method == "add":
+ waveform = waveform_1 + waveform_2
+ elif merge_method == "subtract":
+ waveform = waveform_1 - waveform_2
+ elif merge_method == "multiply":
+ waveform = waveform_1 * waveform_2
+ elif merge_method == "mean":
+ waveform = (waveform_1 + waveform_2) / 2
+
+ max_val = waveform.abs().max()
+ if max_val > 1.0:
+ waveform = waveform / max_val
+
+ return IO.NodeOutput({"waveform": waveform, "sample_rate": output_sample_rate})
+
+ merge = execute # TODO: remove
+
+
+class AudioAdjustVolume(IO.ComfyNode):
+ @classmethod
+ def define_schema(cls):
+ return IO.Schema(
+ node_id="AudioAdjustVolume",
+ search_aliases=["audio gain", "loudness", "audio level"],
+ display_name="Adjust Audio Volume",
+ category="audio",
+ description="Adjust the volume of the audio by a specified amount in decibels (dB).",
+ inputs=[
+ IO.Audio.Input("audio"),
+ IO.Int.Input(
+ "volume",
+ default=1,
+ min=-100,
+ max=100,
+ tooltip="Volume adjustment in decibels (dB). 0 = no change, +6 = double, -6 = half, etc",
+ )
+ ],
+ outputs=[IO.Audio.Output()],
+ )
+
+ @classmethod
+ def execute(cls, audio, volume) -> IO.NodeOutput:
+ if audio is None:
+ return IO.NodeOutput(None)
+ if volume == 0:
+ return IO.NodeOutput(audio)
+ waveform = audio["waveform"]
+ sample_rate = audio["sample_rate"]
+
+ gain = 10 ** (volume / 20)
+ waveform = waveform * gain
+
+ return IO.NodeOutput({"waveform": waveform, "sample_rate": sample_rate})
+
+ adjust_volume = execute # TODO: remove
+
+
+class EmptyAudio(IO.ComfyNode):
+ @classmethod
+ def define_schema(cls):
+ return IO.Schema(
+ node_id="EmptyAudio",
+ search_aliases=["blank audio"],
+ display_name="Empty Audio",
+ category="audio",
+ inputs=[
+ IO.Float.Input(
+ "duration",
+ default=60.0,
+ min=0.0,
+ max=0xffffffffffffffff,
+ step=0.01,
+ tooltip="Duration of the empty audio clip in seconds",
+ ),
+ IO.Int.Input(
+ "sample_rate",
+ default=44100,
+ tooltip="Sample rate of the empty audio clip.",
+ min=1,
+ max=192000,
+ advanced=True,
+ ),
+ IO.Int.Input(
+ "channels",
+ default=2,
+ min=1,
+ max=2,
+ tooltip="Number of audio channels (1 for mono, 2 for stereo).",
+ advanced=True,
+ ),
+ ],
+ outputs=[IO.Audio.Output()],
+ )
+
+ @classmethod
+ def execute(cls, duration, sample_rate, channels) -> IO.NodeOutput:
+ num_samples = int(round(duration * sample_rate))
+ waveform = torch.zeros((1, channels, num_samples), dtype=torch.float32)
+ return IO.NodeOutput({"waveform": waveform, "sample_rate": sample_rate})
+
+ create_empty_audio = execute # TODO: remove
+
+
+class AudioEqualizer3Band(IO.ComfyNode):
+ @classmethod
+ def define_schema(cls):
+ return IO.Schema(
+ node_id="AudioEqualizer3Band",
+ search_aliases=["eq", "bass boost", "treble boost", "equalizer"],
+ display_name="Audio Equalizer (3-Band)",
+ category="audio",
+ is_experimental=True,
+ inputs=[
+ IO.Audio.Input("audio"),
+ IO.Float.Input("low_gain_dB", default=0.0, min=-24.0, max=24.0, step=0.1, tooltip="Gain for Low frequencies (Bass)"),
+ IO.Int.Input("low_freq", default=100, min=20, max=500, tooltip="Cutoff frequency for Low shelf"),
+ IO.Float.Input("mid_gain_dB", default=0.0, min=-24.0, max=24.0, step=0.1, tooltip="Gain for Mid frequencies"),
+ IO.Int.Input("mid_freq", default=1000, min=200, max=4000, tooltip="Center frequency for Mids"),
+ IO.Float.Input("mid_q", default=0.707, min=0.1, max=10.0, step=0.1, tooltip="Q factor (bandwidth) for Mids"),
+ IO.Float.Input("high_gain_dB", default=0.0, min=-24.0, max=24.0, step=0.1, tooltip="Gain for High frequencies (Treble)"),
+ IO.Int.Input("high_freq", default=5000, min=1000, max=15000, tooltip="Cutoff frequency for High shelf"),
+ ],
+ outputs=[IO.Audio.Output()],
+ )
+
+ @classmethod
+ def execute(cls, audio, low_gain_dB, low_freq, mid_gain_dB, mid_freq, mid_q, high_gain_dB, high_freq) -> IO.NodeOutput:
+ if audio is None:
+ return IO.NodeOutput(None)
+ waveform = audio["waveform"]
+ sample_rate = audio["sample_rate"]
+
+ if waveform.shape[-1] == 0:
+ return IO.NodeOutput(audio)
+
+ eq_waveform = waveform.clone()
+
+ # 1. Apply Low Shelf (Bass)
+ if low_gain_dB != 0:
+ eq_waveform = torchaudio.functional.bass_biquad(
+ eq_waveform,
+ sample_rate,
+ gain=low_gain_dB,
+ central_freq=float(low_freq),
+ Q=0.707
+ )
+
+ # 2. Apply Peaking EQ (Mids)
+ if mid_gain_dB != 0:
+ eq_waveform = torchaudio.functional.equalizer_biquad(
+ eq_waveform,
+ sample_rate,
+ center_freq=float(mid_freq),
+ gain=mid_gain_dB,
+ Q=mid_q
+ )
+
+ # 3. Apply High Shelf (Treble)
+ if high_gain_dB != 0:
+ eq_waveform = torchaudio.functional.treble_biquad(
+ eq_waveform,
+ sample_rate,
+ gain=high_gain_dB,
+ central_freq=float(high_freq),
+ Q=0.707
+ )
+
+ return IO.NodeOutput({"waveform": eq_waveform, "sample_rate": sample_rate})
+
+
+class AudioExtension(ComfyExtension):
+ @override
+ async def get_node_list(self) -> list[type[IO.ComfyNode]]:
+ return [
+ EmptyLatentAudio,
+ VAEEncodeAudio,
+ VAEDecodeAudio,
+ VAEDecodeAudioTiled,
+ SaveAudio,
+ SaveAudioMP3,
+ SaveAudioOpus,
+ SaveAudioAdvanced,
+ LoadAudio,
+ PreviewAudio,
+ ConditioningStableAudio,
+ RecordAudio,
+ TrimAudioDuration,
+ SplitAudioChannels,
+ JoinAudioChannels,
+ AudioConcat,
+ AudioMerge,
+ AudioAdjustVolume,
+ EmptyAudio,
+ AudioEqualizer3Band,
+ ]
+
+async def comfy_entrypoint() -> AudioExtension:
+ return AudioExtension()
diff --git a/docs/hel-892/h3-chain-reference/core__comfy_extras__nodes_video.py b/docs/hel-892/h3-chain-reference/core__comfy_extras__nodes_video.py
new file mode 100644
index 0000000..45394ce
--- /dev/null
+++ b/docs/hel-892/h3-chain-reference/core__comfy_extras__nodes_video.py
@@ -0,0 +1,320 @@
+import os
+import av
+import torch
+import folder_paths
+import json
+from typing import Optional
+from typing_extensions import override
+from fractions import Fraction
+from comfy_api.latest import ComfyExtension, io, ui, Input, InputImpl, Types
+from comfy.cli_args import args
+
+class SaveWEBM(io.ComfyNode):
+ @classmethod
+ def define_schema(cls):
+ return io.Schema(
+ node_id="SaveWEBM",
+ search_aliases=["export webm"],
+ display_name="Save WEBM",
+ category="video",
+ is_experimental=True,
+ inputs=[
+ io.Image.Input("images", tooltip="RGBA images are saved with their alpha channel as transparency (vp9 codec only)."),
+ io.String.Input("filename_prefix", default="ComfyUI"),
+ io.Combo.Input("codec", options=["vp9", "av1"]),
+ io.Float.Input("fps", default=24.0, min=0.01, max=1000.0, step=0.01),
+ io.Float.Input("crf", default=32.0, min=0, max=63.0, step=1, tooltip="Higher crf means lower quality with a smaller file size, lower crf means higher quality higher filesize."),
+ ],
+ hidden=[io.Hidden.prompt, io.Hidden.extra_pnginfo],
+ is_output_node=True,
+ outputs=[io.Image.Output(display_name="images")]
+ )
+
+ @classmethod
+ def execute(cls, images, codec, fps, filename_prefix, crf) -> io.NodeOutput:
+ full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(
+ filename_prefix, folder_paths.get_output_directory(), images[0].shape[1], images[0].shape[0]
+ )
+
+ file = f"{filename}_{counter:05}_.webm"
+ container = av.open(os.path.join(full_output_folder, file), mode="w")
+
+ if cls.hidden.prompt is not None:
+ container.metadata["prompt"] = json.dumps(cls.hidden.prompt)
+
+ if cls.hidden.extra_pnginfo is not None:
+ for x in cls.hidden.extra_pnginfo:
+ container.metadata[x] = json.dumps(cls.hidden.extra_pnginfo[x])
+
+ # Save transparency when the images carry an alpha channel (RGBA) and the codec supports it.
+ # vp9 -> yuva420p; other codecs have no usable alpha path, so the alpha is ignored.
+ save_alpha = images.shape[-1] == 4 and codec == "vp9"
+
+ codec_map = {"vp9": "libvpx-vp9", "av1": "libsvtav1"}
+ stream = container.add_stream(codec_map[codec], rate=Fraction(round(fps * 1000), 1000))
+ stream.width = images.shape[-2]
+ stream.height = images.shape[-3]
+ stream.pix_fmt = "yuva420p" if save_alpha else ("yuv420p10le" if codec == "av1" else "yuv420p")
+ stream.bit_rate = 0
+ stream.options = {'crf': str(crf)}
+ if codec == "av1":
+ stream.options["preset"] = "6"
+
+ for frame in images:
+ if save_alpha:
+ frame = av.VideoFrame.from_ndarray(torch.clamp(frame[..., :4] * 255, min=0, max=255).to(device=torch.device("cpu"), dtype=torch.uint8).numpy(), format="rgba")
+ else:
+ frame = av.VideoFrame.from_ndarray(torch.clamp(frame[..., :3] * 255, min=0, max=255).to(device=torch.device("cpu"), dtype=torch.uint8).numpy(), format="rgb24")
+ for packet in stream.encode(frame):
+ container.mux(packet)
+ container.mux(stream.encode())
+ container.close()
+
+ return io.NodeOutput(images, ui=ui.PreviewVideo([ui.SavedResult(file, subfolder, io.FolderType.output)]))
+
+class SaveVideo(io.ComfyNode):
+ @classmethod
+ def define_schema(cls):
+ return io.Schema(
+ node_id="SaveVideo",
+ search_aliases=["export video"],
+ display_name="Save Video",
+ category="video",
+ essentials_category="Basics",
+ description="Saves the input videos to your ComfyUI output directory.",
+ inputs=[
+ io.Video.Input("video", tooltip="The video to save."),
+ io.String.Input("filename_prefix", default="video/ComfyUI", tooltip="The prefix for the file to save. This may include formatting information such as %date:yyyy-MM-dd% or %Empty Latent Image.width% to include values from nodes."),
+ io.Combo.Input("format", options=Types.VideoContainer.as_input(), default="auto", tooltip="The format to save the video as."),
+ io.DynamicCombo.Input(
+ "codec",
+ options=[
+ io.DynamicCombo.Option("auto", []),
+ io.DynamicCombo.Option(
+ "h264",
+ [
+ io.DynamicCombo.Input(
+ "encoding",
+ display_name="encoding mode",
+ options=[
+ io.DynamicCombo.Option("auto", []),
+ io.DynamicCombo.Option(
+ "re-encode",
+ [io.Float.Input("crf", default=23.0, min=0.0, max=51.0, step=1.0, tooltip="Lower values produce higher quality and larger files.")],
+ ),
+ ],
+ optional=True,
+ tooltip="Automatic preserves compatible H.264 streams. Re-encode applies a custom CRF.",
+ ),
+ ],
+ ),
+ ],
+ tooltip="The codec to use for the video.",
+ ),
+ ],
+ hidden=[io.Hidden.prompt, io.Hidden.extra_pnginfo],
+ is_output_node=True,
+ outputs=[io.Video.Output("video")],
+ )
+
+ @classmethod
+ def execute(cls, video: Input.Video, filename_prefix, format: str, codec: io.DynamicCombo.Type) -> io.NodeOutput:
+ codec_name = codec["codec"]
+ encoding = codec.get("encoding") or {}
+ width, height = video.get_dimensions()
+ full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(
+ filename_prefix,
+ folder_paths.get_output_directory(),
+ width,
+ height
+ )
+ saved_metadata = None
+ if not args.disable_metadata:
+ metadata = {}
+ if cls.hidden.extra_pnginfo is not None:
+ metadata.update(cls.hidden.extra_pnginfo)
+ if cls.hidden.prompt is not None:
+ metadata["prompt"] = cls.hidden.prompt
+ if len(metadata) > 0:
+ saved_metadata = metadata
+ file = f"{filename}_{counter:05}_.{Types.VideoContainer.get_extension(format)}"
+ video.save_to(
+ os.path.join(full_output_folder, file),
+ format=Types.VideoContainer(format),
+ codec=codec_name,
+ metadata=saved_metadata,
+ crf=encoding.get("crf"),
+ )
+
+ return io.NodeOutput(video, ui=ui.PreviewVideo([ui.SavedResult(file, subfolder, io.FolderType.output)]))
+
+
+class CreateVideo(io.ComfyNode):
+ @classmethod
+ def define_schema(cls):
+ return io.Schema(
+ node_id="CreateVideo",
+ search_aliases=["images to video"],
+ display_name="Create Video",
+ category="video",
+ essentials_category="Video Tools",
+ description="Create a video from images.",
+ inputs=[
+ io.Image.Input("images", tooltip="The images to create a video from."),
+ io.Float.Input("fps", default=30.0, min=1.0, max=120.0, step=1.0),
+ io.Audio.Input("audio", optional=True, tooltip="The audio to add to the video."),
+ io.Int.Input(
+ "bit_depth",
+ min=8,
+ max=10,
+ default=8,
+ step=2,
+ tooltip="Bit depth of the created video. 10-bit keeps smoother gradients with less"
+ " banding, but some players and downstream nodes may not support it.",
+ optional=True,
+ display_mode=io.NumberDisplay.number,
+ ),
+ ],
+ outputs=[
+ io.Video.Output(),
+ ],
+ )
+
+ @classmethod
+ def execute(
+ cls, images: Input.Image, fps: float, audio: Optional[Input.Audio] = None, bit_depth: int = 8,
+ ) -> io.NodeOutput:
+ return io.NodeOutput(
+ InputImpl.VideoFromComponents(
+ Types.VideoComponents(images=images, audio=audio, frame_rate=Fraction(fps)),
+ bit_depth=bit_depth,
+ )
+ )
+
+class GetVideoComponents(io.ComfyNode):
+ @classmethod
+ def define_schema(cls):
+ return io.Schema(
+ node_id="GetVideoComponents",
+ search_aliases=["extract frames", "split video", "video to images", "demux"],
+ display_name="Get Video Components",
+ category="video",
+ description="Extracts all components from a video: frames, audio, framerate, and bit depth.",
+ inputs=[
+ io.Video.Input("video", tooltip="The video to extract components from."),
+ ],
+ outputs=[
+ io.Image.Output(display_name="images"),
+ io.Audio.Output(display_name="audio"),
+ io.Float.Output(display_name="fps"),
+ io.Int.Output(display_name="bit_depth"),
+ ],
+ )
+
+ @classmethod
+ def execute(cls, video: Input.Video) -> io.NodeOutput:
+ components = video.get_components()
+ return io.NodeOutput(components.images, components.audio, float(components.frame_rate), video.get_bit_depth())
+
+
+class LoadVideo(io.ComfyNode):
+ @classmethod
+ def define_schema(cls):
+ input_dir = folder_paths.get_input_directory()
+ files = [f for f in os.listdir(input_dir) if os.path.isfile(os.path.join(input_dir, f))]
+ files = folder_paths.filter_files_content_types(files, ["video"])
+ return io.Schema(
+ node_id="LoadVideo",
+ search_aliases=["import video", "open video", "video file"],
+ display_name="Load Video",
+ category="video",
+ essentials_category="Basics",
+ inputs=[
+ io.Combo.Input("file", options=sorted(files), upload=io.UploadType.video),
+ ],
+ outputs=[
+ io.Video.Output(),
+ ],
+ )
+
+ @classmethod
+ def execute(cls, file) -> io.NodeOutput:
+ video_path = folder_paths.get_annotated_filepath(file)
+ return io.NodeOutput(InputImpl.VideoFromFile(video_path))
+
+ @classmethod
+ def fingerprint_inputs(s, file):
+ video_path = folder_paths.get_annotated_filepath(file)
+ mod_time = os.path.getmtime(video_path)
+ # Instead of hashing the file, we can just use the modification time to avoid
+ # rehashing large files.
+ return mod_time
+
+ @classmethod
+ def validate_inputs(s, file):
+ if not folder_paths.exists_annotated_filepath(file):
+ return "Invalid video file: {}".format(file)
+
+ return True
+
+class VideoSlice(io.ComfyNode):
+ @classmethod
+ def define_schema(cls):
+ return io.Schema(
+ node_id="Video Slice",
+ display_name="Trim Video",
+ search_aliases=["trim video duration", "skip first frames", "frame load cap", "start time"],
+ category="video",
+ essentials_category="Video Tools",
+ inputs=[
+ io.Video.Input("video"),
+ io.Float.Input(
+ "start_time",
+ default=0.0,
+ max=1e5,
+ min=-1e5,
+ step=0.001,
+ tooltip="Start time in seconds",
+ ),
+ io.Float.Input(
+ "duration",
+ default=0.0,
+ min=0.0,
+ step=0.001,
+ tooltip="Duration in seconds, or 0 for unlimited duration",
+ ),
+ io.Boolean.Input(
+ "strict_duration",
+ default=False,
+ tooltip="If True, when the specified duration is not possible, an error will be raised.",
+ ),
+ ],
+ outputs=[
+ io.Video.Output(),
+ ],
+ )
+
+ @classmethod
+ def execute(cls, video: io.Video.Type, start_time: float, duration: float, strict_duration: bool) -> io.NodeOutput:
+ trimmed = video.as_trimmed(start_time, duration, strict_duration=strict_duration)
+ if trimmed is not None:
+ return io.NodeOutput(trimmed)
+ raise ValueError(
+ f"Failed to slice video:\nSource duration: {video.get_duration()}\nStart time: {start_time}\nTarget duration: {duration}"
+ )
+
+
+class VideoExtension(ComfyExtension):
+ @override
+ async def get_node_list(self) -> list[type[io.ComfyNode]]:
+ return [
+ SaveWEBM,
+ SaveVideo,
+ CreateVideo,
+ GetVideoComponents,
+ LoadVideo,
+ VideoSlice,
+ ]
+
+async def comfy_entrypoint() -> VideoExtension:
+ return VideoExtension()
diff --git a/docs/hel-892/h3-chain-reference/frontend__src__extensions__core__dynamicPrompts.ts b/docs/hel-892/h3-chain-reference/frontend__src__extensions__core__dynamicPrompts.ts
new file mode 100644
index 0000000..57ee13d
--- /dev/null
+++ b/docs/hel-892/h3-chain-reference/frontend__src__extensions__core__dynamicPrompts.ts
@@ -0,0 +1,31 @@
+import type { LGraphNode } from '@/lib/litegraph/src/LGraphNode'
+import { useExtensionService } from '@/services/extensionService'
+import { processDynamicPrompt } from '@/utils/formatUtil'
+
+// Allows for simple dynamic prompt replacement
+// Inputs in the format {a|b} will have a random value of a or b chosen when the prompt is queued.
+
+useExtensionService().registerExtension({
+ name: 'Comfy.DynamicPrompts',
+ nodeCreated(node: LGraphNode) {
+ if (node.widgets) {
+ // Locate dynamic prompt text widgets
+ // Include any widgets with dynamicPrompts set to true, and customtext
+ const widgets = node.widgets.filter((w) => w.dynamicPrompts)
+ for (const widget of widgets) {
+ // Override the serialization of the value to resolve dynamic prompts for all widgets supporting it in this node
+ widget.serializeValue = (workflowNode, widgetIndex) => {
+ if (typeof widget.value !== 'string') return widget.value
+
+ const prompt = processDynamicPrompt(widget.value)
+
+ // Overwrite the value in the serialized workflow pnginfo
+ if (workflowNode?.widgets_values)
+ workflowNode.widgets_values[widgetIndex] = prompt
+
+ return prompt
+ }
+ }
+ }
+ }
+})
diff --git a/docs/hel-892/h3-chain-reference/frontend__src__extensions__core__index.ts b/docs/hel-892/h3-chain-reference/frontend__src__extensions__core__index.ts
new file mode 100644
index 0000000..64c731c
--- /dev/null
+++ b/docs/hel-892/h3-chain-reference/frontend__src__extensions__core__index.ts
@@ -0,0 +1,57 @@
+import { isCloud, isNightly } from '@/platform/distribution/types'
+
+import './clipspace'
+import './contextMenuFilter'
+import './createBoundingBoxes'
+import './customWidgets'
+import './dynamicPrompts'
+import './editAttention'
+import './electronAdapter'
+import './groupNode'
+import './groupOptions'
+import './imageCompare'
+import './imageCompositor'
+import './imageCrop'
+import './layerEditor'
+// load3d and saveMesh are loaded on-demand to defer THREE.js (~1.8MB)
+// The lazy loader triggers loading when a 3D node is used
+import './load3dLazy'
+import './maskeditor'
+if (!isCloud) {
+ await import('./nodeTemplates')
+}
+import './noteNode'
+import './painter'
+import './previewAny'
+import './saveText'
+import './rerouteNode'
+import './saveImageExtraOutput'
+// saveMesh is loaded on-demand with load3d (see load3dLazy.ts)
+import './selectionBorder'
+import './simpleTouchSupport'
+import './slotDefaults'
+import './uploadAudio'
+import './uploadImage'
+import './webcamCapture'
+import './widgetInputs'
+
+// Cloud-only extensions - tree-shaken in OSS builds
+// The literal __DISTRIBUTION__ comparison (not the isCloud const) is what
+// dead-code-eliminates this block and its posthog-js import from OSS builds.
+if (__DISTRIBUTION__ === 'cloud') {
+ await import('./cloudRemoteConfig')
+ const { registerAgentPanelExtension } = await import('./agentPanel')
+ registerAgentPanelExtension()
+ await import('./cloudBadges')
+ await import('./cloudSessionCookie')
+}
+
+// Feedback button for cloud and nightly builds
+if (isCloud || isNightly) {
+ await import('./cloudFeedbackTopbarButton')
+}
+
+// Nightly-only extensions
+if (isNightly && !isCloud) {
+ await import('./nightlyBadges')
+}
diff --git a/docs/hel-892/h3-chain-reference/frontend__src__extensions__core__saveImageExtraOutput.ts b/docs/hel-892/h3-chain-reference/frontend__src__extensions__core__saveImageExtraOutput.ts
new file mode 100644
index 0000000..5ac24b7
--- /dev/null
+++ b/docs/hel-892/h3-chain-reference/frontend__src__extensions__core__saveImageExtraOutput.ts
@@ -0,0 +1,74 @@
+import type { LGraphNode } from '@/lib/litegraph/src/LGraphNode'
+import type { ComfyNodeDef } from '@/schemas/nodeDefSchema'
+import { applyTextReplacements } from '@/utils/searchAndReplace'
+
+import { app } from '../../scripts/app'
+
+const saveNodeTypes = new Set([
+ 'SaveImage',
+ 'SaveImageAdvanced',
+ 'SaveSVGNode',
+ 'SaveVideo',
+ 'SaveAnimatedWEBP',
+ 'SaveWEBM',
+ 'SaveAudio',
+ 'SaveAudioMP3',
+ 'SaveAudioOpus',
+ 'SaveAudioAdvanced',
+ 'SaveGLB',
+ 'Save3DAdvanced',
+ 'SaveGaussianSplat',
+ 'SavePointCloud',
+ 'SaveAnimatedPNG',
+ 'CLIPSave',
+ 'VAESave',
+ 'ModelSave',
+ 'LoraSave',
+ 'SaveLatent'
+])
+
+// Use widget values and dates in output filenames
+
+app.registerExtension({
+ name: 'Comfy.SaveImageExtraOutput',
+ async beforeRegisterNodeDef(
+ nodeType: typeof LGraphNode,
+ nodeData: ComfyNodeDef
+ ) {
+ if (saveNodeTypes.has(nodeData.name)) {
+ const onNodeCreated = nodeType.prototype.onNodeCreated
+ // When the SaveImage node is created we want to override the serialization of the output name widget to run our S&R
+ nodeType.prototype.onNodeCreated = function () {
+ const r = onNodeCreated
+ ? // @ts-expect-error fixme ts strict error
+ onNodeCreated.apply(this, arguments)
+ : undefined
+
+ // @ts-expect-error fixme ts strict error
+ const widget = this.widgets.find((w) => w.name === 'filename_prefix')
+ // @ts-expect-error fixme ts strict error
+ widget.serializeValue = () => {
+ // @ts-expect-error fixme ts strict error
+ return applyTextReplacements(app.graph, widget.value)
+ }
+
+ return r
+ }
+ } else {
+ // When any other node is created add a property to alias the node
+ const onNodeCreated = nodeType.prototype.onNodeCreated
+ nodeType.prototype.onNodeCreated = function () {
+ const r = onNodeCreated
+ ? // @ts-expect-error fixme ts strict error
+ onNodeCreated.apply(this, arguments)
+ : undefined
+
+ if (!this.properties || !('Node name for S&R' in this.properties)) {
+ this.addProperty('Node name for S&R', this.constructor.type, 'string')
+ }
+
+ return r
+ }
+ }
+ }
+})
diff --git a/docs/hel-892/h3-chain-reference/frontend__src__utils__searchAndReplace.ts b/docs/hel-892/h3-chain-reference/frontend__src__utils__searchAndReplace.ts
new file mode 100644
index 0000000..1db9c8e
--- /dev/null
+++ b/docs/hel-892/h3-chain-reference/frontend__src__utils__searchAndReplace.ts
@@ -0,0 +1,57 @@
+import type { LGraph, Subgraph } from '@/lib/litegraph/src/litegraph'
+import { formatDate } from '@/utils/formatUtil'
+import { collectAllNodes } from '@/utils/graphTraversalUtil'
+
+export function applyTextReplacements(
+ graph: LGraph | Subgraph,
+ value: string
+): string {
+ const allNodes = collectAllNodes(graph)
+
+ return value.replace(/%([^%]+)%/g, function (match, text) {
+ const split = text.split('.')
+ if (split.length !== 2) {
+ // Special handling for dates
+ if (split[0].startsWith('date:')) {
+ return formatDate(split[0].substring(5), new Date())
+ }
+
+ if (text !== 'width' && text !== 'height') {
+ // Dont warn on standard replacements
+ console.warn('Invalid replacement pattern', text)
+ }
+ return match
+ }
+
+ // Find node with matching S&R property name
+ let nodes = allNodes.filter(
+ (n) => n.properties?.['Node name for S&R'] === split[0]
+ )
+ // If we can't, see if there is a node with that title
+ if (!nodes.length) {
+ nodes = allNodes.filter((n) => n.title === split[0])
+ }
+ if (!nodes.length) {
+ console.warn('Unable to find node', split[0])
+ return match
+ }
+
+ if (nodes.length > 1) {
+ console.warn('Multiple nodes matched', split[0], 'using first match')
+ }
+
+ const node = nodes[0]
+
+ const widget = node.widgets?.find((w) => w.name === split[1])
+ if (!widget) {
+ console.warn('Unable to find widget', split[1], 'on node', split[0], node)
+ return match
+ }
+
+ return ((widget.value ?? '') + '').replaceAll(
+ // eslint-disable-next-line no-control-regex
+ /[/?<>\\:*|"\x00-\x1F\x7F]/g,
+ '_'
+ )
+ })
+}
diff --git a/docs/hel-892/h3-chain-reference/make_manifest.py b/docs/hel-892/h3-chain-reference/make_manifest.py
new file mode 100644
index 0000000..0af9ff6
--- /dev/null
+++ b/docs/hel-892/h3-chain-reference/make_manifest.py
@@ -0,0 +1,182 @@
+"""Inventory immutable core bytes and reuse the SAME pinned frontend identity."""
+
+import hashlib
+import json
+from pathlib import Path
+
+ROOT = Path(__file__).resolve().parent
+CORE = "2f35f4a08176d993cded35dac3332be4f7287f41"
+FRONTEND = "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5"
+ANCHORS = (
+ "class VAELoader",
+ "class UNETLoader",
+ "class CLIPLoader",
+ "class VAEDecode",
+ "class KSamplerSelect",
+ "class BasicGuider",
+ "class SamplerCustomAdvanced",
+ "class CreateVideo",
+ "class SaveVideo",
+ "VideoContainer",
+ "INPUT_TYPES",
+ "RETURN_TYPES",
+ "NODE_CLASS_MAPPINGS",
+ "get_filename_list",
+ "codec",
+ "filename_prefix",
+ "applyTextReplacements",
+ "serializeValue",
+ "nodes_video.py",
+ "nodes_audio.py",
+ "KSAMPLER_NAMES",
+ "SAMPLER_NAMES",
+ "class StringMultiline",
+ "class Float",
+ "class ResolutionSelector",
+ "class AspectRatio",
+ "class MathExpressionNode",
+ "class RandomNoise",
+ "class BasicScheduler",
+ "def define_schema",
+ "async def get_node_list",
+ "async def comfy_entrypoint",
+ "class MultiType",
+ "class Autogrow",
+ "class TemplateNames",
+ "def as_dict",
+ "def _expand_schema_for_dynamic",
+ "node_id",
+ "get_node_list()",
+ "schema.node_id",
+ "nodes_primitive.py",
+ "nodes_resolution.py",
+ "nodes_math.py",
+ "nodes_custom_sampler.py",
+ "SCHEDULER_HANDLERS =",
+ "SCHEDULER_NAMES =",
+ "def execute",
+ "noise_seed",
+ "control_after_generate",
+ "getRestoredWidgetValue",
+ "createWidgetRestorationState",
+ "restoreNamed",
+ "serializeValue",
+ "widgets_values_named",
+ "serialiseWidgetValues",
+ "widget.options?.serialize",
+ "inputs[input.name]",
+ "applyAutogrow",
+ "addAutogrowGroup",
+ "autogrowOrdinalToName",
+ "onConnectionsChange",
+ "getOrderedInputSpecs",
+ "for (const inputSpec of orderedInputSpecs)",
+ "mode === 'fixed'",
+ "beforeQueued",
+ "afterQueued",
+ "applyDynamicInputs",
+ "RESOLUTION",
+ "serialize: false",
+ "fallbackWidgetsValuesNames",
+)
+
+
+def main():
+ old = json.loads((ROOT.parent / "h3-core-reference/sources.json").read_bytes())
+ rows = []
+ for entry in old["sources"]:
+ row = dict(entry)
+ row["local_file"] = "../h3-core-reference/" + row["local_file"]
+ row["reuse"] = (
+ "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ )
+ rows.append(row)
+ existing = {r["id"] for r in rows}
+ for p in sorted(ROOT.glob("*__*")):
+ prefix, _, tail = p.name.partition("__")
+ if prefix not in ("core", "frontend"):
+ continue
+ filename = tail.replace("__", "/")
+ ident = f"{prefix}:{filename}"
+ if ident in existing:
+ # Already references the same full commit original, do not duplicate.
+ continue
+ repo, sha, tag = (
+ ("Comfy-Org/ComfyUI", CORE, "v0.33.0")
+ if prefix == "core"
+ else ("Comfy-Org/ComfyUI_frontend", FRONTEND, "v1.53.10")
+ )
+ lines = p.read_text().splitlines()
+ locations = {
+ f"{anchor}@{i}": [i, min(i + 4, len(lines))]
+ for anchor in ANCHORS
+ for i, line in enumerate(lines, 1)
+ if anchor in line
+ }
+ rows.append(
+ {
+ "id": ident,
+ "repository": f"https://github.com/{repo}",
+ "commit": sha,
+ "tag": tag,
+ "file": filename,
+ "lines": [[1, len(lines)]],
+ "rule_locations": locations,
+ "raw_url": f"https://raw.githubusercontent.com/{repo}/{sha}/{filename}",
+ "url": f"https://github.com/{repo}/blob/{sha}/{filename}",
+ "sha256": hashlib.sha256(p.read_bytes()).hexdigest(),
+ "local_file": p.name,
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ }
+ )
+ identities = []
+ for name, repo, ref, expected, local in (
+ (
+ "core-tag",
+ "Comfy-Org/ComfyUI",
+ "v0.33.0",
+ CORE,
+ "../h3-core-reference/core-tag.json",
+ ),
+ (
+ "frontend-tag",
+ "Comfy-Org/ComfyUI_frontend",
+ "v1.53.10",
+ FRONTEND,
+ "../h3-reference/ComfyUI_frontend-tag.json",
+ ),
+ ):
+ raw = (ROOT / local).read_bytes()
+ data = json.loads(raw)
+ assert data["object"]["sha"] == expected and data["object"]["type"] == "commit"
+ identities.append(
+ {
+ "id": name,
+ "raw_url": f"https://api.github.com/repos/{repo}/git/ref/tags/{ref}",
+ "local_file": local,
+ "sha256": hashlib.sha256(raw).hexdigest(),
+ "ref": f"refs/tags/{ref}",
+ "commit": expected,
+ }
+ )
+ (ROOT / "sources.json").write_text(
+ json.dumps(
+ {
+ "schema_version": 1,
+ "authority": "public_reference_only_not_object_info",
+ "sources": rows,
+ "identity_observations": identities,
+ "target_installation": "unknown",
+ "source_graph_identity": "unknown",
+ "upstream_code_executed": False,
+ },
+ ensure_ascii=False,
+ indent=2,
+ )
+ + "\n"
+ )
+
+
+if __name__ == "__main__":
+ main()
diff --git a/docs/hel-892/h3-chain-reference/sources.json b/docs/hel-892/h3-chain-reference/sources.json
new file mode 100644
index 0000000..29efc61
--- /dev/null
+++ b/docs/hel-892/h3-chain-reference/sources.json
@@ -0,0 +1,3190 @@
+{
+ "schema_version": 1,
+ "authority": "public_reference_only_not_object_info",
+ "sources": [
+ {
+ "id": "frontend:LICENSE",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "LICENSE",
+ "lines": [
+ [
+ 1,
+ 674
+ ]
+ ],
+ "rule_locations": {},
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/LICENSE",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/LICENSE",
+ "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
+ "retrieved_at": "2026-10-29T22:42:08.788824+00:00",
+ "local_file": "../h3-core-reference/../h3-reference/frontend__LICENSE",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:browser_tests/tests/subgraph/subgraphConvertAutogrowInputs.spec.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "browser_tests/tests/subgraph/subgraphConvertAutogrowInputs.spec.ts",
+ "lines": [
+ [
+ 1,
+ 146
+ ]
+ ],
+ "rule_locations": {},
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/browser_tests/tests/subgraph/subgraphConvertAutogrowInputs.spec.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/browser_tests/tests/subgraph/subgraphConvertAutogrowInputs.spec.ts",
+ "sha256": "8c36b92eace5d79aad2178e28e00248e6a54326febcadec9417d9df717668376",
+ "retrieved_at": "2026-10-29T22:42:09.180825+00:00",
+ "local_file": "../h3-core-reference/../h3-reference/frontend__browser_tests__tests__subgraph__subgraphConvertAutogrowInputs.spec.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/core/graph/widgets/dynamicWidgets.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/core/graph/widgets/dynamicWidgets.ts",
+ "lines": [
+ [
+ 1,
+ 710
+ ]
+ ],
+ "rule_locations": {
+ "onConfigure@276": [
+ 276,
+ 280
+ ],
+ "serialize: false@91": [
+ 91,
+ 95
+ ],
+ "getRestoredWidgetValue@149": [
+ 149,
+ 153
+ ],
+ "applyAutogrow@306": [
+ 306,
+ 310
+ ],
+ "applyAutogrow@684": [
+ 684,
+ 688
+ ],
+ "addAutogrowGroup@477": [
+ 477,
+ 481
+ ],
+ "addAutogrowGroup@560": [
+ 560,
+ 564
+ ],
+ "addAutogrowGroup@709": [
+ 709,
+ 710
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/core/graph/widgets/dynamicWidgets.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/core/graph/widgets/dynamicWidgets.ts",
+ "sha256": "57a09e023d1e46313292a230ad0d2b1fa2654038d83eac227b08c65da6865f60",
+ "retrieved_at": "2026-10-29T22:42:09.384825+00:00",
+ "local_file": "../h3-core-reference/../h3-reference/frontend__src__core__graph__widgets__dynamicWidgets.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/extensions/core/previewAny.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/extensions/core/previewAny.ts",
+ "lines": [
+ [
+ 1,
+ 42
+ ]
+ ],
+ "rule_locations": {
+ "onNodeCreated@24": [
+ 24,
+ 28
+ ],
+ "onNodeCreated@25": [
+ 25,
+ 29
+ ],
+ "onNodeCreated@26": [
+ 26,
+ 30
+ ],
+ "registerExtension@16": [
+ 16,
+ 20
+ ],
+ "addTextPreviewWidgets@8": [
+ 8,
+ 12
+ ],
+ "addTextPreviewWidgets@27": [
+ 27,
+ 31
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/extensions/core/previewAny.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/extensions/core/previewAny.ts",
+ "sha256": "da8f4361b054d8619c09b4abaae1c2c464d6c8927968e60f18e61b467d2a3366",
+ "retrieved_at": "2026-10-29T22:42:09.588825+00:00",
+ "local_file": "../h3-core-reference/../h3-reference/frontend__src__extensions__core__previewAny.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/extensions/core/textPreviewWidgets.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/extensions/core/textPreviewWidgets.ts",
+ "lines": [
+ [
+ 1,
+ 85
+ ]
+ ],
+ "rule_locations": {
+ "serialize = false@53": [
+ 53,
+ 57
+ ],
+ "serialize = false@66": [
+ 66,
+ 70
+ ],
+ "serialize = false@67": [
+ 67,
+ 71
+ ],
+ "serialize: false@39": [
+ 39,
+ 43
+ ],
+ "addTextPreviewWidgets@21": [
+ 21,
+ 25
+ ],
+ "preview.serialize@53": [
+ 53,
+ 57
+ ],
+ "modeWidget.serialize@67": [
+ 67,
+ 71
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/extensions/core/textPreviewWidgets.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/extensions/core/textPreviewWidgets.ts",
+ "sha256": "453e4c11c902e84dc9950475f8439d4364d0244bfe370c4b74770b84c2592a75",
+ "retrieved_at": "2026-10-29T22:42:09.796826+00:00",
+ "local_file": "../h3-core-reference/../h3-reference/frontend__src__extensions__core__textPreviewWidgets.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/extensions/core/widgetInputs.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/extensions/core/widgetInputs.ts",
+ "lines": [
+ [
+ 1,
+ 675
+ ]
+ ],
+ "rule_locations": {
+ "control_after_generate@316": [
+ 316,
+ 320
+ ],
+ "onConfigure@613": [
+ 613,
+ 617
+ ],
+ "onConfigure@614": [
+ 614,
+ 618
+ ],
+ "registerExtension@577": [
+ 577,
+ 581
+ ],
+ "getRestoredWidgetValue@278": [
+ 278,
+ 282
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/extensions/core/widgetInputs.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/extensions/core/widgetInputs.ts",
+ "sha256": "27e77900db9568b200be249f0ace4adbbe9cd259671683b4b5438114afc9cfa8",
+ "retrieved_at": "2026-10-29T22:42:10.004826+00:00",
+ "local_file": "../h3-core-reference/../h3-reference/frontend__src__extensions__core__widgetInputs.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/lib/litegraph/src/LGraph.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/lib/litegraph/src/LGraph.ts",
+ "lines": [
+ [
+ 1,
+ 3458
+ ]
+ ],
+ "rule_locations": {
+ "onConfigure@166": [
+ 166,
+ 170
+ ],
+ "onConfigure@667": [
+ 667,
+ 671
+ ],
+ "onConfigure@3076": [
+ 3076,
+ 3080
+ ],
+ "extensionConfigureView@166": [
+ 166,
+ 170
+ ],
+ "extensionConfigureView@3076": [
+ 3076,
+ 3080
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/lib/litegraph/src/LGraph.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/lib/litegraph/src/LGraph.ts",
+ "sha256": "7a99223d5e212b5d6c278b747be8a62bb9ad6b1e93d32be435b8bb8593d339fe",
+ "retrieved_at": "2026-10-29T22:42:10.220826+00:00",
+ "local_file": "../h3-core-reference/../h3-reference/frontend__src__lib__litegraph__src__LGraph.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/lib/litegraph/src/LGraphNode.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/lib/litegraph/src/LGraphNode.ts",
+ "lines": [
+ [
+ 1,
+ 4528
+ ]
+ ],
+ "rule_locations": {
+ "onConfigure@72": [
+ 72,
+ 76
+ ],
+ "onConfigure@293": [
+ 293,
+ 297
+ ],
+ "onConfigure@849": [
+ 849,
+ 853
+ ],
+ "onConfigure@1221": [
+ 1221,
+ 1225
+ ],
+ "onNodeCreated@863": [
+ 863,
+ 867
+ ],
+ "widgets_values_named@185": [
+ 185,
+ 189
+ ],
+ "widgets_values_named@189": [
+ 189,
+ 193
+ ],
+ "widgets_values_named@194": [
+ 194,
+ 198
+ ],
+ "widgets_values_named@1194": [
+ 1194,
+ 1198
+ ],
+ "restoreNamed@206": [
+ 206,
+ 210
+ ],
+ "getRestoredWidgetValue@1201": [
+ 1201,
+ 1205
+ ],
+ "getRestoredWidgetValue@2300": [
+ 2300,
+ 2304
+ ],
+ "serialiseWidgetValues@172": [
+ 172,
+ 176
+ ],
+ "serialiseWidgetValues@1271": [
+ 1271,
+ 1275
+ ],
+ "extensionConfigureView@72": [
+ 72,
+ 76
+ ],
+ "extensionConfigureView@1221": [
+ 1221,
+ 1225
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/lib/litegraph/src/LGraphNode.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/lib/litegraph/src/LGraphNode.ts",
+ "sha256": "7951aec0dac4d5700ef09dd8e54bbbeb97d8c5c9ff1cf3eb98368ce32ff37b03",
+ "retrieved_at": "2026-10-29T22:42:10.444826+00:00",
+ "local_file": "../h3-core-reference/../h3-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/lib/litegraph/src/extensionPersistence.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/lib/litegraph/src/extensionPersistence.ts",
+ "lines": [
+ [
+ 1,
+ 257
+ ]
+ ],
+ "rule_locations": {
+ "onConfigure@249": [
+ 249,
+ 253
+ ],
+ "widgets_values_named@63": [
+ 63,
+ 67
+ ],
+ "extensionConfigureView@249": [
+ 249,
+ 253
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/lib/litegraph/src/extensionPersistence.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/lib/litegraph/src/extensionPersistence.ts",
+ "sha256": "b95de167f8d7de3e777b9448baa45268c1a30ceb07f449146ba6f6f0004ec4c5",
+ "retrieved_at": "2026-10-29T22:42:10.828827+00:00",
+ "local_file": "../h3-core-reference/../h3-reference/frontend__src__lib__litegraph__src__extensionPersistence.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/lib/litegraph/src/litegraph.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/lib/litegraph/src/litegraph.ts",
+ "lines": [
+ [
+ 1,
+ 182
+ ]
+ ],
+ "rule_locations": {},
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/lib/litegraph/src/litegraph.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/lib/litegraph/src/litegraph.ts",
+ "sha256": "ad7ab001707b7438993ce9f7be75bdf579452bb75bfac35aa5a599fcfdf54d3a",
+ "retrieved_at": "2026-10-29T22:42:11.032827+00:00",
+ "local_file": "../h3-core-reference/../h3-reference/frontend__src__lib__litegraph__src__litegraph.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/lib/litegraph/src/subgraph/ExecutableNodeDTO.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/lib/litegraph/src/subgraph/ExecutableNodeDTO.ts",
+ "lines": [
+ [
+ 1,
+ 431
+ ]
+ ],
+ "rule_locations": {},
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/lib/litegraph/src/subgraph/ExecutableNodeDTO.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/lib/litegraph/src/subgraph/ExecutableNodeDTO.ts",
+ "sha256": "0c0ca487822a9f86324925c2fb4ea59c6c032ad5d042a83ac367cb15196454fe",
+ "retrieved_at": "2026-10-29T22:42:11.244827+00:00",
+ "local_file": "../h3-core-reference/../h3-reference/frontend__src__lib__litegraph__src__subgraph__ExecutableNodeDTO.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/lib/litegraph/src/utils/namedValuesShadowDiff.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/lib/litegraph/src/utils/namedValuesShadowDiff.ts",
+ "lines": [
+ [
+ 1,
+ 51
+ ]
+ ],
+ "rule_locations": {},
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/lib/litegraph/src/utils/namedValuesShadowDiff.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/lib/litegraph/src/utils/namedValuesShadowDiff.ts",
+ "sha256": "b5c31e5f10a3a245545bf3db7a40a0fd9221abe95c35665ef0e715043c7e10a9",
+ "retrieved_at": "2026-10-29T22:42:11.448828+00:00",
+ "local_file": "../h3-core-reference/../h3-reference/frontend__src__lib__litegraph__src__utils__namedValuesShadowDiff.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/renderer/extensions/vueNodes/widgets/composables/useBooleanWidget.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/renderer/extensions/vueNodes/widgets/composables/useBooleanWidget.ts",
+ "lines": [
+ [
+ 1,
+ 31
+ ]
+ ],
+ "rule_locations": {},
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/renderer/extensions/vueNodes/widgets/composables/useBooleanWidget.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/renderer/extensions/vueNodes/widgets/composables/useBooleanWidget.ts",
+ "sha256": "36f477f75561e0c7bfc2c6757906724f8ff2c8660ace26759f3f07493877fece",
+ "retrieved_at": "2026-10-29T22:42:11.836828+00:00",
+ "local_file": "../h3-core-reference/../h3-reference/frontend__src__renderer__extensions__vueNodes__widgets__composables__useBooleanWidget.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/renderer/extensions/vueNodes/widgets/composables/useComboWidget.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/renderer/extensions/vueNodes/widgets/composables/useComboWidget.ts",
+ "lines": [
+ [
+ 1,
+ 327
+ ]
+ ],
+ "rule_locations": {
+ "control_after_generate@92": [
+ 92,
+ 96
+ ],
+ "control_after_generate@94": [
+ 94,
+ 98
+ ],
+ "control_after_generate@95": [
+ 95,
+ 99
+ ],
+ "control_after_generate@216": [
+ 216,
+ 220
+ ],
+ "control_after_generate@221": [
+ 221,
+ 225
+ ],
+ "control_after_generate@222": [
+ 222,
+ 226
+ ],
+ "control_after_generate@292": [
+ 292,
+ 296
+ ],
+ "control_after_generate@298": [
+ 298,
+ 302
+ ],
+ "control_after_generate@299": [
+ 299,
+ 303
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/renderer/extensions/vueNodes/widgets/composables/useComboWidget.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/renderer/extensions/vueNodes/widgets/composables/useComboWidget.ts",
+ "sha256": "8c6f99ea29a94a3b51d939b3aa9f1081515e5eb601cc0f7215ccf140e1bbb6e9",
+ "retrieved_at": "2026-10-29T22:42:12.136828+00:00",
+ "local_file": "../h3-core-reference/../h3-reference/frontend__src__renderer__extensions__vueNodes__widgets__composables__useComboWidget.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/renderer/extensions/vueNodes/widgets/composables/useFloatWidget.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/renderer/extensions/vueNodes/widgets/composables/useFloatWidget.ts",
+ "lines": [
+ [
+ 1,
+ 100
+ ]
+ ],
+ "rule_locations": {
+ "control_after_generate@84": [
+ 84,
+ 88
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/renderer/extensions/vueNodes/widgets/composables/useFloatWidget.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/renderer/extensions/vueNodes/widgets/composables/useFloatWidget.ts",
+ "sha256": "8485d1edc17e911e65e38055e704045245f2de8310a54b87d429e7ed111accef",
+ "retrieved_at": "2026-10-29T22:42:12.336829+00:00",
+ "local_file": "../h3-core-reference/../h3-reference/frontend__src__renderer__extensions__vueNodes__widgets__composables__useFloatWidget.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/renderer/extensions/vueNodes/widgets/composables/useIntWidget.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/renderer/extensions/vueNodes/widgets/composables/useIntWidget.ts",
+ "lines": [
+ [
+ 1,
+ 93
+ ]
+ ],
+ "rule_locations": {
+ "control_after_generate@71": [
+ 71,
+ 75
+ ],
+ "control_after_generate@76": [
+ 76,
+ 80
+ ],
+ "control_after_generate@77": [
+ 77,
+ 81
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/renderer/extensions/vueNodes/widgets/composables/useIntWidget.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/renderer/extensions/vueNodes/widgets/composables/useIntWidget.ts",
+ "sha256": "8720d5a8194c9987eddbb42d0e925bcbb20e96e94f52c5f21750ba90b2113e02",
+ "retrieved_at": "2026-10-29T22:42:12.532829+00:00",
+ "local_file": "../h3-core-reference/../h3-reference/frontend__src__renderer__extensions__vueNodes__widgets__composables__useIntWidget.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/renderer/extensions/vueNodes/widgets/composables/useStringWidget.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/renderer/extensions/vueNodes/widgets/composables/useStringWidget.ts",
+ "lines": [
+ [
+ 1,
+ 102
+ ]
+ ],
+ "rule_locations": {},
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/renderer/extensions/vueNodes/widgets/composables/useStringWidget.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/renderer/extensions/vueNodes/widgets/composables/useStringWidget.ts",
+ "sha256": "7a463ecb0a34f6b7aa59ac6b81fb92a253c5681f88f0bec1c9c2accaa013d505",
+ "retrieved_at": "2026-10-29T22:42:12.732829+00:00",
+ "local_file": "../h3-core-reference/../h3-reference/frontend__src__renderer__extensions__vueNodes__widgets__composables__useStringWidget.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/scripts/app.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/scripts/app.ts",
+ "lines": [
+ [
+ 1,
+ 2602
+ ]
+ ],
+ "rule_locations": {
+ "control_after_generate@1500": [
+ 1500,
+ 1504
+ ],
+ "onConfigure@934": [
+ 934,
+ 938
+ ],
+ "onConfigure@935": [
+ 935,
+ 939
+ ],
+ "onConfigure@936": [
+ 936,
+ 940
+ ],
+ "onConfigure@939": [
+ 939,
+ 943
+ ],
+ "onConfigure@941": [
+ 941,
+ 945
+ ],
+ "onNodeCreated@741": [
+ 741,
+ 745
+ ],
+ "onNodeCreated@2010": [
+ 2010,
+ 2014
+ ],
+ "onNodeCreated@2033": [
+ 2033,
+ 2037
+ ],
+ "onNodeCreated@2039": [
+ 2039,
+ 2043
+ ],
+ "registerExtension@2436": [
+ 2436,
+ 2440
+ ],
+ "registerExtension@2437": [
+ 2437,
+ 2441
+ ],
+ "widgets_values_named@2345": [
+ 2345,
+ 2349
+ ],
+ "beforeQueued@1758": [
+ 1758,
+ 1762
+ ],
+ "beforeQueued@1760": [
+ 1760,
+ 1764
+ ],
+ "afterQueued@1970": [
+ 1970,
+ 1974
+ ],
+ "afterQueued@1974": [
+ 1974,
+ 1978
+ ],
+ "Promise.all@1182": [
+ 1182,
+ 1186
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/scripts/app.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/scripts/app.ts",
+ "sha256": "ba650ea75b14affbdd1fbf4d821679d29dde59bd09986666a4734c8a160f7027",
+ "retrieved_at": "2026-10-29T22:42:13.096830+00:00",
+ "local_file": "../h3-core-reference/../h3-reference/frontend__src__scripts__app.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/scripts/valueControl.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/scripts/valueControl.ts",
+ "lines": [
+ [
+ 1,
+ 158
+ ]
+ ],
+ "rule_locations": {
+ "beforeQueued@43": [
+ 43,
+ 47
+ ],
+ "afterQueued@44": [
+ 44,
+ 48
+ ],
+ "mode === 'fixed'@76": [
+ 76,
+ 80
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/scripts/valueControl.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/scripts/valueControl.ts",
+ "sha256": "007c7204d1fe88d156e07fee783a55e79fa7610e98a8a9f7761704a076a60458",
+ "retrieved_at": "2026-10-29T22:42:13.284830+00:00",
+ "local_file": "../h3-core-reference/../h3-reference/frontend__src__scripts__valueControl.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/scripts/widgets.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/scripts/widgets.ts",
+ "lines": [
+ [
+ 1,
+ 256
+ ]
+ ],
+ "rule_locations": {
+ "control_after_generate@85": [
+ 85,
+ 89
+ ],
+ "control_after_generate@99": [
+ 99,
+ 103
+ ],
+ "control_after_generate@140": [
+ 140,
+ 144
+ ],
+ "serialize: false@145": [
+ 145,
+ 149
+ ],
+ "serialize: false@172": [
+ 172,
+ 176
+ ],
+ "beforeQueued@206": [
+ 206,
+ 210
+ ],
+ "afterQueued@216": [
+ 216,
+ 220
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/scripts/widgets.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/scripts/widgets.ts",
+ "sha256": "932a143a1a48c93aa3bee43b6dc3f932cd7f9a946802530650b4acdd41d36bd5",
+ "retrieved_at": "2026-10-29T22:42:13.480830+00:00",
+ "local_file": "../h3-core-reference/../h3-reference/frontend__src__scripts__widgets.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/services/extensionService.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/services/extensionService.ts",
+ "lines": [
+ [
+ 1,
+ 259
+ ]
+ ],
+ "rule_locations": {
+ "registerExtension@74": [
+ 74,
+ 78
+ ],
+ "registerExtension@75": [
+ 75,
+ 79
+ ],
+ "registerExtension@88": [
+ 88,
+ 92
+ ],
+ "registerExtension@255": [
+ 255,
+ 259
+ ],
+ "Promise.all@55": [
+ 55,
+ 59
+ ],
+ "Promise.all@213": [
+ 213,
+ 217
+ ],
+ "import('../extensions/core/index')@53": [
+ 53,
+ 57
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/services/extensionService.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/services/extensionService.ts",
+ "sha256": "48997cd9726608e5483e44f4c1e9b7ce7183839deeb8393b861b7d631a43ff61",
+ "retrieved_at": "2026-10-29T22:42:13.672830+00:00",
+ "local_file": "../h3-core-reference/../h3-reference/frontend__src__services__extensionService.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/services/litegraphService.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/services/litegraphService.ts",
+ "lines": [
+ [
+ 1,
+ 1030
+ ]
+ ],
+ "rule_locations": {
+ "migrateWidgetsValues@82": [
+ 82,
+ 86
+ ],
+ "migrateWidgetsValues@509": [
+ 509,
+ 513
+ ],
+ "migrateWidgetsValues@616": [
+ 616,
+ 620
+ ],
+ "for (const inputSpec of orderedInputSpecs)@362": [
+ 362,
+ 366
+ ],
+ "for (const inputSpec of orderedInputSpecs)@363": [
+ 363,
+ 367
+ ],
+ "getOrderedInputSpecs@84": [
+ 84,
+ 88
+ ],
+ "getOrderedInputSpecs@359": [
+ 359,
+ 363
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/services/litegraphService.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/services/litegraphService.ts",
+ "sha256": "84ffdeae56bc73065fd2a44ae924b6ab4fd48bb7e79a710210e858cce508784e",
+ "retrieved_at": "2026-10-29T22:42:13.876831+00:00",
+ "local_file": "../h3-core-reference/../h3-reference/frontend__src__services__litegraphService.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/stores/extensionStore.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/stores/extensionStore.ts",
+ "lines": [
+ [
+ 1,
+ 114
+ ]
+ ],
+ "rule_locations": {
+ "registerExtension@58": [
+ 58,
+ 62
+ ],
+ "registerExtension@108": [
+ 108,
+ 112
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/stores/extensionStore.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/stores/extensionStore.ts",
+ "sha256": "9cd3261e0417d5334efa69a77266c6fdb1c53fb7f923a68457a65e47133af1a3",
+ "retrieved_at": "2026-10-29T22:42:14.068831+00:00",
+ "local_file": "../h3-core-reference/../h3-reference/frontend__src__stores__extensionStore.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/stores/widgetValueStore.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/stores/widgetValueStore.ts",
+ "lines": [
+ [
+ 1,
+ 465
+ ]
+ ],
+ "rule_locations": {
+ "restoreNamed@24": [
+ 24,
+ 28
+ ],
+ "restoreNamed@83": [
+ 83,
+ 87
+ ],
+ "getRestoredWidgetValue@75": [
+ 75,
+ 79
+ ],
+ "getRestoredWidgetValue@448": [
+ 448,
+ 452
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/stores/widgetValueStore.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/stores/widgetValueStore.ts",
+ "sha256": "ecf18bbc714070a7e67a00599ae09b711d1b6eebf5675dd7a6d56ef6d3a3e40a",
+ "retrieved_at": "2026-10-29T22:42:14.260831+00:00",
+ "local_file": "../h3-core-reference/../h3-reference/frontend__src__stores__widgetValueStore.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/utils/executionUtil.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/utils/executionUtil.ts",
+ "lines": [
+ [
+ 1,
+ 192
+ ]
+ ],
+ "rule_locations": {
+ "serializeValue@134": [
+ 134,
+ 138
+ ],
+ "serializeValue@135": [
+ 135,
+ 139
+ ],
+ "widget.options?.serialize@132": [
+ 132,
+ 136
+ ],
+ "inputs[input.name] =@159": [
+ 159,
+ 163
+ ],
+ "inputs[input.name] =@163": [
+ 163,
+ 167
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/utils/executionUtil.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/utils/executionUtil.ts",
+ "sha256": "b29fd312e66c7415fa4c720654ac121dc67600b0c1fedf079b6575a174960698",
+ "retrieved_at": "2026-10-29T22:42:14.456831+00:00",
+ "local_file": "../h3-core-reference/../h3-reference/frontend__src__utils__executionUtil.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/utils/litegraphUtil.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/utils/litegraphUtil.ts",
+ "lines": [
+ [
+ 1,
+ 389
+ ]
+ ],
+ "rule_locations": {
+ "control_after_generate@210": [
+ 210,
+ 214
+ ],
+ "migrateWidgetsValues@199": [
+ 199,
+ 203
+ ],
+ "beforeQueued@178": [
+ 178,
+ 182
+ ],
+ "afterQueued@178": [
+ 178,
+ 182
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/utils/litegraphUtil.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/utils/litegraphUtil.ts",
+ "sha256": "a53156165b73ab9f35435f2c5041b004cd8529602f4a54831bc74b86ac889dea",
+ "retrieved_at": "2026-10-29T22:42:14.836832+00:00",
+ "local_file": "../h3-core-reference/../h3-reference/frontend__src__utils__litegraphUtil.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/workbench/utils/nodeDefOrderingUtil.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/workbench/utils/nodeDefOrderingUtil.ts",
+ "lines": [
+ [
+ 1,
+ 108
+ ]
+ ],
+ "rule_locations": {
+ "getOrderedInputSpecs@13": [
+ 13,
+ 17
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/workbench/utils/nodeDefOrderingUtil.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/workbench/utils/nodeDefOrderingUtil.ts",
+ "sha256": "27e98379fef3cb7158b2968d1b920ff16db662e4e0c5252ed62c7c7edc6f2227",
+ "retrieved_at": "2026-10-29T22:42:15.268832+00:00",
+ "local_file": "../h3-core-reference/../h3-reference/frontend__src__workbench__utils__nodeDefOrderingUtil.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "core:LICENSE",
+ "repository": "https://github.com/Comfy-Org/ComfyUI",
+ "commit": "2f35f4a08176d993cded35dac3332be4f7287f41",
+ "tag": "v0.33.0",
+ "file": "LICENSE",
+ "lines": [
+ [
+ 1,
+ 674
+ ]
+ ],
+ "rule_locations": {},
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2f35f4a08176d993cded35dac3332be4f7287f41/LICENSE",
+ "url": "https://github.com/Comfy-Org/ComfyUI/blob/2f35f4a08176d993cded35dac3332be4f7287f41/LICENSE",
+ "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
+ "local_file": "../h3-core-reference/core__LICENSE",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "core:comfy/samplers.py",
+ "repository": "https://github.com/Comfy-Org/ComfyUI",
+ "commit": "2f35f4a08176d993cded35dac3332be4f7287f41",
+ "tag": "v0.33.0",
+ "file": "comfy/samplers.py",
+ "lines": [
+ [
+ 1,
+ 1463
+ ]
+ ],
+ "rule_locations": {
+ "SCHEDULER_HANDLERS =@1365": [
+ 1365,
+ 1369
+ ],
+ "SCHEDULER_NAMES =@1376": [
+ 1376,
+ 1380
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2f35f4a08176d993cded35dac3332be4f7287f41/comfy/samplers.py",
+ "url": "https://github.com/Comfy-Org/ComfyUI/blob/2f35f4a08176d993cded35dac3332be4f7287f41/comfy/samplers.py",
+ "sha256": "69498999dd1198c05fa64fa2a7b7090d21090c470d2304191e483a0543fcefd2",
+ "local_file": "../h3-core-reference/core__comfy__samplers.py",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "core:comfy_api/latest/_io.py",
+ "repository": "https://github.com/Comfy-Org/ComfyUI",
+ "commit": "2f35f4a08176d993cded35dac3332be4f7287f41",
+ "tag": "v0.33.0",
+ "file": "comfy_api/latest/_io.py",
+ "lines": [
+ [
+ 1,
+ 2497
+ ]
+ ],
+ "rule_locations": {
+ "class Float@294": [
+ 294,
+ 298
+ ],
+ "def define_schema@1925": [
+ 1925,
+ 1929
+ ],
+ "def define_schema@2238": [
+ 2238,
+ 2242
+ ],
+ "class MultiType@958": [
+ 958,
+ 962
+ ],
+ "class Autogrow@1083": [
+ 1083,
+ 1087
+ ],
+ "class TemplateNames@1136": [
+ 1136,
+ 1140
+ ],
+ "def as_dict@63": [
+ 63,
+ 67
+ ],
+ "def as_dict@175": [
+ 175,
+ 179
+ ],
+ "def as_dict@204": [
+ 204,
+ 208
+ ],
+ "def as_dict@224": [
+ 224,
+ 228
+ ],
+ "def as_dict@261": [
+ 261,
+ 265
+ ],
+ "def as_dict@284": [
+ 284,
+ 288
+ ],
+ "def as_dict@312": [
+ 312,
+ 316
+ ],
+ "def as_dict@337": [
+ 337,
+ 341
+ ],
+ "def as_dict@381": [
+ 381,
+ 385
+ ],
+ "def as_dict@410": [
+ 410,
+ 414
+ ],
+ "def as_dict@1000": [
+ 1000,
+ 1004
+ ],
+ "def as_dict@1023": [
+ 1023,
+ 1027
+ ],
+ "def as_dict@1035": [
+ 1035,
+ 1039
+ ],
+ "def as_dict@1048": [
+ 1048,
+ 1052
+ ],
+ "def as_dict@1109": [
+ 1109,
+ 1113
+ ],
+ "def as_dict@1129": [
+ 1129,
+ 1133
+ ],
+ "def as_dict@1144": [
+ 1144,
+ 1148
+ ],
+ "def as_dict@1156": [
+ 1156,
+ 1160
+ ],
+ "def as_dict@1228": [
+ 1228,
+ 1232
+ ],
+ "def as_dict@1243": [
+ 1243,
+ 1247
+ ],
+ "def as_dict@1297": [
+ 1297,
+ 1301
+ ],
+ "def as_dict@1328": [
+ 1328,
+ 1332
+ ],
+ "def as_dict@1342": [
+ 1342,
+ 1346
+ ],
+ "def as_dict@1376": [
+ 1376,
+ 1380
+ ],
+ "def as_dict@1398": [
+ 1398,
+ 1402
+ ],
+ "def as_dict@1451": [
+ 1451,
+ 1455
+ ],
+ "def as_dict@1592": [
+ 1592,
+ 1596
+ ],
+ "def as_dict@1634": [
+ 1634,
+ 1638
+ ],
+ "def as_dict@2319": [
+ 2319,
+ 2323
+ ],
+ "def as_dict@2374": [
+ 2374,
+ 2378
+ ],
+ "def _expand_schema_for_dynamic@1168": [
+ 1168,
+ 1172
+ ],
+ "def _expand_schema_for_dynamic@1255": [
+ 1255,
+ 1259
+ ],
+ "def _expand_schema_for_dynamic@1310": [
+ 1310,
+ 1314
+ ],
+ "node_id@1646": [
+ 1646,
+ 1650
+ ],
+ "node_id@1805": [
+ 1805,
+ 1809
+ ],
+ "node_id@2352": [
+ 2352,
+ 2356
+ ],
+ "node_id@2353": [
+ 2353,
+ 2357
+ ],
+ "node_id@2362": [
+ 2362,
+ 2366
+ ],
+ "node_id@2363": [
+ 2363,
+ 2367
+ ],
+ "node_id@2368": [
+ 2368,
+ 2372
+ ],
+ "node_id@2369": [
+ 2369,
+ 2373
+ ],
+ "node_id@2377": [
+ 2377,
+ 2381
+ ],
+ "node_id@2378": [
+ 2378,
+ 2382
+ ],
+ "def execute@1931": [
+ 1931,
+ 1935
+ ],
+ "def execute@2244": [
+ 2244,
+ 2248
+ ],
+ "control_after_generate@274": [
+ 274,
+ 278
+ ],
+ "control_after_generate@280": [
+ 280,
+ 284
+ ],
+ "control_after_generate@289": [
+ 289,
+ 293
+ ],
+ "control_after_generate@359": [
+ 359,
+ 363
+ ],
+ "control_after_generate@375": [
+ 375,
+ 379
+ ],
+ "control_after_generate@385": [
+ 385,
+ 389
+ ],
+ "control_after_generate@402": [
+ 402,
+ 406
+ ],
+ "control_after_generate@404": [
+ 404,
+ 408
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2f35f4a08176d993cded35dac3332be4f7287f41/comfy_api/latest/_io.py",
+ "url": "https://github.com/Comfy-Org/ComfyUI/blob/2f35f4a08176d993cded35dac3332be4f7287f41/comfy_api/latest/_io.py",
+ "sha256": "495aefa059aad4eed4181aa7fbb415679d3f269651e9fc6f542bdac1b99dd40f",
+ "local_file": "../h3-core-reference/core__comfy_api__latest___io.py",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "core:comfy_extras/nodes_custom_sampler.py",
+ "repository": "https://github.com/Comfy-Org/ComfyUI",
+ "commit": "2f35f4a08176d993cded35dac3332be4f7287f41",
+ "tag": "v0.33.0",
+ "file": "comfy_extras/nodes_custom_sampler.py",
+ "lines": [
+ [
+ 1,
+ 1232
+ ]
+ ],
+ "rule_locations": {
+ "class RandomNoise@1003": [
+ 1003,
+ 1007
+ ],
+ "class BasicScheduler@17": [
+ 17,
+ 21
+ ],
+ "def define_schema@19": [
+ 19,
+ 23
+ ],
+ "def define_schema@49": [
+ 49,
+ 53
+ ],
+ "def define_schema@71": [
+ 71,
+ 75
+ ],
+ "def define_schema@92": [
+ 92,
+ 96
+ ],
+ "def define_schema@114": [
+ 114,
+ 118
+ ],
+ "def define_schema@138": [
+ 138,
+ 142
+ ],
+ "def define_schema@162": [
+ 162,
+ 166
+ ],
+ "def define_schema@184": [
+ 184,
+ 188
+ ],
+ "def define_schema@206": [
+ 206,
+ 210
+ ],
+ "def define_schema@230": [
+ 230,
+ 234
+ ],
+ "def define_schema@256": [
+ 256,
+ 260
+ ],
+ "def define_schema@278": [
+ 278,
+ 282
+ ],
+ "def define_schema@299": [
+ 299,
+ 303
+ ],
+ "def define_schema@353": [
+ 353,
+ 357
+ ],
+ "def define_schema@381": [
+ 381,
+ 385
+ ],
+ "def define_schema@398": [
+ 398,
+ 402
+ ],
+ "def define_schema@423": [
+ 423,
+ 427
+ ],
+ "def define_schema@450": [
+ 450,
+ 454
+ ],
+ "def define_schema@476": [
+ 476,
+ 480
+ ],
+ "def define_schema@496": [
+ 496,
+ 500
+ ],
+ "def define_schema@516": [
+ 516,
+ 520
+ ],
+ "def define_schema@539": [
+ 539,
+ 543
+ ],
+ "def define_schema@556": [
+ 556,
+ 560
+ ],
+ "def define_schema@587": [
+ 587,
+ 591
+ ],
+ "def define_schema@638": [
+ 638,
+ 642
+ ],
+ "def define_schema@683": [
+ 683,
+ 687
+ ],
+ "def define_schema@735": [
+ 735,
+ 739
+ ],
+ "def define_schema@803": [
+ 803,
+ 807
+ ],
+ "def define_schema@825": [
+ 825,
+ 829
+ ],
+ "def define_schema@879": [
+ 879,
+ 883
+ ],
+ "def define_schema@957": [
+ 957,
+ 961
+ ],
+ "def define_schema@987": [
+ 987,
+ 991
+ ],
+ "def define_schema@1005": [
+ 1005,
+ 1009
+ ],
+ "def define_schema@1022": [
+ 1022,
+ 1026
+ ],
+ "def define_schema@1078": [
+ 1078,
+ 1082
+ ],
+ "def define_schema@1127": [
+ 1127,
+ 1131
+ ],
+ "def define_schema@1148": [
+ 1148,
+ 1152
+ ],
+ "async def get_node_list@1189": [
+ 1189,
+ 1193
+ ],
+ "async def comfy_entrypoint@1231": [
+ 1231,
+ 1232
+ ],
+ "node_id@21": [
+ 21,
+ 25
+ ],
+ "node_id@51": [
+ 51,
+ 55
+ ],
+ "node_id@73": [
+ 73,
+ 77
+ ],
+ "node_id@94": [
+ 94,
+ 98
+ ],
+ "node_id@116": [
+ 116,
+ 120
+ ],
+ "node_id@140": [
+ 140,
+ 144
+ ],
+ "node_id@164": [
+ 164,
+ 168
+ ],
+ "node_id@186": [
+ 186,
+ 190
+ ],
+ "node_id@208": [
+ 208,
+ 212
+ ],
+ "node_id@232": [
+ 232,
+ 236
+ ],
+ "node_id@258": [
+ 258,
+ 262
+ ],
+ "node_id@280": [
+ 280,
+ 284
+ ],
+ "node_id@301": [
+ 301,
+ 305
+ ],
+ "node_id@355": [
+ 355,
+ 359
+ ],
+ "node_id@383": [
+ 383,
+ 387
+ ],
+ "node_id@400": [
+ 400,
+ 404
+ ],
+ "node_id@425": [
+ 425,
+ 429
+ ],
+ "node_id@452": [
+ 452,
+ 456
+ ],
+ "node_id@478": [
+ 478,
+ 482
+ ],
+ "node_id@498": [
+ 498,
+ 502
+ ],
+ "node_id@518": [
+ 518,
+ 522
+ ],
+ "node_id@541": [
+ 541,
+ 545
+ ],
+ "node_id@558": [
+ 558,
+ 562
+ ],
+ "node_id@589": [
+ 589,
+ 593
+ ],
+ "node_id@640": [
+ 640,
+ 644
+ ],
+ "node_id@685": [
+ 685,
+ 689
+ ],
+ "node_id@737": [
+ 737,
+ 741
+ ],
+ "node_id@805": [
+ 805,
+ 809
+ ],
+ "node_id@827": [
+ 827,
+ 831
+ ],
+ "node_id@881": [
+ 881,
+ 885
+ ],
+ "node_id@959": [
+ 959,
+ 963
+ ],
+ "node_id@989": [
+ 989,
+ 993
+ ],
+ "node_id@1007": [
+ 1007,
+ 1011
+ ],
+ "node_id@1024": [
+ 1024,
+ 1028
+ ],
+ "node_id@1080": [
+ 1080,
+ 1084
+ ],
+ "node_id@1129": [
+ 1129,
+ 1133
+ ],
+ "node_id@1150": [
+ 1150,
+ 1154
+ ],
+ "def execute@33": [
+ 33,
+ 37
+ ],
+ "def execute@63": [
+ 63,
+ 67
+ ],
+ "def execute@84": [
+ 84,
+ 88
+ ],
+ "def execute@106": [
+ 106,
+ 110
+ ],
+ "def execute@129": [
+ 129,
+ 133
+ ],
+ "def execute@151": [
+ 151,
+ 155
+ ],
+ "def execute@176": [
+ 176,
+ 180
+ ],
+ "def execute@198": [
+ 198,
+ 202
+ ],
+ "def execute@221": [
+ 221,
+ 225
+ ],
+ "def execute@245": [
+ 245,
+ 249
+ ],
+ "def execute@265": [
+ 265,
+ 269
+ ],
+ "def execute@290": [
+ 290,
+ 294
+ ],
+ "def execute@315": [
+ 315,
+ 319
+ ],
+ "def execute@366": [
+ 366,
+ 370
+ ],
+ "def execute@390": [
+ 390,
+ 394
+ ],
+ "def execute@411": [
+ 411,
+ 415
+ ],
+ "def execute@437": [
+ 437,
+ 441
+ ],
+ "def execute@464": [
+ 464,
+ 468
+ ],
+ "def execute@488": [
+ 488,
+ 492
+ ],
+ "def execute@508": [
+ 508,
+ 512
+ ],
+ "def execute@529": [
+ 529,
+ 533
+ ],
+ "def execute@548": [
+ 548,
+ 552
+ ],
+ "def execute@576": [
+ 576,
+ 580
+ ],
+ "def execute@601": [
+ 601,
+ 605
+ ],
+ "def execute@658": [
+ 658,
+ 662
+ ],
+ "def execute@707": [
+ 707,
+ 711
+ ],
+ "def execute@757": [
+ 757,
+ 761
+ ],
+ "def execute@816": [
+ 816,
+ 820
+ ],
+ "def execute@840": [
+ 840,
+ 844
+ ],
+ "def execute@898": [
+ 898,
+ 902
+ ],
+ "def execute@974": [
+ 974,
+ 978
+ ],
+ "def execute@997": [
+ 997,
+ 1001
+ ],
+ "def execute@1014": [
+ 1014,
+ 1018
+ ],
+ "def execute@1040": [
+ 1040,
+ 1044
+ ],
+ "def execute@1095": [
+ 1095,
+ 1099
+ ],
+ "def execute@1140": [
+ 1140,
+ 1144
+ ],
+ "def execute@1165": [
+ 1165,
+ 1169
+ ],
+ "noise_seed@742": [
+ 742,
+ 746
+ ],
+ "noise_seed@757": [
+ 757,
+ 761
+ ],
+ "noise_seed@767": [
+ 767,
+ 771
+ ],
+ "noise_seed@777": [
+ 777,
+ 781
+ ],
+ "noise_seed@1009": [
+ 1009,
+ 1013
+ ],
+ "noise_seed@1014": [
+ 1014,
+ 1018
+ ],
+ "noise_seed@1015": [
+ 1015,
+ 1019
+ ],
+ "control_after_generate@742": [
+ 742,
+ 746
+ ],
+ "control_after_generate@1009": [
+ 1009,
+ 1013
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2f35f4a08176d993cded35dac3332be4f7287f41/comfy_extras/nodes_custom_sampler.py",
+ "url": "https://github.com/Comfy-Org/ComfyUI/blob/2f35f4a08176d993cded35dac3332be4f7287f41/comfy_extras/nodes_custom_sampler.py",
+ "sha256": "b0ba1521c72475e06fed15db004274ed7c8bb2bf73f1d58849faf6f9f9d264fe",
+ "local_file": "../h3-core-reference/core__comfy_extras__nodes_custom_sampler.py",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "core:comfy_extras/nodes_math.py",
+ "repository": "https://github.com/Comfy-Org/ComfyUI",
+ "commit": "2f35f4a08176d993cded35dac3332be4f7287f41",
+ "tag": "v0.33.0",
+ "file": "comfy_extras/nodes_math.py",
+ "lines": [
+ [
+ 1,
+ 126
+ ]
+ ],
+ "rule_locations": {
+ "class MathExpressionNode@59": [
+ 59,
+ 63
+ ],
+ "def define_schema@63": [
+ 63,
+ 67
+ ],
+ "async def get_node_list@121": [
+ 121,
+ 125
+ ],
+ "async def comfy_entrypoint@125": [
+ 125,
+ 126
+ ],
+ "node_id@70": [
+ 70,
+ 74
+ ],
+ "def execute@89": [
+ 89,
+ 93
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2f35f4a08176d993cded35dac3332be4f7287f41/comfy_extras/nodes_math.py",
+ "url": "https://github.com/Comfy-Org/ComfyUI/blob/2f35f4a08176d993cded35dac3332be4f7287f41/comfy_extras/nodes_math.py",
+ "sha256": "b117db3e5eadf7e1689a7a2edaad9436bb6282ab3d57865ec2cd78004de9fb88",
+ "local_file": "../h3-core-reference/core__comfy_extras__nodes_math.py",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "core:comfy_extras/nodes_primitive.py",
+ "repository": "https://github.com/Comfy-Org/ComfyUI",
+ "commit": "2f35f4a08176d993cded35dac3332be4f7287f41",
+ "tag": "v0.33.0",
+ "file": "comfy_extras/nodes_primitive.py",
+ "lines": [
+ [
+ 1,
+ 108
+ ]
+ ],
+ "rule_locations": {
+ "class StringMultiline@24": [
+ 24,
+ 28
+ ],
+ "class Float@60": [
+ 60,
+ 64
+ ],
+ "def define_schema@9": [
+ 9,
+ 13
+ ],
+ "def define_schema@26": [
+ 26,
+ 30
+ ],
+ "def define_schema@44": [
+ 44,
+ 48
+ ],
+ "def define_schema@62": [
+ 62,
+ 66
+ ],
+ "def define_schema@80": [
+ 80,
+ 84
+ ],
+ "async def get_node_list@98": [
+ 98,
+ 102
+ ],
+ "async def comfy_entrypoint@107": [
+ 107,
+ 108
+ ],
+ "node_id@11": [
+ 11,
+ 15
+ ],
+ "node_id@28": [
+ 28,
+ 32
+ ],
+ "node_id@46": [
+ 46,
+ 50
+ ],
+ "node_id@64": [
+ 64,
+ 68
+ ],
+ "node_id@82": [
+ 82,
+ 86
+ ],
+ "def execute@20": [
+ 20,
+ 24
+ ],
+ "def execute@38": [
+ 38,
+ 42
+ ],
+ "def execute@56": [
+ 56,
+ 60
+ ],
+ "def execute@74": [
+ 74,
+ 78
+ ],
+ "def execute@92": [
+ 92,
+ 96
+ ],
+ "control_after_generate@50": [
+ 50,
+ 54
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2f35f4a08176d993cded35dac3332be4f7287f41/comfy_extras/nodes_primitive.py",
+ "url": "https://github.com/Comfy-Org/ComfyUI/blob/2f35f4a08176d993cded35dac3332be4f7287f41/comfy_extras/nodes_primitive.py",
+ "sha256": "ee3882214ebdd0d20c8061691075cebb1642c303e162f6d22ae525d75aa59b2d",
+ "local_file": "../h3-core-reference/core__comfy_extras__nodes_primitive.py",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "core:comfy_extras/nodes_resolution.py",
+ "repository": "https://github.com/Comfy-Org/ComfyUI",
+ "commit": "2f35f4a08176d993cded35dac3332be4f7287f41",
+ "tag": "v0.33.0",
+ "file": "comfy_extras/nodes_resolution.py",
+ "lines": [
+ [
+ 1,
+ 94
+ ]
+ ],
+ "rule_locations": {
+ "class ResolutionSelector@30": [
+ 30,
+ 34
+ ],
+ "class AspectRatio@7": [
+ 7,
+ 11
+ ],
+ "def define_schema@34": [
+ 34,
+ 38
+ ],
+ "async def get_node_list@87": [
+ 87,
+ 91
+ ],
+ "async def comfy_entrypoint@93": [
+ 93,
+ 94
+ ],
+ "node_id@36": [
+ 36,
+ 40
+ ],
+ "def execute@76": [
+ 76,
+ 80
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2f35f4a08176d993cded35dac3332be4f7287f41/comfy_extras/nodes_resolution.py",
+ "url": "https://github.com/Comfy-Org/ComfyUI/blob/2f35f4a08176d993cded35dac3332be4f7287f41/comfy_extras/nodes_resolution.py",
+ "sha256": "2c6ca2d3d91a7f2945642729233ab015983a574d53a50a91caff60aa9b950090",
+ "local_file": "../h3-core-reference/core__comfy_extras__nodes_resolution.py",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "core:nodes.py",
+ "repository": "https://github.com/Comfy-Org/ComfyUI",
+ "commit": "2f35f4a08176d993cded35dac3332be4f7287f41",
+ "tag": "v0.33.0",
+ "file": "nodes.py",
+ "lines": [
+ [
+ 1,
+ 2595
+ ]
+ ],
+ "rule_locations": {
+ "node_id@2322": [
+ 2322,
+ 2326
+ ],
+ "node_id@2323": [
+ 2323,
+ 2327
+ ],
+ "node_id@2326": [
+ 2326,
+ 2330
+ ],
+ "get_node_list()@2315": [
+ 2315,
+ 2319
+ ],
+ "schema.node_id@2322": [
+ 2322,
+ 2326
+ ],
+ "schema.node_id@2323": [
+ 2323,
+ 2327
+ ],
+ "schema.node_id@2326": [
+ 2326,
+ 2330
+ ],
+ "nodes_primitive.py@2468": [
+ 2468,
+ 2472
+ ],
+ "nodes_resolution.py@2493": [
+ 2493,
+ 2497
+ ],
+ "nodes_math.py@2509": [
+ 2509,
+ 2513
+ ],
+ "nodes_custom_sampler.py@2413": [
+ 2413,
+ 2417
+ ],
+ "noise_seed@1631": [
+ 1631,
+ 1635
+ ],
+ "noise_seed@1650": [
+ 1650,
+ 1654
+ ],
+ "noise_seed@1657": [
+ 1657,
+ 1661
+ ],
+ "control_after_generate@1602": [
+ 1602,
+ 1606
+ ],
+ "control_after_generate@1631": [
+ 1631,
+ 1635
+ ],
+ "RESOLUTION@54": [
+ 54,
+ 58
+ ],
+ "RESOLUTION@191": [
+ 191,
+ 195
+ ],
+ "RESOLUTION@192": [
+ 192,
+ 196
+ ],
+ "RESOLUTION@193": [
+ 193,
+ 197
+ ],
+ "RESOLUTION@194": [
+ 194,
+ 198
+ ],
+ "RESOLUTION@1221": [
+ 1221,
+ 1225
+ ],
+ "RESOLUTION@1222": [
+ 1222,
+ 1226
+ ],
+ "RESOLUTION@1223": [
+ 1223,
+ 1227
+ ],
+ "RESOLUTION@1224": [
+ 1224,
+ 1228
+ ],
+ "RESOLUTION@1250": [
+ 1250,
+ 1254
+ ],
+ "RESOLUTION@1251": [
+ 1251,
+ 1255
+ ],
+ "RESOLUTION@1274": [
+ 1274,
+ 1278
+ ],
+ "RESOLUTION@1341": [
+ 1341,
+ 1345
+ ],
+ "RESOLUTION@1342": [
+ 1342,
+ 1346
+ ],
+ "RESOLUTION@1442": [
+ 1442,
+ 1446
+ ],
+ "RESOLUTION@1443": [
+ 1443,
+ 1447
+ ],
+ "RESOLUTION@1444": [
+ 1444,
+ 1448
+ ],
+ "RESOLUTION@1528": [
+ 1528,
+ 1532
+ ],
+ "RESOLUTION@1529": [
+ 1529,
+ 1533
+ ],
+ "RESOLUTION@1530": [
+ 1530,
+ 1534
+ ],
+ "RESOLUTION@1531": [
+ 1531,
+ 1535
+ ],
+ "RESOLUTION@1889": [
+ 1889,
+ 1893
+ ],
+ "RESOLUTION@1890": [
+ 1890,
+ 1894
+ ],
+ "RESOLUTION@1982": [
+ 1982,
+ 1986
+ ],
+ "RESOLUTION@1983": [
+ 1983,
+ 1987
+ ],
+ "RESOLUTION@2008": [
+ 2008,
+ 2012
+ ],
+ "RESOLUTION@2009": [
+ 2009,
+ 2013
+ ],
+ "RESOLUTION@2010": [
+ 2010,
+ 2014
+ ],
+ "RESOLUTION@2011": [
+ 2011,
+ 2015
+ ],
+ "RESOLUTION@2012": [
+ 2012,
+ 2016
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2f35f4a08176d993cded35dac3332be4f7287f41/nodes.py",
+ "url": "https://github.com/Comfy-Org/ComfyUI/blob/2f35f4a08176d993cded35dac3332be4f7287f41/nodes.py",
+ "sha256": "38f918673c5300bc2d355e02f1131a7b1f97548337e7623754dafaea412008e8",
+ "local_file": "../h3-core-reference/core__nodes.py",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "core:server.py",
+ "repository": "https://github.com/Comfy-Org/ComfyUI",
+ "commit": "2f35f4a08176d993cded35dac3332be4f7287f41",
+ "tag": "v0.33.0",
+ "file": "server.py",
+ "lines": [
+ [
+ 1,
+ 1479
+ ]
+ ],
+ "rule_locations": {
+ "node_id@264": [
+ 264,
+ 268
+ ],
+ "node_id@289": [
+ 289,
+ 293
+ ],
+ "node_id@290": [
+ 290,
+ 294
+ ],
+ "node_id@1470": [
+ 1470,
+ 1474
+ ],
+ "node_id@1474": [
+ 1474,
+ 1478
+ ],
+ "node_id@1476": [
+ 1476,
+ 1479
+ ],
+ "node_id@1477": [
+ 1477,
+ 1479
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2f35f4a08176d993cded35dac3332be4f7287f41/server.py",
+ "url": "https://github.com/Comfy-Org/ComfyUI/blob/2f35f4a08176d993cded35dac3332be4f7287f41/server.py",
+ "sha256": "74573b10465505b88b618da86059878e3a56418f84c7dae4073c8824aee35a6c",
+ "local_file": "../h3-core-reference/core__server.py",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/renderer/extensions/vueNodes/widgets/components/WidgetResolutionPreview.vue",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/renderer/extensions/vueNodes/widgets/components/WidgetResolutionPreview.vue",
+ "lines": [
+ [
+ 1,
+ 106
+ ]
+ ],
+ "rule_locations": {
+ "nodes_resolution.py@65": [
+ 65,
+ 69
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/renderer/extensions/vueNodes/widgets/components/WidgetResolutionPreview.vue",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/renderer/extensions/vueNodes/widgets/components/WidgetResolutionPreview.vue",
+ "sha256": "453ca63d6aa986e57967bd4cd05a83a343a242636faf303d445dd51ca869f50f",
+ "local_file": "../h3-core-reference/frontend__src__renderer__extensions__vueNodes__widgets__components__WidgetResolutionPreview.vue",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/renderer/extensions/vueNodes/widgets/composables/useResolutionPreviewWidget.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/renderer/extensions/vueNodes/widgets/composables/useResolutionPreviewWidget.ts",
+ "lines": [
+ [
+ 1,
+ 35
+ ]
+ ],
+ "rule_locations": {
+ "serialize: false@17": [
+ 17,
+ 21
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/renderer/extensions/vueNodes/widgets/composables/useResolutionPreviewWidget.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/renderer/extensions/vueNodes/widgets/composables/useResolutionPreviewWidget.ts",
+ "sha256": "4316e8869b8673488ea9b136dbd4027160626c53cab9372fa1ca7aab059cf124",
+ "local_file": "../h3-core-reference/frontend__src__renderer__extensions__vueNodes__widgets__composables__useResolutionPreviewWidget.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/schemas/nodeDefSchema.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/schemas/nodeDefSchema.ts",
+ "lines": [
+ [
+ 1,
+ 1
+ ]
+ ],
+ "rule_locations": {},
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/schemas/nodeDefSchema.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/schemas/nodeDefSchema.ts",
+ "sha256": "70157c929336212ed1c7ea7e2b774c391b2466c2eaf99d441dd3b6af50e2b8b5",
+ "local_file": "../h3-core-reference/frontend__src__schemas__nodeDefSchema.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "frontend:src/schemas/nodeDef/migration.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/schemas/nodeDef/migration.ts",
+ "lines": [
+ [
+ 1,
+ 143
+ ]
+ ],
+ "rule_locations": {},
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/schemas/nodeDef/migration.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/schemas/nodeDef/migration.ts",
+ "sha256": "ae357da184625b93c492c0b73ce9bd2f3b49d158ca19a2944c6500f924a7a533",
+ "local_file": "../h3-core-reference/frontend__src__schemas__nodeDef__migration.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown",
+ "reuse": "same core0.33.0/frontend1.53.10 full identities from first-group manifest"
+ },
+ {
+ "id": "core:comfy_api/latest/_util/video_types.py",
+ "repository": "https://github.com/Comfy-Org/ComfyUI",
+ "commit": "2f35f4a08176d993cded35dac3332be4f7287f41",
+ "tag": "v0.33.0",
+ "file": "comfy_api/latest/_util/video_types.py",
+ "lines": [
+ [
+ 1,
+ 50
+ ]
+ ],
+ "rule_locations": {
+ "VideoContainer@18": [
+ 18,
+ 22
+ ],
+ "VideoContainer@36": [
+ 36,
+ 40
+ ],
+ "codec@14": [
+ 14,
+ 18
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2f35f4a08176d993cded35dac3332be4f7287f41/comfy_api/latest/_util/video_types.py",
+ "url": "https://github.com/Comfy-Org/ComfyUI/blob/2f35f4a08176d993cded35dac3332be4f7287f41/comfy_api/latest/_util/video_types.py",
+ "sha256": "5d2f7dd2b82aecec3c05f8f5bd9519530736825d33590207ea0aa32b8cc8627f",
+ "local_file": "core__comfy_api__latest___util__video_types.py",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown"
+ },
+ {
+ "id": "core:comfy_extras/nodes_audio.py",
+ "repository": "https://github.com/Comfy-Org/ComfyUI",
+ "commit": "2f35f4a08176d993cded35dac3332be4f7287f41",
+ "tag": "v0.33.0",
+ "file": "comfy_extras/nodes_audio.py",
+ "lines": [
+ [
+ 1,
+ 896
+ ]
+ ],
+ "rule_locations": {
+ "class VAEDecode@115": [
+ 115,
+ 119
+ ],
+ "class VAEDecode@137": [
+ 137,
+ 141
+ ],
+ "codec@339": [
+ 339,
+ 343
+ ],
+ "filename_prefix@170": [
+ 170,
+ 174
+ ],
+ "filename_prefix@179": [
+ 179,
+ 183
+ ],
+ "filename_prefix@184": [
+ 184,
+ 188
+ ],
+ "filename_prefix@199": [
+ 199,
+ 203
+ ],
+ "filename_prefix@209": [
+ 209,
+ 213
+ ],
+ "filename_prefix@215": [
+ 215,
+ 219
+ ],
+ "filename_prefix@230": [
+ 230,
+ 234
+ ],
+ "filename_prefix@240": [
+ 240,
+ 244
+ ],
+ "filename_prefix@246": [
+ 246,
+ 250
+ ],
+ "filename_prefix@263": [
+ 263,
+ 267
+ ],
+ "filename_prefix@287": [
+ 287,
+ 291
+ ],
+ "filename_prefix@291": [
+ 291,
+ 295
+ ],
+ "filename_prefix@293": [
+ 293,
+ 297
+ ],
+ "def define_schema@15": [
+ 15,
+ 19
+ ],
+ "def define_schema@41": [
+ 41,
+ 45
+ ],
+ "def define_schema@68": [
+ 68,
+ 72
+ ],
+ "def define_schema@117": [
+ 117,
+ 121
+ ],
+ "def define_schema@139": [
+ 139,
+ 143
+ ],
+ "def define_schema@161": [
+ 161,
+ 165
+ ],
+ "def define_schema@190": [
+ 190,
+ 194
+ ],
+ "def define_schema@222": [
+ 222,
+ 226
+ ],
+ "def define_schema@253": [
+ 253,
+ 257
+ ],
+ "def define_schema@299": [
+ 299,
+ 303
+ ],
+ "def define_schema@361": [
+ 361,
+ 365
+ ],
+ "def define_schema@403": [
+ 403,
+ 407
+ ],
+ "def define_schema@428": [
+ 428,
+ 432
+ ],
+ "def define_schema@486": [
+ 486,
+ 490
+ ],
+ "def define_schema@521": [
+ 521,
+ 525
+ ],
+ "def define_schema@595": [
+ 595,
+ 599
+ ],
+ "def define_schema@649": [
+ 649,
+ 653
+ ],
+ "def define_schema@719": [
+ 719,
+ 723
+ ],
+ "def define_schema@758": [
+ 758,
+ 762
+ ],
+ "def define_schema@804": [
+ 804,
+ 808
+ ],
+ "async def get_node_list@871": [
+ 871,
+ 875
+ ],
+ "async def comfy_entrypoint@895": [
+ 895,
+ 896
+ ],
+ "node_id@17": [
+ 17,
+ 21
+ ],
+ "node_id@43": [
+ 43,
+ 47
+ ],
+ "node_id@70": [
+ 70,
+ 74
+ ],
+ "node_id@119": [
+ 119,
+ 123
+ ],
+ "node_id@141": [
+ 141,
+ 145
+ ],
+ "node_id@163": [
+ 163,
+ 167
+ ],
+ "node_id@192": [
+ 192,
+ 196
+ ],
+ "node_id@224": [
+ 224,
+ 228
+ ],
+ "node_id@255": [
+ 255,
+ 259
+ ],
+ "node_id@301": [
+ 301,
+ 305
+ ],
+ "node_id@366": [
+ 366,
+ 370
+ ],
+ "node_id@405": [
+ 405,
+ 409
+ ],
+ "node_id@430": [
+ 430,
+ 434
+ ],
+ "node_id@488": [
+ 488,
+ 492
+ ],
+ "node_id@523": [
+ 523,
+ 527
+ ],
+ "node_id@597": [
+ 597,
+ 601
+ ],
+ "node_id@651": [
+ 651,
+ 655
+ ],
+ "node_id@721": [
+ 721,
+ 725
+ ],
+ "node_id@760": [
+ 760,
+ 764
+ ],
+ "node_id@806": [
+ 806,
+ 810
+ ],
+ "def execute@31": [
+ 31,
+ 35
+ ],
+ "def execute@58": [
+ 58,
+ 62
+ ],
+ "def execute@82": [
+ 82,
+ 86
+ ],
+ "def execute@131": [
+ 131,
+ 135
+ ],
+ "def execute@155": [
+ 155,
+ 159
+ ],
+ "def execute@179": [
+ 179,
+ 183
+ ],
+ "def execute@209": [
+ 209,
+ 213
+ ],
+ "def execute@240": [
+ 240,
+ 244
+ ],
+ "def execute@287": [
+ 287,
+ 291
+ ],
+ "def execute@315": [
+ 315,
+ 319
+ ],
+ "def execute@378": [
+ 378,
+ 382
+ ],
+ "def execute@416": [
+ 416,
+ 420
+ ],
+ "def execute@457": [
+ 457,
+ 461
+ ],
+ "def execute@503": [
+ 503,
+ 507
+ ],
+ "def execute@537": [
+ 537,
+ 541
+ ],
+ "def execute@616": [
+ 616,
+ 620
+ ],
+ "def execute@669": [
+ 669,
+ 673
+ ],
+ "def execute@740": [
+ 740,
+ 744
+ ],
+ "def execute@794": [
+ 794,
+ 798
+ ],
+ "def execute@825": [
+ 825,
+ 829
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2f35f4a08176d993cded35dac3332be4f7287f41/comfy_extras/nodes_audio.py",
+ "url": "https://github.com/Comfy-Org/ComfyUI/blob/2f35f4a08176d993cded35dac3332be4f7287f41/comfy_extras/nodes_audio.py",
+ "sha256": "82bb9dcf191a84cb0695bc2533602f7956e29a81a1176965556350b02e1bd67e",
+ "local_file": "core__comfy_extras__nodes_audio.py",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown"
+ },
+ {
+ "id": "core:comfy_extras/nodes_video.py",
+ "repository": "https://github.com/Comfy-Org/ComfyUI",
+ "commit": "2f35f4a08176d993cded35dac3332be4f7287f41",
+ "tag": "v0.33.0",
+ "file": "comfy_extras/nodes_video.py",
+ "lines": [
+ [
+ 1,
+ 320
+ ]
+ ],
+ "rule_locations": {
+ "class CreateVideo@152": [
+ 152,
+ 156
+ ],
+ "class SaveVideo@75": [
+ 75,
+ 79
+ ],
+ "VideoContainer@88": [
+ 88,
+ 92
+ ],
+ "VideoContainer@140": [
+ 140,
+ 144
+ ],
+ "VideoContainer@143": [
+ 143,
+ 147
+ ],
+ "codec@22": [
+ 22,
+ 26
+ ],
+ "codec@24": [
+ 24,
+ 28
+ ],
+ "codec@34": [
+ 34,
+ 38
+ ],
+ "codec@49": [
+ 49,
+ 53
+ ],
+ "codec@50": [
+ 50,
+ 54
+ ],
+ "codec@51": [
+ 51,
+ 55
+ ],
+ "codec@53": [
+ 53,
+ 57
+ ],
+ "codec@54": [
+ 54,
+ 58
+ ],
+ "codec@57": [
+ 57,
+ 61
+ ],
+ "codec@60": [
+ 60,
+ 64
+ ],
+ "codec@90": [
+ 90,
+ 94
+ ],
+ "codec@112": [
+ 112,
+ 116
+ ],
+ "codec@121": [
+ 121,
+ 125
+ ],
+ "codec@122": [
+ 122,
+ 126
+ ],
+ "codec@123": [
+ 123,
+ 127
+ ],
+ "codec@144": [
+ 144,
+ 148
+ ],
+ "filename_prefix@23": [
+ 23,
+ 27
+ ],
+ "filename_prefix@34": [
+ 34,
+ 38
+ ],
+ "filename_prefix@35": [
+ 35,
+ 39
+ ],
+ "filename_prefix@36": [
+ 36,
+ 40
+ ],
+ "filename_prefix@87": [
+ 87,
+ 91
+ ],
+ "filename_prefix@121": [
+ 121,
+ 125
+ ],
+ "filename_prefix@125": [
+ 125,
+ 129
+ ],
+ "filename_prefix@126": [
+ 126,
+ 130
+ ],
+ "def define_schema@14": [
+ 14,
+ 18
+ ],
+ "def define_schema@77": [
+ 77,
+ 81
+ ],
+ "def define_schema@154": [
+ 154,
+ 158
+ ],
+ "def define_schema@196": [
+ 196,
+ 200
+ ],
+ "def define_schema@222": [
+ 222,
+ 226
+ ],
+ "def define_schema@262": [
+ 262,
+ 266
+ ],
+ "async def get_node_list@309": [
+ 309,
+ 313
+ ],
+ "async def comfy_entrypoint@319": [
+ 319,
+ 320
+ ],
+ "node_id@16": [
+ 16,
+ 20
+ ],
+ "node_id@79": [
+ 79,
+ 83
+ ],
+ "node_id@156": [
+ 156,
+ 160
+ ],
+ "node_id@198": [
+ 198,
+ 202
+ ],
+ "node_id@227": [
+ 227,
+ 231
+ ],
+ "node_id@264": [
+ 264,
+ 268
+ ],
+ "def execute@34": [
+ 34,
+ 38
+ ],
+ "def execute@121": [
+ 121,
+ 125
+ ],
+ "def execute@184": [
+ 184,
+ 188
+ ],
+ "def execute@215": [
+ 215,
+ 219
+ ],
+ "def execute@241": [
+ 241,
+ 245
+ ],
+ "def execute@298": [
+ 298,
+ 302
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2f35f4a08176d993cded35dac3332be4f7287f41/comfy_extras/nodes_video.py",
+ "url": "https://github.com/Comfy-Org/ComfyUI/blob/2f35f4a08176d993cded35dac3332be4f7287f41/comfy_extras/nodes_video.py",
+ "sha256": "727653159de9a6e9d5b37b1101d3ece5df7dce8fc6a5a3a1f27e260afcfa6c14",
+ "local_file": "core__comfy_extras__nodes_video.py",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown"
+ },
+ {
+ "id": "frontend:src/extensions/core/dynamicPrompts.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/extensions/core/dynamicPrompts.ts",
+ "lines": [
+ [
+ 1,
+ 31
+ ]
+ ],
+ "rule_locations": {
+ "serializeValue@17": [
+ 17,
+ 21
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/extensions/core/dynamicPrompts.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/extensions/core/dynamicPrompts.ts",
+ "sha256": "31004dc7ba9b8ea5c8caa92ab3a15a0e63af8a822f57cb487079aad84d06f4bd",
+ "local_file": "frontend__src__extensions__core__dynamicPrompts.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown"
+ },
+ {
+ "id": "frontend:src/extensions/core/index.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/extensions/core/index.ts",
+ "lines": [
+ [
+ 1,
+ 57
+ ]
+ ],
+ "rule_locations": {},
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/extensions/core/index.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/extensions/core/index.ts",
+ "sha256": "b19722093fbed958f5cdc656c832e4d449bcd27b32282b84e3a60b8dc3544bfa",
+ "local_file": "frontend__src__extensions__core__index.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown"
+ },
+ {
+ "id": "frontend:src/extensions/core/saveImageExtraOutput.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/extensions/core/saveImageExtraOutput.ts",
+ "lines": [
+ [
+ 1,
+ 74
+ ]
+ ],
+ "rule_locations": {
+ "filename_prefix@48": [
+ 48,
+ 52
+ ],
+ "applyTextReplacements@3": [
+ 3,
+ 7
+ ],
+ "applyTextReplacements@52": [
+ 52,
+ 56
+ ],
+ "serializeValue@50": [
+ 50,
+ 54
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/extensions/core/saveImageExtraOutput.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/extensions/core/saveImageExtraOutput.ts",
+ "sha256": "2115ffeb31f3099e0e97b46304b802653c1ba58ad746323d1b094a1605265682",
+ "local_file": "frontend__src__extensions__core__saveImageExtraOutput.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown"
+ },
+ {
+ "id": "frontend:src/utils/searchAndReplace.ts",
+ "repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5",
+ "tag": "v1.53.10",
+ "file": "src/utils/searchAndReplace.ts",
+ "lines": [
+ [
+ 1,
+ 57
+ ]
+ ],
+ "rule_locations": {
+ "applyTextReplacements@5": [
+ 5,
+ 9
+ ]
+ },
+ "raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/utils/searchAndReplace.ts",
+ "url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/743be3f4fe2e374b0ee39f0ded56e7cb65a837c5/src/utils/searchAndReplace.ts",
+ "sha256": "c7462edebf266b8b8cc62954a371ca3ec3fd1ee4c188e1b80a675003b49887d4",
+ "local_file": "frontend__src__utils__searchAndReplace.ts",
+ "license": "GPL-3.0",
+ "target_version_match": "unknown"
+ }
+ ],
+ "identity_observations": [
+ {
+ "id": "core-tag",
+ "raw_url": "https://api.github.com/repos/Comfy-Org/ComfyUI/git/ref/tags/v0.33.0",
+ "local_file": "../h3-core-reference/core-tag.json",
+ "sha256": "17b7e8adb8c4ca6a06be1d6c540e52735c61c8a18dbdf0d40d467e67a161e2e6",
+ "ref": "refs/tags/v0.33.0",
+ "commit": "2f35f4a08176d993cded35dac3332be4f7287f41"
+ },
+ {
+ "id": "frontend-tag",
+ "raw_url": "https://api.github.com/repos/Comfy-Org/ComfyUI_frontend/git/ref/tags/v1.53.10",
+ "local_file": "../h3-reference/ComfyUI_frontend-tag.json",
+ "sha256": "f7075151c00a25e083c709273050c53b65cd6f1f3f4598f171fed3d486d046f2",
+ "ref": "refs/tags/v1.53.10",
+ "commit": "743be3f4fe2e374b0ee39f0ded56e7cb65a837c5"
+ }
+ ],
+ "target_installation": "unknown",
+ "source_graph_identity": "unknown",
+ "upstream_code_executed": false
+}
diff --git a/docs/hel-892/h3-chain-reference/verify_identity.py b/docs/hel-892/h3-chain-reference/verify_identity.py
new file mode 100644
index 0000000..c92d873
--- /dev/null
+++ b/docs/hel-892/h3-chain-reference/verify_identity.py
@@ -0,0 +1,47 @@
+"""Recheck mutable tag identity fields; byte SHA is only the saved observation."""
+
+import hashlib
+import json
+from pathlib import Path
+from urllib.request import urlopen
+
+ROOT = Path(__file__).resolve().parent
+
+
+def main():
+ manifest = json.loads((ROOT / "sources.json").read_bytes())
+ rows = []
+ for entry in manifest["identity_observations"]:
+ raw = (ROOT / entry["local_file"]).read_bytes()
+ assert hashlib.sha256(raw).hexdigest() == entry["sha256"]
+ with urlopen(entry["raw_url"], timeout=30) as response:
+ now = json.loads(response.read())
+ assert now["ref"] == entry["ref"] and now["object"]["type"] == "commit"
+ assert now["object"]["sha"] == entry["commit"]
+ rows.append(
+ {
+ "id": entry["id"],
+ "url": entry["raw_url"],
+ "ref": now["ref"],
+ "commit": now["object"]["sha"],
+ "saved_observation_sha256": entry["sha256"],
+ "byte_identity_required": False,
+ }
+ )
+ (ROOT.parent / "h3-chain-evidence/identity-refetched.json").write_text(
+ json.dumps(
+ {
+ "observations": rows,
+ "target_installation": "unknown",
+ "source_graph_identity": "unknown",
+ "upstream_executed": False,
+ },
+ ensure_ascii=False,
+ indent=2,
+ )
+ + "\n"
+ )
+
+
+if __name__ == "__main__":
+ main()