docs(HEL-892): bind Flux old-photo restoration reference details
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -15,6 +15,9 @@ DEFINITION_SHA256 = "c4c7f04fde29dc7485a341207397fcf6191e3fcbe89ecc2d238f4a4f5bc
|
||||
|
||||
# Explicit path allowlist; a recomputed caller-supplied digest cannot extend trust.
|
||||
DEFINITIONS = {
|
||||
(
|
||||
"example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_老照片修复.json"
|
||||
): "39a9c04ab848830c1dc858dc0aa192182286160ba067244f1edd0e1b8c2fbf8e",
|
||||
(
|
||||
"example_ComfyUI_workflows/3-图像生成/Flux/10_flux2_klein_文生图-角色三视图.json"
|
||||
): "69d4d1cf0b3ac570325d5ba37d91e34d5bbf5758113b79bd376f044331c259d6",
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,292 @@
|
||||
"Flux2 editorial source binding, distinct saved states and unchanged eligibility."
|
||||
|
||||
import copy
|
||||
import hashlib
|
||||
import json
|
||||
import runpy
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
from calliope.comfyui.fixed_document import DEFINITIONS, canonical
|
||||
from calliope.comfyui.library import build_document
|
||||
from calliope.comfyui.source_reviews import review_for
|
||||
|
||||
REPO = Path(__file__).resolve().parents[2]
|
||||
OUT = REPO / ("docs/hel-892/flux2-restore-document-evidence")
|
||||
PATH = "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_老照片修复.json"
|
||||
RAW = (REPO / PATH).read_bytes()
|
||||
SOURCE = json.loads(RAW)
|
||||
REVIEW = review_for(PATH, hashlib.sha1(RAW).hexdigest())
|
||||
BLOCK = REVIEW["fixed_version_document"]
|
||||
|
||||
|
||||
def pointer(obj, p):
|
||||
for part in p.strip("/").split("/"):
|
||||
obj = obj[int(part)] if isinstance(obj, list) else obj[part]
|
||||
return obj
|
||||
|
||||
|
||||
def doc(s=SOURCE, r=REVIEW):
|
||||
return build_document(PATH, s, None, None, [], r)
|
||||
|
||||
|
||||
def refuse(s, r):
|
||||
r["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest()
|
||||
assert not doc(s, r)["fixed_version"]["matched"]
|
||||
|
||||
|
||||
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
|
||||
def test_every_saved_position_json_type_and_exact_citations(f):
|
||||
assert canonical(pointer(SOURCE, f["pointer"])) == canonical(f["value"])
|
||||
assert type(pointer(SOURCE, f["pointer"])).__name__ == f["json_type"]
|
||||
assert "named_value" not in f and "无widgets_values_named" in f["named_pointer"]
|
||||
if f["input_pointer"].startswith("/"):
|
||||
assert pointer(SOURCE, f["input_pointer"])["name"] == f["input_name"]
|
||||
for i in f["evidence"]:
|
||||
e = BLOCK["sources"][i]
|
||||
raw = (OUT / e["local_file"]).read_bytes()
|
||||
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
|
||||
assert 1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
|
||||
|
||||
|
||||
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
|
||||
@pytest.mark.parametrize("variant", ["position", "editorial"])
|
||||
def test_caller_rehash_cannot_expand_trust(f, variant):
|
||||
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
if variant == "editorial":
|
||||
r["fixed_version_document"]["fields"][BLOCK["fields"].index(f)]["effect"] = "forged"
|
||||
else:
|
||||
parent, _, key = f["pointer"].rpartition("/")
|
||||
pointer(s, parent)[int(key)] = "forged"
|
||||
refuse(s, r)
|
||||
|
||||
|
||||
def test_exact_source_and_unchanged_qualification():
|
||||
b = runpy.run_path(str(OUT / "build_definition.py"))["build"]()
|
||||
assert canonical(b) == canonical(BLOCK)
|
||||
assert len(DEFINITIONS) == 56 and doc()["fixed_version"]["matched"]
|
||||
assert len(b["fields"]) == 34 and len(b["comments"]) == 1
|
||||
assert b["counts"]["root_saved_fields"] == 14 and b["counts"]["internal_saved_fields"] == 20
|
||||
assert b["counts"]["linked_saved_fields"] == 10 and b["counts"]["frontend_only"] == 3
|
||||
assert not doc()["status"]["doc_done"] and not doc()["status"]["exec_verified"]
|
||||
assert len(b["comments"][0]["text"]) == 1396
|
||||
assert b["comments"][0]["text"] == SOURCE["nodes"][0]["widgets_values"][0]
|
||||
assert {s["id"] for s in b["sources"]} == {
|
||||
"core",
|
||||
"lora",
|
||||
"primitive",
|
||||
"frontend",
|
||||
"rgthree",
|
||||
"layer",
|
||||
}
|
||||
assert {s["tag"] for s in b["sources"] if s["id"] == "frontend"} == {"v1.36.13"}
|
||||
assert {s["commit"] for s in b["sources"] if s["id"] == "layer"} == {
|
||||
"89014d833d2ad0998d724090eff1456692692a1d"
|
||||
}
|
||||
assert {s["tag"] for s in b["sources"] if s["id"] == "primitive"} == {"v0.28.3"}
|
||||
|
||||
|
||||
def test_independent_inventory_and_all_endpoint_checks():
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, str(OUT))
|
||||
try:
|
||||
runpy.run_path(str(OUT / "verify_sources.py"))["main"]()
|
||||
finally:
|
||||
sys.path.remove(str(OUT))
|
||||
|
||||
|
||||
def test_saved_fields_boundaries_and_comparison_are_not_invented():
|
||||
root = {n["id"]: n for n in SOURCE["nodes"]}
|
||||
sub = SOURCE["definitions"]["subgraphs"][0]
|
||||
ns = {n["id"]: n for n in sub["nodes"]}
|
||||
assert root[150]["widgets_values"] == sub["widgets"] == []
|
||||
assert len(root[150]["properties"]["proxyWidgets"]) == 10
|
||||
assert len(root[150]["inputs"]) == len(sub["inputs"]) == 9
|
||||
assert [(i["name"], i["label"], i["type"]) for i in sub["inputs"][-2:]] == [
|
||||
("", "width", "*"),
|
||||
("_1", "height", "*"),
|
||||
]
|
||||
assert root[152]["widgets_values"] == ns[108]["widgets_values"]
|
||||
assert root[150]["inputs"][6]["name"] == "text_1" and root[150]["inputs"][6]["link"] is None
|
||||
assert sub["outputs"][0]["linkIds"] == [201, 201, 201]
|
||||
assert sum(e["id"] == 201 for e in sub["links"]) == 1
|
||||
assert ns[103]["outputs"][1]["links"] == []
|
||||
f = {(f["node_id"], f["field"]): f for f in BLOCK["fields"]}
|
||||
assert f["150:109", "text"]["unit"] == "负向编码文本"
|
||||
assert f["150:108", "text"]["unit"] == "正向编码文本"
|
||||
assert f["147", "round_to_multiple"]["value"] == "8"
|
||||
assert f["150:102", "cfg"]["json_type"] == "int"
|
||||
assert f["150:142", "strength_model"]["value"] == 0.8
|
||||
assert f["150:106", "unet_name"]["value"] == "Flux\\flux-2-klein-9b-fp8.safetensors"
|
||||
assert "temp_acghq" in canonical(f["145", "rgthree_comparer"]["value"]).decode()
|
||||
for a, ao, z, zi, k in [
|
||||
(76, 0, 147, 0, "IMAGE"),
|
||||
(147, 0, 150, 0, "IMAGE"),
|
||||
(147, 0, 151, 0, "IMAGE"),
|
||||
(151, 0, 145, 1, "IMAGE"),
|
||||
(150, 0, 145, 0, "IMAGE"),
|
||||
(150, 0, 9, 0, "IMAGE"),
|
||||
(152, 0, 150, 5, "STRING"),
|
||||
(147, 3, 150, 7, "INT"),
|
||||
(147, 4, 150, 8, "INT"),
|
||||
]:
|
||||
assert any(e[1:] == [a, ao, z, zi, k] for e in SOURCE["links"])
|
||||
for a, ao, z, zi in [
|
||||
(-10, 0, 141, 0),
|
||||
(141, 0, 140, 1),
|
||||
(141, 0, 139, 1),
|
||||
(108, 0, 140, 0),
|
||||
(109, 0, 139, 0),
|
||||
(140, 0, 102, 1),
|
||||
(139, 0, 102, 2),
|
||||
(111, 0, 103, 4),
|
||||
(103, 0, 104, 0),
|
||||
(104, 0, -20, 0),
|
||||
(-10, 7, 135, 0),
|
||||
(-10, 8, 136, 0),
|
||||
(135, 0, 101, 1),
|
||||
(135, 0, 111, 0),
|
||||
(136, 0, 101, 2),
|
||||
(136, 0, 111, 1),
|
||||
]:
|
||||
assert any(
|
||||
(e["origin_id"], e["origin_slot"], e["target_id"], e["target_slot"]) == (a, ao, z, zi)
|
||||
for e in sub["links"]
|
||||
)
|
||||
|
||||
|
||||
def test_precise_passive_primitive_layer_and_comparer_text():
|
||||
def read(key, file):
|
||||
e = next(s for s in BLOCK["sources"] if s["id"] == key and s["file"] == file)
|
||||
return (OUT / e["local_file"]).read_text()
|
||||
|
||||
prim = read("primitive", "comfy_extras/nodes_primitive.py")
|
||||
assert 'node_id="PrimitiveStringMultiline"' in prim
|
||||
assert 'io.String.Input("value", multiline=True)' in prim
|
||||
assert "return io.NodeOutput(value)" in prim and "StringMultiline," in prim
|
||||
nodes = read("primitive", "nodes.py")
|
||||
assert '"nodes_primitive.py"' in nodes
|
||||
layer = read("layer", "py/image_scale_by_aspect_ratio_v2.py")
|
||||
assert (
|
||||
"ratio = orig_width / orig_height" in layer and "multiple = int(round_to_multiple)" in layer
|
||||
)
|
||||
assert "num_round_up_to_multiple(target_width, multiple)" in layer
|
||||
assert "NODE_CLASS_MAPPINGS" in layer
|
||||
imagefunc = read("layer", "py/imagefunc.py")
|
||||
assert "elif fit == 'crop':" in imagefunc
|
||||
edit = read("core", "comfy_extras/nodes_edit_model.py")
|
||||
assert "append=True" in edit and "if latent is not None:" in edit
|
||||
host = read("frontend", "src/lib/litegraph/src/subgraph/SubgraphNode.ts")
|
||||
assert "slot.name === input.name" in host and "connectedWidget.value = widget.value" in host
|
||||
cmp = read("rgthree", "web/comfyui/image_comparer.js")
|
||||
assert "serialised.widgets_values[index]" in cmp and "return { images: v };" in cmp
|
||||
assert 'this.properties["comparer_mode"] = "Slide"' in cmp
|
||||
assert "image_a" in read("rgthree", "py/image_comparer.py")
|
||||
|
||||
|
||||
NODE_POINTERS = [f"/nodes/{i}" for i in range(9)] + [
|
||||
f"/definitions/subgraphs/0/nodes/{i}" for i in range(18)
|
||||
]
|
||||
EDGE_POINTERS = [f"/links/{i}" for i in range(9)] + [
|
||||
f"/definitions/subgraphs/0/links/{i}" for i in range(32)
|
||||
]
|
||||
|
||||
|
||||
@pytest.mark.parametrize("p", NODE_POINTERS)
|
||||
@pytest.mark.parametrize("variant", ["mode", "identity", "named"])
|
||||
def test_all_root_and_internal_nodes_bound(p, variant):
|
||||
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
n = pointer(s, p)
|
||||
if variant == "mode":
|
||||
n["mode"] = 4
|
||||
elif variant == "identity":
|
||||
n["properties"]["ver"] = "forged"
|
||||
else:
|
||||
n["widgets_values_named"] = {"forged": 0}
|
||||
refuse(s, r)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("p", EDGE_POINTERS)
|
||||
def test_every_edge_bound_without_repair(p):
|
||||
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
e = pointer(s, p)
|
||||
if isinstance(e, list):
|
||||
e[3] = 999
|
||||
else:
|
||||
e["target_id"] = 999
|
||||
refuse(s, r)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("z", BLOCK["zero_saved_nodes"], ids=lambda z: z["node_id"])
|
||||
@pytest.mark.parametrize("variant", ["missing", "empty", "null", "added"])
|
||||
def test_absent_empty_null_stay_distinct(z, variant):
|
||||
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
n = pointer(s, z["pointer"])
|
||||
before = copy.deepcopy(n)
|
||||
if variant == "missing":
|
||||
n.pop("widgets_values", None)
|
||||
else:
|
||||
n["widgets_values"] = {"empty": [], "null": None, "added": [0]}[variant]
|
||||
if n != before:
|
||||
refuse(s, r)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"variant",
|
||||
[
|
||||
"overview",
|
||||
"citation",
|
||||
"sha",
|
||||
"frontend",
|
||||
"count",
|
||||
"proxy",
|
||||
"duplicate",
|
||||
"boundary_name",
|
||||
"boundary_type",
|
||||
"boundary_label",
|
||||
"definition_widgets",
|
||||
"note",
|
||||
"unconnected_output",
|
||||
"history",
|
||||
"lora_identity",
|
||||
"host_identity",
|
||||
],
|
||||
)
|
||||
def test_all_metadata_and_boundary_declarations_bound(variant):
|
||||
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
b = r["fixed_version_document"]
|
||||
sub = s["definitions"]["subgraphs"][0]
|
||||
if variant == "overview":
|
||||
b["user_overview"] = "forged"
|
||||
elif variant == "citation":
|
||||
b["sources"][0]["sha256"] = "forged"
|
||||
elif variant == "sha":
|
||||
r["source_sha"] = "forged"
|
||||
elif variant == "frontend":
|
||||
s["extra"]["frontendVersion"] = "1.36.14"
|
||||
elif variant == "count":
|
||||
b["counts"]["final_prompt_constructed"] = True
|
||||
elif variant == "proxy":
|
||||
s["nodes"][7]["properties"]["proxyWidgets"][0][0] = "999"
|
||||
elif variant == "duplicate":
|
||||
sub["outputs"][0]["linkIds"] = [201]
|
||||
elif variant == "boundary_name":
|
||||
sub["inputs"][7]["name"] = "width"
|
||||
elif variant == "boundary_type":
|
||||
sub["inputs"][7]["type"] = "INT"
|
||||
elif variant == "boundary_label":
|
||||
sub["inputs"][7]["label"] = "forged"
|
||||
elif variant == "definition_widgets":
|
||||
sub["widgets"] = None
|
||||
elif variant == "note":
|
||||
s["nodes"][0]["widgets_values"][0] = "forged"
|
||||
elif variant == "unconnected_output":
|
||||
next(n for n in sub["nodes"] if n["id"] == 103)["outputs"][1]["links"] = [999]
|
||||
elif variant == "history":
|
||||
s["nodes"][5]["widgets_values"][0][0]["url"] = "forged"
|
||||
elif variant == "lora_identity":
|
||||
next(n for n in sub["nodes"] if n["id"] == 142)["properties"]["ver"] = "0.8.2"
|
||||
else:
|
||||
s["nodes"][7]["properties"]["ver"] = "0.8.2"
|
||||
refuse(s, r)
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,13 @@
|
||||
hint: Using 'master' as the name for the initial branch. This default branch name
|
||||
hint: is subject to change. To configure the initial branch name to use in all
|
||||
hint: of your new repositories, which will suppress this warning, call:
|
||||
hint:
|
||||
hint: git config --global init.defaultBranch <name>
|
||||
hint:
|
||||
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
|
||||
hint: 'development'. The just-created branch can be renamed via this command:
|
||||
hint:
|
||||
hint: git branch -m <name>
|
||||
From https://github.com/Comfy-Org/ComfyUI
|
||||
* tag v0.28.3 -> FETCH_HEAD
|
||||
Bound 60 necessary texts
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"total": 155,
|
||||
"audit_scope": "current_delivery",
|
||||
"source_files": 156,
|
||||
"target_files": 155,
|
||||
"user_excluded": 1,
|
||||
"source_structure_purpose_partially_reviewed": 155,
|
||||
"full_documents_completed": 0,
|
||||
"files_with_selected_named_fields_reviewed": 41,
|
||||
"selected_named_fields_reviewed": 1217,
|
||||
"real_executions": 0,
|
||||
"states": {
|
||||
"pending_check": 16,
|
||||
"needs_conversion": 139
|
||||
},
|
||||
"named_values_preserved": 1217,
|
||||
"unnamed_widget_nodes": 3660,
|
||||
"semantic_batch_files": 139,
|
||||
"semantic_batch_without_named_fields": 114,
|
||||
"semantic_batch_named_fields": 490,
|
||||
"named_values_without_manual_field_review": 0,
|
||||
"named_values_without_verified_units_ranges_effects": 1217,
|
||||
"scope_limit": "人工结论与机械原值清单分开;源语义局部审校非完整说明定稿"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
PASS authored diff whitespace
|
||||
@@ -0,0 +1,4 @@
|
||||
Building source distribution...
|
||||
Building wheel from source distribution...
|
||||
Successfully built calliope-backend/dist/calliope-1.5.8.tar.gz
|
||||
Successfully built calliope-backend/dist/calliope-1.5.8-py3-none-any.whl
|
||||
@@ -0,0 +1,77 @@
|
||||
{
|
||||
"fixed_count": 176,
|
||||
"fixed_paths": {
|
||||
"/api/workflows": 3,
|
||||
"/api/workflows/57": 4,
|
||||
"/api/workflows/44": 4,
|
||||
"/api/workflows/53": 3,
|
||||
"/api/workflows/52": 3,
|
||||
"/api/workflows/51": 3,
|
||||
"/api/workflows/50": 3,
|
||||
"/api/workflows/49": 3,
|
||||
"/api/workflows/47": 3,
|
||||
"/api/workflows/48": 3,
|
||||
"/api/workflows/46": 3,
|
||||
"/api/workflows/45": 3,
|
||||
"/api/workflows/42": 3,
|
||||
"/api/workflows/41": 3,
|
||||
"/api/workflows/40": 3,
|
||||
"/api/workflows/39": 3,
|
||||
"/api/workflows/38": 3,
|
||||
"/api/workflows/37": 3,
|
||||
"/api/workflows/18": 3,
|
||||
"/api/workflows/20": 3,
|
||||
"/api/workflows/30": 3,
|
||||
"/api/workflows/32": 3,
|
||||
"/api/workflows/34": 3,
|
||||
"/api/workflows/33": 3,
|
||||
"/api/workflows/31": 3,
|
||||
"/api/workflows/29": 3,
|
||||
"/api/workflows/28": 3,
|
||||
"/api/workflows/27": 3,
|
||||
"/api/workflows/26": 3,
|
||||
"/api/workflows/17": 3,
|
||||
"/api/workflows/4": 3,
|
||||
"/api/workflows/15": 3,
|
||||
"/api/workflows/11": 3,
|
||||
"/api/workflows/3": 3,
|
||||
"/api/workflows/9": 3,
|
||||
"/api/workflows/16": 3,
|
||||
"/api/workflows/10": 3,
|
||||
"/api/workflows/23": 3,
|
||||
"/api/workflows/8": 3,
|
||||
"/api/workflows/22": 3,
|
||||
"/api/workflows/5": 3,
|
||||
"/api/workflows/6": 3,
|
||||
"/api/workflows/7": 3,
|
||||
"/api/workflows/19": 3,
|
||||
"/api/workflows/13": 3,
|
||||
"/api/workflows/12": 3,
|
||||
"/api/workflows/64": 3,
|
||||
"/api/workflows/62": 3,
|
||||
"/api/workflows/70": 3,
|
||||
"/api/workflows/1": 3,
|
||||
"/api/workflows/36": 3,
|
||||
"/api/workflows/35": 3,
|
||||
"/api/workflows/2": 3,
|
||||
"/api/workflows/25": 3,
|
||||
"/api/workflows/24": 3,
|
||||
"/api/workflows/21": 3,
|
||||
"/api/workflows/14": 3,
|
||||
"/api/settings": 1,
|
||||
"/api/workflows/156": 1,
|
||||
"/api/workflows/157": 1
|
||||
},
|
||||
"polling_count": 14,
|
||||
"polling_paths": {
|
||||
"/api/jobs": 14
|
||||
},
|
||||
"readiness_gets": 1,
|
||||
"detail_fixture_intercepts": 6,
|
||||
"fixed_paths_browser_minus_fixtures_plus_readiness_matches_backend": true,
|
||||
"polling_snapshot_delta": {
|
||||
"/api/jobs": 0,
|
||||
"/api/events": 0
|
||||
},
|
||||
"polling_snapshot_tolerance": 1
|
||||
}
|
||||
@@ -0,0 +1,158 @@
|
||||
"""Rebind exact local text; acquire only new Primitive and subgraph source text."""
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
import os
|
||||
import subprocess
|
||||
import urllib.request
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[3]
|
||||
REF = ROOT / "docs/hel-892/flux2-restore-reference"
|
||||
|
||||
|
||||
def main():
|
||||
rows = []
|
||||
for stem, key in [
|
||||
("flux2-img", "core"),
|
||||
("flux2-img", "lora"),
|
||||
("flux2-img", "frontend"),
|
||||
("flux2-img", "rgthree"),
|
||||
("resize-compare", "layer"),
|
||||
]:
|
||||
origin = REF.parent / (stem + "-reference")
|
||||
for old in json.loads((origin / "sources.json").read_bytes())["sources"]:
|
||||
if old["id"] != key:
|
||||
continue
|
||||
if key == "rgthree" and old["file"] == "web/comfyui/label.js":
|
||||
continue
|
||||
e = dict(old)
|
||||
e["local_file"] = os.path.relpath((origin / e["local_file"]).resolve(), REF)
|
||||
e["license_file"] = os.path.relpath(
|
||||
(origin / old.get("license_file", key + "__LICENSE")).resolve(), REF
|
||||
)
|
||||
e["identity_root"] = os.path.relpath(origin, REF)
|
||||
e["identity_key"] = key
|
||||
e["applicability"] = (
|
||||
"仅本图静态参考;core0.8.2/LoRA0.21.1/frontend1.36.13/比较器准确发布;Layer无身份,89014d仅假设;UE/tab/代理恢复及安装未知"
|
||||
)
|
||||
if key == "layer":
|
||||
# The API index SHA is a requested ref, not the real Git tree.
|
||||
e["tree_index_ref"] = json.loads((origin / "layer-tree.json").read_bytes())["sha"]
|
||||
meta = REF / "layer-commit-meta.json"
|
||||
if not meta.exists():
|
||||
with urllib.request.urlopen(
|
||||
"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/commits/89014d833d2ad0998d724090eff1456692692a1d",
|
||||
timeout=30,
|
||||
) as response:
|
||||
meta.write_bytes(response.read())
|
||||
e["tree"] = json.loads(meta.read_bytes())["commit"]["tree"]["sha"]
|
||||
e["repo"] = "chflame163/ComfyUI_LayerStyle"
|
||||
e["tag"] = "无源版本,仅显式89014d参考假设"
|
||||
assert hashlib.sha256((REF / e["local_file"]).read_bytes()).hexdigest() == e["sha256"]
|
||||
rows.append(e)
|
||||
# Acquire exact core0.28.3 commit and selected Git objects, without executing upstream.
|
||||
key, repo, tag = "primitive", "Comfy-Org/ComfyUI", "v0.28.3"
|
||||
cache = ROOT / ".local-evidence/flux2-restore-primitive-git"
|
||||
if not cache.exists():
|
||||
subprocess.run(["git", "init", "--bare", str(cache)], check=True, stdout=subprocess.DEVNULL)
|
||||
subprocess.run(
|
||||
[
|
||||
"git",
|
||||
"-C",
|
||||
str(cache),
|
||||
"fetch",
|
||||
"--filter=blob:none",
|
||||
"--depth=1",
|
||||
"https://github.com/" + repo + ".git",
|
||||
"refs/tags/" + tag,
|
||||
],
|
||||
check=True,
|
||||
)
|
||||
|
||||
def git(*a):
|
||||
return subprocess.check_output(["git", "-C", str(cache), *a])
|
||||
|
||||
commit = git("rev-parse", "FETCH_HEAD^{commit}").decode().strip()
|
||||
tree = git("rev-parse", commit + "^{tree}").decode().strip()
|
||||
(REF / (key + "-commit.txt")).write_bytes(git("cat-file", "commit", commit))
|
||||
(REF / (key + "-tag.txt")).write_bytes(git("cat-file", "-p", "FETCH_HEAD"))
|
||||
(REF / (key + "-tag.json")).write_text(
|
||||
json.dumps(
|
||||
dict(
|
||||
ref="refs/tags/" + tag,
|
||||
commit=commit,
|
||||
object=git("rev-parse", "FETCH_HEAD").decode().strip(),
|
||||
),
|
||||
indent=2,
|
||||
)
|
||||
+ "\n"
|
||||
)
|
||||
entries = []
|
||||
for line in git("ls-tree", "-r", commit).decode().splitlines():
|
||||
meta, path = line.split("\t", 1)
|
||||
mode, kind, sha = meta.split()
|
||||
entries.append(dict(path=path, mode=mode, type=kind, sha=sha))
|
||||
(REF / (key + "-tree.json")).write_text(
|
||||
json.dumps(dict(sha=tree, truncated=False, tree=entries), indent=2) + "\n"
|
||||
)
|
||||
for file in ["comfy_extras/nodes_primitive.py", "nodes.py", "LICENSE"]:
|
||||
raw = git("show", commit + ":" + file)
|
||||
local = key + "__" + file.replace("/", "__")
|
||||
(REF / local).write_bytes(raw)
|
||||
rows.append(
|
||||
dict(
|
||||
id=key,
|
||||
repo=repo,
|
||||
file=file,
|
||||
local_file=local,
|
||||
commit=commit,
|
||||
tree=tree,
|
||||
tag=tag,
|
||||
url=f"https://raw.githubusercontent.com/{repo}/{commit}/{file}",
|
||||
sha256=hashlib.sha256(raw).hexdigest(),
|
||||
git_blob_sha1=hashlib.sha1(
|
||||
b"blob " + str(len(raw)).encode() + b"\0" + raw
|
||||
).hexdigest(),
|
||||
identity_root=".",
|
||||
identity_key=key,
|
||||
license_file=key + "__LICENSE",
|
||||
applicability="仅根152 Primitive和宿主150声明0.28.3;不赋予内部core新身份",
|
||||
)
|
||||
)
|
||||
base = next(e for e in rows if e["id"] == "frontend")
|
||||
tree_index = json.loads((REF / base["identity_root"] / "frontend-tree.json").read_bytes())
|
||||
for file in [
|
||||
"src/lib/litegraph/src/subgraph/SubgraphNode.ts",
|
||||
"src/lib/litegraph/src/subgraph/Subgraph.ts",
|
||||
"src/lib/litegraph/src/subgraph/SubgraphInput.ts",
|
||||
"src/lib/litegraph/src/subgraph/SubgraphOutput.ts",
|
||||
"src/lib/litegraph/src/subgraph/SubgraphInputNode.ts",
|
||||
"src/lib/litegraph/src/subgraph/SubgraphOutputNode.ts",
|
||||
]:
|
||||
e = dict(base)
|
||||
local = "frontend__" + file.replace("/", "__")
|
||||
path = REF / local
|
||||
url = f"https://raw.githubusercontent.com/{e['repo']}/{e['commit']}/{file}"
|
||||
if not path.exists():
|
||||
with urllib.request.urlopen(url, timeout=30) as response:
|
||||
path.write_bytes(response.read())
|
||||
raw = path.read_bytes()
|
||||
blob = hashlib.sha1(b"blob " + str(len(raw)).encode() + b"\0" + raw).hexdigest()
|
||||
assert next(t["sha"] for t in tree_index["tree"] if t["path"] == file) == blob
|
||||
e.update(
|
||||
file=file,
|
||||
local_file=local,
|
||||
url=url,
|
||||
sha256=hashlib.sha256(raw).hexdigest(),
|
||||
git_blob_sha1=blob,
|
||||
)
|
||||
rows.append(e)
|
||||
(REF / "sources.json").write_text(
|
||||
json.dumps(dict(sources=rows, upstream_executed=False), ensure_ascii=False, indent=2) + "\n"
|
||||
)
|
||||
print("Bound", len(rows), "necessary texts")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,728 @@
|
||||
{
|
||||
"base": "5dbfe1c3942a1095edc72bcbdd377b596bd949b0",
|
||||
"files": [
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/minimax_h3-Turbo_Text2Video_20260813_API.json",
|
||||
"sha256": "55c6d0e7fb323e05c3d9373606607e0e8fefb3127cac356b03e29f19b7aaa4ed"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/Krea2_t2i_20260818_API.json",
|
||||
"sha256": "dcf5fad9b464e4154d8ec7ba7af1c21987cb0153c7df747266a02de9f24e1313"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_2ref_API.json",
|
||||
"sha256": "56ab7cbf2402f94000eb1df2b5415f90f36a2821e68f1c35af17a2d9498e7c49"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/MiniMax-H3-Turbo-R2V-Extend-2Refs1Vid_API.json",
|
||||
"sha256": "080a17d7ae079f278518de1af15b880a4404105ec89edbac4fd82cf16097b757"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_4ref_API.json",
|
||||
"sha256": "0b00bfc29ad48f8af3c7b6ebc1dcaa03b809b33c24bc31dadc628289480b154a"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_API.json",
|
||||
"sha256": "29f440f7123b9ce64e0fda01ee3cdafb7f87408c47c1fe46c2b73f88682eae0c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/krea2_T2I_CharSheetV1_API.json",
|
||||
"sha256": "6a991229721d0a501846bf0bc55f793d1ab5225be28b2c9eea485fed56ed5b40"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_5ref_API.json",
|
||||
"sha256": "0b6c1bee6507c2485aa115d3b6c038c6c3dabf1ce8569205f8ece50e58f4e909"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_3ref_API.json",
|
||||
"sha256": "2a687133f175180584ebfc3b4318f29cfcac3a24a0f422e1b9c77e6b16c9862a"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/minimax_h3-Turbo_Image2Video_20260813_API.json",
|
||||
"sha256": "3d895b01e72c10008c036a9c65fa281b3dfe0d0808417089960fd8f4b56c48ce"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-ASR-语音转文字.json",
|
||||
"sha256": "958a3b7cb7070f4207901c79f13863b44ffcd0ed5c2c7fb4cd779e7964da0d65"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_语音设计+语音克隆.json",
|
||||
"sha256": "9c75272e418064f46da96f6167448216a9390566e4b5d5e168d8cc5955447ab1"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/1-语音生成/index-TTS2-情绪控制-音频参考-文本控制-克隆-多人对话.json",
|
||||
"sha256": "d2c469a8a17c6d1fcffb9a96700c38290895873d99c40d13d669bd45f6ea79de"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"sha256": "549a6502b3e0d4386323e6e67d6a9b4943b7a01eb59bdbe7adc7a920cfe5b690"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-ASR-Subtitle语音转字幕.json",
|
||||
"sha256": "47f9afa955a6a5dce37000cb6a15bac7516d26ff50b6398bda334c825552cfd8"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/肖像大师_美女提示词生成.json",
|
||||
"sha256": "4ff20f7350813ec74fc054971b4532200d61661951c103c89f7729f89f7be2ff"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/6-动作迁移/Wan_Animate2_动作迁移_for循环长视频.json",
|
||||
"sha256": "22b7853e22629822dd354b0b768e2961a53b4c2f480cfaceeaea9dc51c0f0d0b"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_Scail-2_动作迁移_WanAnimatePlus_v4.2.json",
|
||||
"sha256": "f0da1e6c1eab5706d29d8d12897db0cea0d9d5f7a73b4882cf07ef2a626dda45"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.2_Animate_SAM3-人物迁移-动作迁移-长视频循环(KJ流).json",
|
||||
"sha256": "3ea95e56f193c046937ad246087292865a809d2cc26571357c22fff415295f41"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_SCAIL2_角色迁移_动作迁移_FOR循环长视频.json",
|
||||
"sha256": "60d7a6c9b1b567d726ffd0981de3d8afb3675f88b320733d8442081d849b0ba8"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_Scail-2_角色迁移_WanAnimatePlus_v4.2.json",
|
||||
"sha256": "395dc48ad21d9da6a3a815654922193a9893696015154f53be0cc6f484882637"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.2_Animate_人物遮罩替换(官流整理).json",
|
||||
"sha256": "394c3c31ad05255d3eb130f309d8445764f4d3772b40fa07fbf19708bfcc1002"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_I2V_InfiniteTalk_提示词调度动作控制图生视频数字人(KJ版).json",
|
||||
"sha256": "98b4c399948f99aeac9326b4de9638d9a7bc3d718edd2561ab745f6bec12478c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_infinitetalk_音频驱动视频配音-单人for循环长视频(官流).json",
|
||||
"sha256": "ebd0c2823b70e5121f9642f781f2d0fa32cda6abe7d4a68fb0eecacc30e92d06"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_I2V_InfiniteTalk_rCM_数字人对口型多动态(KJ版).json",
|
||||
"sha256": "90fb512939d5bbaebfd3462d8edd019ad388611951748e6df09993ddd7f3a36f"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_infinitetalk_音频驱动视频配音-双人for循环长视频(官流).json",
|
||||
"sha256": "87412366e6bedd2a2f4490d1a945d0fc005251bb49a20e4ba1157cd6c4ddfbcd"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/2-音乐生成/minimax_music_文生音乐.json",
|
||||
"sha256": "0a655ead5a0da406159dceb46451439df0c02050becaaa25b3018abb41840284"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/2-音乐生成/ace_step_1.5+Qwen3.5_自动歌词音乐生成.json",
|
||||
"sha256": "518085b1e8d12257e68427dcc0f01e6cda5018ec353fd90fdf366afb4fc89b85"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/2-音乐生成/ace_step1_5_xl_turbo_8Step极速音乐生成.json",
|
||||
"sha256": "668fae23de5f84cc530fa4cab7381299cbc787b30c4597345b47e7f5c17415ef"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
|
||||
"sha256": "5dbe1a7ab608ba6e9158369ff6498e9bb3f926d151a0ed31cf711c31b167c488"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/双图像或视频合并显示.json",
|
||||
"sha256": "61a0b1a2aa17a7d8c4f09f4f57e276eaf37227f69b5fc5789193005e593548c9"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像分割-多宫格分割.json",
|
||||
"sha256": "aeceb3fd00eb0966eebf8d8c89d90e2ad29d0aa8d02589aa05d52a6c145a4bcc"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/Minimax-H3提示词增强.json",
|
||||
"sha256": "ffea53b27d52c63aa9ec9c60144489cc4f9e5a44d9478bcc297be9d9008f1a4c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
|
||||
"sha256": "39f7ddf60bf5958882215bd4227a85707f1f9003f2c5aaefc709a28b1ef16827"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载本地latent解码.json",
|
||||
"sha256": "1fd83bd3f2d7950440189932b4c17718190af88daa4a93ac86474081dea9005b"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
|
||||
"sha256": "2eecd407d667d2ef6249061181edfdcfc417a2151627622f280d74aaac1794d8"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json",
|
||||
"sha256": "381bb5f3a6e2788d0dd3ee9594a97eaedb153611194d4f8fdde420cf47814132"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像合并成四宫格.json",
|
||||
"sha256": "fb5e5b346d51a79c19e611b76d39cf4b9491493723684bbb85ab3c49923467bb"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json",
|
||||
"sha256": "3c2f6558c199a7689546dc881df2b26dc31c02715fbc7b32f51caaa4601c13d7"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/ControlNet_aux_常用样例.json",
|
||||
"sha256": "8898689d777330c4749a079cd762f573bb12a278c47a2fefbd066ffbdc122b6b"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
|
||||
"sha256": "a6799c5022c13e46d2b1cf27809cd3c1e1d140a605fa226c19359682751fd036"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/截取视频每一帧.json",
|
||||
"sha256": "43858b9121439a92e7ab35c2fb62b78e56fa93bcd0ad62679f2387f71fdec1fa"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/音频人声分离.json",
|
||||
"sha256": "3c4bc0f7b1891e298a5d4e00072c6243a61b98d5fc0d86d82a476ecead43a1a2"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像嵌入文字描述.json",
|
||||
"sha256": "938ad9ad0eed2253e9a5a9a9dc16dc6b0a22bf976a80af90aa1d0b56e42ba7d3"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频-音频分离.json",
|
||||
"sha256": "4861e3e33291ed962d2215b1d8cc976a4706d19719e3541e9cbb2c636683afc3"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"sha256": "8c760ea58d7ff664323f92a1174fe88300cd931c00201ccf437df1ad0067cb24"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/音频转MP3格式.json",
|
||||
"sha256": "c46e83b4fe8fc291e9de45b4af6cc50b566ab9377a51b50767315917dd13861b"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
|
||||
"sha256": "f5245d225f77cd64aefe6d0b8bb9342ec48a8a6293a533d65ea7304ce1b03f93"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_孤海智能一体化(多合一简化版).json",
|
||||
"sha256": "827f43d5d9bdb6f2d6f4d8b69e86708e6d08642ed0df04bee15087d10b9a0e35"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_双采样多段循环-PV动画尾帧衔接.json",
|
||||
"sha256": "c8a442bd8cae8dcd75a6a01847ca99b75dcc37ef8ff0a855c82213ed25e943e0"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_短剧创作-多宫格分镜参考.json",
|
||||
"sha256": "d2850f5fb3e5b54e3e4ec9e17f34bdb11bf7009728b5e585c769fb2f11f80275"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频人物替换.json",
|
||||
"sha256": "dce57cfc239c9f90cda2107fff5614b2cb0944e0441d9d8137b3f1c325f41a7a"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_音频MV_多参长视频分段_Selflift双采潜放大_Qwen3.8官方Skills自动提示词.json",
|
||||
"sha256": "bdc93d36fb8a4728dfa8031d1f00782d68e8e6aedd718b166f57e54216f2882f"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_图生视频-8步高质量极速版.json",
|
||||
"sha256": "97f188c9295af0dbe6358a4b23117ca1612e812d2fa3df67dd7b10ee68e96fb5"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台MiniMaxH3_多合一多分段拼接.json",
|
||||
"sha256": "34fde3a91f9ef932adc2837cc9d4254bf75a3251ad5c6474d90e4085690cbafc"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_FastH3_t2v_文生图8步极速.json",
|
||||
"sha256": "ed4a30da03245f35ff9006ac64cd045c1b9c64eb8b585520dbbb418f6793fc78"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_r2v_参考生视频_双采样潜空间放大+Qwen3.8官方Skills自动提示词.json",
|
||||
"sha256": "4c1305fdfe6d5643e64a7b6c99cc92e331ffc9475f30fef5e0119c887367aab0"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_文-图-参考-分段循环-双采放大_多合一.json",
|
||||
"sha256": "698430e2b234a107b15f1bebf7704833afeea819bd21a3af56f7121daa1383e0"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频参考+多参图.json",
|
||||
"sha256": "40f92a22aa66c9d87b876784e33b02471339d64504e22e1672155608fbcbf079"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_i2v_图生视频.json",
|
||||
"sha256": "a071e6070ee933396f225b4447c363bbf6b0df059b3cd43da567e81bc7937e84"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_文_图_首尾_参考多合一(单采样).json",
|
||||
"sha256": "526986a02875bbefebeb8a81cce9b58a8e764ab0c0092b2d8e858ecfac771638"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_短剧创作-音频参考.json",
|
||||
"sha256": "c188a7383a6c7a0dbd5d4d0717527b096ec73c1232373ee50c731bceefcfe7fb"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_t2v_文生视频.json",
|
||||
"sha256": "039d46a5bbb809b84fab3b42c777118f91d0c06835555d54410631742584f1be"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_FastH3_i2v_图生视频8步极速.json",
|
||||
"sha256": "c5eff277eeeeefacb39c4af2e5ac41251785cc18ca90c1678a653367f4dd5942"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_文生音视频-8步高质量极速版.json",
|
||||
"sha256": "5b45b49ebe4402c207e7d894e03a1bb53482b24a0c09ce50d549be4a01f9c6d0"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双采样_潜空间放大_参考生视频.json",
|
||||
"sha256": "fab48be409cf423aaed7be268c6655ae39ecd1733218413c51874c5ba2ad0bdf"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_双采样潜空间放大.json",
|
||||
"sha256": "2434bd48e3c29abf9e6ed0931f3c8825481772a134a065f6cfdd3c0b89ba81b7"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台时间线素材_双采样潜空间放大_多分段拼接.json",
|
||||
"sha256": "172eb8af3aca70082941427520fdcca06568957bab3d39101c5e9d6641b45e4a"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_视频动作参考_SelfLift双采样潜放大_Qwen3.8官方Skills自动提示词.json",
|
||||
"sha256": "2be3981360fff849a53a928a6a2040c97bcf1944dce2df82d716a805c0ef2594"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_多参考_双采样潜空间放大.json",
|
||||
"sha256": "8b97388e142ddb67c84f2cbe0bb68c10f519e7615d75f1ea0005580fe4537ab2"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_r2v_多参生视频.json",
|
||||
"sha256": "89166eb9cce4c9177a0f9a0a3a058e140429413e7beb3692e7ee5c30b76bc4fb"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_音频数字人_单采样.json",
|
||||
"sha256": "77b665bf6bcd11195f424d42d88f5142b43b0c608af776eef5744aca896f4b56"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频参考+多参图-SelfLift双采样潜放大.json",
|
||||
"sha256": "97ec7f73f32126aa24798fc65736734dfa839b74d25c4b2a94021abe063f06d7"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_音频数字人_SelfLift双采样潜放大分块_Qwen3.8官方Skills自动提示词.json",
|
||||
"sha256": "903e32248fc0c53df36c5841f4f4ccdb5fb8190a39c6c9015d3e55a451aaf7eb"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_参考生视频-8步高质量极速版.json",
|
||||
"sha256": "fae96106a128342a6903bd32680463d1be98c0d5ad738d2fff40fc0f52a35389"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3多参生视频无审核版.json",
|
||||
"sha256": "e501089f36c4c7f76a9e926e09ab9c467316d0778e62dff4c9e9faa6b155cb83"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3首尾帧生视频无审核版.json",
|
||||
"sha256": "d47d3e995858a9c581863a593d89d4f6a24ea04014a1df3faeffa7e07cb19537"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3文生视频无审核版.json",
|
||||
"sha256": "07baed6dd4a259701f7e5563fa1f19799fbbb558668d09a74876db3729fff3a2"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Anima/Anima_Klein放大_超强动漫模型.json",
|
||||
"sha256": "000843bc0e46844e556b04fc820ae1b2f7fa9bba1dd0ec21805c0c7ab27a647c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_赛博朋克现实风格.json",
|
||||
"sha256": "a353acdb89b02462abed5f1513acfcb4f538c50ab5bc8ede8e8597f3ce8eea60"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图.json",
|
||||
"sha256": "6b317af2bda225d9441074ef330669b4537e95c705987223efafd2705dbbc344"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_细节增强.json",
|
||||
"sha256": "faa28f85fbd80ec9c3aba76749d6447c1d3b4a8489c88853ebde665a4f78ef10"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_2万提示词随机模板+4千种风格选择.json",
|
||||
"sha256": "599bb58d48d68de929e7ec476f77e9f7c736c00235b68570416d214d3b4e391c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2-Edit-Anything2Real_动漫转真人v3.json",
|
||||
"sha256": "0d482e6c6fac70af6dd5549e8a464ee080a0ec135350d72d32a4ce4a8fd05bbe"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_图像风格参考.json",
|
||||
"sha256": "8c248ccc44df79b475c81e0bb260596ece066d65f2a21c0b2a72dc6b2441b170"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_Qwen3.5自动提示词生成.json",
|
||||
"sha256": "afafb0e0ebdc445a7534041589b7f6a580e0b15b8293c2fd26907474892f5957"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格2.5D半写实.json",
|
||||
"sha256": "3faf9b1f0a20c7d21367af1721583a7402f048e18991025f9afff192ff8fe077"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图 (N版).json",
|
||||
"sha256": "935fc592ead1a89614470d41c512e2d7b4a41a6887f71a0a8d8f4c071a60e3c9"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格线条动漫.json",
|
||||
"sha256": "9bab028943604b4b167a56dcc51475f67bac897c9eae3c7bf9d311b2c5cb7d91"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_美学质量增强.json",
|
||||
"sha256": "fbca5f24abf71f10ed5e2b90012aab1c25c6632a18541fbf0412b8845f603b85"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_identity_edit_图像编辑.json",
|
||||
"sha256": "c208883f17eb873063a4febaef636f0fa065131fc82bc4b0b26eff41f442719a"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_极致写实(N版).json",
|
||||
"sha256": "ec98804940c28956af1719096751bba2d274eef8a251b97207ac655a05779384"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格Image2风格.json",
|
||||
"sha256": "bf65d0080ab80a5934855a0dbc7a5e167300bb54e24a18e05e4321a70ec838ea"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_奇幻现实风格.json",
|
||||
"sha256": "7a2af26c48114c7f1a7741a5cded07c0cceb68c4e69410de8af6429eb6b5041c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_角色三视图双采样2k版.json",
|
||||
"sha256": "64bb5eb4e5399d307c12553717b8a1f0046f48b625b16e62d40e962b6bec1847"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_4_6_8宫格故事板.json",
|
||||
"sha256": "776b2f92f8906232c2ffe1b25c8b9cfe3398bfe45a9f80715f6ce5acc03e96b4"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_极致写实双采样2k版(N版).json",
|
||||
"sha256": "50433cee0d5bab60a2cce44d73adbe5fe9b486c039bc89e1caef640fe6e0b28d"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/7_Z-image+Controlnet_图像扩展.json",
|
||||
"sha256": "82cda5dca2e224a5b042daecba4c3c1405a825648a9e9ced29fe21e58f7e55f8"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/9_Z-Image+Flux2-Klein_风格重新编辑.json",
|
||||
"sha256": "3734f261691c3ad13d29b30d88e91f671d9c548f723e77d78651c7155b06c408"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/8_Z-image+Controlnet_姿势控制-洗图.json",
|
||||
"sha256": "babc1dbeb3bb4981e338d8317ff9fb6fd8c28913bf47a2e2e3eb5409439447bf"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/6_Z-image_局部重绘.json",
|
||||
"sha256": "f60e734b6ed9e678571ad7666411d6282065c38abe3e9c29ea4c5cc1c3455505"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/5_Z-Image+Qwen3.5提示词反推_文生图.json",
|
||||
"sha256": "910317a123e658f26e48ad5cd144d28b7f31e0d43cbdb3ed567048c7917b5c73"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/10_Z_Image双采样+Fluax2-klein修复-高清直出.json",
|
||||
"sha256": "043cd2abe731996b80637d87b9a799e412e08b9a15e4b7c2f4440fbcff2487b9"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用b.json",
|
||||
"sha256": "8d9e66744e0266c5f53a6396e030c38bb90053f2525ac9c3c6cc1b321006a976"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/11_Z_Image_Turbo+模型放大_图像4K高清放大.json",
|
||||
"sha256": "baaa0cd969a28abe5e6ab19b3d7f6e161468cd15c970fe4bd9922afbe09ab4da"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/12_Z_Image_Tubro_文生图_SeedVR2高清放大8K.json",
|
||||
"sha256": "8d79bcd44a7843ac5df9fbcd372a6327ba72274260ef463c46ec85709da7846a"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/1_Z-Image-Tubro_文生图.json",
|
||||
"sha256": "36713b1a3f5c4f2992c7edef2e1e8c3246d44d28ecc750b87f4353a08c3b5ab0"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_照片摄影.json",
|
||||
"sha256": "740d7d41b3248978dca2046d9a2ea99d3a66ef081d45609782d2847f04f7e0c8"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用a_.json",
|
||||
"sha256": "e58341a99587077a69baf3cec62d9ae7bb0ce02a87cb3973ce3134c04a119b23"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/2_Z-Image+Base+Turbo+双重采样工作流.json",
|
||||
"sha256": "27108ae85715b147f63d8640ee032484c70a21633e2c6234eed346079b9aba2c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/4_Z-Image+Qwen3.5-文生图.json",
|
||||
"sha256": "56bd28b5253fe734e851abd81c7851d00c62e4dbf37a22d97781d93ec367a35d"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_插图漫画.json",
|
||||
"sha256": "02ea31b959de72f9b5c00a92f21b4e17bbc2bf5a54495093a204957771a88039"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/3_Z-Image_文生图(摇光梦幻).app.json",
|
||||
"sha256": "58e88cacc6e1375cad39023e39eb1728eb36e63acce3c46fca40898d706b1d42"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_提示词增强.json",
|
||||
"sha256": "ebf173eb9d871717534a379d451d4a08ca06c3b677b552de12a5d51dbe8febf2"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生图_角色表四视图.json",
|
||||
"sha256": "6fd307b02b7ba29858723e283580c1cf4ab1fce8804a3ced1f4fc37934965392"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_角色BFS头部迁移.json",
|
||||
"sha256": "6a9da127ee2bccafeff7499ab3d62f349aec1eff4265cb211bdec578dba1fe7b"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_8步lora加速.json",
|
||||
"sha256": "172b8fff0b531fbea367e79aa6b5ed1e6b59cab2ce6cb23d324092d5b55a3f97"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_角色表四视图.json",
|
||||
"sha256": "0036c02e1ab22f44c94bd9f311d5254d7b3b0cea25211bc4ff1e92cd90e0acdf"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_深度-姿势-线稿-硬边缘-控图洗图.json",
|
||||
"sha256": "b6e232082089dd9c4046e0dc5bd1d046907525b8cb01758fb804b5f4aa11275e"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_动漫转真人.json",
|
||||
"sha256": "1aa1d3641f82533f99d99567c2708919438b9efbfc6623d684a9a88b876b75cd"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_透明背景.json",
|
||||
"sha256": "5853f21657d56e97a6b625c4487e23473b846fa8c96dc292f3700b3075245a39"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生图_提示词增强.json",
|
||||
"sha256": "dfe10917d101bf1a8a8c20750f4360690ecd478e9eb33d16a59ea0c6f12c086c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_背景移除.json",
|
||||
"sha256": "d225102993ad5aa08e619bd7f1e5abbfd54e2d5ac8d8be1eacf09722107c4c9e"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_Image2.1_图像编辑_VNCCS任意角度-任意姿势.json",
|
||||
"sha256": "a5a675500a473214eaeb1d25dc1eda83b57bba3a17d18f1f0042bee62b474314"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_一键16张姿势图.json",
|
||||
"sha256": "248b6c5ae28d5a44035c5ad91bcdfa458360a67598eaa4d195c3fb6853b18a49"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_提示词增强(N版).json",
|
||||
"sha256": "ae6521e5f42bef0b887f754c2fec5961d612afc464fbd98940a976a9795662c6"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/5_flux2_klein_图生图_扩图.json",
|
||||
"sha256": "ad8c09e81b07aa7809a7d42f633d0b9069f704187e7a983bc2ac12bc3cbb8507"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/10_flux2_klein_文生图-角色三视图.json",
|
||||
"sha256": "e04e5bd04f03ce32b5221d37c5f7cffb0405b1471cb7be90b47b407d900a49b7"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_人物迁移.json",
|
||||
"sha256": "81409bdcd546102a7a6d5b7e32578912bf7ad4f89b35718de0401ceed624225e"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/4_flux2_klein_图生图_局部重绘.json",
|
||||
"sha256": "d1d57bd401959975cbe6fd70f97706cec21bbed0a5ec3747447b9f192631f414"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/1_flux2_klein_文生图.json",
|
||||
"sha256": "523905ac41323c626d7a156c88d02156cfa4758a70175cd7a3fba2a8c4fd449b"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein-图生图_人物动作迁移.json",
|
||||
"sha256": "fc6daf483ac05fdc904ca402271223d14cc217ea4c81a17ba2ef4cae993aefe7"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/3_flux2_klein_图生图一致性增强(大雄lora).json",
|
||||
"sha256": "c6af28d5bd72df5577f1e4d336974397494dd500fff23efd4afe81037514be71"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/6_flux2-klein+Qwen3.5_转线稿洗图.json",
|
||||
"sha256": "40a9fee073066914ac610f74dc7f7a49022bda63f5b89560d4bd635094a5c757"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/8_flux2_klein_双图编辑.json",
|
||||
"sha256": "9d00eb7af7e8d49c54396e6dc2afe7770f99cf75ae765dc1b906c8c9e6b69d83"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_印花提取.json",
|
||||
"sha256": "8768dec340e35dbd70f928d8bbc34813b2bd45f5c270c405d4495b92da478337"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/2_flux2_klein_图生图.json",
|
||||
"sha256": "c0472959097f4e785205f41109c941dab26d12a874311834a7dc02c4616bbe9b"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_服装迁移.json",
|
||||
"sha256": "e3f01ba44f3628297e714b4307ed959758f04e0415093dc5ec690857384a8386"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_老照片修复.json",
|
||||
"sha256": "922c534d70b85beacc2cd51354552ed1d850dbb611b20f2d6981c4e524ce06c5"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/7_flux2_klein_图生图-动漫转真人.json",
|
||||
"sha256": "8cab62c6b7b2401bb6b51ff4426aaad2a644fc6cfe49d974769fadf19c16a0a1"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/3_flux2_klein_图生图一致性增强(小志lora).json",
|
||||
"sha256": "43995837f89e5112afa74a57180dc356f7b4d4ef9e3a325984a2fc5ca1b7c651"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/深度图/moge3_深度图_几何图_线稿图.json",
|
||||
"sha256": "a50e8b9961fbdd83fa42ca121ff77b3c1b058c7e454ad374b0de7c60e7b8c4a9"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/sdpose_视频人物姿势骨架提取.json",
|
||||
"sha256": "4586c72d8a906d4a956fb7d62307b81e57e4e345324c7e73f63103e56bfffd14"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/NLF_视频人物动作骨架获取.json",
|
||||
"sha256": "1edc7ae5cca8e059577a9572d296c84e1683695e4f13a72388ff70473795ce97"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json",
|
||||
"sha256": "43f76f599f15058b6e62ae0dfb105518a37532008eed23ef7118e4950b37a608"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/提示词生成与反推/Llama-cpp+Qwen3.5-提示词.json",
|
||||
"sha256": "9071928ce74d5133401942583603a6bc98873263fbe4c32a438fe73cee81ce90"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/提示词生成与反推/gemma4_提示词反推(图像视频音频).json",
|
||||
"sha256": "1a94bdd5987955a29e403d128c2ea5ca0b6bc8a8d5ece145e1baba07146588b0"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/VOSR2_图像超分放大.json",
|
||||
"sha256": "87484f700a9a18d1bffbc61834af2b489a58171dcb4a225e210e695a30c85dd5"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/RTX_video_upscale.json",
|
||||
"sha256": "ce189e5efdb1d608eaf7f7905f0dbf3776be2c199e143193c226ab497f2eb9ec"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_图像放大.json",
|
||||
"sha256": "2be6b137efaaf25a54aaedc841a14ff3089afdc8a01a04af6353634b8457393f"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/VOSR2_视频放大_分批循环长视频.json",
|
||||
"sha256": "0f55316d2961a293a7d9f77b7993fd6f01bd5a41a4dca58f69f4d0b35c0aa6ea"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_视频放大FOR循环长视频.json",
|
||||
"sha256": "576a9516292ed3e63b50c2a03fbfc1a99f9d643f526dc7fa3b98f6cb9832c893"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"sha256": "1ca5938a963921b16c96649a97d3b1a9f75d810d3aabcd7ce472a30e5805f3e4"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
|
||||
"sha256": "06c427c688c13b87ed5724ac6b1ed432c31f8ea6c44212b3e7596b94128619da"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/RTX_image_upscale.json",
|
||||
"sha256": "35bf9b7731e6199b5ccc113e31c248573f9ae74d1bb9302071a3a97524fea8c4"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/视频模型放大插帧(简单快速版).json",
|
||||
"sha256": "bf47ba2462a3f683fe4f1d742b7dcde81a7a3f95e7e63c021e942a6c4f9ef071"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/02.api.json",
|
||||
"sha256": "daa40971b730076691721afe95e165932df94e3423f1fc44dcb7707026e7125b"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/01.api.json",
|
||||
"sha256": "0ed76e088a23af43d6fecbf273fc0a983d7112e2b046d347f715afffac56d57e"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/07.api.json",
|
||||
"sha256": "b1b4f6a6c02d8d21701943c67b62805b1210fed17e7e26b618c58e112ea1d70d"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/06.api.json",
|
||||
"sha256": "3e9176a5346ce8b8122b6da10f377fbeb894dc7c2c82a415f85ffc0dbfefc90b"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/04.api.json",
|
||||
"sha256": "2066b07b2ca5390ba3e795df6b43934dab83865b12870b6ff26d8c0ef24f091e"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/03.api.json",
|
||||
"sha256": "91e6c2cea3747a03bbb71f661dbd016b28040781482b956365ff76a7a8b647ce"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/05.api.json",
|
||||
"sha256": "95a01c1ea27a8279a6dc202820505099a94161d91e0789189b61208b09007af8"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/registry.py",
|
||||
"sha256": "0382eda52a31f23c1c29dd7a62d0ffc93e10fcbb88872a5893b8fc93a2b2734d"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/library_cli.py",
|
||||
"sha256": "04bfa8cfbe3f9378e78594958973118ec95aa1ff0bcdbdf4da0311abbdbcd380"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/client.py",
|
||||
"sha256": "ce30b3b3587d8f0dac86d534b99f31b95f1f4d0acb361babb45fd2be9513fe72"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/output_map.py",
|
||||
"sha256": "36ed4ced825e4f7e1d389602085451b5cb9336b319d220f423f59f83fed6a70e"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/protocol_references.py",
|
||||
"sha256": "ab9d948dd1bbf83dfce27186d6e48d9c3d5dff129305afd760fb3e77570b2916"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/protocol_references.json",
|
||||
"sha256": "a10aaf98db9bb3b5ac6d1fc30b18c40cf315b34eee57ebb19470a6664e9221a4"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/routers/workflows.py",
|
||||
"sha256": "3f1d5fdacc841080973dcafb9cd87a42433ec19080a3ff14a29561f13d512c97"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/queue/worker.py",
|
||||
"sha256": "54f5505ae78802f77fedf23690579444c9ccfbb0949b32f9e96980e8d55c2d3b"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/h3-chain-evidence/library.json",
|
||||
"sha256": "667c09ebd5ba14c281366a1b9f7647d74f74e055a863b121d9324ac75a423cd4"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/media-evidence/protected-six-cases.json",
|
||||
"sha256": "c2b9dffd7f1a9c5f0de51c26c9dd81beedd3ad7f6b67a54aa3eb5cead55c8c5f"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/structure_reference.py",
|
||||
"sha256": "a9f3a8ed314a0c0a424c6781db4e83af3a85cb8b66b16b01380b5fecc3e1f0bb"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/serialization_reference.py",
|
||||
"sha256": "67724fac65acbd397198271e1ed17b91f592f52da7ce8299e575d4c597d57fa1"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/ui2api.py",
|
||||
"sha256": "86a9c98ad72afa15aaf706bab8b39589a1cbca2e93da40d0aed9f963c14c0d1f"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/h3_core_reference.py",
|
||||
"sha256": "2913654b6ec3dabac1d36b1894064b8e077dd1d743d546e81667b317339f8a5f"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/h3_chain_reference.py",
|
||||
"sha256": "a5c0ab92d99757c168648ddbc0418b23d2b871f674b153e9a240b75409cf5741"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/library.py",
|
||||
"sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c"
|
||||
}
|
||||
],
|
||||
"originals": 163,
|
||||
"old_fifty_five_blocks_unchanged": true,
|
||||
"drawer_css_unchanged": true,
|
||||
"drawer_whole_file_unchanged": true,
|
||||
"drawer_sha256": "3e3c7602bae3a031e7fb1c38792f8ba5a1f37172e7b8850d304502ea1be010c1",
|
||||
"conversion_rerun": false,
|
||||
"profiles_28_candidates_9_diffs_6": "unchanged"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
PASS browser 1998 {'aggregate': 2, 'new_restore': 662, 'old_fifty_five': 1320, 'shared_regressions': 14} fixed/polling/fixture 181 14 6 backend 176 14 readiness1; independently refused8247/5173
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,605 @@
|
||||
"Bind this old-photo graph to exact source text, without running any upstream."
|
||||
|
||||
import copy
|
||||
import hashlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
REPO = Path(__file__).resolve().parents[3]
|
||||
OUT = Path(__file__).resolve().parent
|
||||
REF = OUT.parent / "flux2-restore-reference"
|
||||
PATHS = [("example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_老照片修复.json")]
|
||||
|
||||
|
||||
def canonical(v):
|
||||
return json.dumps(v, ensure_ascii=False, sort_keys=True, separators=(",", ":")).encode()
|
||||
|
||||
|
||||
def build(index=0):
|
||||
raw = (REPO / PATHS[index]).read_bytes()
|
||||
g = json.loads(raw)
|
||||
sub = g["definitions"]["subgraphs"][0]
|
||||
reviews = json.loads(
|
||||
(REPO / ("calliope-backend/src/calliope/comfyui/source_reviews.json")).read_bytes()
|
||||
)
|
||||
common = {}
|
||||
for stem in ["2_flux2_klein_图生图", "3_flux2_klein_图生图一致性增强(小志lora)"]:
|
||||
for f in reviews[f"example_ComfyUI_workflows/3-图像生成/Flux/{stem}.json"][
|
||||
"fixed_version_document"
|
||||
]["fields"]:
|
||||
common[f["class_type"], f["field"]] = f
|
||||
manifest = json.loads((REF / "sources.json").read_bytes())["sources"]
|
||||
sources = []
|
||||
|
||||
def cite(key, file, first, last, claim):
|
||||
e = next(e for e in manifest if e["id"] == key and e["file"] == file)
|
||||
data = (REF / e["local_file"]).read_bytes()
|
||||
assert hashlib.sha256(data).hexdigest() == e["sha256"]
|
||||
assert 1 <= first <= last <= len(data.decode().splitlines())
|
||||
sources.append(
|
||||
dict(
|
||||
e,
|
||||
local_file="../flux2-restore-reference/" + e["local_file"],
|
||||
lines=[first, last],
|
||||
claim=claim,
|
||||
)
|
||||
)
|
||||
return len(sources) - 1
|
||||
|
||||
encode = cite("core", "nodes.py", 57, 81, "准确core0.8.2正负文本编码,空文本与条件不是遮罩")
|
||||
cite("core", "nodes.py", 281, 353, "准确core0.8.2参考编码和生成解码")
|
||||
loader = cite("core", "nodes.py", 701, 768, "准确VAE文件枚举及读取条件")
|
||||
model = cite("core", "nodes.py", 920, 992, "准确UNET精度与CLIP类别/设备schema")
|
||||
load = cite("core", "nodes.py", 1647, 1723, "准确LoadImage仅image后端输入、MASK与默认分支")
|
||||
save = cite(
|
||||
"core", "nodes.py", 1578, 1646, "准确SaveImage正式PNG与Preview临时协议;RETURN_TYPES为空"
|
||||
)
|
||||
cite("core", "nodes.py", 2010, 2170, "准确core0.8.2注册")
|
||||
cfg = cite(
|
||||
"core", "comfy_extras/nodes_custom_sampler.py", 801, 825, "准确CFG正负条件及FLOAT默认"
|
||||
)
|
||||
noise = cite(
|
||||
"core", "comfy_extras/nodes_custom_sampler.py", 898, 913, "准确噪声种子schema,不执行随机化"
|
||||
)
|
||||
sampler = cite("core", "comfy_extras/nodes_custom_sampler.py", 376, 395, "准确采样器动态枚举")
|
||||
cite(
|
||||
"core",
|
||||
"comfy_extras/nodes_custom_sampler.py",
|
||||
915,
|
||||
969,
|
||||
"采样双LATENT出口及x0条件,仅静态阅读",
|
||||
)
|
||||
latent = cite("core", "comfy_extras/nodes_flux.py", 36, 57, "准确空Flux2 latent默认/尺寸/批量")
|
||||
sched = cite("core", "comfy_extras/nodes_flux.py", 182, 249, "准确Flux2调度器schema及实现条件")
|
||||
ref = cite(
|
||||
"core",
|
||||
"comfy_extras/nodes_edit_model.py",
|
||||
1,
|
||||
38,
|
||||
"ReferenceLatent可选latent追加reference_latents;非采样起点",
|
||||
)
|
||||
lora = cite("lora", "nodes.py", 670, 732, "独立core0.21.1模型LoRA继承与强度/加载条件")
|
||||
primitive = cite(
|
||||
"primitive",
|
||||
"comfy_extras/nodes_primitive.py",
|
||||
21,
|
||||
36,
|
||||
("准确0.28.3 PrimitiveStringMultiline schema与value原文透传"),
|
||||
)
|
||||
cite("primitive", "comfy_extras/nodes_primitive.py", 89, 101, "准确0.28.3 Primitive扩展注册")
|
||||
cite("primitive", "nodes.py", 2373, 2518, "准确0.28.3内置扩展加载列表与nodes_primitive注册入口")
|
||||
layer = cite(
|
||||
"layer",
|
||||
"py/image_scale_by_aspect_ratio_v2.py",
|
||||
8,
|
||||
183,
|
||||
"无源身份:仅89014d显式假设的九控件、分支、五出口与注册",
|
||||
)
|
||||
cite("layer", "py/imagefunc.py", 591, 650, "同89014d fit_resize_image裁切/填充条件")
|
||||
cite("layer", "py/imagefunc.py", 1967, 1972, "同89014d向上取整到倍数;不求本图尺寸")
|
||||
front = cite(
|
||||
"frontend", "src/scripts/widgets.ts", 1, 270, "准确frontend1.36.13控件和生成后种子辅助"
|
||||
)
|
||||
host = cite(
|
||||
"frontend",
|
||||
"src/lib/litegraph/src/subgraph/SubgraphNode.ts",
|
||||
225,
|
||||
399,
|
||||
"准确1.36.13从定义边界恢复控件/名称与标签分开;目标组合恢复未知",
|
||||
)
|
||||
hostsave = cite(
|
||||
"frontend",
|
||||
"src/lib/litegraph/src/subgraph/SubgraphNode.ts",
|
||||
599,
|
||||
642,
|
||||
"准确1.36.13同步内部控件后父级序列化;不据空宿主推造缓存",
|
||||
)
|
||||
restore = cite(
|
||||
"frontend",
|
||||
"src/lib/litegraph/src/LGraphNode.ts",
|
||||
776,
|
||||
922,
|
||||
"准确1.36.13位置恢复、serialize=false和保存条件",
|
||||
)
|
||||
reroute = cite(
|
||||
"frontend",
|
||||
"src/extensions/core/rerouteNode.ts",
|
||||
1,
|
||||
58,
|
||||
"准确1.36.13旧转接注册,非后端有名参数",
|
||||
)
|
||||
comparer = cite(
|
||||
"rgthree",
|
||||
"py/image_comparer.py",
|
||||
1,
|
||||
41,
|
||||
("准确1.0.2604070017继承Preview、ui.a_images/b_images临时描述而非IMAGE返回"),
|
||||
)
|
||||
comparejs = cite(
|
||||
"rgthree",
|
||||
"web/comfyui/image_comparer.js",
|
||||
1,
|
||||
365,
|
||||
"准确比较器JS包装、Slide属性、恢复和完整历史序列化条件",
|
||||
)
|
||||
cited = {(s["id"], s["file"]) for s in sources}
|
||||
for e in manifest:
|
||||
if (e["id"], e["file"]) not in cited:
|
||||
cite(
|
||||
e["id"],
|
||||
e["file"],
|
||||
1,
|
||||
len((REF / e["local_file"]).read_bytes().decode().splitlines()),
|
||||
"本图同字节注册/辅助/锁文件/许可静态闭包;不证明安装或执行",
|
||||
)
|
||||
names = {
|
||||
147: [
|
||||
"aspect_ratio",
|
||||
"proportional_width",
|
||||
"proportional_height",
|
||||
"fit",
|
||||
"method",
|
||||
"round_to_multiple",
|
||||
"scale_to_side",
|
||||
"scale_to_length",
|
||||
"background_color",
|
||||
],
|
||||
9: ["filename_prefix"],
|
||||
145: ["rgthree_comparer"],
|
||||
152: ["value"],
|
||||
76: ["image", "upload"],
|
||||
102: ["cfg"],
|
||||
105: ["noise_seed", "control_after_generate"],
|
||||
100: ["sampler_name"],
|
||||
101: ["steps", "width", "height"],
|
||||
111: ["width", "height", "batch_size"],
|
||||
106: ["unet_name", "weight_dtype"],
|
||||
142: ["lora_name", "strength_model"],
|
||||
107: ["clip_name", "type", "device"],
|
||||
110: ["vae_name"],
|
||||
108: ["text"],
|
||||
109: ["text"],
|
||||
}
|
||||
meaning = {
|
||||
147: (
|
||||
"76参考图送入147缩放,image槽0→150.pixels及151→145.B;不是7"
|
||||
"6直接原图比较。mask无外线,MASK/BOX出口未接。源未声明提供方/版本,89014"
|
||||
"d只是有界假设,不赋予安装身份。"
|
||||
),
|
||||
9: (
|
||||
"150生成IMAGE→9正式PNG保存,前缀Flux2-Klein;准确core0.8.2"
|
||||
"默认output目录/递增文件名及ui.images描述不证明真实目录或/history。"
|
||||
"源声明images IMAGE输出但未接,与准确RETURN_TYPES=()冲突保留,不"
|
||||
"修图。"
|
||||
),
|
||||
145: (
|
||||
"A来自150子图生成,B来自147缩放后经151;完整temp_acghq A/B历史列表"
|
||||
"只作文本,不请求URL。Slide是独立属性;准确rgthree继承PreviewImag"
|
||||
"e生成temp与ui.a_images/ui.b_images,前端包装/恢复/序列化分列"
|
||||
",源IMAGE口与无直接IMAGE返回冲突保留;目标宿主协议未知。"
|
||||
),
|
||||
152: (
|
||||
"根152.value完整英文修复指令→150.text输入索引5→定义294→108.te"
|
||||
"xt。与108内部相同英文缓存为两个保存位置,不去重,不把缓存当实际运行值。准确core0"
|
||||
".28.3 Primitive只透传字符串,不执行指令或保证效果。"
|
||||
),
|
||||
76: (
|
||||
"保存640.webp与上传辅助image分列,IMAGE→1"
|
||||
"47.image,MASK未接;文件名不能证明图像内容、存在"
|
||||
"、已上传或遮罩生效,未读取真实图片。"
|
||||
),
|
||||
102: (
|
||||
"保存JSON int1,准确FLOAT默认8.0不改源类型;"
|
||||
"接140正向/139负向→103.guider,不保证修复效"
|
||||
"果。"
|
||||
),
|
||||
105: (
|
||||
"保存825034918591445与randomize辅助分"
|
||||
"列,NOISE→103;不执行种子/噪声,不承诺最终种子或复"
|
||||
"现。"
|
||||
),
|
||||
100: "保存euler,SAMPLER→103;目标动态枚举/效果/耗时未知,不运行采样。",
|
||||
101: (
|
||||
"保存步骤4/宽1024/高1024,SIGMAS→103;宽高被147实际输出经宿主索引7"
|
||||
"/8、边界296/297与135/136覆盖。四处尺寸缓存均保留,不求尺寸或sigmas。"
|
||||
),
|
||||
111: (
|
||||
"空Flux2 latent才是103.latent_image采样起点,batch_siz"
|
||||
"e保存1。宽高1024缓存被147实际输出经宿主7/8→296/297→135/136覆盖"
|
||||
";不把参考latent当采样起点或保证最终尺寸。"
|
||||
),
|
||||
106: (
|
||||
"保存Flux反斜杠flux-2-klein-9b-fp8.safetensors/defa"
|
||||
"ult→142活动LoRA→102。unet_name经边界290对应宿主未接外线输入1;"
|
||||
"宿主[]无该保存位置。文件名和默认精度不证明实际dtype/兼容。"
|
||||
),
|
||||
142: (
|
||||
"活动mode0小志LoRA:Flux反斜杠Flux2-Klein-9B_lcs_consi"
|
||||
"st_20260415_一致性小志版.safetensors/0.8,独立core0.21"
|
||||
".1;lora_name边界291对应宿主未接输入2。只模型分支,不保证人物身份或修复兼容"
|
||||
",不加载文件。"
|
||||
),
|
||||
107: (
|
||||
"qwen_3_8b_fp8mixed.safetensors/flux2/default同"
|
||||
"时供108正向和109负向;clip_name边界292对应宿主未接输入3。propert"
|
||||
"ies.models推荐与保存引用分列,不证明本机模型/许可/兼容或实际设备。"
|
||||
),
|
||||
110: (
|
||||
"flux2-vae.safetensors同时供141参考编码和104解码;vae_nam"
|
||||
"e边界293对应宿主未接输入4。properties.models推荐与保存引用分列,不请"
|
||||
"求下载或保证兼容。"
|
||||
),
|
||||
108: (
|
||||
"内部完整英文正向缓存经140加入141参考latent→102.positive;text"
|
||||
"有边界294,宿主text索引5接根152,外部文字覆盖内部缓存。根/内部双位置分别保留,"
|
||||
"不重算实际值。"
|
||||
),
|
||||
109: (
|
||||
"完整英文负向经139加入同一141参考latent→102.negative;text边界"
|
||||
"295对应宿主text_1索引6无外线,缓存全文保留但UE/代理恢复未知。不保证避免低质、"
|
||||
"塑料肤色、过锐、现代服装、伪影或失真。"
|
||||
),
|
||||
}
|
||||
layer_specs = {
|
||||
"aspect_ratio": (
|
||||
"缩放宽高比",
|
||||
"无显式default;枚举首项original",
|
||||
"比例枚举",
|
||||
"original/custom/1:1/3:2/4:3/16:9/2:3/3:4/9:16",
|
||||
("保存original,参考假设取原图宽高比;proportional_width/height仅custom分支使用。"),
|
||||
),
|
||||
"proportional_width": (
|
||||
"自定义比例宽",
|
||||
"1",
|
||||
"比例份数INT",
|
||||
"1~1e8,step1;仅custom",
|
||||
"保存1,当前original不使用该自定义比例缓存。",
|
||||
),
|
||||
"proportional_height": (
|
||||
"自定义比例高",
|
||||
"1",
|
||||
"比例份数INT",
|
||||
"1~1e8,step1;仅custom",
|
||||
"保存1,当前original不使用该自定义比例缓存。",
|
||||
),
|
||||
"fit": (
|
||||
"适配方式",
|
||||
"无显式default;首项letterbox",
|
||||
"适配枚举",
|
||||
"letterbox/crop/fill",
|
||||
("保存crop;假设fit_resize_image采用覆盖裁切,不把本图当遮罩复合或保证保留像素。"),
|
||||
),
|
||||
"method": (
|
||||
"缩放插值",
|
||||
"无显式default;首项lanczos",
|
||||
"插值枚举",
|
||||
"lanczos/bicubic/hamming/bilinear/box/nearest",
|
||||
"保存lanczos;只按准确假设实现解释插值条件,不处理图片。",
|
||||
),
|
||||
"round_to_multiple": (
|
||||
"尺寸向上整除",
|
||||
"无显式default;首项字符串8",
|
||||
"倍数字符串",
|
||||
"8/16/32/64/128/256/512/None",
|
||||
"保存字符串8而非int8;假设实现转int后向上取整到倍数,不试算最终尺寸。",
|
||||
),
|
||||
"scale_to_side": (
|
||||
"缩放目标边",
|
||||
"无显式default;首项None",
|
||||
"目标边枚举",
|
||||
("None/longest/shortest/width/height/total_pixel(kilo pixel)"),
|
||||
"保存longest;按比例选择长边1536,再按倍数取整;不是百万像素模式。",
|
||||
),
|
||||
"scale_to_length": (
|
||||
"目标边长度",
|
||||
"1024",
|
||||
"像素INT(当前longest)",
|
||||
"4~1e8,step1;total_pixel分支单位另为千像素",
|
||||
"保存1536,为longest意图而非保证最终画布;原图未读,不求尺寸。",
|
||||
),
|
||||
"background_color": (
|
||||
"填充背景色",
|
||||
'"#000000"',
|
||||
"颜色字符串",
|
||||
"fit_resize_image按fit分支使用",
|
||||
"保存#000000;crop不冒充黑边已填充,颜色仅字符串未执行。",
|
||||
),
|
||||
}
|
||||
evidence = {
|
||||
147: [layer, host],
|
||||
9: [save, host],
|
||||
145: [comparer, comparejs, save],
|
||||
152: [primitive, host, restore],
|
||||
76: [load, front],
|
||||
102: [cfg],
|
||||
105: [noise, front],
|
||||
100: [sampler],
|
||||
101: [sched, layer, host, reroute],
|
||||
111: [latent, layer, host, reroute],
|
||||
106: [model, host, hostsave],
|
||||
142: [lora, host, hostsave],
|
||||
107: [model, host, hostsave],
|
||||
110: [loader, host, hostsave],
|
||||
108: [encode, ref, primitive, host],
|
||||
109: [encode, ref, host],
|
||||
}
|
||||
empty_effect = {
|
||||
143: (
|
||||
"Label仅布局字体属性;类名不足以继承比较器rgthree身份,字体/目录/许可未核,不下载字体。"
|
||||
),
|
||||
151: "147缩放IMAGE→151→145.B,保留转接而非原图B。",
|
||||
150: (
|
||||
"宿主widgets_values=[]零保存,10项proxyWidgets与9个边界in"
|
||||
"puts分别保留;定义widgets=[]不是null,不虚构宿主缓存。"
|
||||
),
|
||||
141: ("定义pixels经276→141,110.VAE→141;参考LATENT同时→140正向和139负向。"),
|
||||
140: "108正向与141参考latent组合→102.positive;非采样起点。",
|
||||
139: "109负向与同一141参考latent组合→102.negative;不是ZeroOut。",
|
||||
103: ("111空latent采样起点;槽0→104解码,第二LATENT denoised_output保存[]未接。"),
|
||||
104: (
|
||||
"103槽0→104,与110.VAE解码→201定义IMAGE输出;声明linkIds原["
|
||||
"201,201,201]和links一条201分别保留,不去重或先判无效。"
|
||||
),
|
||||
135: "宽边界296→135→101.width与111.width。",
|
||||
136: "高边界297→136→101.height与111.height。",
|
||||
}
|
||||
fields, empty, comments = [], [], []
|
||||
for prefix, graph in [("", g), ("/definitions/subgraphs/0", sub)]:
|
||||
for i, n in enumerate(graph["nodes"]):
|
||||
nid = n["id"]
|
||||
ptr = f"{prefix}/nodes/{i}"
|
||||
display = str(nid) if not prefix else f"150:{nid}"
|
||||
if n["type"] in ["MarkdownNote", "Note"]:
|
||||
comments.append(
|
||||
dict(
|
||||
node_id=display,
|
||||
pointer=ptr + "/widgets_values/0",
|
||||
text=n["widgets_values"][0],
|
||||
meaning=(
|
||||
"完整作者指南:子图链接、base-9b下载协议、编码器/VAE目录与更新/报错指南原文可读"
|
||||
";与106非base保存引用分列,不代接受协议/下载/更新或将链接当本轮指令。"
|
||||
),
|
||||
)
|
||||
)
|
||||
continue
|
||||
if not n.get("widgets_values"):
|
||||
empty.append(
|
||||
dict(
|
||||
node_id=display,
|
||||
class_type=n["type"],
|
||||
pointer=ptr,
|
||||
scope="root" if not prefix else prefix,
|
||||
state="missing"
|
||||
if "widgets_values" not in n
|
||||
else "null"
|
||||
if n["widgets_values"] is None
|
||||
else "empty_list",
|
||||
effect=(
|
||||
"源缺widgets_values键;"
|
||||
if "widgets_values" not in n
|
||||
else "源widgets_values=[],零位置;"
|
||||
)
|
||||
+ empty_effect[nid],
|
||||
)
|
||||
)
|
||||
continue
|
||||
for j, (name, v) in enumerate(zip(names[nid], n["widgets_values"], strict=True)):
|
||||
if nid == 147:
|
||||
label, default, unit, limits, extra = layer_specs[name]
|
||||
f = dict(
|
||||
label=label,
|
||||
schema_default=default,
|
||||
unit=unit,
|
||||
limits=limits + ";仅89014d参考假设,源版本未知",
|
||||
)
|
||||
elif nid == 152:
|
||||
f = dict(
|
||||
label="老照片修复文字",
|
||||
schema_default="schema未显式声明default;不以保存文字冒充默认",
|
||||
unit="多行字符串",
|
||||
limits=(
|
||||
"准确0.28.3 String Input value multiline=True;原字符串返回,不解析执行"
|
||||
),
|
||||
)
|
||||
extra = (
|
||||
"去除划痕、污渍、灰尘,改善褪色、微对比、锐度、白平衡,保留原"
|
||||
"身份与自然肤色均为作者意图,未经图片或效果验证。"
|
||||
)
|
||||
else:
|
||||
f = copy.deepcopy(common[n["type"], name])
|
||||
extra = ""
|
||||
inp = next(
|
||||
(k for k, x in enumerate(n.get("inputs", [])) if x["name"] == name), None
|
||||
)
|
||||
auxiliary = name in ["control_after_generate", "upload", "rgthree_comparer"]
|
||||
linked = (
|
||||
not auxiliary and inp is not None and n["inputs"][inp].get("link") is not None
|
||||
)
|
||||
f.update(
|
||||
node_id=display,
|
||||
definition_node_id=str(nid),
|
||||
scope="root" if not prefix else prefix,
|
||||
class_type=n["type"],
|
||||
field=name,
|
||||
pointer=f"{ptr}/widgets_values/{j}",
|
||||
value=v,
|
||||
json_type=type(v).__name__,
|
||||
named_pointer="源无widgets_values_named,不构造具名保存指针",
|
||||
input_pointer=f"{ptr}/inputs/{inp}"
|
||||
if inp is not None
|
||||
else "无独立后端输入:前端辅助/历史",
|
||||
input_name=n["inputs"][inp]["name"] if inp is not None else None,
|
||||
type=n["inputs"][inp]["type"] if inp is not None else "前端辅助/历史",
|
||||
role="frontend_reference_only"
|
||||
if auxiliary
|
||||
else "linked_saved_cache"
|
||||
if linked
|
||||
else "saved_layout_reference",
|
||||
effect=meaning[nid] + (" " + extra if extra else ""),
|
||||
evidence=evidence[nid],
|
||||
execution_note=(
|
||||
"保存现值、准确参考默认、边界覆盖与实际运行值分列;目标安装/"
|
||||
"UE/tab/代理恢复/模型/效果未知,停用未实跑,不增加转"
|
||||
"换或执行资格。"
|
||||
),
|
||||
)
|
||||
if nid == 142:
|
||||
f["schema_default"] = (
|
||||
"1.0" if name == "strength_model" else "动态loras枚举,无固定文件default"
|
||||
)
|
||||
f["limits"] = (
|
||||
"准确core0.21.1 FLOAT -100~100,step0.01"
|
||||
if name == "strength_model"
|
||||
else "准确core0.21.1动态模型文件;目标许可/兼容未知"
|
||||
)
|
||||
if nid == 109:
|
||||
f["label"] = "完整英文负向编码"
|
||||
f["unit"] = "负向编码文本"
|
||||
if nid == 108:
|
||||
f["label"] = "内部修复正向缓存"
|
||||
fields.append(f)
|
||||
assert len(fields) == 34 and len(comments) == 1 and len(empty) == 10
|
||||
overview = (
|
||||
"这张图希望修复老照片:先缩放参考图片,把参考特征加入正负条件,再用小志LoRA与英文修复指"
|
||||
"令从空latent采样,保存并与缩放后的参考图比较。文字要求去除划痕、褪色并保留身份和自然"
|
||||
"肤色;图片和效果未验证,目前仅供参考。"
|
||||
)
|
||||
flow = [
|
||||
overview,
|
||||
(
|
||||
"原字节核9根节点9边+定义18节点32含边界记录,全mode0;34非注释位置=根14+内"
|
||||
"部20=33标量+1完整历史列表,完整MarkdownNote97另计1396字符。无具名"
|
||||
"保存;四缺键与六[]逐项分列,不与null混同。"
|
||||
),
|
||||
]
|
||||
flow += [
|
||||
meaning[k] for k in [76, 147, 152, 106, 142, 107, 110, 108, 109, 102, 105, 100, 101, 111]
|
||||
]
|
||||
flow += [empty_effect[k] for k in [150, 135, 136, 141, 140, 139, 103, 104]]
|
||||
flow += [
|
||||
meaning[9],
|
||||
meaning[145],
|
||||
empty_effect[143],
|
||||
(
|
||||
"常见问题:图名和英文目标不证明可还原原貌/身份、锐度或肤色。图中没有实际遮罩编辑链,不承诺"
|
||||
"遮罩外像素不变。Note推荐base-9b与106非base引用不同;LoRA活动不等于兼"
|
||||
"容。历史temp URL不是本次产物;准确SaveImage与Comparer返回协议冲突"
|
||||
"均保留,整图继续关闭。"
|
||||
),
|
||||
(
|
||||
"身份分层:根152及宿主150声明core0.28.3,不赋予内部core新身份;内部多数"
|
||||
"及根Load/Save为core0.8.2,142.LoRA独立0.21.1。fronte"
|
||||
"nd1.36.13同树锁依赖与准确rgthree1.0.2604070017分别绑定;La"
|
||||
"yer147与Label无版本不继承身份。UE7.5.2/7.7/7.8、tab、代理恢复"
|
||||
"、字体/目录/许可适用性/模型兼容仍未知;不混TT/KJ/Impact/Painter/l"
|
||||
"lama/Easy。"
|
||||
),
|
||||
]
|
||||
flow += ["根物理边 " + json.dumps(e, ensure_ascii=False) for e in g["links"]]
|
||||
flow += ["定义物理边 " + json.dumps(e, ensure_ascii=False) for e in sub["links"]]
|
||||
for prefix, graph in [("", g), ("/definitions/subgraphs/0", sub)]:
|
||||
flow += [
|
||||
f"{prefix or '根'}节点{n['id']}独立属性 "
|
||||
+ json.dumps(n.get("properties", {}), ensure_ascii=False)
|
||||
for n in graph["nodes"]
|
||||
]
|
||||
boundaries = [
|
||||
dict(
|
||||
scope="/definitions/subgraphs/0",
|
||||
**{
|
||||
k: sub[k] for k in ["id", "inputNode", "outputNode", "inputs", "outputs", "widgets"]
|
||||
},
|
||||
),
|
||||
dict(
|
||||
host_pointer="/nodes/7",
|
||||
host_saved=[],
|
||||
proxyWidgets=g["nodes"][7]["properties"]["proxyWidgets"],
|
||||
inputs=g["nodes"][7]["inputs"],
|
||||
effect="10代理控件与9边界输入分开,不虚构宿主值;重复linkIds声明不改写。",
|
||||
),
|
||||
]
|
||||
flow += ["原定义边界/宿主声明 " + json.dumps(b, ensure_ascii=False) for b in boundaries]
|
||||
versions = []
|
||||
for key in ["core", "lora", "primitive", "frontend", "rgthree", "layer"]:
|
||||
e = next(s for s in sources if s["id"] == key)
|
||||
versions.append(
|
||||
f"{key} {e['tag']} commit {e['commit']};tree {e['tree']};许可见{e['license_file']}"
|
||||
)
|
||||
versions += [
|
||||
("local_file以docs/hel-892/flux2-restore-document-evidence为基准;原字节SHA256 ")
|
||||
+ hashlib.sha256(raw).hexdigest(),
|
||||
(
|
||||
"旧55块逐对象冻结;rgthree完整包SHA/Git未知,成员CRC/SHA不冒充完整包"
|
||||
"身份。Layer API树索引ref与真实tree分列,仅选定blob/commit元数据"
|
||||
"互证,不声称完整树重哈希。来源仅静态文本,不执行上游。"
|
||||
),
|
||||
]
|
||||
return dict(
|
||||
source_path=PATHS[index],
|
||||
source_sha1=hashlib.sha1(raw).hexdigest(),
|
||||
source_sha256=hashlib.sha256(raw).hexdigest(),
|
||||
canonical_sha256=hashlib.sha256(canonical(g)).hexdigest(),
|
||||
notice="仅参考:目标安装/恢复、模型/素材/许可与实际修复效果未核,保持停用和转换关闭。",
|
||||
user_overview=overview,
|
||||
versions=versions,
|
||||
counts=dict(
|
||||
saved_fields=34,
|
||||
root_saved_fields=14,
|
||||
internal_saved_fields=20,
|
||||
linked_saved_fields=sum(f["role"] == "linked_saved_cache" for f in fields),
|
||||
frontend_only=sum(f["role"] == "frontend_reference_only" for f in fields),
|
||||
source_nodes=27,
|
||||
root_nodes=9,
|
||||
internal_nodes=18,
|
||||
physical_edges=41,
|
||||
source_notes=1,
|
||||
history_objects=1,
|
||||
final_scalars=0,
|
||||
final_prompt_constructed=False,
|
||||
),
|
||||
fields=fields,
|
||||
sources=sources,
|
||||
comments=comments,
|
||||
flow=flow,
|
||||
flow_evidence=list(range(len(sources))),
|
||||
zero_saved_nodes=empty,
|
||||
boundaries=boundaries,
|
||||
steps=[
|
||||
overview,
|
||||
(
|
||||
"阅读1:核对640.webp文件引用、完整英文根提示/内部正"
|
||||
"向/负向、Note下载协议和模型路径,仅读文本不打开链接或媒"
|
||||
"体。"
|
||||
),
|
||||
(
|
||||
"阅读2:核对147九项缩放保存、宿主空数组/10代理/9输入"
|
||||
"、宽高四覆盖、参考latent条件与空latent起点、重复"
|
||||
"201边界及A生成/B缩放图比较。"
|
||||
),
|
||||
(
|
||||
"阅读3:目标版本/许可/目录/恢复和效果未确认,保持停用,155全量完成审核后才发布;不连"
|
||||
"接目标、不构造prompt、不执行上游/模型/GPU/媒体/种子/状态/缓存,不下载或代接"
|
||||
"受协议。"
|
||||
),
|
||||
],
|
||||
)
|
||||
@@ -0,0 +1,438 @@
|
||||
{
|
||||
"base": "5dbfe1c3942a1095edc72bcbdd377b596bd949b0",
|
||||
"files": [
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/fixed_document.py",
|
||||
"purpose": "仅新增本图代码拥有摘要,失败关闭逻辑不变",
|
||||
"bytes": 14296,
|
||||
"sha256": "e77533582a381e05dcda1ca7700fc471c6a3d9c98588dc11f62310827680ea3e"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/source_reviews.json",
|
||||
"purpose": "仅新增本图固定参考块,旧55块逐对象冻结",
|
||||
"bytes": 7389699,
|
||||
"sha256": "360ef895c223b550fa19fa894ef36664a963cf7c4e0b83354cb8428281a83083"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/tests/test_flux2_restore_fixed_document.py",
|
||||
"purpose": "原值/类型/边界/全图/代码拥有摘要拒绝与资格专项",
|
||||
"bytes": 11258,
|
||||
"sha256": "a6f005cf89a6b420189067e485c98e3d0e6609380f184840741cc8d089555de5"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/Flux老照片修复固定参考中文说明.md",
|
||||
"purpose": "本图实际逐34位置中文说明与完整源注释/模型/步骤/FAQ/来源",
|
||||
"bytes": 123193,
|
||||
"sha256": "0ff14369e46328c5867b6a14554178cd99bbd69fb70325ce58d11fe67b6d3af0"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/acquisition.txt",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 598,
|
||||
"sha256": "1d9712876156768ba2de3b6698b8bf9a67a914a50c87a94f3fe5adeae424291f"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/actual-flux2_klein_图生图_老照片修复.json",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 219399,
|
||||
"sha256": "ac9d38f88ad8ba2c231fd03c757ea641d5d3e4761c4f7419632899507d91cfd8"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/audit-summary.json",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 797,
|
||||
"sha256": "b79c3f138241cc4c82f8530637349ec411fc8bd92de0668a07e2a88c4a2cbb7a"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/authored-diff-check.txt",
|
||||
"purpose": "本轮完整差分检查原始记录;准确原件/原始获取日志不格式化,自写文件另查",
|
||||
"bytes": 30,
|
||||
"sha256": "112b03cbfed5262da4c580ae9e01fbc92b5ae6993298d4b1eeb97b17b16cf7ae"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/backend-build.txt",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 211,
|
||||
"sha256": "c00444fef525c4c1ed8a45e13530a1c95be11554e0ee19ff95f40e5dab717cee"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/backend-request-counts.json",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 2028,
|
||||
"sha256": "de359d1da1f3500af30e9d68e9ed5205b1c64a652892b2035820e6f3cf99efcf"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/bind_sources.py",
|
||||
"purpose": "离线证据重建、来源核验、保护差分、渲染或请求对账工具",
|
||||
"bytes": 6533,
|
||||
"sha256": "7a0fbe441cd8becb13c76724b401d0bf90094dacb431f8341e3c0f70849c3f2d"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/boundaries.json",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 38632,
|
||||
"sha256": "8204b991fb3fad949742e3c54ede8a18c918addd47ee8f05559055895de879cf"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/browser-accounting.txt",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 194,
|
||||
"sha256": "801b7dd8460bdbe0bdd717dae2c7df85d572aa28475d6294b94fe4ae9f17c586"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/browser-development.txt",
|
||||
"purpose": "保留开发检查与目验修正记录,不累计测试次数",
|
||||
"bytes": 115206,
|
||||
"sha256": "202befc285ae864ab14e1006763a44d29eaa49babedfc8b53da0211f953ba0d5"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/browser-results.json",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 139766,
|
||||
"sha256": "d6b0fa2ae9d3d2e1b554a9589e5b27ae354ea9f03e8f1bb9772d05098f40d890"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/browser.txt",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 115206,
|
||||
"sha256": "202befc285ae864ab14e1006763a44d29eaa49babedfc8b53da0211f953ba0d5"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/build_definition.py",
|
||||
"purpose": "离线证据重建、来源核验、保护差分、渲染或请求对账工具",
|
||||
"bytes": 27369,
|
||||
"sha256": "0212612cd0a38b18a2f5d2fe350d58c606ab38398124fa1001d94106b46def0f"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/collect_browser.py",
|
||||
"purpose": "离线证据重建、来源核验、保护差分、渲染或请求对账工具",
|
||||
"bytes": 3264,
|
||||
"sha256": "834278039f6a7e4e5c2a28123f6d673f52dd62e0da4d06ff4e1989b890fadea5"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/definition-0.json",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 172543,
|
||||
"sha256": "dd9451d48ddbade903f21b6b6a00b30e0f6f329269a1f4c4fde8895dd68a863a"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/delivery-summary.md",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 3730,
|
||||
"sha256": "ba8ab21c8c416d338b4d79f16f6e8a837da89f31f56799e8935ce38b6fbcf330"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/development-notes.md",
|
||||
"purpose": "保留开发检查与目验修正记录,不累计测试次数",
|
||||
"bytes": 378,
|
||||
"sha256": "5457ba6dd32c53c9f6c3e8cb93c40e351ec80887d90c6fef04bbf7d2a80930cd"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/diff-check.txt",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 0,
|
||||
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/fixed-source-index.json",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 94312,
|
||||
"sha256": "6afff8cf8f77308a5635e2d97874570f2db6f2dce94dbfc85d0acffb0fb30db1"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/format.txt",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 27,
|
||||
"sha256": "cfe5c6461b42a90595a492aed11f2c8e6eb98b7c4caf2cc9f47e3333185e3f33"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/frontend-build.txt",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 24326,
|
||||
"sha256": "6b30be5eee6e19f7c32a865f6ed6c2ed8e9e9c6eb69f8de0e433f959c3e9ca6d"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/frozen-resource-check.json",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 40348,
|
||||
"sha256": "68cae99105ad01b7e4691db88d34e36495fb1c398809c6845831f3cd22f85848"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/import-protection.json",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 1270,
|
||||
"sha256": "4d74624e03cdff691c96fae820d148b6714a7aa38ada74745c71d3d28775456a"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/independent-inventory.json",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 17569,
|
||||
"sha256": "565879a2311a0adbdb1f9c4ab1b850b76d34e36fe3e86d35a19e70314f3406a6"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/inventory.py",
|
||||
"purpose": "离线证据重建、来源核验、保护差分、渲染或请求对账工具",
|
||||
"bytes": 3169,
|
||||
"sha256": "83ae902992fb6cd39aa9421e0fdeeae30b514083623b78a291a94884dcb05172"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/js-syntax.txt",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 0,
|
||||
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/lint.txt",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 19,
|
||||
"sha256": "82b3e6a6c090a57601d22943bd23fca9218d1031dbe5a7b754092f9a156b4f18"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/npm-ci.txt",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 143,
|
||||
"sha256": "99aec36e74054441a1e4c2ee0d37b5e5cbe2e3ce61938cf82941f876a338315b"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/package-check.json",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 550,
|
||||
"sha256": "4038a78b99b3820f240da071f26b7d19258a67662926720629aa222cc04e2daf"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/pins.json",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 165,
|
||||
"sha256": "028310bed2df60ed237b67559f091002fb08d148eb6c592b3765892105ce6b3b"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/ports-independent.json",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 165,
|
||||
"sha256": "1e487821f761ab96db779fb3b6fb5e5411005f9027f12a880a779aefb23c50bc"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/pr-before.json",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 321,
|
||||
"sha256": "7c90d83ef84e2212005e4dcf2164f5f2043a9d3d8eb2cc99c1d2810f3fa3e004"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/raw-diff-check.json",
|
||||
"purpose": "本轮完整差分检查原始记录;准确原件/原始获取日志不格式化,自写文件另查",
|
||||
"bytes": 441,
|
||||
"sha256": "e200372f66b00bd8f5c2c086e8dd497e06d6859cfcd6eaa9ab5901de5ba12055"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/rebuild.py",
|
||||
"purpose": "离线证据重建、来源核验、保护差分、渲染或请求对账工具",
|
||||
"bytes": 2457,
|
||||
"sha256": "7d660ece1ad1a732e3d71fa5bdf8e4d3fd6976af0a5bab1cdb5b10e5c87d5630"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/recompute.py",
|
||||
"purpose": "离线证据重建、来源核验、保护差分、渲染或请求对账工具",
|
||||
"bytes": 13780,
|
||||
"sha256": "42bb064dda554c9ed3754de37f2c522c368d572504d67056b909ae15c9658aa6"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/recompute.txt",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 239,
|
||||
"sha256": "391f5b64997cfd048282e45a057d35e5462c91440d548544d38e3c22e2754fd9"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/render_report.py",
|
||||
"purpose": "离线证据重建、来源核验、保护差分、渲染或请求对账工具",
|
||||
"bytes": 4684,
|
||||
"sha256": "6e54b310eeb17a7de89f19babd286fea854c4bea9a78128a23c2b43cfa15b818"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/repeat.py",
|
||||
"purpose": "离线证据重建、来源核验、保护差分、渲染或请求对账工具",
|
||||
"bytes": 1313,
|
||||
"sha256": "548d65bc87c10501b1af5d98194c1d398d5c343abe14029f3c93f0a12617f800"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/repeat.txt",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 71,
|
||||
"sha256": "1c4de890cacc8abbcb119c86e6ebbea50780922b17bc7883685bfe4e0b261a96"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/repeatability.json",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 420,
|
||||
"sha256": "877a443568e670c4737c63a42c8b43bd1a3600448bec2f8a3f30e5d71adeadd6"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/review-delta.json",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 388,
|
||||
"sha256": "830cc75facd54363980353bc0b8616dcb6a0f66d2e7fff72466d781cab35f775"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/ruff-development.txt",
|
||||
"purpose": "保留开发检查与目验修正记录,不累计测试次数",
|
||||
"bytes": 20466,
|
||||
"sha256": "ac097c9811a87c73b6653805069d2b35915599f8710384d08488d4915d2578aa"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/service-0.txt",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 13340,
|
||||
"sha256": "d9a11ae473d1615a1548d4b97013880b237b23e82419a56a29ce73690fa8cd02"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/service-1.txt",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 72,
|
||||
"sha256": "44fa5a00620dd067fe03b0567f23b3691361d968f5f64ff183224375ea1cf9fd"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/service-stop.json",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 65,
|
||||
"sha256": "26a1c53a887aaa01778530a87c33062e6121fde93e9eacea671c3561b8fe5594"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/source-check.json",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 40172,
|
||||
"sha256": "7ecbfd5ce482a0d3978f9d6d2991e58b623c978fc80fefa220640e5a8e347b76"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/tests-development.txt",
|
||||
"purpose": "保留开发检查与目验修正记录,不累计测试次数",
|
||||
"bytes": 1040,
|
||||
"sha256": "5125bcfe4f2c8d05338f3032f36d01ee8c9be321a2dd5b12a7d75e161d19605e"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/tests-final.txt",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 1040,
|
||||
"sha256": "19001f9d3033641ba69740b5e71bf1577279b43149ff58797f3b05d80289a416"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/validation-commands.txt",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 2999,
|
||||
"sha256": "c0215b75d2d573973cbb765cde89d2b0d3952e208b239fdcf91c60b56ff4fa95"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/verify_sources.py",
|
||||
"purpose": "离线证据重建、来源核验、保护差分、渲染或请求对账工具",
|
||||
"bytes": 8570,
|
||||
"sha256": "d4e5adba1bd5fd4344d9b9da048415bf26572c157c39fce714d3719538cd40f7"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-document-evidence/visual-inspection.json",
|
||||
"purpose": "本轮实际检查报告、原始日志、复现命令或参考定义产物",
|
||||
"bytes": 1102,
|
||||
"sha256": "04a84b58b10c4a4434c49adce658f35f426176713f7962000d76bf7089587a33"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-reference/frontend__src__lib__litegraph__src__subgraph__Subgraph.ts",
|
||||
"purpose": "准确原始来源文本或Git对象/索引与本图绑定清单;不执行/不格式化",
|
||||
"bytes": 224,
|
||||
"sha256": "321403ca3ba2faa0b448dec6e8bf379e49ddea4bfbe8619547d29926e30d62d2"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-reference/frontend__src__lib__litegraph__src__subgraph__SubgraphInput.ts",
|
||||
"purpose": "准确原始来源文本或Git对象/索引与本图绑定清单;不执行/不格式化",
|
||||
"bytes": 7318,
|
||||
"sha256": "a4dfd52eab550bb4a9bb7ef4634a8759bdafe8ce571fe85b329ddde6cd9dc017"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-reference/frontend__src__lib__litegraph__src__subgraph__SubgraphInputNode.ts",
|
||||
"purpose": "准确原始来源文本或Git对象/索引与本图绑定清单;不执行/不格式化",
|
||||
"bytes": 7288,
|
||||
"sha256": "6fb0c76caf541531a2994646321fa0da88bec4a2b4f6f7fac170d989bdacc325"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-reference/frontend__src__lib__litegraph__src__subgraph__SubgraphNode.ts",
|
||||
"purpose": "准确原始来源文本或Git对象/索引与本图绑定清单;不执行/不格式化",
|
||||
"bytes": 20333,
|
||||
"sha256": "6cb4656a46159cdc9744e0b3be7075cbdf05d7b56ac0f0aac273d8c2db780a0b"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-reference/frontend__src__lib__litegraph__src__subgraph__SubgraphOutput.ts",
|
||||
"purpose": "准确原始来源文本或Git对象/索引与本图绑定清单;不执行/不格式化",
|
||||
"bytes": 5106,
|
||||
"sha256": "55de0bcca7f8cc818aeac98f98f1ef97f6173988571cd975b72c92569bae10aa"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-reference/frontend__src__lib__litegraph__src__subgraph__SubgraphOutputNode.ts",
|
||||
"purpose": "准确原始来源文本或Git对象/索引与本图绑定清单;不执行/不格式化",
|
||||
"bytes": 4625,
|
||||
"sha256": "e68aed97fec7abacdbe75531bbacdb6a1c433290a185eae6fc2cc4c40dbef735"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-reference/layer-commit-meta.json",
|
||||
"purpose": "准确原始来源文本或Git对象/索引与本图绑定清单;不执行/不格式化",
|
||||
"bytes": 7469,
|
||||
"sha256": "0eb17975a5dbfaea23f9036b8256c80d106c381b4dab6bf77af3a5e3fda99d5e"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-reference/primitive-commit.txt",
|
||||
"purpose": "准确原始来源文本或Git对象/索引与本图绑定清单;不执行/不格式化",
|
||||
"bytes": 284,
|
||||
"sha256": "bf8ec33c6728f75e232c550c413592debdcee1cce593b8306506da655c3a12a0"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-reference/primitive-tag.json",
|
||||
"purpose": "准确原始来源文本或Git对象/索引与本图绑定清单;不执行/不格式化",
|
||||
"bytes": 145,
|
||||
"sha256": "37ae35170fc468d164345bfac99b6b2cecec35922a67e120010c60d218f659cd"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-reference/primitive-tag.txt",
|
||||
"purpose": "准确原始来源文本或Git对象/索引与本图绑定清单;不执行/不格式化",
|
||||
"bytes": 284,
|
||||
"sha256": "bf8ec33c6728f75e232c550c413592debdcee1cce593b8306506da655c3a12a0"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-reference/primitive-tree.json",
|
||||
"purpose": "准确原始来源文本或Git对象/索引与本图绑定清单;不执行/不格式化",
|
||||
"bytes": 164422,
|
||||
"sha256": "5194b0fc9ad28105a5247d498baffa92a6845256e2cd9aab765b5153bc680613"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-reference/primitive__LICENSE",
|
||||
"purpose": "准确原始来源文本或Git对象/索引与本图绑定清单;不执行/不格式化",
|
||||
"bytes": 35149,
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-reference/primitive__comfy_extras__nodes_primitive.py",
|
||||
"purpose": "准确原始来源文本或Git对象/索引与本图绑定清单;不执行/不格式化",
|
||||
"bytes": 3030,
|
||||
"sha256": "ee3882214ebdd0d20c8061691075cebb1642c303e162f6d22ae525d75aa59b2d"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-reference/primitive__nodes.py",
|
||||
"purpose": "准确原始来源文本或Git对象/索引与本图绑定清单;不执行/不格式化",
|
||||
"bytes": 107127,
|
||||
"sha256": "aecd111cf3f1ccf5a5ca6b4293d47dfe236f9a717e5190cbb6a66a03afb8d009"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-restore-reference/sources.json",
|
||||
"purpose": "准确原始来源文本或Git对象/索引与本图绑定清单;不执行/不格式化",
|
||||
"bytes": 64217,
|
||||
"sha256": "9d7ed7c80c3c491d8fd560f738c8fb69c8202f4d6339a18a1ffe47161cd41306"
|
||||
},
|
||||
{
|
||||
"path": "e2e/flux2-restore-document.mjs",
|
||||
"purpose": "前台本地GET浏览覆盖与finally服务清理",
|
||||
"bytes": 16097,
|
||||
"sha256": "1f54e97e48929656267a4690f6c02139bfbc20f047003f19e1118df630f6e9d9"
|
||||
},
|
||||
{
|
||||
"path": "e2e/run-flux2-restore-document.py",
|
||||
"purpose": "前台本地GET浏览覆盖与finally服务清理",
|
||||
"bytes": 3189,
|
||||
"sha256": "20d1f113903ec5cb852a14063804f3088aafe3624a4d47b56d1e868ebd632341"
|
||||
}
|
||||
],
|
||||
"excludes_self": true
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
"Collect final completed browser evidence and independently verify port release."
|
||||
|
||||
import collections
|
||||
import json
|
||||
import re
|
||||
import shutil
|
||||
import socket
|
||||
from pathlib import Path
|
||||
from urllib.parse import urlsplit
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[3]
|
||||
OUT = Path(__file__).resolve().parent
|
||||
LOCAL = ROOT / (".local-evidence/flux2-restore-document/browser")
|
||||
|
||||
|
||||
def main():
|
||||
stopped = json.loads((LOCAL / "service-stop.json").read_bytes())
|
||||
assert stopped["ports_released"] == [8247, 5173]
|
||||
ports = []
|
||||
for port in [8247, 5173]:
|
||||
with socket.socket() as s:
|
||||
s.settimeout(1)
|
||||
result = s.connect_ex(("127.0.0.1", port))
|
||||
assert result != 0
|
||||
ports.append({"port": port, "connect_ex": result, "connection_refused": True})
|
||||
data = json.loads((LOCAL / "browser-results.json").read_bytes())
|
||||
assert not data["errors"] and data["viewports"] == [1440, 390]
|
||||
backend = collections.Counter(
|
||||
re.findall(r'"GET ([^ ]+) HTTP/1.1"', (LOCAL / "service-0.log").read_text())
|
||||
)
|
||||
polling = {p: n for p, n in backend.items() if p in ["/api/events", "/api/jobs"]}
|
||||
fixed = {p: n for p, n in backend.items() if p not in polling}
|
||||
browser = collections.Counter(urlsplit(r["url"]).path for r in data["requests"])
|
||||
intercepted = collections.Counter(urlsplit(r["url"]).path for r in data["interceptions"])
|
||||
expected = browser.copy()
|
||||
for p, n in intercepted.items():
|
||||
expected[p] -= n
|
||||
expected["/api/workflows"] += 1 # Foreground readiness probe, explicitly separate.
|
||||
# Browser result is flushed just before browser.close; a final timer GET can
|
||||
# reach the server after that snapshot. Keep its exact count separately.
|
||||
polling_delta = {p: backend[p] - expected[p] for p in ["/api/jobs", "/api/events"]}
|
||||
assert all(abs(n) <= 1 for n in polling_delta.values())
|
||||
assert {p: n for p, n in expected.items() if p not in polling_delta} == fixed
|
||||
|
||||
counts = {
|
||||
"fixed_count": sum(fixed.values()),
|
||||
"fixed_paths": fixed,
|
||||
"polling_count": sum(polling.values()),
|
||||
"polling_paths": polling,
|
||||
"readiness_gets": 1,
|
||||
"detail_fixture_intercepts": len(data["interceptions"]),
|
||||
"fixed_paths_browser_minus_fixtures_plus_readiness_matches_backend": True,
|
||||
"polling_snapshot_delta": polling_delta,
|
||||
"polling_snapshot_tolerance": 1,
|
||||
}
|
||||
(OUT / "backend-request-counts.json").write_text(
|
||||
json.dumps(counts, ensure_ascii=False, indent=2) + "\n"
|
||||
)
|
||||
(OUT / "ports-independent.json").write_text(json.dumps(ports, indent=2) + "\n")
|
||||
for name in [
|
||||
"browser-results.json",
|
||||
"service-stop.json",
|
||||
"service-0.log",
|
||||
"service-1.log",
|
||||
]:
|
||||
shutil.copyfile(LOCAL / name, OUT / name.replace(".log", ".txt"))
|
||||
print(
|
||||
"PASS browser",
|
||||
data["assertion_count"],
|
||||
data["assertionGroups"],
|
||||
"fixed/polling/fixture",
|
||||
data["request_accounting"]["fixed_count"],
|
||||
data["request_accounting"]["polling_count"],
|
||||
len(data["interceptions"]),
|
||||
"backend",
|
||||
counts["fixed_count"],
|
||||
counts["polling_count"],
|
||||
("readiness1; independently refused8247/5173"),
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,15 @@
|
||||
第75批仅补Flux老照片修复参考说明,接入实际doc_json、GET和既有Drawer,等待HEL-893功能+界面一次审核;全量未完成。
|
||||
|
||||
PR25,分支agent/agent/a64a969a6a44,base main;真实旧基线5dbfe1c3942a1095edc72bcbdd377b596bd949b0。提交沿用leefer,只配置当前worktree,不合并部署。
|
||||
|
||||
- 原字节独立核根9节点9边+定义18节点32含边界记录,全mode0;34非注释保存位置=根14+内部20=33标量+1完整历史列表;1完整MarkdownNote97共1396字符。无具名值;四缺键、宿主及五内部[]、定义widgets=[]分开,宿主10代理与9输入不混。
|
||||
- 76→147缩放→子图参考编码同时进入正负条件,111空latent才是采样起点;四处1024缓存被147宽/高经宿主7/8→296/297→135/136覆盖,保留原空串/_1、*和标签。根152与内部108英文相同仍保留双位置,负向全文保留,text_1宿主无外线。不执行或恢复控件。
|
||||
- core0.28.3 Primitive schema/原文透传/注册与宿主版本分层;内部core0.8.2、LoRA0.21.1、frontend1.36.13锁依赖、rgthree1.0.2604070017准确文本逐图绑定。Layer无版本仅89014d显式假设;Label不继承身份。60必要文本/73引用绑定commit/tree/blob/SHA、许可和行段;API树索引ref不冒充真实tree,不称完整树重哈希;rgthree仅成员CRC/SHA,完整包/Git未知。
|
||||
- 9正式PNG及145临时UI协议与源IMAGE口冲突保留;定义输出linkIds原[201,201,201]与物理一条201分别双向核准,不删重/修图。145.A生成、B缩放后经151,不是76原图。原历史URL只文本,无媒体请求。
|
||||
- 297后台通过(284专项+13库);1998浏览检查通过(662新图+1320旧55图+2汇总+14共享)。12自写Python显式项目配置Ruff check/format、JS语法、前端build、离线wheel/sdist三资源字节、双次定义/渲染一致通过。保留开发Ruff、浏览及目验修正记录;次数不累加。未机械重跑未改大套件,历史5既有失败沿用上批记录,不称全仓绿。前端构建保留初次.svelte-kit配置提示及既有构建提示,未扩修无关代码。
|
||||
- 真实5dbfe1c旧代码隔离库仅1更新154跳过,其余154整行不变;幂等、精确回退、再升级、前后用户修改各1冲突29列保护通过。155/排除1、16/139、1217/3660/294、全停用/未检查/空时间戳保持。191资源含156库原件及7配套API等逐字节冻结,28profile/九候选hash/六差分/资格/Drawer整文件/CSS/依赖不动。
|
||||
- 1440/390逐34位置、完整根/内部英文与负向、Note/历史/边界/代理/覆盖链、折叠/回退/迟到/重试/焦点/无横溢通过。固定/轮询/就绪/6夹具逐路径对账,无禁止请求;finally停服务,独立确认8247/5173拒绝连接。16最终截图仅附件,6代表图目验,无新增pyc入仓。
|
||||
|
||||
旧55块2121位置+61注释逐对象冻结;现56图2155位置+62注释仅参考。尚99目标图无本类参考块;155完整定稿0/必要实跑0/新增转换0,环境安装、模型素材、目录、许可适用性、UE/tab/代理恢复、修复质量及兼容仍未知。当前不需材料或窗口;未连接目标、停TTS、启ComfyUI、构造prompt、执行上游/插件/SDK/表达式/模型/GPU/媒体/种子/状态/缓存、下载权重素材字体运行库、加依赖付费、写在线库、合并部署。155全量完成审核后才发布。
|
||||
|
||||
复现入口validation-commands.txt;逐位置全文见../Flux老照片修复固定参考中文说明.md;逐文件用途/SHA见changed-files.json(不含自身,避免自引用);导入/来源/边界/打包/浏览报告同目录。附件包括完整补丁、来源闭包、最终head和截图。
|
||||
@@ -0,0 +1 @@
|
||||
首轮297后台及浏览通过后,目验发现负向单位沿用正向文字,已修正为“负向编码文本”并补断言。最终说明、摘要、wheel/sdist、隔离导入和浏览证据均重新生成,次数不累加。早期来源行段越界检查与Ruff行长/未用变量问题均在生成最终定义前修正;保留开发Ruff日志,不称全仓通过。
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
||||
12 files already formatted
|
||||
@@ -0,0 +1,273 @@
|
||||
|
||||
> calliope-web@1.5.8 build
|
||||
> vite build
|
||||
|
||||
▲ [WARNING] Cannot find base config file "./.svelte-kit/tsconfig.json" [tsconfig.json]
|
||||
|
||||
tsconfig.json:2:12:
|
||||
2 │ "extends": "./.svelte-kit/tsconfig.json",
|
||||
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
vite v6.4.3 building SSR bundle for production...
|
||||
transforming...
|
||||
7:29:49 AM [vite-plugin-svelte] src/routes/workbench/[id]/+page.svelte:345:3 Self-closing HTML tags for non-void elements are ambiguous — use `<div ...></div>` rather than `<div ... />`
|
||||
https://svelte.dev/e/element_invalid_self_closing_tag
|
||||
343: <div class="page-pad">
|
||||
344: <Skeleton height="64px" />
|
||||
345: <div class="gap" />
|
||||
^
|
||||
346: <Skeleton height="280px" />
|
||||
347: </div>
|
||||
7:29:49 AM [vite-plugin-svelte] src/lib/components/workbench/ShotStagePanel.svelte:156:5 `<video>` elements must have a `<track kind="captions">`
|
||||
https://svelte.dev/e/a11y_media_has_caption
|
||||
154: {#if shot.description}<p class="vshot-desc">{shot.description}</p>{/if}
|
||||
155: {#if shot.job?.status === 'done' && shot.job.output}
|
||||
156: <video
|
||||
^
|
||||
157: class="vshot-video"
|
||||
158: src={assetUrl(shot.job.output) ?? undefined}
|
||||
"handleConnectionChange" and "handleAttributionWarning" are imported from external module "@xyflow/system" but never used in "node_modules/@xyflow/svelte/dist/lib/hooks/useNodeConnections.svelte.js", "node_modules/@xyflow/svelte/dist/lib/components/Handle/Handle.svelte" and "node_modules/@xyflow/svelte/dist/lib/components/Attribution/Attribution.svelte".
|
||||
✓ 521 modules transformed.
|
||||
rendering chunks...
|
||||
vite v6.4.3 building for production...
|
||||
transforming...
|
||||
7:29:52 AM [vite-plugin-svelte] src/routes/workbench/[id]/+page.svelte:345:3 Self-closing HTML tags for non-void elements are ambiguous — use `<div ...></div>` rather than `<div ... />`
|
||||
https://svelte.dev/e/element_invalid_self_closing_tag
|
||||
343: <div class="page-pad">
|
||||
344: <Skeleton height="64px" />
|
||||
345: <div class="gap" />
|
||||
^
|
||||
346: <Skeleton height="280px" />
|
||||
347: </div>
|
||||
7:29:52 AM [vite-plugin-svelte] src/lib/components/workbench/ShotStagePanel.svelte:156:5 `<video>` elements must have a `<track kind="captions">`
|
||||
https://svelte.dev/e/a11y_media_has_caption
|
||||
154: {#if shot.description}<p class="vshot-desc">{shot.description}</p>{/if}
|
||||
155: {#if shot.job?.status === 'done' && shot.job.output}
|
||||
156: <video
|
||||
^
|
||||
157: class="vshot-video"
|
||||
158: src={assetUrl(shot.job.output) ?? undefined}
|
||||
✓ 763 modules transformed.
|
||||
rendering chunks...
|
||||
computing gzip size...
|
||||
.svelte-kit/output/client/_app/version.json 0.03 kB │ gzip: 0.05 kB
|
||||
.svelte-kit/output/client/.vite/manifest.json 26.73 kB │ gzip: 3.24 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/Icon.BrXLPzfy.css 0.08 kB │ gzip: 0.10 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/12.IyyrLGyK.css 0.22 kB │ gzip: 0.15 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/6.C62bpzl4.css 0.22 kB │ gzip: 0.15 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/LanguageSwitcher.BHCsXcey.css 0.33 kB │ gzip: 0.22 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/Skeleton.BQeWIsLh.css 0.39 kB │ gzip: 0.22 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/SafeMedia.CBqd7Keo.css 0.54 kB │ gzip: 0.34 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/EmptyState.BXjpyO2u.css 0.58 kB │ gzip: 0.31 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/Spinner.us8fwMZC.css 0.73 kB │ gzip: 0.37 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/ConfirmDialog.DOfiQL0c.css 0.91 kB │ gzip: 0.38 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/ProgressBar.DG8dH-U_.css 1.44 kB │ gzip: 0.58 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/18.DG2SembM.css 1.87 kB │ gzip: 0.70 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/ImageLightbox.BK2SuPZK.css 2.20 kB │ gzip: 0.72 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/10.-McisAlK.css 4.49 kB │ gzip: 1.20 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/15.Do7_3xO3.css 4.84 kB │ gzip: 1.32 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/ComfyDynamicForm.BMZDOzpt.css 4.86 kB │ gzip: 1.14 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/16.D3s-Wa9z.css 5.02 kB │ gzip: 1.31 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/AgentComposer.ub9gqAax.css 6.39 kB │ gzip: 1.59 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/4.D4ArXiOU.css 10.48 kB │ gzip: 2.23 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/11.CkE-wdAx.css 10.49 kB │ gzip: 2.33 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/3.CU9FCfPU.css 10.86 kB │ gzip: 2.39 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/AgentChat.DoddhUHp.css 11.39 kB │ gzip: 2.53 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/AppShell.BDTKT42t.css 12.74 kB │ gzip: 2.91 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/5.CYAHcbnz.css 15.04 kB │ gzip: 3.15 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/0.DtQ4sRph.css 19.40 kB │ gzip: 4.66 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/StudioGenerate.DLzq3T0v.css 21.08 kB │ gzip: 4.13 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/19.DdIn3xwb.css 22.49 kB │ gzip: 3.73 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/8.F76ywLuB.css 28.78 kB │ gzip: 5.24 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/7._yLDI1qf.css 31.71 kB │ gzip: 5.43 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/5.DUJAhBNk.js 0.09 kB │ gzip: 0.10 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/Bzak7iHL.js 0.10 kB │ gzip: 0.10 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/DTQKaZHR.js 0.10 kB │ gzip: 0.11 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/IKQcdn9t.js 0.12 kB │ gzip: 0.12 kB
|
||||
.svelte-kit/output/client/_app/immutable/entry/start.CJIV9nuz.js 0.12 kB │ gzip: 0.11 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/B0XwC4Ot.js 0.15 kB │ gzip: 0.14 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/17.DvqJbXcf.js 0.16 kB │ gzip: 0.14 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/9.Y-L8YDHh.js 0.16 kB │ gzip: 0.14 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/BsCRBkET.js 0.18 kB │ gzip: 0.16 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/PLPYKeY9.js 0.19 kB │ gzip: 0.17 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/CI9jXNKC.js 0.19 kB │ gzip: 0.16 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/BMeWrzmB.js 0.19 kB │ gzip: 0.15 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/14.DzhME1wO.js 0.23 kB │ gzip: 0.21 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/DkrMbCO4.js 0.23 kB │ gzip: 0.18 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/13.d8cRwCTU.js 0.24 kB │ gzip: 0.22 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/jbvGh2cr.js 0.26 kB │ gzip: 0.22 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/DuR33ltU.js 0.28 kB │ gzip: 0.19 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/LOG_p0wv.js 0.29 kB │ gzip: 0.22 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/2.o_pg_EAb.js 0.37 kB │ gzip: 0.25 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/BqqYkBFO.js 0.37 kB │ gzip: 0.26 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/1.BsXWGqrA.js 0.40 kB │ gzip: 0.28 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/C9dRlz4w.js 0.46 kB │ gzip: 0.30 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/DizlLVgY.js 0.47 kB │ gzip: 0.34 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/BkYbArkN.js 0.49 kB │ gzip: 0.34 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/-UyI9lYi.js 0.51 kB │ gzip: 0.30 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/D41pZ3kD.js 0.56 kB │ gzip: 0.32 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/O29yiedF.js 0.61 kB │ gzip: 0.36 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/D8EAmlG6.js 0.62 kB │ gzip: 0.36 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/BXakyGcx.js 0.71 kB │ gzip: 0.43 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/0jsz6oxm.js 0.75 kB │ gzip: 0.42 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/BzVl9ZHh.js 0.83 kB │ gzip: 0.42 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/f7zKxHYB.js 0.84 kB │ gzip: 0.45 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/BpPWQjN7.js 0.92 kB │ gzip: 0.44 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/B_dFkj9f.js 1.08 kB │ gzip: 0.61 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/12.1od2hkgg.js 1.18 kB │ gzip: 0.71 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/Dp1pzeXC.js 1.27 kB │ gzip: 0.73 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/6.BVdbdMDa.js 1.29 kB │ gzip: 0.76 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/wbPk3Yxo.js 1.37 kB │ gzip: 0.66 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/DroLD1Vd.js 1.48 kB │ gzip: 0.78 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/DvVbqmqL.js 1.49 kB │ gzip: 0.75 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/Cm1rDGe7.js 2.00 kB │ gzip: 1.06 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/C6NPzxMU.js 2.24 kB │ gzip: 0.99 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/DBfOsHAR.js 2.77 kB │ gzip: 1.28 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/Cfp5XeNU.js 2.94 kB │ gzip: 1.24 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/tTl_1iKp.js 3.08 kB │ gzip: 1.57 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/DY6GL6X4.js 3.23 kB │ gzip: 1.55 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/18.2vvR1uat.js 3.50 kB │ gzip: 1.69 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/-yw0ATYa.js 4.27 kB │ gzip: 1.52 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/Dwm6yq4L.js 5.19 kB │ gzip: 2.50 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/Bn-IQ-PY.js 5.29 kB │ gzip: 2.16 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/CQaZ2Lfr.js 6.86 kB │ gzip: 3.09 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/B0Wlifky.js 9.22 kB │ gzip: 2.13 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/16.DH70_-08.js 10.26 kB │ gzip: 3.94 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/Dq0gzhJg.js 10.98 kB │ gzip: 4.12 kB
|
||||
.svelte-kit/output/client/_app/immutable/entry/app.BF6nfNU9.js 11.97 kB │ gzip: 4.02 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/0.CcvzD77g.js 12.03 kB │ gzip: 4.41 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/10.CXGl-snk.js 16.63 kB │ gzip: 6.09 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/b4rAb54u.js 16.64 kB │ gzip: 6.28 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/BJXZgoNf.js 17.38 kB │ gzip: 6.37 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/kyNCFls4.js 20.28 kB │ gzip: 7.19 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/15.Dqz3Vbj0.js 23.02 kB │ gzip: 7.51 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/QUwDX6PF.js 23.98 kB │ gzip: 9.32 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/11.BN5X-Kmf.js 24.95 kB │ gzip: 8.35 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/3.CorWLUWV.js 25.68 kB │ gzip: 8.33 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/4.8TceZOAE.js 29.61 kB │ gzip: 10.00 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/SBMx5f2U.js 33.93 kB │ gzip: 13.15 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/DFK_vjqI.js 38.54 kB │ gzip: 13.86 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/CPluiqx0.js 41.30 kB │ gzip: 15.68 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/19.DyA-7P3-.js 52.59 kB │ gzip: 14.34 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/BbmTSwTk.js 71.50 kB │ gzip: 26.91 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/7BYcnVyC.js 81.38 kB │ gzip: 27.49 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/8.CBpTj446.js 86.49 kB │ gzip: 28.96 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/7.7cuhHV9W.js 214.51 kB │ gzip: 69.05 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/BsrzHLJP.js 684.82 kB │ gzip: 180.09 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/2QcV1iOV.js 720.35 kB │ gzip: 209.00 kB
|
||||
|
||||
(!) Some chunks are larger than 500 kB after minification. Consider:
|
||||
- Using dynamic import() to code-split the application
|
||||
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
|
||||
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
|
||||
✓ built in 3.64s
|
||||
.svelte-kit/output/server/.vite/manifest.json 23.36 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/Icon.BrXLPzfy.css 0.08 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.C62bpzl4.css 0.22 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.IyyrLGyK.css 0.22 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/LanguageSwitcher.BHCsXcey.css 0.33 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/Skeleton.BQeWIsLh.css 0.39 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/SafeMedia.CBqd7Keo.css 0.54 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/EmptyState.BXjpyO2u.css 0.58 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/Spinner.us8fwMZC.css 0.73 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/ConfirmDialog.C_pBcjz1.css 0.89 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/ProgressBar.DG8dH-U_.css 1.44 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.DG2SembM.css 1.87 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/ImageLightbox.Mjqtht7n.css 2.18 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.CxLkc7AF.css 3.49 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.-McisAlK.css 4.49 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/RefImageGrid.Cg0JH9u1.css 4.86 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.D3s-Wa9z.css 5.02 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/AgentComposer.BeAeVWGq.css 6.34 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.DH5AEk6F.css 9.35 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.Bra3CMMT.css 10.42 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.BUR6RoLt.css 10.46 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.0zMz792f.css 10.78 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/AgentChat.C1veD2Ar.css 11.37 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/AppShell.ymPBcNjP.css 12.64 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_layout.B1MJuaEd.css 19.33 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/StudioGenerate.pbw6ZUUi.css 20.96 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.DdIn3xwb.css 22.49 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.Bs4Fx5Yn.css 28.74 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.BC6N9k4h.css 31.67 kB
|
||||
.svelte-kit/output/server/entries/pages/_layout.ts.js 0.06 kB
|
||||
.svelte-kit/output/server/entries/pages/agents/_page.ts.js 0.08 kB
|
||||
.svelte-kit/output/server/entries/pages/library/_page.ts.js 0.08 kB
|
||||
.svelte-kit/output/server/entries/pages/models/_page.ts.js 0.08 kB
|
||||
.svelte-kit/output/server/entries/pages/settings/_page.ts.js 0.08 kB
|
||||
.svelte-kit/output/server/entries/pages/workbench/_page.ts.js 0.08 kB
|
||||
.svelte-kit/output/server/entries/pages/workbench/_id_/_page.ts.js 0.08 kB
|
||||
.svelte-kit/output/server/entries/pages/_page.ts.js 0.12 kB
|
||||
.svelte-kit/output/server/entries/hooks.server.js 0.13 kB
|
||||
.svelte-kit/output/server/chunks/wideLayout.js 0.15 kB
|
||||
.svelte-kit/output/server/entries/pages/build-scene/_page.ts.js 0.17 kB
|
||||
.svelte-kit/output/server/entries/pages/canvas/_page.ts.js 0.17 kB
|
||||
.svelte-kit/output/server/entries/pages/canvas/_id_/_page.ts.js 0.17 kB
|
||||
.svelte-kit/output/server/entries/pages/playground/_page.ts.js 0.17 kB
|
||||
.svelte-kit/output/server/entries/pages/projects/_page.ts.js 0.17 kB
|
||||
.svelte-kit/output/server/entries/pages/image/_page.svelte.js 0.20 kB
|
||||
.svelte-kit/output/server/entries/pages/video/_page.svelte.js 0.20 kB
|
||||
.svelte-kit/output/server/entries/pages/project/_id_/_page.ts.js 0.20 kB
|
||||
.svelte-kit/output/server/chunks/index-server.js 0.22 kB
|
||||
.svelte-kit/output/server/env.js 0.23 kB
|
||||
.svelte-kit/output/server/chunks/client.js 0.31 kB
|
||||
.svelte-kit/output/server/chunks/index-server2.js 0.31 kB
|
||||
.svelte-kit/output/server/internal.js 0.35 kB
|
||||
.svelte-kit/output/server/entries/fallbacks/error.svelte.js 0.35 kB
|
||||
.svelte-kit/output/server/chunks/state.svelte.js 0.45 kB
|
||||
.svelte-kit/output/server/chunks/Skeleton.js 0.48 kB
|
||||
.svelte-kit/output/server/chunks/Spinner.js 0.52 kB
|
||||
.svelte-kit/output/server/entries/pages/canvas/_id_/_layout.svelte.js 0.55 kB
|
||||
.svelte-kit/output/server/chunks/index2.js 0.57 kB
|
||||
.svelte-kit/output/server/chunks/server.js 0.62 kB
|
||||
.svelte-kit/output/server/entries/pages/canvas/_page.svelte.js 0.66 kB
|
||||
.svelte-kit/output/server/entries/pages/playground/_page.svelte.js 0.67 kB
|
||||
.svelte-kit/output/server/chunks/utils2.js 0.72 kB
|
||||
.svelte-kit/output/server/chunks/ids.js 0.77 kB
|
||||
.svelte-kit/output/server/chunks/Icon.svelte_svelte_type_style_lang.js 0.86 kB
|
||||
.svelte-kit/output/server/chunks/endpointKind.js 0.95 kB
|
||||
.svelte-kit/output/server/chunks/createMutation.js 1.03 kB
|
||||
.svelte-kit/output/server/chunks/EmptyState.js 1.04 kB
|
||||
.svelte-kit/output/server/chunks/toast.js 1.14 kB
|
||||
.svelte-kit/output/server/chunks/context.js 1.20 kB
|
||||
.svelte-kit/output/server/chunks/LanguageSwitcher.js 1.36 kB
|
||||
.svelte-kit/output/server/chunks/AppShell.svelte_svelte_type_style_lang.js 1.46 kB
|
||||
.svelte-kit/output/server/chunks/SafeMedia.js 1.65 kB
|
||||
.svelte-kit/output/server/chunks/ProgressBar.js 1.88 kB
|
||||
.svelte-kit/output/server/chunks/useUpload.svelte.js 2.16 kB
|
||||
.svelte-kit/output/server/chunks/takeDelete.svelte.js 2.57 kB
|
||||
.svelte-kit/output/server/chunks/index3.js 2.77 kB
|
||||
.svelte-kit/output/server/entries/pages/_layout.svelte.js 3.08 kB
|
||||
.svelte-kit/output/server/chunks/ConfirmDialog.js 3.25 kB
|
||||
.svelte-kit/output/server/chunks/internal.js 3.79 kB
|
||||
.svelte-kit/output/server/entries/pages/workbench/_page.svelte.js 4.93 kB
|
||||
.svelte-kit/output/server/chunks/exports.js 5.54 kB
|
||||
.svelte-kit/output/server/chunks/Icon.js 6.04 kB
|
||||
.svelte-kit/output/server/entries/pages/agents/_page.svelte.js 7.88 kB
|
||||
.svelte-kit/output/server/entries/pages/tasks/_page.svelte.js 13.44 kB
|
||||
.svelte-kit/output/server/entries/pages/settings/_page.svelte.js 15.12 kB
|
||||
.svelte-kit/output/server/chunks/LanguageSwitcher.svelte_svelte_type_style_lang.js 16.32 kB
|
||||
.svelte-kit/output/server/entries/pages/library/_page.svelte.js 19.77 kB
|
||||
.svelte-kit/output/server/entries/pages/_page.svelte.js 25.48 kB
|
||||
.svelte-kit/output/server/chunks/RefImageGrid.js 25.96 kB
|
||||
.svelte-kit/output/server/chunks/root.js 29.43 kB
|
||||
.svelte-kit/output/server/chunks/AgentComposer.js 34.01 kB
|
||||
.svelte-kit/output/server/chunks/utils.js 34.14 kB
|
||||
.svelte-kit/output/server/entries/pages/models/_page.svelte.js 36.24 kB
|
||||
.svelte-kit/output/server/remote-entry.js 36.81 kB
|
||||
.svelte-kit/output/server/chunks/AppShell.js 39.27 kB
|
||||
.svelte-kit/output/server/entries/pages/workbench/_id_/_page.svelte.js 50.91 kB
|
||||
.svelte-kit/output/server/entries/pages/build-scene/_page.svelte.js 51.30 kB
|
||||
.svelte-kit/output/server/chunks/StudioGenerate.js 99.49 kB
|
||||
.svelte-kit/output/server/chunks/index.js 101.49 kB
|
||||
.svelte-kit/output/server/index.js 130.14 kB
|
||||
.svelte-kit/output/server/entries/pages/connections/_page.svelte.js 132.44 kB
|
||||
.svelte-kit/output/server/entries/pages/canvas/_id_/_page.svelte.js 145.51 kB
|
||||
.svelte-kit/output/server/chunks/i18n.svelte.js 786.88 kB
|
||||
✓ built in 6.71s
|
||||
|
||||
Run npm run preview to preview your production build locally.
|
||||
|
||||
> Using @sveltejs/adapter-static
|
||||
Wrote site to "build"
|
||||
✔ done
|
||||
@@ -0,0 +1,771 @@
|
||||
{
|
||||
"base": "5dbfe1c3942a1095edc72bcbdd377b596bd949b0",
|
||||
"files": [
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/__init__.py",
|
||||
"sha256": "1d3488bcc2eadcd8a8f2e84ab4f6e9bdf52096b8af637c4da399db041d5a0543"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/client.py",
|
||||
"sha256": "ce30b3b3587d8f0dac86d534b99f31b95f1f4d0acb361babb45fd2be9513fe72"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/companions.py",
|
||||
"sha256": "7dde205059bf489e3d39539a8b42333b3947c3989d890441f70a45cf67d9ab04"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/delivery_scope.json",
|
||||
"sha256": "3a85718f877a63be54c843e2610b24dcc3013a6011f705d6348c91e2c7f78fd6"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/delivery_scope.py",
|
||||
"sha256": "0b849256dbb06f709c1ba856c34b3df04d2fccf09984a6e1fe1284b792eaf867"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/dry_run.py",
|
||||
"sha256": "f8bf4d1b91d959044de1dbc4aeb11bf0bb521f51f1928d36a46c670381a08ed7"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/endpoints.py",
|
||||
"sha256": "fc99a623850b581ae38843bbc3baf1b71ca9fd633e6103a34cb809a345e5a647"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/h3_chain_reference.py",
|
||||
"sha256": "a5c0ab92d99757c168648ddbc0418b23d2b871f674b153e9a240b75409cf5741"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/h3_core_reference.py",
|
||||
"sha256": "2913654b6ec3dabac1d36b1894064b8e077dd1d743d546e81667b317339f8a5f"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/library.py",
|
||||
"sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/library_cli.py",
|
||||
"sha256": "04bfa8cfbe3f9378e78594958973118ec95aa1ff0bcdbdf4da0311abbdbcd380"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/lint.py",
|
||||
"sha256": "9b79bf162e13fb68321727fb17f96d6fc0c217d60db85de38235c4270bf9b4e3"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/output_map.py",
|
||||
"sha256": "36ed4ced825e4f7e1d389602085451b5cb9336b319d220f423f59f83fed6a70e"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/parser.py",
|
||||
"sha256": "a02d583c6a1cf7f85e77341a20308823771c233fb95241118a264e202a5230a0"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/patcher.py",
|
||||
"sha256": "8ac1417f0f78d952cdb219b10811a6ed7d4ce3bb0d561708858c4a8f5d15b45d"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/preflight.py",
|
||||
"sha256": "6629961d33204cbe5b3fc3d8a5a0a4de0c86d235e73f542d191429cf7f4bd2ec"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/profiles.py",
|
||||
"sha256": "4ca33343fc3f20e0fb82558cb428548f6415af04fb90213a694fb759515732f2"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/protocol_references.json",
|
||||
"sha256": "a10aaf98db9bb3b5ac6d1fc30b18c40cf315b34eee57ebb19470a6664e9221a4"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/protocol_references.py",
|
||||
"sha256": "ab9d948dd1bbf83dfce27186d6e48d9c3d5dff129305afd760fb3e77570b2916"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/registry.py",
|
||||
"sha256": "0382eda52a31f23c1c29dd7a62d0ffc93e10fcbb88872a5893b8fc93a2b2734d"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/roles.py",
|
||||
"sha256": "cc0b45eac2d881a6f7cc5ea88ceadb03f71715240a45257fef3a76bfc53d56c4"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/serialization_reference.py",
|
||||
"sha256": "67724fac65acbd397198271e1ed17b91f592f52da7ce8299e575d4c597d57fa1"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/smart_fill.py",
|
||||
"sha256": "adc34e80cca7a2b38cc834a713c9e64001caac84413af288389e5554e304bab6"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/source_reviews.py",
|
||||
"sha256": "b85e26f1e4fce77f75429b7bc0653401065b2cd28151bdf5d9edc87c096e9419"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/structure_reference.py",
|
||||
"sha256": "a9f3a8ed314a0c0a424c6781db4e83af3a85cb8b66b16b01380b5fecc3e1f0bb"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/ui2api.py",
|
||||
"sha256": "86a9c98ad72afa15aaf706bab8b39589a1cbca2e93da40d0aed9f963c14c0d1f"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/validate.py",
|
||||
"sha256": "c27fca69a604705b06809fdd692975ca0e7a08d05d558172962f8910a6a0491d"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/01.api.json",
|
||||
"sha256": "0ed76e088a23af43d6fecbf273fc0a983d7112e2b046d347f715afffac56d57e"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/02.api.json",
|
||||
"sha256": "daa40971b730076691721afe95e165932df94e3423f1fc44dcb7707026e7125b"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/03.api.json",
|
||||
"sha256": "91e6c2cea3747a03bbb71f661dbd016b28040781482b956365ff76a7a8b647ce"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/04.api.json",
|
||||
"sha256": "2066b07b2ca5390ba3e795df6b43934dab83865b12870b6ff26d8c0ef24f091e"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/05.api.json",
|
||||
"sha256": "95a01c1ea27a8279a6dc202820505099a94161d91e0789189b61208b09007af8"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/06.api.json",
|
||||
"sha256": "3e9176a5346ce8b8122b6da10f377fbeb894dc7c2c82a415f85ffc0dbfefc90b"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/07.api.json",
|
||||
"sha256": "b1b4f6a6c02d8d21701943c67b62805b1210fed17e7e26b618c58e112ea1d70d"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/supplied-api/manifest.json",
|
||||
"sha256": "f1367b4fa7a8377fb57512d17c80bc697d4d3abd0adb77adc3c06c6dedab69ea"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/ControlNet_aux_常用样例.json",
|
||||
"sha256": "8898689d777330c4749a079cd762f573bb12a278c47a2fefbd066ffbdc122b6b"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/Minimax-H3提示词增强.json",
|
||||
"sha256": "ffea53b27d52c63aa9ec9c60144489cc4f9e5a44d9478bcc297be9d9008f1a4c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
|
||||
"sha256": "a6799c5022c13e46d2b1cf27809cd3c1e1d140a605fa226c19359682751fd036"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
|
||||
"sha256": "5dbe1a7ab608ba6e9158369ff6498e9bb3f926d151a0ed31cf711c31b167c488"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/NLF_视频人物动作骨架获取.json",
|
||||
"sha256": "1edc7ae5cca8e059577a9572d296c84e1683695e4f13a72388ff70473795ce97"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json",
|
||||
"sha256": "43f76f599f15058b6e62ae0dfb105518a37532008eed23ef7118e4950b37a608"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/sdpose_视频人物姿势骨架提取.json",
|
||||
"sha256": "4586c72d8a906d4a956fb7d62307b81e57e4e345324c7e73f63103e56bfffd14"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
|
||||
"sha256": "f5245d225f77cd64aefe6d0b8bb9342ec48a8a6293a533d65ea7304ce1b03f93"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载本地latent解码.json",
|
||||
"sha256": "1fd83bd3f2d7950440189932b4c17718190af88daa4a93ac86474081dea9005b"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/双图像或视频合并显示.json",
|
||||
"sha256": "61a0b1a2aa17a7d8c4f09f4f57e276eaf37227f69b5fc5789193005e593548c9"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
|
||||
"sha256": "2eecd407d667d2ef6249061181edfdcfc417a2151627622f280d74aaac1794d8"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像分割-多宫格分割.json",
|
||||
"sha256": "aeceb3fd00eb0966eebf8d8c89d90e2ad29d0aa8d02589aa05d52a6c145a4bcc"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像合并成四宫格.json",
|
||||
"sha256": "fb5e5b346d51a79c19e611b76d39cf4b9491493723684bbb85ab3c49923467bb"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像嵌入文字描述.json",
|
||||
"sha256": "938ad9ad0eed2253e9a5a9a9dc16dc6b0a22bf976a80af90aa1d0b56e42ba7d3"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json",
|
||||
"sha256": "3c2f6558c199a7689546dc881df2b26dc31c02715fbc7b32f51caaa4601c13d7"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/截取视频每一帧.json",
|
||||
"sha256": "43858b9121439a92e7ab35c2fb62b78e56fa93bcd0ad62679f2387f71fdec1fa"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json",
|
||||
"sha256": "381bb5f3a6e2788d0dd3ee9594a97eaedb153611194d4f8fdde420cf47814132"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/提示词生成与反推/Llama-cpp+Qwen3.5-提示词.json",
|
||||
"sha256": "9071928ce74d5133401942583603a6bc98873263fbe4c32a438fe73cee81ce90"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/提示词生成与反推/gemma4_提示词反推(图像视频音频).json",
|
||||
"sha256": "1a94bdd5987955a29e403d128c2ea5ca0b6bc8a8d5ece145e1baba07146588b0"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/深度图/moge3_深度图_几何图_线稿图.json",
|
||||
"sha256": "a50e8b9961fbdd83fa42ca121ff77b3c1b058c7e454ad374b0de7c60e7b8c4a9"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频-音频分离.json",
|
||||
"sha256": "4861e3e33291ed962d2215b1d8cc976a4706d19719e3541e9cbb2c636683afc3"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"sha256": "8c760ea58d7ff664323f92a1174fe88300cd931c00201ccf437df1ad0067cb24"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
|
||||
"sha256": "39f7ddf60bf5958882215bd4227a85707f1f9003f2c5aaefc709a28b1ef16827"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/音频人声分离.json",
|
||||
"sha256": "3c4bc0f7b1891e298a5d4e00072c6243a61b98d5fc0d86d82a476ecead43a1a2"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/音频转MP3格式.json",
|
||||
"sha256": "c46e83b4fe8fc291e9de45b4af6cc50b566ab9377a51b50767315917dd13861b"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/RTX_image_upscale.json",
|
||||
"sha256": "35bf9b7731e6199b5ccc113e31c248573f9ae74d1bb9302071a3a97524fea8c4"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/RTX_video_upscale.json",
|
||||
"sha256": "ce189e5efdb1d608eaf7f7905f0dbf3776be2c199e143193c226ab497f2eb9ec"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_图像放大.json",
|
||||
"sha256": "2be6b137efaaf25a54aaedc841a14ff3089afdc8a01a04af6353634b8457393f"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
|
||||
"sha256": "06c427c688c13b87ed5724ac6b1ed432c31f8ea6c44212b3e7596b94128619da"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_视频放大FOR循环长视频.json",
|
||||
"sha256": "576a9516292ed3e63b50c2a03fbfc1a99f9d643f526dc7fa3b98f6cb9832c893"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/VOSR2_图像超分放大.json",
|
||||
"sha256": "87484f700a9a18d1bffbc61834af2b489a58171dcb4a225e210e695a30c85dd5"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/VOSR2_视频放大_分批循环长视频.json",
|
||||
"sha256": "0f55316d2961a293a7d9f77b7993fd6f01bd5a41a4dca58f69f4d0b35c0aa6ea"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
|
||||
"sha256": "1ca5938a963921b16c96649a97d3b1a9f75d810d3aabcd7ce472a30e5805f3e4"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/视频模型放大插帧(简单快速版).json",
|
||||
"sha256": "bf47ba2462a3f683fe4f1d742b7dcde81a7a3f95e7e63c021e942a6c4f9ef071"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-ASR-Subtitle语音转字幕.json",
|
||||
"sha256": "47f9afa955a6a5dce37000cb6a15bac7516d26ff50b6398bda334c825552cfd8"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-ASR-语音转文字.json",
|
||||
"sha256": "958a3b7cb7070f4207901c79f13863b44ffcd0ed5c2c7fb4cd779e7964da0d65"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"sha256": "549a6502b3e0d4386323e6e67d6a9b4943b7a01eb59bdbe7adc7a920cfe5b690"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_语音设计+语音克隆.json",
|
||||
"sha256": "9c75272e418064f46da96f6167448216a9390566e4b5d5e168d8cc5955447ab1"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/1-语音生成/index-TTS2-情绪控制-音频参考-文本控制-克隆-多人对话.json",
|
||||
"sha256": "d2c469a8a17c6d1fcffb9a96700c38290895873d99c40d13d669bd45f6ea79de"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/2-音乐生成/ace_step1_5_xl_turbo_8Step极速音乐生成.json",
|
||||
"sha256": "668fae23de5f84cc530fa4cab7381299cbc787b30c4597345b47e7f5c17415ef"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/2-音乐生成/ace_step_1.5+Qwen3.5_自动歌词音乐生成.json",
|
||||
"sha256": "518085b1e8d12257e68427dcc0f01e6cda5018ec353fd90fdf366afb4fc89b85"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/2-音乐生成/minimax_music_文生音乐.json",
|
||||
"sha256": "0a655ead5a0da406159dceb46451439df0c02050becaaa25b3018abb41840284"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Anima/Anima_Klein放大_超强动漫模型.json",
|
||||
"sha256": "000843bc0e46844e556b04fc820ae1b2f7fa9bba1dd0ec21805c0c7ab27a647c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/10_flux2_klein_文生图-角色三视图.json",
|
||||
"sha256": "e04e5bd04f03ce32b5221d37c5f7cffb0405b1471cb7be90b47b407d900a49b7"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/1_flux2_klein_文生图.json",
|
||||
"sha256": "523905ac41323c626d7a156c88d02156cfa4758a70175cd7a3fba2a8c4fd449b"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/2_flux2_klein_图生图.json",
|
||||
"sha256": "c0472959097f4e785205f41109c941dab26d12a874311834a7dc02c4616bbe9b"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/3_flux2_klein_图生图一致性增强(大雄lora).json",
|
||||
"sha256": "c6af28d5bd72df5577f1e4d336974397494dd500fff23efd4afe81037514be71"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/3_flux2_klein_图生图一致性增强(小志lora).json",
|
||||
"sha256": "43995837f89e5112afa74a57180dc356f7b4d4ef9e3a325984a2fc5ca1b7c651"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/4_flux2_klein_图生图_局部重绘.json",
|
||||
"sha256": "d1d57bd401959975cbe6fd70f97706cec21bbed0a5ec3747447b9f192631f414"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/5_flux2_klein_图生图_扩图.json",
|
||||
"sha256": "ad8c09e81b07aa7809a7d42f633d0b9069f704187e7a983bc2ac12bc3cbb8507"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/6_flux2-klein+Qwen3.5_转线稿洗图.json",
|
||||
"sha256": "40a9fee073066914ac610f74dc7f7a49022bda63f5b89560d4bd635094a5c757"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/7_flux2_klein_图生图-动漫转真人.json",
|
||||
"sha256": "8cab62c6b7b2401bb6b51ff4426aaad2a644fc6cfe49d974769fadf19c16a0a1"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/8_flux2_klein_双图编辑.json",
|
||||
"sha256": "9d00eb7af7e8d49c54396e6dc2afe7770f99cf75ae765dc1b906c8c9e6b69d83"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein-图生图_人物动作迁移.json",
|
||||
"sha256": "fc6daf483ac05fdc904ca402271223d14cc217ea4c81a17ba2ef4cae993aefe7"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_人物迁移.json",
|
||||
"sha256": "81409bdcd546102a7a6d5b7e32578912bf7ad4f89b35718de0401ceed624225e"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_印花提取.json",
|
||||
"sha256": "8768dec340e35dbd70f928d8bbc34813b2bd45f5c270c405d4495b92da478337"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_老照片修复.json",
|
||||
"sha256": "922c534d70b85beacc2cd51354552ed1d850dbb611b20f2d6981c4e524ce06c5"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_服装迁移.json",
|
||||
"sha256": "e3f01ba44f3628297e714b4307ed959758f04e0415093dc5ec690857384a8386"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_Image2.1_图像编辑_VNCCS任意角度-任意姿势.json",
|
||||
"sha256": "a5a675500a473214eaeb1d25dc1eda83b57bba3a17d18f1f0042bee62b474314"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_一键16张姿势图.json",
|
||||
"sha256": "248b6c5ae28d5a44035c5ad91bcdfa458360a67598eaa4d195c3fb6853b18a49"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_动漫转真人.json",
|
||||
"sha256": "1aa1d3641f82533f99d99567c2708919438b9efbfc6623d684a9a88b876b75cd"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_提示词增强.json",
|
||||
"sha256": "ebf173eb9d871717534a379d451d4a08ca06c3b677b552de12a5d51dbe8febf2"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_深度-姿势-线稿-硬边缘-控图洗图.json",
|
||||
"sha256": "b6e232082089dd9c4046e0dc5bd1d046907525b8cb01758fb804b5f4aa11275e"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_背景移除.json",
|
||||
"sha256": "d225102993ad5aa08e619bd7f1e5abbfd54e2d5ac8d8be1eacf09722107c4c9e"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_角色BFS头部迁移.json",
|
||||
"sha256": "6a9da127ee2bccafeff7499ab3d62f349aec1eff4265cb211bdec578dba1fe7b"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_角色表四视图.json",
|
||||
"sha256": "0036c02e1ab22f44c94bd9f311d5254d7b3b0cea25211bc4ff1e92cd90e0acdf"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_8步lora加速.json",
|
||||
"sha256": "172b8fff0b531fbea367e79aa6b5ed1e6b59cab2ce6cb23d324092d5b55a3f97"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_提示词增强(N版).json",
|
||||
"sha256": "ae6521e5f42bef0b887f754c2fec5961d612afc464fbd98940a976a9795662c6"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_透明背景.json",
|
||||
"sha256": "5853f21657d56e97a6b625c4487e23473b846fa8c96dc292f3700b3075245a39"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生图_提示词增强.json",
|
||||
"sha256": "dfe10917d101bf1a8a8c20750f4360690ecd478e9eb33d16a59ea0c6f12c086c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生图_角色表四视图.json",
|
||||
"sha256": "6fd307b02b7ba29858723e283580c1cf4ab1fce8804a3ced1f4fc37934965392"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/10_Z_Image双采样+Fluax2-klein修复-高清直出.json",
|
||||
"sha256": "043cd2abe731996b80637d87b9a799e412e08b9a15e4b7c2f4440fbcff2487b9"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/11_Z_Image_Turbo+模型放大_图像4K高清放大.json",
|
||||
"sha256": "baaa0cd969a28abe5e6ab19b3d7f6e161468cd15c970fe4bd9922afbe09ab4da"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/12_Z_Image_Tubro_文生图_SeedVR2高清放大8K.json",
|
||||
"sha256": "8d79bcd44a7843ac5df9fbcd372a6327ba72274260ef463c46ec85709da7846a"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/1_Z-Image-Tubro_文生图.json",
|
||||
"sha256": "36713b1a3f5c4f2992c7edef2e1e8c3246d44d28ecc750b87f4353a08c3b5ab0"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/2_Z-Image+Base+Turbo+双重采样工作流.json",
|
||||
"sha256": "27108ae85715b147f63d8640ee032484c70a21633e2c6234eed346079b9aba2c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/3_Z-Image_文生图(摇光梦幻).app.json",
|
||||
"sha256": "58e88cacc6e1375cad39023e39eb1728eb36e63acce3c46fca40898d706b1d42"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/4_Z-Image+Qwen3.5-文生图.json",
|
||||
"sha256": "56bd28b5253fe734e851abd81c7851d00c62e4dbf37a22d97781d93ec367a35d"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/5_Z-Image+Qwen3.5提示词反推_文生图.json",
|
||||
"sha256": "910317a123e658f26e48ad5cd144d28b7f31e0d43cbdb3ed567048c7917b5c73"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/6_Z-image_局部重绘.json",
|
||||
"sha256": "f60e734b6ed9e678571ad7666411d6282065c38abe3e9c29ea4c5cc1c3455505"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/7_Z-image+Controlnet_图像扩展.json",
|
||||
"sha256": "82cda5dca2e224a5b042daecba4c3c1405a825648a9e9ced29fe21e58f7e55f8"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/8_Z-image+Controlnet_姿势控制-洗图.json",
|
||||
"sha256": "babc1dbeb3bb4981e338d8317ff9fb6fd8c28913bf47a2e2e3eb5409439447bf"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/9_Z-Image+Flux2-Klein_风格重新编辑.json",
|
||||
"sha256": "3734f261691c3ad13d29b30d88e91f671d9c548f723e77d78651c7155b06c408"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_插图漫画.json",
|
||||
"sha256": "02ea31b959de72f9b5c00a92f21b4e17bbc2bf5a54495093a204957771a88039"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_照片摄影.json",
|
||||
"sha256": "740d7d41b3248978dca2046d9a2ea99d3a66ef081d45609782d2847f04f7e0c8"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用a_.json",
|
||||
"sha256": "e58341a99587077a69baf3cec62d9ae7bb0ce02a87cb3973ce3134c04a119b23"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用b.json",
|
||||
"sha256": "8d9e66744e0266c5f53a6396e030c38bb90053f2525ac9c3c6cc1b321006a976"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_4_6_8宫格故事板.json",
|
||||
"sha256": "776b2f92f8906232c2ffe1b25c8b9cfe3398bfe45a9f80715f6ce5acc03e96b4"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_极致写实双采样2k版(N版).json",
|
||||
"sha256": "50433cee0d5bab60a2cce44d73adbe5fe9b486c039bc89e1caef640fe6e0b28d"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_角色三视图双采样2k版.json",
|
||||
"sha256": "64bb5eb4e5399d307c12553717b8a1f0046f48b625b16e62d40e962b6bec1847"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2-Edit-Anything2Real_动漫转真人v3.json",
|
||||
"sha256": "0d482e6c6fac70af6dd5549e8a464ee080a0ec135350d72d32a4ce4a8fd05bbe"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_identity_edit_图像编辑.json",
|
||||
"sha256": "c208883f17eb873063a4febaef636f0fa065131fc82bc4b0b26eff41f442719a"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图 (N版).json",
|
||||
"sha256": "935fc592ead1a89614470d41c512e2d7b4a41a6887f71a0a8d8f4c071a60e3c9"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图.json",
|
||||
"sha256": "6b317af2bda225d9441074ef330669b4537e95c705987223efafd2705dbbc344"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_2万提示词随机模板+4千种风格选择.json",
|
||||
"sha256": "599bb58d48d68de929e7ec476f77e9f7c736c00235b68570416d214d3b4e391c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_Qwen3.5自动提示词生成.json",
|
||||
"sha256": "afafb0e0ebdc445a7534041589b7f6a580e0b15b8293c2fd26907474892f5957"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格2.5D半写实.json",
|
||||
"sha256": "3faf9b1f0a20c7d21367af1721583a7402f048e18991025f9afff192ff8fe077"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格Image2风格.json",
|
||||
"sha256": "bf65d0080ab80a5934855a0dbc7a5e167300bb54e24a18e05e4321a70ec838ea"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格线条动漫.json",
|
||||
"sha256": "9bab028943604b4b167a56dcc51475f67bac897c9eae3c7bf9d311b2c5cb7d91"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_图像风格参考.json",
|
||||
"sha256": "8c248ccc44df79b475c81e0bb260596ece066d65f2a21c0b2a72dc6b2441b170"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_奇幻现实风格.json",
|
||||
"sha256": "7a2af26c48114c7f1a7741a5cded07c0cceb68c4e69410de8af6429eb6b5041c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_极致写实(N版).json",
|
||||
"sha256": "ec98804940c28956af1719096751bba2d274eef8a251b97207ac655a05779384"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_细节增强.json",
|
||||
"sha256": "faa28f85fbd80ec9c3aba76749d6447c1d3b4a8489c88853ebde665a4f78ef10"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_美学质量增强.json",
|
||||
"sha256": "fbca5f24abf71f10ed5e2b90012aab1c25c6632a18541fbf0412b8845f603b85"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_赛博朋克现实风格.json",
|
||||
"sha256": "a353acdb89b02462abed5f1513acfcb4f538c50ab5bc8ede8e8597f3ce8eea60"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/肖像大师_美女提示词生成.json",
|
||||
"sha256": "4ff20f7350813ec74fc054971b4532200d61661951c103c89f7729f89f7be2ff"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_FastH3_i2v_图生视频8步极速.json",
|
||||
"sha256": "c5eff277eeeeefacb39c4af2e5ac41251785cc18ca90c1678a653367f4dd5942"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_FastH3_t2v_文生图8步极速.json",
|
||||
"sha256": "ed4a30da03245f35ff9006ac64cd045c1b9c64eb8b585520dbbb418f6793fc78"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_多参考_双采样潜空间放大.json",
|
||||
"sha256": "8b97388e142ddb67c84f2cbe0bb68c10f519e7615d75f1ea0005580fe4537ab2"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_孤海智能一体化(多合一简化版).json",
|
||||
"sha256": "827f43d5d9bdb6f2d6f4d8b69e86708e6d08642ed0df04bee15087d10b9a0e35"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台MiniMaxH3_多合一多分段拼接.json",
|
||||
"sha256": "34fde3a91f9ef932adc2837cc9d4254bf75a3251ad5c6474d90e4085690cbafc"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_双采样多段循环-PV动画尾帧衔接.json",
|
||||
"sha256": "c8a442bd8cae8dcd75a6a01847ca99b75dcc37ef8ff0a855c82213ed25e943e0"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_双采样潜空间放大.json",
|
||||
"sha256": "2434bd48e3c29abf9e6ed0931f3c8825481772a134a065f6cfdd3c0b89ba81b7"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_文-图-参考-分段循环-双采放大_多合一.json",
|
||||
"sha256": "698430e2b234a107b15f1bebf7704833afeea819bd21a3af56f7121daa1383e0"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_文_图_首尾_参考多合一(单采样).json",
|
||||
"sha256": "526986a02875bbefebeb8a81cce9b58a8e764ab0c0092b2d8e858ecfac771638"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_短剧创作-多宫格分镜参考.json",
|
||||
"sha256": "d2850f5fb3e5b54e3e4ec9e17f34bdb11bf7009728b5e585c769fb2f11f80275"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_短剧创作-音频参考.json",
|
||||
"sha256": "c188a7383a6c7a0dbd5d4d0717527b096ec73c1232373ee50c731bceefcfe7fb"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频人物替换.json",
|
||||
"sha256": "dce57cfc239c9f90cda2107fff5614b2cb0944e0441d9d8137b3f1c325f41a7a"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频参考+多参图-SelfLift双采样潜放大.json",
|
||||
"sha256": "97ec7f73f32126aa24798fc65736734dfa839b74d25c4b2a94021abe063f06d7"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频参考+多参图.json",
|
||||
"sha256": "40f92a22aa66c9d87b876784e33b02471339d64504e22e1672155608fbcbf079"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台时间线素材_双采样潜空间放大_多分段拼接.json",
|
||||
"sha256": "172eb8af3aca70082941427520fdcca06568957bab3d39101c5e9d6641b45e4a"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_音频MV_多参长视频分段_Selflift双采潜放大_Qwen3.8官方Skills自动提示词.json",
|
||||
"sha256": "bdc93d36fb8a4728dfa8031d1f00782d68e8e6aedd718b166f57e54216f2882f"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_音频数字人_SelfLift双采样潜放大分块_Qwen3.8官方Skills自动提示词.json",
|
||||
"sha256": "903e32248fc0c53df36c5841f4f4ccdb5fb8190a39c6c9015d3e55a451aaf7eb"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_参考生视频-8步高质量极速版.json",
|
||||
"sha256": "fae96106a128342a6903bd32680463d1be98c0d5ad738d2fff40fc0f52a35389"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_图生视频-8步高质量极速版.json",
|
||||
"sha256": "97f188c9295af0dbe6358a4b23117ca1612e812d2fa3df67dd7b10ee68e96fb5"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_文生音视频-8步高质量极速版.json",
|
||||
"sha256": "5b45b49ebe4402c207e7d894e03a1bb53482b24a0c09ce50d549be4a01f9c6d0"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双采样_潜空间放大_参考生视频.json",
|
||||
"sha256": "fab48be409cf423aaed7be268c6655ae39ecd1733218413c51874c5ba2ad0bdf"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_r2v_参考生视频_双采样潜空间放大+Qwen3.8官方Skills自动提示词.json",
|
||||
"sha256": "4c1305fdfe6d5643e64a7b6c99cc92e331ffc9475f30fef5e0119c887367aab0"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_视频动作参考_SelfLift双采样潜放大_Qwen3.8官方Skills自动提示词.json",
|
||||
"sha256": "2be3981360fff849a53a928a6a2040c97bcf1944dce2df82d716a805c0ef2594"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_音频数字人_单采样.json",
|
||||
"sha256": "77b665bf6bcd11195f424d42d88f5142b43b0c608af776eef5744aca896f4b56"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_i2v_图生视频.json",
|
||||
"sha256": "a071e6070ee933396f225b4447c363bbf6b0df059b3cd43da567e81bc7937e84"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_r2v_多参生视频.json",
|
||||
"sha256": "89166eb9cce4c9177a0f9a0a3a058e140429413e7beb3692e7ee5c30b76bc4fb"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_t2v_文生视频.json",
|
||||
"sha256": "039d46a5bbb809b84fab3b42c777118f91d0c06835555d54410631742584f1be"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3多参生视频无审核版.json",
|
||||
"sha256": "e501089f36c4c7f76a9e926e09ab9c467316d0778e62dff4c9e9faa6b155cb83"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3文生视频无审核版.json",
|
||||
"sha256": "07baed6dd4a259701f7e5563fa1f19799fbbb558668d09a74876db3729fff3a2"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3首尾帧生视频无审核版.json",
|
||||
"sha256": "d47d3e995858a9c581863a593d89d4f6a24ea04014a1df3faeffa7e07cb19537"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_I2V_InfiniteTalk_rCM_数字人对口型多动态(KJ版).json",
|
||||
"sha256": "90fb512939d5bbaebfd3462d8edd019ad388611951748e6df09993ddd7f3a36f"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_I2V_InfiniteTalk_提示词调度动作控制图生视频数字人(KJ版).json",
|
||||
"sha256": "98b4c399948f99aeac9326b4de9638d9a7bc3d718edd2561ab745f6bec12478c"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_infinitetalk_音频驱动视频配音-单人for循环长视频(官流).json",
|
||||
"sha256": "ebd0c2823b70e5121f9642f781f2d0fa32cda6abe7d4a68fb0eecacc30e92d06"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_infinitetalk_音频驱动视频配音-双人for循环长视频(官流).json",
|
||||
"sha256": "87412366e6bedd2a2f4490d1a945d0fc005251bb49a20e4ba1157cd6c4ddfbcd"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_SCAIL2_角色迁移_动作迁移_FOR循环长视频.json",
|
||||
"sha256": "60d7a6c9b1b567d726ffd0981de3d8afb3675f88b320733d8442081d849b0ba8"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_Scail-2_动作迁移_WanAnimatePlus_v4.2.json",
|
||||
"sha256": "f0da1e6c1eab5706d29d8d12897db0cea0d9d5f7a73b4882cf07ef2a626dda45"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_Scail-2_角色迁移_WanAnimatePlus_v4.2.json",
|
||||
"sha256": "395dc48ad21d9da6a3a815654922193a9893696015154f53be0cc6f484882637"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.2_Animate_SAM3-人物迁移-动作迁移-长视频循环(KJ流).json",
|
||||
"sha256": "3ea95e56f193c046937ad246087292865a809d2cc26571357c22fff415295f41"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.2_Animate_人物遮罩替换(官流整理).json",
|
||||
"sha256": "394c3c31ad05255d3eb130f309d8445764f4d3772b40fa07fbf19708bfcc1002"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/6-动作迁移/Wan_Animate2_动作迁移_for循环长视频.json",
|
||||
"sha256": "22b7853e22629822dd354b0b768e2961a53b4c2f480cfaceeaea9dc51c0f0d0b"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/Krea2_t2i_20260818_API.json",
|
||||
"sha256": "dcf5fad9b464e4154d8ec7ba7af1c21987cb0153c7df747266a02de9f24e1313"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/MiniMax-H3-Turbo-R2V-Extend-2Refs1Vid_API.json",
|
||||
"sha256": "080a17d7ae079f278518de1af15b880a4404105ec89edbac4fd82cf16097b757"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/krea2_T2I_CharSheetV1_API.json",
|
||||
"sha256": "6a991229721d0a501846bf0bc55f793d1ab5225be28b2c9eea485fed56ed5b40"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/minimax_h3-Turbo_Image2Video_20260813_API.json",
|
||||
"sha256": "3d895b01e72c10008c036a9c65fa281b3dfe0d0808417089960fd8f4b56c48ce"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/minimax_h3-Turbo_Text2Video_20260813_API.json",
|
||||
"sha256": "55c6d0e7fb323e05c3d9373606607e0e8fefb3127cac356b03e29f19b7aaa4ed"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_2ref_API.json",
|
||||
"sha256": "56ab7cbf2402f94000eb1df2b5415f90f36a2821e68f1c35af17a2d9498e7c49"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_3ref_API.json",
|
||||
"sha256": "2a687133f175180584ebfc3b4318f29cfcac3a24a0f422e1b9c77e6b16c9862a"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_4ref_API.json",
|
||||
"sha256": "0b00bfc29ad48f8af3c7b6ebc1dcaa03b809b33c24bc31dadc628289480b154a"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_5ref_API.json",
|
||||
"sha256": "0b6c1bee6507c2485aa115d3b6c038c6c3dabf1ce8569205f8ece50e58f4e909"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_API.json",
|
||||
"sha256": "29f440f7123b9ce64e0fda01ee3cdafb7f87408c47c1fe46c2b73f88682eae0c"
|
||||
}
|
||||
],
|
||||
"original_files": 156,
|
||||
"all_unchanged": true
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"base": "5dbfe1c3942a1095edc72bcbdd377b596bd949b0",
|
||||
"first": {
|
||||
"imported": 155,
|
||||
"user_excluded": 1
|
||||
},
|
||||
"upgrade": {
|
||||
"skipped": 154,
|
||||
"updated": 1,
|
||||
"user_excluded": 1
|
||||
},
|
||||
"repeat": {
|
||||
"skipped": 155,
|
||||
"user_excluded": 1
|
||||
},
|
||||
"restored_rows": 1,
|
||||
"untouched_whole_rows": 154,
|
||||
"eligibility_unchanged": true,
|
||||
"redo": {
|
||||
"skipped": 154,
|
||||
"updated": 1,
|
||||
"user_excluded": 1
|
||||
},
|
||||
"user_protection": [
|
||||
{
|
||||
"phase": "user-before",
|
||||
"counts": {
|
||||
"skipped": 154,
|
||||
"conflict": 1,
|
||||
"user_excluded": 1
|
||||
},
|
||||
"whole_rows": 1,
|
||||
"columns": 29
|
||||
},
|
||||
{
|
||||
"phase": "user-after",
|
||||
"counts": {
|
||||
"skipped": 154,
|
||||
"conflict": 1,
|
||||
"user_excluded": 1
|
||||
},
|
||||
"whole_rows": 1,
|
||||
"columns": 29
|
||||
}
|
||||
],
|
||||
"fresh": {
|
||||
"imported": 155,
|
||||
"user_excluded": 1
|
||||
},
|
||||
"fresh_repeat": {
|
||||
"skipped": 155,
|
||||
"user_excluded": 1
|
||||
},
|
||||
"states": {
|
||||
"pending_check": 16,
|
||||
"needs_conversion": 139
|
||||
},
|
||||
"source_named_fields": 1217,
|
||||
"positional_widgets": 3660,
|
||||
"companion_values": 294,
|
||||
"new_saved": 34,
|
||||
"new_notes": 1,
|
||||
"old_saved": 2121,
|
||||
"old_notes": 61,
|
||||
"overviews": 56,
|
||||
"all_disabled": true,
|
||||
"doc_done": 0,
|
||||
"executed": 0
|
||||
}
|
||||
@@ -0,0 +1,716 @@
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_老照片修复.json",
|
||||
"sha256": "922c534d70b85beacc2cd51354552ed1d850dbb611b20f2d6981c4e524ce06c5",
|
||||
"git_blob_sha1": "11f78b6370a4380d523df54e6e4d0dcbf05b642a",
|
||||
"fields": [
|
||||
{
|
||||
"node": 147,
|
||||
"pointer": "/nodes/3/widgets_values/0",
|
||||
"value": "original",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 147,
|
||||
"pointer": "/nodes/3/widgets_values/1",
|
||||
"value": 1,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 147,
|
||||
"pointer": "/nodes/3/widgets_values/2",
|
||||
"value": 1,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 147,
|
||||
"pointer": "/nodes/3/widgets_values/3",
|
||||
"value": "crop",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 147,
|
||||
"pointer": "/nodes/3/widgets_values/4",
|
||||
"value": "lanczos",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 147,
|
||||
"pointer": "/nodes/3/widgets_values/5",
|
||||
"value": "8",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 147,
|
||||
"pointer": "/nodes/3/widgets_values/6",
|
||||
"value": "longest",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 147,
|
||||
"pointer": "/nodes/3/widgets_values/7",
|
||||
"value": 1536,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 147,
|
||||
"pointer": "/nodes/3/widgets_values/8",
|
||||
"value": "#000000",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 9,
|
||||
"pointer": "/nodes/4/widgets_values/0",
|
||||
"value": "Flux2-Klein",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 145,
|
||||
"pointer": "/nodes/5/widgets_values/0",
|
||||
"value": [
|
||||
{
|
||||
"name": "A",
|
||||
"selected": true,
|
||||
"url": "/api/view?filename=rgthree.compare._temp_acghq_00001_.png&type=temp&subfolder=&rand=0.9550149522649023"
|
||||
},
|
||||
{
|
||||
"name": "B",
|
||||
"selected": true,
|
||||
"url": "/api/view?filename=rgthree.compare._temp_acghq_00002_.png&type=temp&subfolder=&rand=0.9902072171653356"
|
||||
}
|
||||
],
|
||||
"json_type": "list",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 152,
|
||||
"pointer": "/nodes/6/widgets_values/0",
|
||||
"value": "restore this old photograph, remove scratches stains and dust,\nfix color fading, enhance micro-contrast and sharpness,\nwhite balance correction, preserve original identity\ncolor grading: natural skin tones",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 76,
|
||||
"pointer": "/nodes/8/widgets_values/0",
|
||||
"value": "640.webp",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 76,
|
||||
"pointer": "/nodes/8/widgets_values/1",
|
||||
"value": "image",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 102,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/0/widgets_values/0",
|
||||
"value": 1,
|
||||
"json_type": "int",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 105,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/1/widgets_values/0",
|
||||
"value": 825034918591445,
|
||||
"json_type": "int",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 105,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/1/widgets_values/1",
|
||||
"value": "randomize",
|
||||
"json_type": "str",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 100,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/2/widgets_values/0",
|
||||
"value": "euler",
|
||||
"json_type": "str",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 101,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/6/widgets_values/0",
|
||||
"value": 4,
|
||||
"json_type": "int",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 101,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/6/widgets_values/1",
|
||||
"value": 1024,
|
||||
"json_type": "int",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 101,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/6/widgets_values/2",
|
||||
"value": 1024,
|
||||
"json_type": "int",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 111,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/9/widgets_values/0",
|
||||
"value": 1024,
|
||||
"json_type": "int",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 111,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/9/widgets_values/1",
|
||||
"value": 1024,
|
||||
"json_type": "int",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 111,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/9/widgets_values/2",
|
||||
"value": 1,
|
||||
"json_type": "int",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 106,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/10/widgets_values/0",
|
||||
"value": "Flux\\flux-2-klein-9b-fp8.safetensors",
|
||||
"json_type": "str",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 106,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/10/widgets_values/1",
|
||||
"value": "default",
|
||||
"json_type": "str",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 142,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/11/widgets_values/0",
|
||||
"value": "Flux\\Flux2-Klein-9B_lcs_consist_20260415_一致性小志版.safetensors",
|
||||
"json_type": "str",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 142,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/11/widgets_values/1",
|
||||
"value": 0.8,
|
||||
"json_type": "float",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 107,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/12/widgets_values/0",
|
||||
"value": "qwen_3_8b_fp8mixed.safetensors",
|
||||
"json_type": "str",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 107,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/12/widgets_values/1",
|
||||
"value": "flux2",
|
||||
"json_type": "str",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 107,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/12/widgets_values/2",
|
||||
"value": "default",
|
||||
"json_type": "str",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 110,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/13/widgets_values/0",
|
||||
"value": "flux2-vae.safetensors",
|
||||
"json_type": "str",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 108,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/14/widgets_values/0",
|
||||
"value": "restore this old photograph, remove scratches stains and dust,\nfix color fading, enhance micro-contrast and sharpness,\nwhite balance correction, preserve original identity\ncolor grading: natural skin tones",
|
||||
"json_type": "str",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 109,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/15/widgets_values/0",
|
||||
"value": "low quality, plastic skin, over-sharpened, \nartificial lighting, modern clothing, \ndigital artifacts, blurry face, distorted features,\nunnatural colors, oversaturated, AI-generated look",
|
||||
"json_type": "str",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
}
|
||||
],
|
||||
"empty": [
|
||||
{
|
||||
"node": 143,
|
||||
"pointer": "/nodes/1",
|
||||
"state": "missing"
|
||||
},
|
||||
{
|
||||
"node": 151,
|
||||
"pointer": "/nodes/2",
|
||||
"state": "missing"
|
||||
},
|
||||
{
|
||||
"node": 150,
|
||||
"pointer": "/nodes/7",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 141,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/3",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 140,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/4",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 139,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/5",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 103,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/7",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 104,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/8",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 136,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/16",
|
||||
"state": "missing"
|
||||
},
|
||||
{
|
||||
"node": 135,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/17",
|
||||
"state": "missing"
|
||||
}
|
||||
],
|
||||
"notes": [
|
||||
{
|
||||
"node": 97,
|
||||
"pointer": "/nodes/0/widgets_values/0",
|
||||
"text": "Guide: [Subgraph](https://docs.comfy.org/interface/features/subgraph)\n\n## Model links (for local users)\n\n**diffusion_models**\n\n- [flux-2-klein-base-9b-fp8.safetensors](https://huggingface.co/black-forest-labs/FLUX.2-klein-base-9b-fp8)\n\n> Please visit BFL's repo, accept the agreement in the repo, and then download the fp8 model.\n\n**text_encoders**\n\n- [qwen_3_8b_fp8mixed.safetensors](https://huggingface.co/Comfy-Org/flux2-klein-9B/resolve/main/split_files/text_encoders/qwen_3_8b_fp8mixed.safetensors)\n\n**vae**\n\n- [flux2-vae.safetensors](https://huggingface.co/Comfy-Org/flux2-dev/resolve/main/split_files/vae/flux2-vae.safetensors)\n\n\nModel Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ ├── 📂 text_encoders/\n│ │ └── qwen_3_8b_fp8mixed.safetensors\n│ └── 📂 vae/\n│ └── flux2-vae.safetensors\n```\n## Report issue\n\nNote: please update ComfyUI first ([guide](https://docs.comfy.org/zh-CN/installation/update_comfyui)) and prepare required models. Desktop/Cloud ship stable builds; nightly-supported models may not be included yet, please wait for the next stable release.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n",
|
||||
"characters": 1396
|
||||
}
|
||||
],
|
||||
"scopes": [
|
||||
{
|
||||
"pointer": "/",
|
||||
"nodes": 9,
|
||||
"edges": 9,
|
||||
"modes": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"named_nodes": 0
|
||||
},
|
||||
{
|
||||
"pointer": "/definitions/subgraphs/0",
|
||||
"nodes": 18,
|
||||
"edges": 32,
|
||||
"modes": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"named_nodes": 0
|
||||
}
|
||||
],
|
||||
"extra": {
|
||||
"frontendVersion": "1.36.13",
|
||||
"workflowRendererVersion": "LG",
|
||||
"VHS_latentpreview": false,
|
||||
"VHS_latentpreviewrate": 0,
|
||||
"VHS_MetadataImage": true,
|
||||
"VHS_KeepIntermediate": true,
|
||||
"ue_links": [],
|
||||
"links_added_by_ue": [],
|
||||
"ds": {
|
||||
"scale": 0.8940853492167419,
|
||||
"offset": [
|
||||
-169.11901578680516,
|
||||
-483.92206089532885
|
||||
]
|
||||
}
|
||||
},
|
||||
"host": {
|
||||
"id": 150,
|
||||
"type": "536134bc-7b78-4af9-9b14-43b715f27e50",
|
||||
"pos": [
|
||||
1059.7209084903227,
|
||||
857.6800301756838
|
||||
],
|
||||
"size": [
|
||||
350.0090048558161,
|
||||
451.38634802663296
|
||||
],
|
||||
"flags": {},
|
||||
"order": 6,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"label": "image",
|
||||
"localized_name": "像素",
|
||||
"name": "pixels",
|
||||
"type": "IMAGE",
|
||||
"link": 284
|
||||
},
|
||||
{
|
||||
"name": "unet_name",
|
||||
"type": "COMBO",
|
||||
"widget": {
|
||||
"name": "unet_name"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"name": "lora_name",
|
||||
"type": "COMBO",
|
||||
"widget": {
|
||||
"name": "lora_name"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"name": "clip_name",
|
||||
"type": "COMBO",
|
||||
"widget": {
|
||||
"name": "clip_name"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"name": "vae_name",
|
||||
"type": "COMBO",
|
||||
"widget": {
|
||||
"name": "vae_name"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"label": "Positive",
|
||||
"name": "text",
|
||||
"type": "STRING",
|
||||
"widget": {
|
||||
"name": "text"
|
||||
},
|
||||
"link": 303
|
||||
},
|
||||
{
|
||||
"label": "Negative",
|
||||
"name": "text_1",
|
||||
"type": "STRING",
|
||||
"widget": {
|
||||
"name": "text_1"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"label": "width",
|
||||
"name": "",
|
||||
"type": "*",
|
||||
"link": 298
|
||||
},
|
||||
{
|
||||
"label": "height",
|
||||
"name": "_1",
|
||||
"type": "*",
|
||||
"link": 299
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"localized_name": "图像",
|
||||
"name": "IMAGE",
|
||||
"type": "IMAGE",
|
||||
"links": [
|
||||
287,
|
||||
288
|
||||
]
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"proxyWidgets": [
|
||||
[
|
||||
"106",
|
||||
"unet_name"
|
||||
],
|
||||
[
|
||||
"142",
|
||||
"lora_name"
|
||||
],
|
||||
[
|
||||
"107",
|
||||
"clip_name"
|
||||
],
|
||||
[
|
||||
"110",
|
||||
"vae_name"
|
||||
],
|
||||
[
|
||||
"108",
|
||||
"text"
|
||||
],
|
||||
[
|
||||
"109",
|
||||
"text"
|
||||
],
|
||||
[
|
||||
"102",
|
||||
"cfg"
|
||||
],
|
||||
[
|
||||
"101",
|
||||
"steps"
|
||||
],
|
||||
[
|
||||
"105",
|
||||
"noise_seed"
|
||||
],
|
||||
[
|
||||
"105",
|
||||
"control_after_generate"
|
||||
]
|
||||
],
|
||||
"cnr_id": "comfy-core",
|
||||
"ver": "0.28.3",
|
||||
"ue_properties": {
|
||||
"widget_ue_connectable": {},
|
||||
"input_ue_unconnectable": {},
|
||||
"version": "7.8"
|
||||
}
|
||||
},
|
||||
"widgets_values": []
|
||||
},
|
||||
"definition_boundary": {
|
||||
"id": "536134bc-7b78-4af9-9b14-43b715f27e50",
|
||||
"inputNode": {
|
||||
"id": -10,
|
||||
"bounding": [
|
||||
-4.134130485691815,
|
||||
1009.468423608799,
|
||||
128,
|
||||
228
|
||||
]
|
||||
},
|
||||
"outputNode": {
|
||||
"id": -20,
|
||||
"bounding": [
|
||||
2560,
|
||||
1113.8442331873719,
|
||||
128,
|
||||
68
|
||||
]
|
||||
},
|
||||
"inputs": [
|
||||
{
|
||||
"id": "d67273f2-280b-4104-b671-88fc3c7175dc",
|
||||
"name": "pixels",
|
||||
"type": "IMAGE",
|
||||
"linkIds": [
|
||||
276
|
||||
],
|
||||
"localized_name": "像素",
|
||||
"label": "image",
|
||||
"pos": [
|
||||
99.86586951430819,
|
||||
1033.468423608799
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "09a7075d-4d84-4cf6-bddf-1a57df76cb15",
|
||||
"name": "unet_name",
|
||||
"type": "COMBO",
|
||||
"linkIds": [
|
||||
290
|
||||
],
|
||||
"pos": [
|
||||
99.86586951430819,
|
||||
1053.468423608799
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "ba9b003c-1bca-4883-b16a-4d77b3faf450",
|
||||
"name": "lora_name",
|
||||
"type": "COMBO",
|
||||
"linkIds": [
|
||||
291
|
||||
],
|
||||
"pos": [
|
||||
99.86586951430819,
|
||||
1073.468423608799
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "ee31aa25-77eb-457d-8d21-9bf1e3cbf512",
|
||||
"name": "clip_name",
|
||||
"type": "COMBO",
|
||||
"linkIds": [
|
||||
292
|
||||
],
|
||||
"pos": [
|
||||
99.86586951430819,
|
||||
1093.468423608799
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "64bb469e-905d-4a1a-bc31-87d79aa26fd2",
|
||||
"name": "vae_name",
|
||||
"type": "COMBO",
|
||||
"linkIds": [
|
||||
293
|
||||
],
|
||||
"pos": [
|
||||
99.86586951430819,
|
||||
1113.468423608799
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "cc00136d-b6a3-40e5-a9f6-4e717e372fc7",
|
||||
"name": "text",
|
||||
"type": "STRING",
|
||||
"linkIds": [
|
||||
294
|
||||
],
|
||||
"label": "Positive",
|
||||
"pos": [
|
||||
99.86586951430819,
|
||||
1133.468423608799
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "22e96b0f-2680-48dc-ac79-1e6cebf95558",
|
||||
"name": "text_1",
|
||||
"type": "STRING",
|
||||
"linkIds": [
|
||||
295
|
||||
],
|
||||
"label": "Negative",
|
||||
"pos": [
|
||||
99.86586951430819,
|
||||
1153.468423608799
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "47cb9064-708c-4387-a6a1-4ee82d5d7450",
|
||||
"name": "",
|
||||
"type": "*",
|
||||
"linkIds": [
|
||||
296
|
||||
],
|
||||
"label": "width",
|
||||
"pos": [
|
||||
99.86586951430819,
|
||||
1173.468423608799
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "772779cf-ccb0-4483-b430-6c5d81a34c69",
|
||||
"name": "_1",
|
||||
"type": "*",
|
||||
"linkIds": [
|
||||
297
|
||||
],
|
||||
"label": "height",
|
||||
"pos": [
|
||||
99.86586951430819,
|
||||
1193.468423608799
|
||||
]
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"id": "78e133df-03b7-4edf-942b-cdc4607ecf78",
|
||||
"name": "IMAGE",
|
||||
"type": "IMAGE",
|
||||
"linkIds": [
|
||||
201,
|
||||
201,
|
||||
201
|
||||
],
|
||||
"localized_name": "图像",
|
||||
"pos": [
|
||||
2584,
|
||||
1137.8442331873719
|
||||
]
|
||||
}
|
||||
],
|
||||
"widgets": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
"""Independent original bytes and every physical boundary; no layout mapping."""
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[3]
|
||||
OUT = Path(__file__).resolve().parent
|
||||
PATH = "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_老照片修复.json"
|
||||
|
||||
|
||||
def inventory():
|
||||
raw = (ROOT / PATH).read_bytes()
|
||||
g = json.loads(raw)
|
||||
fields, empty, notes, scopes = [], [], [], []
|
||||
graphs = [("", g)] + [
|
||||
(f"/definitions/subgraphs/{i}", s) for i, s in enumerate(g["definitions"]["subgraphs"])
|
||||
]
|
||||
for prefix, graph in graphs:
|
||||
scopes.append(
|
||||
dict(
|
||||
pointer=prefix or "/",
|
||||
nodes=len(graph["nodes"]),
|
||||
edges=len(graph["links"]),
|
||||
modes=[n["mode"] for n in graph["nodes"]],
|
||||
named_nodes=sum("widgets_values_named" in n for n in graph["nodes"]),
|
||||
)
|
||||
)
|
||||
for i, n in enumerate(graph["nodes"]):
|
||||
p = f"{prefix}/nodes/{i}"
|
||||
if "widgets_values" not in n or n["widgets_values"] in [None, []]:
|
||||
empty.append(
|
||||
dict(
|
||||
node=n["id"],
|
||||
pointer=p,
|
||||
state="missing"
|
||||
if "widgets_values" not in n
|
||||
else "null"
|
||||
if n["widgets_values"] is None
|
||||
else "empty_list",
|
||||
)
|
||||
)
|
||||
if n["type"] in ["Note", "MarkdownNote"]:
|
||||
notes.append(
|
||||
dict(
|
||||
node=n["id"],
|
||||
pointer=p + "/widgets_values/0",
|
||||
text=n["widgets_values"][0],
|
||||
characters=len(n["widgets_values"][0]),
|
||||
)
|
||||
)
|
||||
continue
|
||||
for j, v in enumerate(n.get("widgets_values") or []):
|
||||
fields.append(
|
||||
dict(
|
||||
node=n["id"],
|
||||
pointer=f"{p}/widgets_values/{j}",
|
||||
value=v,
|
||||
json_type=type(v).__name__,
|
||||
scope="root" if not prefix else prefix,
|
||||
named=n.get("widgets_values_named"),
|
||||
)
|
||||
)
|
||||
sub = g["definitions"]["subgraphs"][0]
|
||||
host = next(n for n in g["nodes"] if n["id"] == 150)
|
||||
return dict(
|
||||
path=PATH,
|
||||
sha256=hashlib.sha256(raw).hexdigest(),
|
||||
git_blob_sha1=hashlib.sha1(b"blob " + str(len(raw)).encode() + b"\0" + raw).hexdigest(),
|
||||
fields=fields,
|
||||
empty=empty,
|
||||
notes=notes,
|
||||
scopes=scopes,
|
||||
extra=g["extra"],
|
||||
host=host,
|
||||
definition_boundary={
|
||||
k: sub[k] for k in ["id", "inputNode", "outputNode", "inputs", "outputs", "widgets"]
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
x = inventory()
|
||||
(OUT / "independent-inventory.json").write_text(
|
||||
json.dumps(x, ensure_ascii=False, indent=2) + "\n"
|
||||
)
|
||||
print("Saved", len(x["fields"]), "notes", len(x["notes"]), "scopes", x["scopes"])
|
||||
@@ -0,0 +1 @@
|
||||
All checks passed!
|
||||
@@ -0,0 +1,7 @@
|
||||
|
||||
added 255 packages, and audited 256 packages in 1s
|
||||
|
||||
59 packages are looking for funding
|
||||
run `npm fund` for details
|
||||
|
||||
found 0 vulnerabilities
|
||||
@@ -0,0 +1,23 @@
|
||||
[
|
||||
{
|
||||
"file": "fixed_document.py",
|
||||
"sha256": "e77533582a381e05dcda1ca7700fc471c6a3d9c98588dc11f62310827680ea3e",
|
||||
"wheel": true,
|
||||
"sdist": true,
|
||||
"definitions": 56
|
||||
},
|
||||
{
|
||||
"file": "source_reviews.json",
|
||||
"sha256": "360ef895c223b550fa19fa894ef36664a963cf7c4e0b83354cb8428281a83083",
|
||||
"wheel": true,
|
||||
"sdist": true,
|
||||
"definitions": 56
|
||||
},
|
||||
{
|
||||
"file": "library.py",
|
||||
"sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c",
|
||||
"wheel": true,
|
||||
"sdist": true,
|
||||
"definitions": 56
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_老照片修复.json": "39a9c04ab848830c1dc858dc0aa192182286160ba067244f1edd0e1b8c2fbf8e"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
[
|
||||
{
|
||||
"port": 8247,
|
||||
"connect_ex": 111,
|
||||
"connection_refused": true
|
||||
},
|
||||
{
|
||||
"port": 5173,
|
||||
"connect_ex": 111,
|
||||
"connection_refused": true
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"number": 25,
|
||||
"state": "open",
|
||||
"merged": false,
|
||||
"html_url": "http://gitea.xbay.cc/leefer/aigc-home/pulls/25",
|
||||
"head": {
|
||||
"ref": "agent/agent/a64a969a6a44",
|
||||
"sha": "5dbfe1c3942a1095edc72bcbdd377b596bd949b0"
|
||||
},
|
||||
"base": {
|
||||
"ref": "main",
|
||||
"sha": "1fc8bdb8bb2a88ccace6f21a507fd77bcf22f532"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"returncode": 2,
|
||||
"output": "docs/hel-892/flux2-restore-document-evidence/acquisition.txt:4: trailing whitespace.\n+hint: \ndocs/hel-892/flux2-restore-document-evidence/acquisition.txt:6: trailing whitespace.\n+hint: \ndocs/hel-892/flux2-restore-document-evidence/acquisition.txt:9: trailing whitespace.\n+hint: \n",
|
||||
"policy": "准确上游原件及原始获取日志保留原字节,不格式化;自写文件另做差分检查"
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
"Offline batch evidence tooling; no upstream execution."
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
import subprocess
|
||||
|
||||
from build_definition import OUT, PATHS, REPO, build, canonical
|
||||
|
||||
BASE = "5dbfe1c3942a1095edc72bcbdd377b596bd949b0"
|
||||
RESOURCE = ("calliope-backend/src/calliope/" + "co") + "mfyui/source_reviews.json"
|
||||
|
||||
|
||||
def build_all():
|
||||
previous = json.loads(subprocess.check_output(["git", "show", f"{BASE}:{RESOURCE}"], cwd=REPO))
|
||||
reviews = json.loads(json.dumps(previous, ensure_ascii=False))
|
||||
for i, path in enumerate(PATHS):
|
||||
block = build(i)
|
||||
assert reviews[path]["source_sha"] == block["source_sha1"]
|
||||
assert "fixed_version_document" not in previous[path]
|
||||
reviews[path]["fixed_version_document"] = block
|
||||
return reviews, previous
|
||||
|
||||
|
||||
def main():
|
||||
current = json.loads((REPO / RESOURCE).read_bytes())
|
||||
reviews, _previous = build_all()
|
||||
(REPO / RESOURCE).write_text(json.dumps(reviews, ensure_ascii=False, indent=2) + "\n")
|
||||
pins = {}
|
||||
for i, path in enumerate(PATHS):
|
||||
block = reviews[path]["fixed_version_document"]
|
||||
pins[path] = hashlib.sha256(canonical(block)).hexdigest()
|
||||
(OUT / f"definition-{i}.json").write_text(
|
||||
json.dumps(block, ensure_ascii=False, indent=2) + "\n"
|
||||
)
|
||||
# Explicit maintenance of the code-owned allowlist, never trust runtime caller digests.
|
||||
module = REPO / (("calliope-backend/src/calliope/" + "co") + "mfyui/fixed_document.py")
|
||||
text = module.read_text()
|
||||
for path, digest in pins.items():
|
||||
old_block = current[path].get("fixed_version_document")
|
||||
old_digest = hashlib.sha256(canonical(old_block)).hexdigest() if old_block else None
|
||||
if old_digest and old_digest in text:
|
||||
text = text.replace(old_digest, digest)
|
||||
elif digest in text:
|
||||
pass
|
||||
else:
|
||||
text = text.replace(
|
||||
"DEFINITIONS = {",
|
||||
"DEFINITIONS = {\n (\n"
|
||||
+ "".join(
|
||||
" " + repr(path[i : i + 41]) + "\n" for i in range(0, len(path), 41)
|
||||
)
|
||||
+ " ): "
|
||||
+ repr(digest)
|
||||
+ ",",
|
||||
)
|
||||
module.write_text(text)
|
||||
(OUT / "pins.json").write_text(json.dumps(pins, ensure_ascii=False, indent=2) + "\n")
|
||||
print("PASS one new definition; other 155 reviews and old 55 blocks unchanged")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,369 @@
|
||||
"Offline batch evidence tooling; no upstream execution."
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
import io
|
||||
import json
|
||||
import os
|
||||
import sqlite3
|
||||
import subprocess
|
||||
import sys
|
||||
import tarfile
|
||||
import tempfile
|
||||
import zipfile
|
||||
from pathlib import Path
|
||||
|
||||
from build_definition import OUT, PATHS, REPO, canonical
|
||||
from rebuild import BASE, RESOURCE, build_all
|
||||
|
||||
BASE = os.environ.get("TTS_IMPORT_BASE", BASE)
|
||||
|
||||
sys.path.insert(0, str(REPO / "calliope-backend"))
|
||||
|
||||
|
||||
def write(name, value):
|
||||
(OUT / name).write_text(json.dumps(value, ensure_ascii=False, indent=2) + "\n")
|
||||
|
||||
|
||||
def require_packages():
|
||||
dist = REPO / "calliope-backend/dist"
|
||||
w = sorted(dist.glob("*.whl"))
|
||||
s = sorted(dist.glob("*.tar.gz"))
|
||||
if not w or not s:
|
||||
raise SystemExit(
|
||||
"缺少wheel/sdist包产物,请先在仓库根执行:uv bui"
|
||||
+ "ld --project calliope-backend --"
|
||||
+ "offline"
|
||||
)
|
||||
return w[-1], s[-1]
|
||||
|
||||
|
||||
def main():
|
||||
from calliope.comfyui.fixed_document import DEFINITIONS
|
||||
from calliope.comfyui.library import rollback_batch
|
||||
from scripts.audit_library_documents import audit
|
||||
|
||||
wheels, sdists = require_packages()
|
||||
from verify_sources import main as verify_sources
|
||||
|
||||
verify_sources()
|
||||
rebuilt, previous = build_all()
|
||||
assert rebuilt == json.loads((REPO / RESOURCE).read_bytes())
|
||||
old_blocks = {
|
||||
p: r[("fixed_version_document")]
|
||||
for p, r in previous.items()
|
||||
if ("fixed_version_document") in r
|
||||
}
|
||||
assert len(old_blocks) == 55
|
||||
assert all(rebuilt[p]["fixed_version_document"] == b for p, b in old_blocks.items())
|
||||
assert sum(len(b["fields"]) for b in old_blocks.values()) == 2121
|
||||
for p, d in DEFINITIONS.items():
|
||||
assert hashlib.sha256(canonical(rebuilt[p]["fixed_version_document"])).hexdigest() == d
|
||||
write(
|
||||
"review-delta.json",
|
||||
{
|
||||
"base": BASE,
|
||||
"changed_paths": PATHS,
|
||||
"other_reviews_unchanged": 155,
|
||||
"old_blocks_unchanged": 55,
|
||||
"old_saved": 2121,
|
||||
"old_notes": 61,
|
||||
"new_saved": 34,
|
||||
"new_notes": 1,
|
||||
"total_documents": 56,
|
||||
"total_saved": 2155,
|
||||
"total_notes": 62,
|
||||
},
|
||||
)
|
||||
with tempfile.TemporaryDirectory() as directory:
|
||||
work = Path(directory)
|
||||
old = work / "old"
|
||||
old.mkdir()
|
||||
data = subprocess.check_output(["git", "archive", BASE, ("calliope-backend/src")], cwd=REPO)
|
||||
with tarfile.open(fileobj=io.BytesIO(data)) as a:
|
||||
a.extractall(old, filter="data")
|
||||
db = work / "library.db"
|
||||
|
||||
def run(name, historical=False):
|
||||
out = work / name
|
||||
env = {
|
||||
**os.environ,
|
||||
"PYTHONPATH": str((old if historical else REPO) / "calliope-backend/src"),
|
||||
}
|
||||
subprocess.run(
|
||||
[
|
||||
sys.executable,
|
||||
"-m",
|
||||
"calliope.comfyui.library_cli",
|
||||
"import",
|
||||
"--root",
|
||||
str(REPO / "example_ComfyUI_workflows"),
|
||||
"--db",
|
||||
str(db),
|
||||
"--source-commit",
|
||||
BASE,
|
||||
"--companions",
|
||||
str(REPO / (("docs/hel-892/supplied-api/mani" + "fe") + "st.json")),
|
||||
"--output-dir",
|
||||
str(out),
|
||||
],
|
||||
cwd=REPO,
|
||||
env=env,
|
||||
check=True,
|
||||
stdout=subprocess.DEVNULL,
|
||||
)
|
||||
return json.loads((out / "import_report.json").read_bytes()), out
|
||||
|
||||
def rows():
|
||||
with sqlite3.connect(db) as c:
|
||||
c.row_factory = sqlite3.Row
|
||||
return {
|
||||
r["source_repo_path"]: dict(r) for r in c.execute("SELECT * FROM workflows")
|
||||
}
|
||||
|
||||
first, _ = run("historical", True)
|
||||
before = rows()
|
||||
assert first["counts"] == {"imported": 155, "user_excluded": 1}
|
||||
assert all(
|
||||
"fixed_version" in json.loads(before[p]["doc_json"])
|
||||
if BASE.startswith("3c307e0")
|
||||
else "fixed_version" not in json.loads(before[p]["doc_json"])
|
||||
for p in PATHS
|
||||
)
|
||||
assert all(
|
||||
json.loads(before[p]["doc_json"])["fixed_version"]["matched"]
|
||||
for p in DEFINITIONS
|
||||
if p not in PATHS
|
||||
)
|
||||
original = db
|
||||
protected = []
|
||||
|
||||
def protect(name):
|
||||
nonlocal db
|
||||
db = work / (name + ".db")
|
||||
with sqlite3.connect(original) as src, sqlite3.connect(db) as dst:
|
||||
src.backup(dst)
|
||||
for p in PATHS:
|
||||
dst.execute(
|
||||
(
|
||||
(("UPDATE workflows SET descripti") + "on")
|
||||
+ ("=? WHERE source_repo_path=?")
|
||||
),
|
||||
(name, p),
|
||||
)
|
||||
snapshot = rows()
|
||||
r, _ = run(name)
|
||||
assert r["counts"] == {"conflict": 1, "skipped": 154, "user_excluded": 1}
|
||||
assert rows() == snapshot and all(len(snapshot[p]) == 29 for p in PATHS)
|
||||
protected.append({"phase": name, "counts": r["counts"], "whole_rows": 1, "columns": 29})
|
||||
db = original
|
||||
|
||||
protect("user-before")
|
||||
upgrade, exported = run("upgrade")
|
||||
after = rows()
|
||||
assert upgrade["counts"] == {"updated": 1, "skipped": 154, "user_excluded": 1}
|
||||
for p, row in after.items():
|
||||
if p not in PATHS:
|
||||
assert row == before[p]
|
||||
continue
|
||||
assert len(row) == 29
|
||||
assert all(
|
||||
row[k] == before[p][k]
|
||||
for k in row.keys() - {"doc_json", "batch_id", "imported_at", "library_fingerprint"}
|
||||
)
|
||||
d = json.loads(row["doc_json"])
|
||||
assert d["fixed_version"]["matched"]
|
||||
old_doc = json.loads(before[p]["doc_json"])
|
||||
without = dict(d)
|
||||
fixed = without.pop("fixed_version")
|
||||
# Output-reference enrichment appends two existing steps after the generic
|
||||
# three for this graph. Replace only the actual original generic segment.
|
||||
generic = [
|
||||
f"打开源工作流 {p},逐项核对下列源节点与注释。",
|
||||
"补齐节点定义、模型来源及所需素材;完成输入输出映射核对。",
|
||||
"明确触发真实测试后核对产物;本批未提交生成任务。",
|
||||
]
|
||||
offset = old_doc["steps"].index(generic[0])
|
||||
assert old_doc["steps"][offset : offset + 3] == generic
|
||||
assert (
|
||||
without["steps"]
|
||||
== old_doc["steps"][:offset] + fixed["steps"] + old_doc["steps"][offset + 3 :]
|
||||
)
|
||||
without["steps"] = old_doc["steps"]
|
||||
assert without.pop("source_review_sha") != old_doc.pop("source_review_sha")
|
||||
old_doc.pop("fixed_version", None)
|
||||
assert without == old_doc
|
||||
write("actual-" + Path(p).stem + ".json", d)
|
||||
repeat, _ = run("repeat")
|
||||
assert repeat["counts"] == {"skipped": 155, "user_excluded": 1}
|
||||
with sqlite3.connect(db) as c:
|
||||
c.row_factory = sqlite3.Row
|
||||
r = rollback_batch(c, upgrade["batch_id"])
|
||||
assert len(r["files"]) == 1 and all(f["result"] == "restored" for f in r["files"])
|
||||
assert rows() == before
|
||||
redo, _ = run("redo")
|
||||
assert redo["counts"] == upgrade["counts"]
|
||||
protect("user-after")
|
||||
db = work / "fresh.db"
|
||||
fresh, exported = run("fresh")
|
||||
fresh_repeat, _ = run("fresh-repeat")
|
||||
assert fresh["counts"] == first["counts"] and fresh_repeat["counts"] == repeat["counts"]
|
||||
assert fresh["states"] == {"pending_check": 16, "needs_conversion": 139}
|
||||
companion = 0
|
||||
for row in rows().values():
|
||||
d = json.loads(row["doc_json"])
|
||||
companion += sum(
|
||||
p.get("value_origin") == ("supplied_api_companion") for p in d["params"]
|
||||
)
|
||||
assert (
|
||||
not row["is_enabled"]
|
||||
and row["doc_completed_at"] is None
|
||||
and row["exec_verified_at"] is None
|
||||
)
|
||||
assert not d["status"]["doc_done"] and not d["status"]["exec_verified"]
|
||||
assert d["dependencies"]["check_state"] == "unchecked"
|
||||
report = audit(REPO, exported)
|
||||
assert (
|
||||
report["named_values_preserved"] == 1217
|
||||
and report["unnamed_widget_nodes"] == 3660
|
||||
and companion == 294
|
||||
)
|
||||
assert report["full_documents_completed"] == report["real_executions"] == 0
|
||||
write("audit-summary.json", {k: v for k, v in report.items() if k != "files"})
|
||||
write(
|
||||
"import-protection.json",
|
||||
{
|
||||
"base": BASE,
|
||||
"first": first["counts"],
|
||||
"upgrade": upgrade["counts"],
|
||||
"repeat": repeat["counts"],
|
||||
"restored_rows": 1,
|
||||
"untouched_whole_rows": 154,
|
||||
"eligibility_unchanged": True,
|
||||
"redo": redo["counts"],
|
||||
"user_protection": protected,
|
||||
"fresh": fresh["counts"],
|
||||
"fresh_repeat": fresh_repeat["counts"],
|
||||
"states": fresh["states"],
|
||||
"source_named_fields": 1217,
|
||||
"positional_widgets": 3660,
|
||||
"companion_values": companion,
|
||||
"new_saved": 34,
|
||||
"new_notes": 1,
|
||||
"old_saved": 2121,
|
||||
"old_notes": 61,
|
||||
"overviews": 56,
|
||||
"all_disabled": True,
|
||||
"doc_done": 0,
|
||||
"executed": 0,
|
||||
},
|
||||
)
|
||||
old_reviews = json.loads(
|
||||
subprocess.check_output(["git", "show", f"{BASE}:{RESOURCE}"], cwd=REPO)
|
||||
)
|
||||
current = json.loads((REPO / RESOURCE).read_bytes())
|
||||
for p in PATHS:
|
||||
current[p].pop("fixed_version_document")
|
||||
old_reviews[p].pop("fixed_version_document", None)
|
||||
assert current == old_reviews
|
||||
boundaries = json.loads(
|
||||
(
|
||||
REPO / (("docs/hel-892/h3-document-evide" + "nc") + "e/unchanged-boundaries.json")
|
||||
).read_bytes()
|
||||
)
|
||||
paths = (
|
||||
[f["path"] for f in boundaries["files"]]
|
||||
+ boundaries["frozen_conversion_and_audits"]
|
||||
+ [("calliope-backend/src/calliope/co" + "mfyui/library.py")]
|
||||
)
|
||||
kept = []
|
||||
for p in paths:
|
||||
raw = (REPO / p).read_bytes()
|
||||
assert raw == subprocess.check_output(["git", "show", f"{BASE}:{p}"], cwd=REPO)
|
||||
kept.append({"path": p, "sha256": hashlib.sha256(raw).hexdigest()})
|
||||
ui = ("calliope-web/src/lib/component" + "s/") + "WorkflowDocumentDrawer.svelte"
|
||||
drawer_bytes = (REPO / ui).read_bytes()
|
||||
assert drawer_bytes == subprocess.check_output(["git", "show", f"{BASE}:{ui}"], cwd=REPO)
|
||||
|
||||
write(
|
||||
"boundaries.json",
|
||||
{
|
||||
"base": BASE,
|
||||
"files": kept,
|
||||
"originals": 163,
|
||||
"old_fifty_five_blocks_unchanged": True,
|
||||
"drawer_css_unchanged": True,
|
||||
"drawer_whole_file_unchanged": True,
|
||||
"drawer_sha256": hashlib.sha256(drawer_bytes).hexdigest(),
|
||||
"conversion_rerun": False,
|
||||
"profiles_28_candidates_9_diffs_6": "unchanged",
|
||||
},
|
||||
)
|
||||
tracked = (
|
||||
subprocess.check_output(["git", "ls-tree", "-rz", "--name-only", BASE], cwd=REPO)
|
||||
.decode()
|
||||
.rstrip("\0")
|
||||
.split("\0")
|
||||
)
|
||||
frozen = [
|
||||
p
|
||||
for p in tracked
|
||||
if p.startswith(("example_ComfyUI_workflows/", "docs/hel-892/supplied-api/"))
|
||||
or p.startswith(("calliope-backend/src/calliope/" + "co") + "mfyui/")
|
||||
and p
|
||||
not in [
|
||||
RESOURCE,
|
||||
((("calliope-backend/src/calliope/") + "co") + ("mfyui/fixed_document.py")),
|
||||
]
|
||||
]
|
||||
for p in frozen:
|
||||
assert (REPO / p).read_bytes() == subprocess.check_output(
|
||||
["git", "show", f"{BASE}:{p}"], cwd=REPO
|
||||
)
|
||||
write(
|
||||
"frozen-resource-check.json",
|
||||
{
|
||||
"base": BASE,
|
||||
"files": [
|
||||
{
|
||||
"path": p,
|
||||
"sha256": hashlib.sha256((REPO / p).read_bytes()).hexdigest(),
|
||||
}
|
||||
for p in frozen
|
||||
],
|
||||
"original_files": sum(p.startswith("example_ComfyUI_workflows/") for p in frozen),
|
||||
"all_unchanged": True,
|
||||
},
|
||||
)
|
||||
packages = []
|
||||
with zipfile.ZipFile(wheels) as w, tarfile.open(sdists) as s:
|
||||
for name in ["fixed_document.py", "source_reviews.json", "library.py"]:
|
||||
raw = (
|
||||
REPO / ((("calliope-backend/src/calliope/") + "co") + "mfyui") / name
|
||||
).read_bytes()
|
||||
assert w.read("calliope/comfyui/" + name) == raw
|
||||
member = next(n for n in s.getnames() if n.endswith(("/src/calliope/comfyui/") + name))
|
||||
assert s.extractfile(member).read() == raw
|
||||
packages.append(
|
||||
{
|
||||
"file": name,
|
||||
"sha256": hashlib.sha256(raw).hexdigest(),
|
||||
"wheel": True,
|
||||
"sdist": True,
|
||||
"definitions": 56,
|
||||
}
|
||||
)
|
||||
write("package-check.json", packages)
|
||||
print(
|
||||
f"PASS actual {BASE} upgrade1/skip154, repe"
|
||||
"at155, rollback1, edits1"
|
||||
"/29cols, fresh155,"
|
||||
" 1217/3660/294, 56 defin"
|
||||
"itions, frozen bou"
|
||||
"ndaries, wheel/sdist"
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,2 @@
|
||||
PASS 60 texts; 73 citations;34 positions/41 physical edges
|
||||
PASS actual 5dbfe1c3942a1095edc72bcbdd377b596bd949b0 upgrade1/skip154, repeat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 56 definitions, frozen boundaries, wheel/sdist
|
||||
@@ -0,0 +1,130 @@
|
||||
"Offline batch evidence tooling; no upstream execution."
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
OUT = Path(__file__).resolve().parent
|
||||
|
||||
|
||||
def main():
|
||||
lines = [
|
||||
"# Flux老照片修复固定参考中文说明",
|
||||
"",
|
||||
"新增34保存位置/1注释;旧55块2121位置+61源注释不变,56图2155+62仅参考;155定稿0/实跑0/新增转换0。",
|
||||
"",
|
||||
(
|
||||
("来源local_file以docs/hel-892/flux2-restore-document")
|
||||
+ (
|
||||
("-evidence为基准;源SHA/全图摘要/定义摘要绑" + "定;不加")
|
||||
+ "载上游代码、媒体或链接。"
|
||||
)
|
||||
),
|
||||
"",
|
||||
]
|
||||
index = []
|
||||
for i in range(1):
|
||||
b = json.loads((OUT / f"definition-{i}.json").read_bytes())
|
||||
lines += [
|
||||
"## " + Path(b["source_path"]).stem,
|
||||
"",
|
||||
b["user_overview"],
|
||||
"",
|
||||
b["notice"],
|
||||
"",
|
||||
"源路径:`" + b["source_path"] + "`",
|
||||
"",
|
||||
"SHA1:" + b["source_sha1"],
|
||||
"",
|
||||
"原字节SHA256:" + b["source_sha256"],
|
||||
"",
|
||||
"规范全图SHA256:" + b["canonical_sha256"],
|
||||
"",
|
||||
*[v + "\n" for v in b["versions"]],
|
||||
"### 具体连线与处理条件",
|
||||
"",
|
||||
*[v + "\n" for v in b["flow"]],
|
||||
"### 使用与核对",
|
||||
"",
|
||||
*[v + "\n" for v in b["steps"]],
|
||||
"### 逐保存位置说明",
|
||||
"",
|
||||
]
|
||||
for j, f in enumerate(b["fields"], 1):
|
||||
lines += [
|
||||
f"#### {j}. 节点{f['node_id']} · {f['label']}({f['field']})",
|
||||
"",
|
||||
f["effect"],
|
||||
"",
|
||||
"```json",
|
||||
json.dumps(f["value"], ensure_ascii=False, indent=2),
|
||||
"```",
|
||||
"",
|
||||
f"类:{f['class_type']};JSON类型:{f['json_type']};角色:{f['role']}。",
|
||||
"",
|
||||
"源保存位置:`" + f["pointer"] + "`;源输入口:`" + f["input_pointer"] + "`",
|
||||
"",
|
||||
"具名保存位置:`" + f["named_pointer"] + "`;作用域:" + f["scope"],
|
||||
"",
|
||||
"定义默认:" + f["schema_default"] + ";单位:" + f["unit"],
|
||||
"",
|
||||
"范围/条件:" + f["limits"],
|
||||
"",
|
||||
f["execution_note"],
|
||||
"",
|
||||
"依据:",
|
||||
]
|
||||
for k in f["evidence"]:
|
||||
e = b["sources"][k]
|
||||
lines += [
|
||||
(
|
||||
f"- [{k}] {e['claim']};{e['file']} {e['lines'][0]}~{e['lines'][1]}行;"
|
||||
f"commit {e['commit']};SHA256 {e['sha256']};{e['url']}"
|
||||
)
|
||||
]
|
||||
if "named_value" in f and f["named_value"] != f["value"]:
|
||||
lines += [
|
||||
"具名保存完整形态(与位置列表分开保留):",
|
||||
"",
|
||||
"```json",
|
||||
json.dumps(f["named_value"], ensure_ascii=False, indent=2),
|
||||
"```",
|
||||
"",
|
||||
]
|
||||
lines += [""]
|
||||
lines += ["### 零保存节点与源注释", ""]
|
||||
for z in b["zero_saved_nodes"]:
|
||||
lines += [z["node_id"] + " " + z["class_type"] + ":" + z["effect"], ""]
|
||||
for n in b["comments"]:
|
||||
lines += [
|
||||
"节点" + n["node_id"] + ",位置`" + n["pointer"] + "`",
|
||||
"",
|
||||
n["meaning"],
|
||||
"",
|
||||
"```text",
|
||||
n["text"],
|
||||
"```",
|
||||
"",
|
||||
]
|
||||
lines += ["### 固定原件索引", ""]
|
||||
for k, e in enumerate(b["sources"]):
|
||||
data = (OUT / e["local_file"]).read_bytes()
|
||||
assert hashlib.sha256(data).hexdigest() == e["sha256"]
|
||||
lines += [
|
||||
(
|
||||
f"{k}. {e['claim']};{e['file']} 第{e['lines'][0]}~{e['lines'][1]}行;"
|
||||
f"提交{e['commit']};SHA256 {e['sha256']};{e['url']}"
|
||||
),
|
||||
"",
|
||||
]
|
||||
index.append(dict(document=b["source_path"], **e))
|
||||
(OUT.parent / "Flux老照片修复固定参考中文说明.md").write_text("\n".join(lines).rstrip() + "\n")
|
||||
(OUT / "fixed-source-index.json").write_text(
|
||||
json.dumps(index, ensure_ascii=False, indent=2) + "\n"
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,46 @@
|
||||
"Compare deterministic definitions and rendered artifacts."
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
|
||||
from build_definition import OUT, REPO, canonical
|
||||
from rebuild import RESOURCE, build_all
|
||||
from render_report import main as render
|
||||
|
||||
|
||||
def main():
|
||||
a, old = build_all()
|
||||
b, previous = build_all()
|
||||
assert a == b and old == previous
|
||||
assert a == json.loads((REPO / RESOURCE).read_bytes())
|
||||
render()
|
||||
paths = [
|
||||
OUT / "fixed-source-index.json",
|
||||
OUT.parent / "Flux老照片修复固定参考中文说明.md",
|
||||
]
|
||||
before = {p.name: hashlib.sha256(p.read_bytes()).hexdigest() for p in paths}
|
||||
render()
|
||||
assert before == {p.name: hashlib.sha256(p.read_bytes()).hexdigest() for p in paths}
|
||||
(OUT / "repeatability.json").write_text(
|
||||
json.dumps(
|
||||
{
|
||||
"definitions": 56,
|
||||
"repeated_build_equal": True,
|
||||
"repeated_render_equal": True,
|
||||
"resource_sha256": hashlib.sha256(canonical(a)).hexdigest(),
|
||||
"artifacts": before,
|
||||
},
|
||||
ensure_ascii=False,
|
||||
indent=2,
|
||||
)
|
||||
+ "\n"
|
||||
)
|
||||
print(
|
||||
("PASS deterministic definitions" + " a")
|
||||
+ ("nd rendered artifacts: zero di" + "ff")
|
||||
+ "erence"
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1 @@
|
||||
PASS deterministic definitions and rendered artifacts: zero difference
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"definitions": 56,
|
||||
"repeated_build_equal": true,
|
||||
"repeated_render_equal": true,
|
||||
"resource_sha256": "d6595af8f312df10f9883f883fc7d60863bce51c17f2c54e4b8e19dc6d305dd9",
|
||||
"artifacts": {
|
||||
"fixed-source-index.json": "6afff8cf8f77308a5635e2d97874570f2db6f2dce94dbfc85d0acffb0fb30db1",
|
||||
"Flux老照片修复固定参考中文说明.md": "0ff14369e46328c5867b6a14554178cd99bbd69fb70325ce58d11fe67b6d3af0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"base": "5dbfe1c3942a1095edc72bcbdd377b596bd949b0",
|
||||
"changed_paths": [
|
||||
"example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_老照片修复.json"
|
||||
],
|
||||
"other_reviews_unchanged": 155,
|
||||
"old_blocks_unchanged": 55,
|
||||
"old_saved": 2121,
|
||||
"old_notes": 61,
|
||||
"new_saved": 34,
|
||||
"new_notes": 1,
|
||||
"total_documents": 56,
|
||||
"total_saved": 2155,
|
||||
"total_notes": 62
|
||||
}
|
||||
@@ -0,0 +1,277 @@
|
||||
F841 Local variable `vae` is assigned to but never used
|
||||
--> docs/hel-892/flux2-restore-document-evidence/build_definition.py:50:5
|
||||
|
|
||||
49 | encode = cite("core", "nodes.py", 57, 81, "准确core0.8.2正负文本编码,空文本与条件不是遮罩")
|
||||
50 | vae = cite("core", "nodes.py", 281, 353, "准确core0.8.2参考编码和生成解码")
|
||||
| ^^^
|
||||
51 | loader = cite("core", "nodes.py", 701, 768, "准确VAE文件枚举及读取条件")
|
||||
52 | model = cite("core", "nodes.py", 920, 992, "准确UNET精度与CLIP类别/设备schema")
|
||||
|
|
||||
help: Remove assignment to unused variable `vae`
|
||||
|
||||
E501 Line too long (176 > 100)
|
||||
--> docs/hel-892/flux2-restore-document-evidence/build_definition.py:184:77
|
||||
|
|
||||
182 | …
|
||||
183 | …
|
||||
184 | …6直接原图比较。mask无外线,MASK/BOX出口未接。源未声明提供方/版本,89014d只是有界假设,不赋予安装身份。",
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
185 | … output目录/递增文件名及ui.images描述不证明真实目录或/history。源声明images IMAGE输出但未接,与准确RETURN_TYPES=()冲突保留,不修图。…
|
||||
186 | … 史列表只作文本,不请求URL。Slide是独立属性;准确rgthree继承PreviewImage生成temp与ui.a_images/ui.b_images,前端包装/恢复/序列化分列…
|
||||
|
|
||||
|
||||
E501 Line too long (206 > 100)
|
||||
--> docs/hel-892/flux2-restore-document-evidence/build_definition.py:185:79
|
||||
|
|
||||
183 | …
|
||||
184 | …ask无外线,MASK/BOX出口未接。源未声明提供方/版本,89014d只是有界假设,不赋予安装身份。",
|
||||
185 | … 文件名及ui.images描述不证明真实目录或/history。源声明images IMAGE输出但未接,与准确RETURN_TYPES=()冲突保留,不修图。",
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
186 | … 不请求URL。Slide是独立属性;准确rgthree继承PreviewImage生成temp与ui.a_images/ui.b_images,前端包装/恢复/序列化分列,源IMAGE口与无…
|
||||
187 | … 同英文缓存为两个保存位置,不去重,不把缓存当实际运行值。准确core0.28.3 Primitive只透传字符串,不执行指令或保证效果。",
|
||||
|
|
||||
|
||||
E501 Line too long (261 > 100)
|
||||
--> docs/hel-892/flux2-restore-document-evidence/build_definition.py:186:72
|
||||
|
|
||||
184 | … ,MASK/BOX出口未接。源未声明提供方/版本,89014d只是有界假设,不赋予安装身份。",
|
||||
185 | … ui.images描述不证明真实目录或/history。源声明images IMAGE输出但未接,与准确RETURN_TYPES=()冲突保留,不修图。",
|
||||
186 | …RL。Slide是独立属性;准确rgthree继承PreviewImage生成temp与ui.a_images/ui.b_images,前端包装/恢复/序列化分列,源IMAGE口与无直接IMAGE返回冲突保留;目标宿主协议未知。",
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
187 | … 存为两个保存位置,不去重,不把缓存当实际运行值。准确core0.28.3 Primitive只透传字符串,不执行指令或保证效果。",
|
||||
188 | … 存在、已上传或遮罩生效,未读取真实图片。",
|
||||
|
|
||||
|
||||
E501 Line too long (207 > 100)
|
||||
--> docs/hel-892/flux2-restore-document-evidence/build_definition.py:187:76
|
||||
|
|
||||
185 | … 件名及ui.images描述不证明真实目录或/history。源声明images IMAGE输出但未接,与准确RETURN_TYPES=()冲突保留,不修图。",
|
||||
186 | … 不请求URL。Slide是独立属性;准确rgthree继承PreviewImage生成temp与ui.a_images/ui.b_images,前端包装/恢复/序列化分列,源IMAGE口与无…
|
||||
187 | … 同英文缓存为两个保存位置,不去重,不把缓存当实际运行值。准确core0.28.3 Primitive只透传字符串,不执行指令或保证效果。",
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
188 | … 像内容、存在、已上传或遮罩生效,未读取真实图片。",
|
||||
189 | … 保证修复效果。",
|
||||
|
|
||||
|
||||
E501 Line too long (139 > 100)
|
||||
--> docs/hel-892/flux2-restore-document-evidence/build_definition.py:188:74
|
||||
|
|
||||
186 | … 整temp_acghq A/B历史列表只作文本,不请求URL。Slide是独立属性;准确rgthree继承PreviewImage生成temp与ui.a_images/ui.b_images,前端包…
|
||||
187 | … 引5→定义294→108.text。与108内部相同英文缓存为两个保存位置,不去重,不把缓存当实际运行值。准确core0.28.3 Primitive只透传字符串,不…
|
||||
188 | …7.image,MASK未接;文件名不能证明图像内容、存在、已上传或遮罩生效,未读取真实图片。",
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
189 | … ;接140正向/139负向→103.guider,不保证修复效果。",
|
||||
190 | …OISE→103;不执行种子/噪声,不承诺最终种子或复现。",
|
||||
|
|
||||
|
||||
E501 Line too long (105 > 100)
|
||||
--> docs/hel-892/flux2-restore-document-evidence/build_definition.py:189:76
|
||||
|
|
||||
187 | … 152: "根152.value完整英文修复指令→150.text输入索引5→定义294→108.text。与108内部相同英文缓存为两个保存位置,不去重,不把缓存当…
|
||||
188 | … 76: "保存640.webp与上传辅助image分列,IMAGE→147.image,MASK未接;文件名不能证明图像内容、存在、已上传或遮罩生效,未读取真实图…
|
||||
189 | … 102: "保存JSON int1,准确FLOAT默认8.0不改源类型;接140正向/139负向→103.guider,不保证修复效果。",
|
||||
| ^^^^
|
||||
190 | … 105: "保存825034918591445与randomize辅助分列,NOISE→103;不执行种子/噪声,不承诺最终种子或复现。",
|
||||
191 | … 100: "保存euler,SAMPLER→103;目标动态枚举/效果/耗时未知,不运行采样。",
|
||||
|
|
||||
|
||||
E501 Line too long (106 > 100)
|
||||
--> docs/hel-892/flux2-restore-document-evidence/build_definition.py:190:75
|
||||
|
|
||||
188 | … 76: "保存640.webp与上传辅助image分列,IMAGE→147.image,MASK未接;文件名不能证明图像内容、存在、已上传或遮罩生效,未读取真实图…
|
||||
189 | … 102: "保存JSON int1,准确FLOAT默认8.0不改源类型;接140正向/139负向→103.guider,不保证修复效果。",
|
||||
190 | … 105: "保存825034918591445与randomize辅助分列,NOISE→103;不执行种子/噪声,不承诺最终种子或复现。",
|
||||
| ^^^^^^
|
||||
191 | … 100: "保存euler,SAMPLER→103;目标动态枚举/效果/耗时未知,不运行采样。",
|
||||
192 | … 101: "保存步骤4/宽1024/高1024,SIGMAS→103;宽高被147实际输出经宿主索引7/8、边界296/297与135/136覆盖。四处尺寸缓存均保留,不求…
|
||||
|
|
||||
|
||||
E501 Line too long (149 > 100)
|
||||
--> docs/hel-892/flux2-restore-document-evidence/build_definition.py:192:77
|
||||
|
|
||||
190 | …→103;不执行种子/噪声,不承诺最终种子或复现。",
|
||||
191 | … 未知,不运行采样。",
|
||||
192 | …7实际输出经宿主索引7/8、边界296/297与135/136覆盖。四处尺寸缓存均保留,不求尺寸或sigmas。",
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
193 | …atch_size保存1。宽高1024缓存被147实际输出经宿主7/8→296/297→135/136覆盖;不把参考latent当采样起点或保证最终尺寸。",
|
||||
194 | …/default→142活动LoRA→102。unet_name经边界290对应宿主未接外线输入1;宿主[]无该保存位置。文件名和默认精度不证明实际dtype/兼容。",
|
||||
|
|
||||
|
||||
E501 Line too long (173 > 100)
|
||||
--> docs/hel-892/flux2-restore-document-evidence/build_definition.py:193:81
|
||||
|
|
||||
191 | … 采样。",
|
||||
192 | … 主索引7/8、边界296/297与135/136覆盖。四处尺寸缓存均保留,不求尺寸或sigmas。",
|
||||
193 | … 1。宽高1024缓存被147实际输出经宿主7/8→296/297→135/136覆盖;不把参考latent当采样起点或保证最终尺寸。",
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
194 | …活动LoRA→102。unet_name经边界290对应宿主未接外线输入1;宿主[]无该保存位置。文件名和默认精度不证明实际dtype/兼容。",
|
||||
195 | …0260415_一致性小志版.safetensors/0.8,独立core0.21.1;lora_name边界291对应宿主未接输入2。只模型分支,不保证人物身份或修复兼容,不加…
|
||||
|
|
||||
|
||||
E501 Line too long (186 > 100)
|
||||
--> docs/hel-892/flux2-restore-document-evidence/build_definition.py:194:90
|
||||
|
|
||||
192 | … 7/8、边界296/297与135/136覆盖。四处尺寸缓存均保留,不求尺寸或sigmas。",
|
||||
193 | … 1024缓存被147实际输出经宿主7/8→296/297→135/136覆盖;不把参考latent当采样起点或保证最终尺寸。",
|
||||
194 | …RA→102。unet_name经边界290对应宿主未接外线输入1;宿主[]无该保存位置。文件名和默认精度不证明实际dtype/兼容。",
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
195 | …5_一致性小志版.safetensors/0.8,独立core0.21.1;lora_name边界291对应宿主未接输入2。只模型分支,不保证人物身份或修复兼容,不加载文件…
|
||||
196 | … 向;clip_name边界292对应宿主未接输入3。properties.models推荐与保存引用分列,不证明本机模型/许可/兼容或实际设备。",
|
||||
|
|
||||
|
||||
E501 Line too long (212 > 100)
|
||||
--> docs/hel-892/flux2-restore-document-evidence/build_definition.py:195:87
|
||||
|
|
||||
193 | …47实际输出经宿主7/8→296/297→135/136覆盖;不把参考latent当采样起点或保证最终尺寸。",
|
||||
194 | …name经边界290对应宿主未接外线输入1;宿主[]无该保存位置。文件名和默认精度不证明实际dtype/兼容。",
|
||||
195 | … .safetensors/0.8,独立core0.21.1;lora_name边界291对应宿主未接输入2。只模型分支,不保证人物身份或修复兼容,不加载文件。",
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
196 | …e边界292对应宿主未接输入3。properties.models推荐与保存引用分列,不证明本机模型/许可/兼容或实际设备。",
|
||||
197 | … 入4。properties.models推荐与保存引用分列,不请求下载或保证兼容。",
|
||||
|
|
||||
|
||||
E501 Line too long (192 > 100)
|
||||
--> docs/hel-892/flux2-restore-document-evidence/build_definition.py:196:89
|
||||
|
|
||||
194 | …102。unet_name经边界290对应宿主未接外线输入1;宿主[]无该保存位置。文件名和默认精度不证明实际dtype/兼容。",
|
||||
195 | … 致性小志版.safetensors/0.8,独立core0.21.1;lora_name边界291对应宿主未接输入2。只模型分支,不保证人物身份或修复兼容,不加载文件。",
|
||||
196 | … clip_name边界292对应宿主未接输入3。properties.models推荐与保存引用分列,不证明本机模型/许可/兼容或实际设备。",
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
197 | … 宿主未接输入4。properties.models推荐与保存引用分列,不请求下载或保证兼容。",
|
||||
198 | … 294,宿主text索引5接根152,外部文字覆盖内部缓存。根/内部双位置分别保留,不重算实际值。",
|
||||
|
|
||||
|
||||
E501 Line too long (158 > 100)
|
||||
--> docs/hel-892/flux2-restore-document-evidence/build_definition.py:197:79
|
||||
|
|
||||
195 | …onsist_20260415_一致性小志版.safetensors/0.8,独立core0.21.1;lora_name边界291对应宿主未接输入2。只模型分支,不保证人物身份或修复兼…
|
||||
196 | … 108正向和109负向;clip_name边界292对应宿主未接输入3。properties.models推荐与保存引用分列,不证明本机模型/许可/兼容或实际设备。",
|
||||
197 | …ae_name边界293对应宿主未接输入4。properties.models推荐与保存引用分列,不请求下载或保证兼容。",
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
198 | …sitive;text有边界294,宿主text索引5接根152,外部文字覆盖内部缓存。根/内部双位置分别保留,不重算实际值。",
|
||||
199 | …ve;text边界295对应宿主text_1索引6无外线,缓存全文保留但UE/代理恢复未知。不保证避免低质、塑料肤色、过锐、现代服装、伪影或失真。",
|
||||
|
|
||||
|
||||
E501 Line too long (169 > 100)
|
||||
--> docs/hel-892/flux2-restore-document-evidence/build_definition.py:198:77
|
||||
|
|
||||
196 | … 和109负向;clip_name边界292对应宿主未接输入3。properties.models推荐与保存引用分列,不证明本机模型/许可/兼容或实际设备。",
|
||||
197 | …me边界293对应宿主未接输入4。properties.models推荐与保存引用分列,不请求下载或保证兼容。",
|
||||
198 | …;text有边界294,宿主text索引5接根152,外部文字覆盖内部缓存。根/内部双位置分别保留,不重算实际值。",
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
199 | …xt边界295对应宿主text_1索引6无外线,缓存全文保留但UE/代理恢复未知。不保证避免低质、塑料肤色、过锐、现代服装、伪影或失真。",
|
||||
200 | …
|
||||
|
|
||||
|
||||
E501 Line too long (192 > 100)
|
||||
--> docs/hel-892/flux2-restore-document-evidence/build_definition.py:199:78
|
||||
|
|
||||
197 | … 宿主未接输入4。properties.models推荐与保存引用分列,不请求下载或保证兼容。",
|
||||
198 | …94,宿主text索引5接根152,外部文字覆盖内部缓存。根/内部双位置分别保留,不重算实际值。",
|
||||
199 | … 宿主text_1索引6无外线,缓存全文保留但UE/代理恢复未知。不保证避免低质、塑料肤色、过锐、现代服装、伪影或失真。",
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
200 | …
|
||||
201 | …
|
||||
|
|
||||
|
||||
E501 Line too long (102 > 100)
|
||||
--> docs/hel-892/flux2-restore-document-evidence/build_definition.py:285:65
|
||||
|
|
||||
283 | }
|
||||
284 | empty_effect = {
|
||||
285 | 143: "Label仅布局字体属性;类名不足以继承比较器rgthree身份,字体/目录/许可未核,不下载字体。",
|
||||
| ^^
|
||||
286 | 151: "147缩放IMAGE→151→145.B,保留转接而非原图B。",
|
||||
287 | 150: "宿主widgets_values=[]零保存,10项proxyWidgets与9个边界inputs分别保留;定义widgets=[]不是null,不虚构宿主缓存。",
|
||||
|
|
||||
|
||||
E501 Line too long (126 > 100)
|
||||
--> docs/hel-892/flux2-restore-document-evidence/build_definition.py:287:82
|
||||
|
|
||||
285 | 143: "Label仅布局字体属性;类名不足以继承比较器rgthree身份,字体/目录/许可未核,不下载字体。",
|
||||
286 | 151: "147缩放IMAGE→151→145.B,保留转接而非原图B。",
|
||||
287 | 150: "宿主widgets_values=[]零保存,10项proxyWidgets与9个边界inputs分别保留;定义widgets=[]不是null,不虚构宿主缓存。",
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
288 | 141: "定义pixels经276→141,110.VAE→141;参考LATENT同时→140正向和139负向。",
|
||||
289 | 140: "108正向与141参考latent组合→102.positive;非采样起点。",
|
||||
|
|
||||
|
||||
E501 Line too long (128 > 100)
|
||||
--> docs/hel-892/flux2-restore-document-evidence/build_definition.py:292:84
|
||||
|
|
||||
290 | 139: "109负向与同一141参考latent组合→102.negative;不是ZeroOut。",
|
||||
291 | 103: "111空latent采样起点;槽0→104解码,第二LATENT denoised_output保存[]未接。",
|
||||
292 | 104: "103槽0→104,与110.VAE解码→201定义IMAGE输出;声明linkIds原[201,201,201]和links一条201分别保留,不去重或先判无效。",
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
293 | 135: "宽边界296→135→101.width与111.width。",
|
||||
294 | 136: "高边界297→136→101.height与111.height。",
|
||||
|
|
||||
|
||||
E501 Line too long (104 > 100)
|
||||
--> docs/hel-892/flux2-restore-document-evidence/build_definition.py:347:87
|
||||
|
|
||||
345 | … schema_default="schema未显式声明default;不以保存文字冒充默认",
|
||||
346 | … unit="多行字符串",
|
||||
347 | … limits="准确0.28.3 String Input value multiline=True;原字符串返回,不解析执行",
|
||||
| ^^^^
|
||||
348 | … )
|
||||
349 | … extra = "去除划痕、污渍、灰尘,改善褪色、微对比、锐度、白平衡,保留原身份与自然肤色均为作者意图,未经图片或效果验证。"
|
||||
|
|
||||
|
||||
E501 Line too long (138 > 100)
|
||||
--> docs/hel-892/flux2-restore-document-evidence/build_definition.py:349:66
|
||||
|
|
||||
347 | … limits="准确0.28.3 String Input value multiline=True;原字符串返回,不解析执行",
|
||||
348 | … )
|
||||
349 | … extra = "去除划痕、污渍、灰尘,改善褪色、微对比、锐度、白平衡,保留原身份与自然肤色均为作者意图,未经图片或效果验证。"
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
350 | … else:
|
||||
351 | … f = copy.deepcopy(common[n["type"], name])
|
||||
|
|
||||
|
||||
E501 Line too long (225 > 100)
|
||||
--> docs/hel-892/flux2-restore-document-evidence/build_definition.py:399:61
|
||||
|
|
||||
397 | …
|
||||
398 | …
|
||||
399 | … 修复指令从空latent采样,保存并与缩放后的参考图比较。文字要求去除划痕、褪色并保留身份和自然肤色;图片和效果未验证,目前仅供参考。"
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
400 | …
|
||||
401 | …
|
||||
|
|
||||
|
||||
E501 Line too long (255 > 100)
|
||||
--> docs/hel-892/flux2-restore-document-evidence/build_definition.py:412:56
|
||||
|
|
||||
410 | …
|
||||
411 | …
|
||||
412 | … 诺遮罩外像素不变。Note推荐base-9b与106非base引用不同;LoRA活动不等于兼容。历史temp URL不是本次产物;准确SaveImage与Comparer返回协议冲突均保留,整图继续关闭。",
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
413 | …ore0.8.2,142.LoRA独立0.21.1。frontend1.36.13同树锁依赖与准确rgthree1.0.2604070017分别绑定;Layer147与Label无版本不继承身份。UE7.5.2/7.7/7.8、tab、代理恢复、字体/目…
|
||||
414 | …
|
||||
|
|
||||
|
||||
E501 Line too long (195 > 100)
|
||||
--> docs/hel-892/flux2-restore-document-evidence/build_definition.py:448:73
|
||||
|
|
||||
446 | …256 "
|
||||
447 | …
|
||||
448 | …ayer API树索引ref与真实tree分列,仅选定blob/commit元数据互证,不声称完整树重哈希。来源仅静态文本,不执行上游。",
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
449 | …
|
||||
450 | …
|
||||
|
|
||||
|
||||
E501 Line too long (127 > 100)
|
||||
--> docs/hel-892/flux2-restore-document-evidence/verify_sources.py:39:101
|
||||
|
|
||||
37 | assert c["sha"] == e["commit"] and c["commit"]["tree"]["sha"] == e["tree"]
|
||||
38 | assert tree["sha"] == e["tree_index_ref"] == e["commit"]
|
||||
39 | proof = "pinned GitHub commit metadata + selected blob; tree index ref is NOT tree object; no full tree rehash"
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
40 | else:
|
||||
41 | c = (root / (key + "-commit.txt")).read_bytes()
|
||||
|
|
||||
|
||||
Found 25 errors.
|
||||
No fixes available (1 hidden fix can be enabled with the `--unsafe-fixes` option).
|
||||
@@ -0,0 +1,199 @@
|
||||
INFO: Started server process [965510]
|
||||
INFO: Waiting for application startup.
|
||||
INFO: Application startup complete.
|
||||
INFO: Uvicorn running on http://127.0.0.1:8247 (Press CTRL+C to quit)
|
||||
{'counts': {'skipped': 154, 'updated': 1, 'user_excluded': 1}, 'states': {'pending_check': 16, 'needs_conversion': 139}}
|
||||
INFO: 127.0.0.1:54522 - "GET /api/workflows HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54546 - "GET /api/workflows/57 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows/44 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54546 - "GET /api/workflows/53 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows/52 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54546 - "GET /api/workflows/51 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows/50 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54546 - "GET /api/workflows/49 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows/47 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54546 - "GET /api/workflows/48 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows/46 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54546 - "GET /api/workflows/45 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows/42 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54546 - "GET /api/workflows/41 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows/40 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54546 - "GET /api/workflows/39 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows/38 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54546 - "GET /api/workflows/37 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows/18 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54546 - "GET /api/workflows/20 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows/30 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54546 - "GET /api/workflows/32 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows/34 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54546 - "GET /api/workflows/33 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows/31 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54546 - "GET /api/workflows/29 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows/28 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54546 - "GET /api/workflows/27 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows/26 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54546 - "GET /api/workflows/17 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows/4 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54546 - "GET /api/workflows/15 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows/11 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54546 - "GET /api/workflows/3 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows/9 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54546 - "GET /api/workflows/16 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows/10 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54546 - "GET /api/workflows/23 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows/8 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54546 - "GET /api/workflows/22 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows/5 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54546 - "GET /api/workflows/6 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows/7 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54546 - "GET /api/workflows/19 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows/13 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54546 - "GET /api/workflows/12 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows/64 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54546 - "GET /api/workflows/62 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows/70 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54546 - "GET /api/workflows/1 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows/36 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54546 - "GET /api/workflows/35 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows/2 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54546 - "GET /api/workflows/25 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows/24 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54546 - "GET /api/workflows/21 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54538 - "GET /api/workflows/14 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54556 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:54554 - "GET /api/settings HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54572 - "GET /api/workflows HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54582 - "GET /api/workflows/57 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54586 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:54600 - "GET /api/workflows/44 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54616 - "GET /api/workflows/53 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54618 - "GET /api/workflows/52 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54634 - "GET /api/workflows/51 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54650 - "GET /api/workflows/50 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43550 - "GET /api/workflows/49 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43564 - "GET /api/workflows/47 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43568 - "GET /api/workflows/48 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43580 - "GET /api/workflows/46 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43592 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:43598 - "GET /api/workflows/45 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43612 - "GET /api/workflows/42 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43618 - "GET /api/workflows/41 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43632 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:43648 - "GET /api/workflows/40 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43654 - "GET /api/workflows/39 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43660 - "GET /api/workflows/38 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43676 - "GET /api/workflows/37 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43680 - "GET /api/workflows/18 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43688 - "GET /api/workflows/20 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43704 - "GET /api/workflows/30 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43716 - "GET /api/workflows/32 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43730 - "GET /api/workflows/34 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43734 - "GET /api/workflows/33 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43736 - "GET /api/workflows/31 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43744 - "GET /api/workflows/29 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43760 - "GET /api/workflows/28 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43768 - "GET /api/workflows/27 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43774 - "GET /api/workflows/26 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43788 - "GET /api/workflows/17 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43790 - "GET /api/workflows/4 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43806 - "GET /api/workflows/15 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43816 - "GET /api/workflows/11 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:59918 - "GET /api/workflows/3 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:59928 - "GET /api/workflows/9 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:59942 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:59958 - "GET /api/workflows/16 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:59972 - "GET /api/workflows/10 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:59980 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:59986 - "GET /api/workflows/23 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60000 - "GET /api/workflows/8 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60008 - "GET /api/workflows/22 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60018 - "GET /api/workflows/5 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60022 - "GET /api/workflows/6 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60026 - "GET /api/workflows/7 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60030 - "GET /api/workflows/19 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60044 - "GET /api/workflows/13 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60060 - "GET /api/workflows/12 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60072 - "GET /api/workflows/64 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60088 - "GET /api/workflows/62 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60104 - "GET /api/workflows/70 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60112 - "GET /api/workflows/1 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60120 - "GET /api/workflows/36 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60124 - "GET /api/workflows/35 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60130 - "GET /api/workflows/2 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60146 - "GET /api/workflows/25 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60156 - "GET /api/workflows/24 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60162 - "GET /api/workflows/21 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60172 - "GET /api/workflows/14 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60180 - "GET /api/workflows/57 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:60196 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:45996 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:46002 - "GET /api/workflows/44 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:46018 - "GET /api/workflows/53 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:46020 - "GET /api/workflows/52 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:46032 - "GET /api/workflows/51 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:46038 - "GET /api/workflows/50 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:46040 - "GET /api/workflows/49 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:46050 - "GET /api/workflows/47 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:46058 - "GET /api/workflows/48 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:46068 - "GET /api/workflows/46 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:46070 - "GET /api/workflows/45 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:46086 - "GET /api/workflows/42 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:46100 - "GET /api/workflows/41 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:46116 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:46120 - "GET /api/workflows/40 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:46124 - "GET /api/workflows/39 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:46134 - "GET /api/workflows/38 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:46140 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:36616 - "GET /api/workflows/37 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36624 - "GET /api/workflows/18 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36634 - "GET /api/workflows/20 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36644 - "GET /api/workflows/30 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36646 - "GET /api/workflows/32 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36652 - "GET /api/workflows/34 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36658 - "GET /api/workflows/33 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36672 - "GET /api/workflows/31 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36686 - "GET /api/workflows/29 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36694 - "GET /api/workflows/28 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36698 - "GET /api/workflows/27 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36708 - "GET /api/workflows/26 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36716 - "GET /api/workflows/17 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36718 - "GET /api/workflows/4 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36720 - "GET /api/workflows/15 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36734 - "GET /api/workflows/11 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36744 - "GET /api/workflows/3 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36760 - "GET /api/workflows/9 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36764 - "GET /api/workflows/16 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36774 - "GET /api/workflows/10 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36784 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:36800 - "GET /api/workflows/23 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36814 - "GET /api/workflows/8 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36824 - "GET /api/workflows/22 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36828 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:36844 - "GET /api/workflows/5 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36860 - "GET /api/workflows/6 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36872 - "GET /api/workflows/7 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43816 - "GET /api/workflows/19 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43822 - "GET /api/workflows/13 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43836 - "GET /api/workflows/12 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43852 - "GET /api/workflows/64 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43868 - "GET /api/workflows/62 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43880 - "GET /api/workflows/70 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43892 - "GET /api/workflows/1 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43902 - "GET /api/workflows/36 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43906 - "GET /api/workflows/35 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43914 - "GET /api/workflows/2 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43916 - "GET /api/workflows/25 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43920 - "GET /api/workflows/24 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43936 - "GET /api/workflows/21 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43942 - "GET /api/workflows/14 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43946 - "GET /api/workflows/156 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43962 - "GET /api/workflows/157 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43968 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:43978 - "GET /api/workflows/44 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:43980 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:43994 - "GET /api/workflows/57 HTTP/1.1" 200 OK
|
||||
INFO: Shutting down
|
||||
INFO: Waiting for application shutdown.
|
||||
INFO: Application shutdown complete.
|
||||
INFO: Finished server process [965510]
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
VITE v6.4.3 ready in 298 ms
|
||||
|
||||
➜ Local: http://127.0.0.1:5173/
|
||||
@@ -0,0 +1 @@
|
||||
{"ports_released": [8247, 5173], "child_exit_codes": [-15, 143]}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,12 @@
|
||||
........................................................................ [ 24%]
|
||||
........................................................................ [ 48%]
|
||||
........................................................................ [ 72%]
|
||||
........................................................................ [ 96%]
|
||||
......... [100%]
|
||||
=============================== warnings summary ===============================
|
||||
calliope-backend/.venv/lib/python3.12/site-packages/starlette/testclient.py:53
|
||||
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-3d1bb87281db/workdir/aigc-home/calliope-backend/.venv/lib/python3.12/site-packages/starlette/testclient.py:53: DeprecationWarning: The anyio.abc.BlockingPortal alias is deprecated, use anyio.from_thread.BlockingPortal instead.
|
||||
_PortalFactoryType = Callable[[], AbstractContextManager[anyio.abc.BlockingPortal]]
|
||||
|
||||
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
|
||||
297 passed, 1 warning in 5.21s
|
||||
@@ -0,0 +1,12 @@
|
||||
........................................................................ [ 24%]
|
||||
........................................................................ [ 48%]
|
||||
........................................................................ [ 72%]
|
||||
........................................................................ [ 96%]
|
||||
......... [100%]
|
||||
=============================== warnings summary ===============================
|
||||
calliope-backend/.venv/lib/python3.12/site-packages/starlette/testclient.py:53
|
||||
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-3d1bb87281db/workdir/aigc-home/calliope-backend/.venv/lib/python3.12/site-packages/starlette/testclient.py:53: DeprecationWarning: The anyio.abc.BlockingPortal alias is deprecated, use anyio.from_thread.BlockingPortal instead.
|
||||
_PortalFactoryType = Callable[[], AbstractContextManager[anyio.abc.BlockingPortal]]
|
||||
|
||||
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
|
||||
297 passed, 1 warning in 5.17s
|
||||
@@ -0,0 +1,26 @@
|
||||
# 第75批:仅Flux老照片修复,仓库根执行。
|
||||
# PR25 head agent/agent/a64a969a6a44 / base main
|
||||
# 真实旧代码基线5dbfe1c3942a1095edc72bcbdd377b596bd949b0
|
||||
uv sync --project calliope-backend --offline --extra dev
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/flux2-restore-document-evidence/inventory.py
|
||||
# 首次只获取准确core0.28.3 Primitive及frontend1.36.13子图必要文本;其它同字节重绑。
|
||||
# bind_sources仅Git/HTTP静态文本,不执行上游/插件/SDK/表达式/媒体。
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/flux2-restore-document-evidence/bind_sources.py
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/flux2-restore-document-evidence/verify_sources.py
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/flux2-restore-document-evidence/rebuild.py
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/flux2-restore-document-evidence/repeat.py
|
||||
PYTHONDONTWRITEBYTECODE=1 uv run --project calliope-backend --offline pytest calliope-backend/tests/test_flux2_restore_fixed_document.py calliope-backend/tests/test_workflow_library.py -q
|
||||
uv run --project calliope-backend --offline ruff check --config calliope-backend/pyproject.toml docs/hel-892/flux2-restore-document-evidence/*.py calliope-backend/tests/test_flux2_restore_fixed_document.py e2e/run-flux2-restore-document.py calliope-backend/src/calliope/comfyui/fixed_document.py
|
||||
uv run --project calliope-backend --offline ruff format --check --config calliope-backend/pyproject.toml docs/hel-892/flux2-restore-document-evidence/*.py calliope-backend/tests/test_flux2_restore_fixed_document.py e2e/run-flux2-restore-document.py calliope-backend/src/calliope/comfyui/fixed_document.py
|
||||
node --check e2e/flux2-restore-document.mjs
|
||||
PYTHONDONTWRITEBYTECODE=1 uv build --project calliope-backend --offline
|
||||
PYTHONDONTWRITEBYTECODE=1 uv run --project calliope-backend --offline python docs/hel-892/flux2-restore-document-evidence/recompute.py
|
||||
npm ci --offline --ignore-scripts --prefix calliope-web
|
||||
npm run build --prefix calliope-web
|
||||
PYTHONDONTWRITEBYTECODE=1 LD_LIBRARY_PATH=/home/xiaomo/chromium-libs/root/usr/lib/x86_64-linux-gnu:/home/xiaomo/browserlibs/root/usr/lib/x86_64-linux-gnu PLAYWRIGHT_MODULE=/home/xiaomo/.npm-global/lib/node_modules/playwright/index.mjs BROWSER_EXECUTABLE=/home/xiaomo/.cache/ms-playwright/chromium-1248/chrome-linux64/chrome uv run --project calliope-backend --offline python e2e/run-flux2-restore-document.py
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/flux2-restore-document-evidence/collect_browser.py
|
||||
# 12自写Python用同一显式项目配置;准确上游原件不格式化。
|
||||
# 首轮目验发现负向单位文字,修正并补断言;最终打包/导入/专项/浏览重新生成,不累加重跑。
|
||||
# frontend build沿用本轮同字节Drawer/CSS/依赖构建,不为文字修正机械重建。
|
||||
# 历史5个旧失败只沿用记录,未机械重跑无改大套件,不称全仓绿。
|
||||
# finally停服务,独立核端口拒绝连接;截图仅附件不入仓。
|
||||
@@ -0,0 +1,191 @@
|
||||
"Recheck selected bytes, real Git identities, citations and every graph endpoint."
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
import zlib
|
||||
|
||||
from build_definition import OUT, PATHS, REF, REPO, build, canonical
|
||||
from inventory import inventory
|
||||
|
||||
|
||||
def main():
|
||||
block = build()
|
||||
rows = json.loads((REF / "sources.json").read_bytes())["sources"]
|
||||
checks = []
|
||||
for e in rows:
|
||||
raw = (REF / e["local_file"]).read_bytes()
|
||||
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
|
||||
root = REF / e["identity_root"]
|
||||
key = e["identity_key"]
|
||||
if key == "rgthree":
|
||||
members = json.loads((root / "rgthree-members.json").read_bytes())
|
||||
info = next(x for x in members if x["name"] == e["file"])
|
||||
assert zlib.crc32(raw) == info["crc"] == e["member_crc32"]
|
||||
assert json.loads((root / "rgthree-registry.json").read_bytes())["version"] == e["tag"]
|
||||
assert e["git_commit_binding"] == "unknown" and e["package_sha256"].startswith(
|
||||
"unknown"
|
||||
)
|
||||
proof = "exact registry version + selected ZIP member CRC/SHA; full package/Git unknown"
|
||||
else:
|
||||
blob = hashlib.sha1(b"blob " + str(len(raw)).encode() + b"\0" + raw).hexdigest()
|
||||
assert blob == e["git_blob_sha1"]
|
||||
tree = json.loads((root / (key + "-tree.json")).read_bytes())
|
||||
assert not tree["truncated"]
|
||||
assert next(t["sha"] for t in tree["tree"] if t["path"] == e["file"]) == blob
|
||||
if key == "layer":
|
||||
c = json.loads((REF / "layer-commit-meta.json").read_bytes())
|
||||
assert c["sha"] == e["commit"] and c["commit"]["tree"]["sha"] == e["tree"]
|
||||
assert tree["sha"] == e["tree_index_ref"] == e["commit"]
|
||||
proof = (
|
||||
"pinned GitHub commit metadata + selected blob"
|
||||
"; tree index ref is NOT tree object; no full "
|
||||
"tree rehash"
|
||||
)
|
||||
else:
|
||||
c = (root / (key + "-commit.txt")).read_bytes()
|
||||
assert (
|
||||
hashlib.sha1(b"commit " + str(len(c)).encode() + b"\0" + c).hexdigest()
|
||||
== e["commit"]
|
||||
)
|
||||
assert (
|
||||
c.decode().splitlines()[0] == "tree " + e["tree"] and tree["sha"] == e["tree"]
|
||||
)
|
||||
tag = json.loads((root / (key + "-tag.json")).read_bytes())
|
||||
assert tag["commit"] == e["commit"]
|
||||
t = (root / (key + "-tag.txt")).read_bytes()
|
||||
if tag["object"] != e["commit"]:
|
||||
assert (
|
||||
hashlib.sha1(b"tag " + str(len(t)).encode() + b"\0" + t).hexdigest()
|
||||
== tag["object"]
|
||||
)
|
||||
assert t.decode().startswith("object " + e["commit"] + "\n")
|
||||
else:
|
||||
assert t == c
|
||||
proof = (
|
||||
"raw commit/tag hash + real tree ID + selected blob/index; no full tree rehash"
|
||||
)
|
||||
lic = next(x for x in rows if x["id"] == e["id"] and x["file"] == "LICENSE")
|
||||
assert hashlib.sha256((REF / e["license_file"]).read_bytes()).hexdigest() == lic["sha256"]
|
||||
checks.append(
|
||||
dict(
|
||||
id=e["id"],
|
||||
file=e["file"],
|
||||
sha256=e["sha256"],
|
||||
commit=e["commit"],
|
||||
tree=e["tree"],
|
||||
proof=proof,
|
||||
license_file=e["license_file"],
|
||||
)
|
||||
)
|
||||
inv = inventory()
|
||||
assert [s["nodes"] for s in inv["scopes"]] == [9, 18]
|
||||
assert [s["edges"] for s in inv["scopes"]] == [9, 32]
|
||||
assert all(s["named_nodes"] == 0 and set(s["modes"]) == {0} for s in inv["scopes"])
|
||||
assert len(inv["fields"]) == 34 and sum(f["scope"] == "root" for f in inv["fields"]) == 14
|
||||
assert sum(f["json_type"] == "list" for f in inv["fields"]) == 1
|
||||
assert len(inv["notes"]) == 1 and inv["notes"][0]["characters"] == 1396
|
||||
assert {x["node"]: x["state"] for x in inv["empty"]} == {
|
||||
143: "missing",
|
||||
151: "missing",
|
||||
150: "empty_list",
|
||||
141: "empty_list",
|
||||
140: "empty_list",
|
||||
139: "empty_list",
|
||||
103: "empty_list",
|
||||
104: "empty_list",
|
||||
136: "missing",
|
||||
135: "missing",
|
||||
}
|
||||
for a, f in zip(inv["fields"], block["fields"], strict=True):
|
||||
assert (a["pointer"], a["json_type"], canonical(a["value"])) == (
|
||||
f["pointer"],
|
||||
f["json_type"],
|
||||
canonical(f["value"]),
|
||||
)
|
||||
for e in block["sources"]:
|
||||
raw = (OUT / e["local_file"]).read_bytes()
|
||||
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
|
||||
assert 1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
|
||||
g = json.loads((REPO / PATHS[0]).read_bytes())
|
||||
sub = g["definitions"]["subgraphs"][0]
|
||||
endpoints = []
|
||||
for scope, graph in [("root", g), ("definition", sub)]:
|
||||
ns = {n["id"]: n for n in graph["nodes"]}
|
||||
ids = []
|
||||
for original in graph["links"]:
|
||||
if scope == "root":
|
||||
eid, a, ao, z, zi, kind = original
|
||||
else:
|
||||
eid, a, ao, z, zi, kind = [
|
||||
original[k]
|
||||
for k in ["id", "origin_id", "origin_slot", "target_id", "target_slot", "type"]
|
||||
]
|
||||
ids.append(eid)
|
||||
source = graph["inputs"][ao] if a == -10 else ns[a]["outputs"][ao]
|
||||
target = graph["outputs"][zi] if z == -20 else ns[z]["inputs"][zi]
|
||||
assert eid in source.get("linkIds", source.get("links", []))
|
||||
assert eid in target["linkIds"] if z == -20 else target["link"] == eid
|
||||
assert source["type"] in [kind, "*"] and target["type"] in [kind, "*"]
|
||||
endpoints.append(
|
||||
dict(
|
||||
scope=scope,
|
||||
edge=original,
|
||||
source_backref=True,
|
||||
target_backref=True,
|
||||
source_type=source["type"],
|
||||
target_type=target["type"],
|
||||
)
|
||||
)
|
||||
assert len(ids) == len(set(ids))
|
||||
# Reverse verification retains duplicate boundary output declarations.
|
||||
for n in graph["nodes"]:
|
||||
for slot in n.get("inputs", []):
|
||||
assert slot.get("link") is None or slot["link"] in ids
|
||||
for slot in n.get("outputs", []):
|
||||
assert all(link in ids for link in slot.get("links") or [])
|
||||
if scope == "definition":
|
||||
for boundary in graph["inputs"] + graph["outputs"]:
|
||||
assert all(link in ids for link in boundary["linkIds"])
|
||||
ns = {n["id"]: n for n in g["nodes"]}
|
||||
inner = {n["id"]: n for n in sub["nodes"]}
|
||||
assert len(ns[150]["properties"]["proxyWidgets"]) == 10 and len(ns[150]["inputs"]) == 9
|
||||
for i, (outer, boundary) in enumerate(zip(ns[150]["inputs"], sub["inputs"], strict=True)):
|
||||
assert (outer["name"], outer["type"]) == (boundary["name"], boundary["type"])
|
||||
assert [x["name"] for x in sub["inputs"]][-2:] == ["", "_1"]
|
||||
assert [x["type"] for x in sub["inputs"]][-2:] == ["*", "*"]
|
||||
assert ns[150]["widgets_values"] == sub["widgets"] == []
|
||||
assert sub["outputs"][0]["linkIds"] == [201, 201, 201]
|
||||
assert sum(e["id"] == 201 for e in sub["links"]) == 1
|
||||
assert inner[103]["outputs"][1]["links"] == []
|
||||
assert ns[9]["outputs"][0]["links"] is None and ns[145]["outputs"][0]["links"] is None
|
||||
assert ns[152]["widgets_values"] == inner[108]["widgets_values"]
|
||||
assert ns[150]["inputs"][6]["link"] is None
|
||||
assert g["extra"]["frontendVersion"] == "1.36.13"
|
||||
result = dict(
|
||||
all_pass=True,
|
||||
source_files=len(rows),
|
||||
citations=len(block["sources"]),
|
||||
identities=checks,
|
||||
counts=block["counts"],
|
||||
physical_endpoint_checks=endpoints,
|
||||
duplicate_201_declarations_preserved=[201, 201, 201],
|
||||
physical_201_records=1,
|
||||
protocol_conflicts_retained=[
|
||||
"SaveImage source IMAGE vs core0.8.2 empty RETURN_TYPES",
|
||||
"Comparer source IMAGE vs inherited Preview UI-only response",
|
||||
],
|
||||
upstream_executed=False,
|
||||
prompt_constructed=False,
|
||||
)
|
||||
(OUT / "source-check.json").write_text(json.dumps(result, ensure_ascii=False, indent=2) + "\n")
|
||||
print(
|
||||
"PASS",
|
||||
len(rows),
|
||||
"texts;",
|
||||
len(block["sources"]),
|
||||
"citations;34 positions/41 physical edges",
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"reviewed": [
|
||||
{
|
||||
"file": "1440-57-default.png",
|
||||
"sha256": "cc09b66fa91a4bfe2eab1e8c929aa7c0b17c201907a7c01c10daf0f7581f5515"
|
||||
},
|
||||
{
|
||||
"file": "1440-57-branch-flow.png",
|
||||
"sha256": "3eb7552af793d294157ca500d8fcc7d019ff19ed10375bfacbcd36d8eb46a7fd"
|
||||
},
|
||||
{
|
||||
"file": "390-57-150:109-text.png",
|
||||
"sha256": "12521a77904f4be4d9b9562ea8551c8cb7139e81cc845bbed24182be936431c4"
|
||||
},
|
||||
{
|
||||
"file": "390-57-152-value.png",
|
||||
"sha256": "f35e90bd17593e5441cc1b86b194e1cb1623aa6036d2619e156ce7a8c4f3272c"
|
||||
},
|
||||
{
|
||||
"file": "390-57-history-source.png",
|
||||
"sha256": "70e277a4d91e7053c3a8d3c3e0e90ab34250b77eb494bf66b70ec6db85e6de17"
|
||||
},
|
||||
{
|
||||
"file": "390-57-97-note.png",
|
||||
"sha256": "399c1e4d9e3db2d550f6648cfbd06bac387e5a32a5e31326cab7c65a15fd6472"
|
||||
}
|
||||
],
|
||||
"result": "最终六图目验:摘要/状态、缩放和根/内部链、修正后负向单位、根英文、完整历史、完整Note可读,无横溢;既有Note预格式JSON及字体字形沿用,不改Drawer/CSS/字体。",
|
||||
"screenshots_committed": false
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
// Re-export Subgraph and GraphOrSubgraph from LGraph.ts to maintain compatibility
|
||||
// This is a temporary fix to resolve circular dependency issues
|
||||
export { Subgraph, type GraphOrSubgraph } from '@/lib/litegraph/src/LGraph'
|
||||
+248
@@ -0,0 +1,248 @@
|
||||
import type { LGraphNode } from '@/lib/litegraph/src/LGraphNode'
|
||||
import { LLink } from '@/lib/litegraph/src/LLink'
|
||||
import type { RerouteId } from '@/lib/litegraph/src/Reroute'
|
||||
import { CustomEventTarget } from '@/lib/litegraph/src/infrastructure/CustomEventTarget'
|
||||
import type { SubgraphInputEventMap } from '@/lib/litegraph/src/infrastructure/SubgraphInputEventMap'
|
||||
import type {
|
||||
INodeInputSlot,
|
||||
INodeOutputSlot,
|
||||
Point,
|
||||
ReadOnlyRect
|
||||
} from '@/lib/litegraph/src/interfaces'
|
||||
import { LiteGraph } from '@/lib/litegraph/src/litegraph'
|
||||
import { NodeSlotType } from '@/lib/litegraph/src/types/globalEnums'
|
||||
import type { IBaseWidget } from '@/lib/litegraph/src/types/widgets'
|
||||
|
||||
import type { SubgraphInputNode } from './SubgraphInputNode'
|
||||
import type { SubgraphOutput } from './SubgraphOutput'
|
||||
import { SubgraphSlot } from './SubgraphSlotBase'
|
||||
import { isNodeSlot, isSubgraphOutput } from './subgraphUtils'
|
||||
|
||||
/**
|
||||
* An input "slot" from a parent graph into a subgraph.
|
||||
*
|
||||
* IMPORTANT: A subgraph "input" is both an input AND an output. It creates an extra link connection point between
|
||||
* a parent graph and a subgraph, so is conceptually similar to a reroute.
|
||||
*
|
||||
* This can be a little confusing, but is easier to visualise when imagining editing a subgraph.
|
||||
* You have "Subgraph Inputs", because they are coming into the subgraph, which then connect to "node inputs".
|
||||
*
|
||||
* Functionally, however, when editing a subgraph, that "subgraph input" is the "origin" or "output side" of a link.
|
||||
*/
|
||||
export class SubgraphInput extends SubgraphSlot {
|
||||
declare parent: SubgraphInputNode
|
||||
|
||||
events = new CustomEventTarget<SubgraphInputEventMap>()
|
||||
|
||||
/** The linked widget that this slot is connected to. */
|
||||
#widgetRef?: WeakRef<IBaseWidget>
|
||||
|
||||
get _widget() {
|
||||
return this.#widgetRef?.deref()
|
||||
}
|
||||
|
||||
set _widget(widget) {
|
||||
this.#widgetRef = widget ? new WeakRef(widget) : undefined
|
||||
}
|
||||
|
||||
override connect(
|
||||
slot: INodeInputSlot,
|
||||
node: LGraphNode,
|
||||
afterRerouteId?: RerouteId
|
||||
): LLink | undefined {
|
||||
const { subgraph } = this.parent
|
||||
|
||||
// Allow nodes to block connection
|
||||
const inputIndex = node.inputs.indexOf(slot)
|
||||
if (
|
||||
node.onConnectInput?.(inputIndex, this.type, this, this.parent, -1) ===
|
||||
false
|
||||
)
|
||||
return
|
||||
|
||||
// if (slot instanceof SubgraphOutput) {
|
||||
// // Subgraph IO nodes have no special handling at present.
|
||||
// return new LLink(
|
||||
// ++subgraph.state.lastLinkId,
|
||||
// this.type,
|
||||
// this.parent.id,
|
||||
// this.parent.slots.indexOf(this),
|
||||
// node.id,
|
||||
// inputIndex,
|
||||
// afterRerouteId,
|
||||
// )
|
||||
// }
|
||||
|
||||
// Disconnect target input, if it is already connected.
|
||||
if (slot.link != null) {
|
||||
subgraph.beforeChange()
|
||||
const link = subgraph.getLink(slot.link)
|
||||
this.parent._disconnectNodeInput(node, slot, link)
|
||||
}
|
||||
|
||||
const inputWidget = node.getWidgetFromSlot(slot)
|
||||
if (inputWidget) {
|
||||
if (!this.matchesWidget(inputWidget)) {
|
||||
console.warn('Target input has invalid widget.', slot, node)
|
||||
return
|
||||
}
|
||||
|
||||
this._widget ??= inputWidget
|
||||
this.events.dispatch('input-connected', {
|
||||
input: slot,
|
||||
widget: inputWidget
|
||||
})
|
||||
}
|
||||
|
||||
const link = new LLink(
|
||||
++subgraph.state.lastLinkId,
|
||||
slot.type,
|
||||
this.parent.id,
|
||||
this.parent.slots.indexOf(this),
|
||||
node.id,
|
||||
inputIndex,
|
||||
afterRerouteId
|
||||
)
|
||||
|
||||
// Add to graph links list
|
||||
subgraph._links.set(link.id, link)
|
||||
|
||||
// Set link ID in each slot
|
||||
this.linkIds.push(link.id)
|
||||
slot.link = link.id
|
||||
|
||||
// Reroutes
|
||||
const reroutes = LLink.getReroutes(subgraph, link)
|
||||
for (const reroute of reroutes) {
|
||||
reroute.linkIds.add(link.id)
|
||||
if (reroute.floating) delete reroute.floating
|
||||
reroute._dragging = undefined
|
||||
}
|
||||
|
||||
// If this is the terminus of a floating link, remove it
|
||||
const lastReroute = reroutes.at(-1)
|
||||
if (lastReroute) {
|
||||
for (const linkId of lastReroute.floatingLinkIds) {
|
||||
const link = subgraph.floatingLinks.get(linkId)
|
||||
if (link?.parentId === lastReroute.id) {
|
||||
subgraph.removeFloatingLink(link)
|
||||
}
|
||||
}
|
||||
}
|
||||
subgraph._version++
|
||||
|
||||
node.onConnectionsChange?.(NodeSlotType.INPUT, inputIndex, true, link, slot)
|
||||
|
||||
subgraph.afterChange()
|
||||
|
||||
return link
|
||||
}
|
||||
|
||||
get labelPos(): Point {
|
||||
const [x, y, , height] = this.boundingRect
|
||||
return [x, y + height * 0.5]
|
||||
}
|
||||
|
||||
getConnectedWidgets(): IBaseWidget[] {
|
||||
const { subgraph } = this.parent
|
||||
const widgets: IBaseWidget[] = []
|
||||
|
||||
for (const linkId of this.linkIds) {
|
||||
const link = subgraph.getLink(linkId)
|
||||
if (!link) {
|
||||
console.error('Link not found', linkId)
|
||||
continue
|
||||
}
|
||||
|
||||
const resolved = link.resolve(subgraph)
|
||||
if (resolved.input && resolved.inputNode?.widgets) {
|
||||
// Has no widget
|
||||
const widgetNamePojo = resolved.input.widget
|
||||
if (!widgetNamePojo) continue
|
||||
|
||||
// Invalid widget name
|
||||
if (!widgetNamePojo.name) {
|
||||
console.warn('Invalid widget name', widgetNamePojo)
|
||||
continue
|
||||
}
|
||||
|
||||
const widget = resolved.inputNode.widgets.find(
|
||||
(w) => w.name === widgetNamePojo.name
|
||||
)
|
||||
if (!widget) {
|
||||
console.warn('Widget not found', widgetNamePojo)
|
||||
continue
|
||||
}
|
||||
|
||||
widgets.push(widget)
|
||||
}
|
||||
}
|
||||
return widgets
|
||||
}
|
||||
|
||||
/**
|
||||
* Validates that the connection between the new slot and the existing widget is valid.
|
||||
* Used to prevent connections between widgets that are not of the same type.
|
||||
* @param otherWidget The widget to compare to.
|
||||
* @returns `true` if the connection is valid, otherwise `false`.
|
||||
*/
|
||||
matchesWidget(otherWidget: IBaseWidget): boolean {
|
||||
const widget = this.#widgetRef?.deref()
|
||||
if (!widget) return true
|
||||
|
||||
if (
|
||||
otherWidget.type !== widget.type ||
|
||||
otherWidget.options.min !== widget.options.min ||
|
||||
otherWidget.options.max !== widget.options.max ||
|
||||
otherWidget.options.step !== widget.options.step ||
|
||||
otherWidget.options.step2 !== widget.options.step2 ||
|
||||
otherWidget.options.precision !== widget.options.precision
|
||||
) {
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
override disconnect(): void {
|
||||
super.disconnect()
|
||||
|
||||
this.events.dispatch('input-disconnected', { input: this })
|
||||
}
|
||||
|
||||
/** For inputs, x is the right edge of the input node. */
|
||||
override arrange(rect: ReadOnlyRect): void {
|
||||
const [right, top, width, height] = rect
|
||||
const { boundingRect: b, pos } = this
|
||||
|
||||
b[0] = right - width
|
||||
b[1] = top
|
||||
b[2] = width
|
||||
b[3] = height
|
||||
|
||||
pos[0] = right - height * 0.5
|
||||
pos[1] = top + height * 0.5
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if this slot is a valid target for a connection from the given slot.
|
||||
* For SubgraphInput (which acts as an output inside the subgraph),
|
||||
* the fromSlot should be an input slot.
|
||||
*/
|
||||
override isValidTarget(
|
||||
fromSlot: INodeInputSlot | INodeOutputSlot | SubgraphInput | SubgraphOutput
|
||||
): boolean {
|
||||
if (isNodeSlot(fromSlot)) {
|
||||
return (
|
||||
'link' in fromSlot &&
|
||||
LiteGraph.isValidConnection(this.type, fromSlot.type)
|
||||
)
|
||||
}
|
||||
|
||||
if (isSubgraphOutput(fromSlot)) {
|
||||
return LiteGraph.isValidConnection(this.type, fromSlot.type)
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
}
|
||||
+268
@@ -0,0 +1,268 @@
|
||||
import type { CanvasPointer } from '@/lib/litegraph/src/CanvasPointer'
|
||||
import type { LGraphNode, NodeId } from '@/lib/litegraph/src/LGraphNode'
|
||||
import { LLink } from '@/lib/litegraph/src/LLink'
|
||||
import type { RerouteId } from '@/lib/litegraph/src/Reroute'
|
||||
import type { LinkConnector } from '@/lib/litegraph/src/canvas/LinkConnector'
|
||||
import { SUBGRAPH_INPUT_ID } from '@/lib/litegraph/src/constants'
|
||||
import type {
|
||||
DefaultConnectionColors,
|
||||
INodeInputSlot,
|
||||
INodeOutputSlot,
|
||||
ISlotType,
|
||||
Positionable
|
||||
} from '@/lib/litegraph/src/interfaces'
|
||||
import type { NodeLike } from '@/lib/litegraph/src/types/NodeLike'
|
||||
import type { CanvasPointerEvent } from '@/lib/litegraph/src/types/events'
|
||||
import { NodeSlotType } from '@/lib/litegraph/src/types/globalEnums'
|
||||
import { findFreeSlotOfType } from '@/lib/litegraph/src/utils/collections'
|
||||
|
||||
import { EmptySubgraphInput } from './EmptySubgraphInput'
|
||||
import { SubgraphIONodeBase } from './SubgraphIONodeBase'
|
||||
import type { SubgraphInput } from './SubgraphInput'
|
||||
import type { SubgraphOutput } from './SubgraphOutput'
|
||||
|
||||
export class SubgraphInputNode
|
||||
extends SubgraphIONodeBase<SubgraphInput>
|
||||
implements Positionable
|
||||
{
|
||||
readonly id: NodeId = SUBGRAPH_INPUT_ID
|
||||
|
||||
readonly emptySlot: EmptySubgraphInput = new EmptySubgraphInput(this)
|
||||
|
||||
get slots() {
|
||||
return this.subgraph.inputs
|
||||
}
|
||||
|
||||
override get allSlots(): SubgraphInput[] {
|
||||
return [...this.slots, this.emptySlot]
|
||||
}
|
||||
|
||||
get slotAnchorX() {
|
||||
const [x, , width] = this.boundingRect
|
||||
return x + width - SubgraphIONodeBase.roundedRadius
|
||||
}
|
||||
|
||||
override onPointerDown(
|
||||
e: CanvasPointerEvent,
|
||||
pointer: CanvasPointer,
|
||||
linkConnector: LinkConnector
|
||||
): void {
|
||||
// Left-click handling for dragging connections
|
||||
if (e.button === 0) {
|
||||
for (const slot of this.allSlots) {
|
||||
// Check if click is within the full slot area (including label)
|
||||
if (slot.boundingRect.containsXy(e.canvasX, e.canvasY)) {
|
||||
pointer.onDragStart = () => {
|
||||
linkConnector.dragNewFromSubgraphInput(this.subgraph, this, slot)
|
||||
}
|
||||
pointer.onDragEnd = (eUp) => {
|
||||
linkConnector.dropLinks(this.subgraph, eUp)
|
||||
}
|
||||
pointer.onDoubleClick = () => {
|
||||
this.handleSlotDoubleClick(slot, e)
|
||||
}
|
||||
pointer.finally = () => {
|
||||
linkConnector.reset(true)
|
||||
}
|
||||
}
|
||||
}
|
||||
// Check for right-click
|
||||
} else if (e.button === 2) {
|
||||
const slot = this.getSlotInPosition(e.canvasX, e.canvasY)
|
||||
if (slot) this.showSlotContextMenu(slot, e)
|
||||
}
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
override renameSlot(slot: SubgraphInput, name: string): void {
|
||||
this.subgraph.renameInput(slot, name)
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
override removeSlot(slot: SubgraphInput): void {
|
||||
this.subgraph.removeInput(slot)
|
||||
}
|
||||
|
||||
canConnectTo(
|
||||
inputNode: NodeLike,
|
||||
input: INodeInputSlot,
|
||||
fromSlot: SubgraphInput
|
||||
): boolean {
|
||||
return inputNode.canConnectTo(this, input, fromSlot)
|
||||
}
|
||||
|
||||
connectSlots(
|
||||
fromSlot: SubgraphInput,
|
||||
inputNode: LGraphNode,
|
||||
input: INodeInputSlot,
|
||||
afterRerouteId: RerouteId | undefined
|
||||
): LLink {
|
||||
const { subgraph } = this
|
||||
|
||||
const outputIndex = this.slots.indexOf(fromSlot)
|
||||
const inputIndex = inputNode.inputs.indexOf(input)
|
||||
|
||||
if (outputIndex === -1 || inputIndex === -1)
|
||||
throw new Error('Invalid slot indices.')
|
||||
|
||||
return new LLink(
|
||||
++subgraph.state.lastLinkId,
|
||||
input.type || fromSlot.type,
|
||||
this.id,
|
||||
outputIndex,
|
||||
inputNode.id,
|
||||
inputIndex,
|
||||
afterRerouteId
|
||||
)
|
||||
}
|
||||
|
||||
// #region Legacy LGraphNode compatibility
|
||||
|
||||
connectByType(
|
||||
slot: number,
|
||||
target_node: LGraphNode,
|
||||
target_slotType: ISlotType,
|
||||
optsIn?: { afterRerouteId?: RerouteId }
|
||||
): LLink | undefined {
|
||||
const inputSlot = target_node.findInputByType(target_slotType)
|
||||
if (!inputSlot) return
|
||||
|
||||
if (slot === -1) {
|
||||
// This indicates a connection is being made from the "Empty" slot.
|
||||
// We need to create a new, concrete input on the subgraph that matches the target.
|
||||
const newSubgraphInput = this.subgraph.addInput(
|
||||
inputSlot.slot.name,
|
||||
String(inputSlot.slot.type ?? '')
|
||||
)
|
||||
const newSlotIndex = this.slots.indexOf(newSubgraphInput)
|
||||
if (newSlotIndex === -1) {
|
||||
console.error('Could not find newly created subgraph input slot.')
|
||||
return
|
||||
}
|
||||
slot = newSlotIndex
|
||||
}
|
||||
|
||||
return this.slots[slot].connect(
|
||||
inputSlot.slot,
|
||||
target_node,
|
||||
optsIn?.afterRerouteId
|
||||
)
|
||||
}
|
||||
|
||||
findOutputSlot(name: string): SubgraphInput | undefined {
|
||||
return this.slots.find((output) => output.name === name)
|
||||
}
|
||||
|
||||
findOutputByType(type: ISlotType): SubgraphInput | undefined {
|
||||
return findFreeSlotOfType(
|
||||
this.slots,
|
||||
type,
|
||||
(slot) => slot.linkIds.length > 0
|
||||
)?.slot
|
||||
}
|
||||
|
||||
// #endregion Legacy LGraphNode compatibility
|
||||
|
||||
_disconnectNodeInput(
|
||||
node: LGraphNode,
|
||||
input: INodeInputSlot,
|
||||
link: LLink | undefined
|
||||
): void {
|
||||
const { subgraph } = this
|
||||
|
||||
// Break floating links
|
||||
if (input._floatingLinks?.size) {
|
||||
for (const link of input._floatingLinks) {
|
||||
subgraph.removeFloatingLink(link)
|
||||
}
|
||||
}
|
||||
|
||||
input.link = null
|
||||
subgraph.setDirtyCanvas(false, true)
|
||||
|
||||
if (!link) return
|
||||
|
||||
const subgraphInputIndex = link.origin_slot
|
||||
link.disconnect(subgraph, 'output')
|
||||
subgraph._version++
|
||||
|
||||
const subgraphInput = this.slots.at(subgraphInputIndex)
|
||||
if (!subgraphInput) {
|
||||
console.warn(
|
||||
'disconnectNodeInput: subgraphInput not found',
|
||||
this,
|
||||
subgraphInputIndex
|
||||
)
|
||||
return
|
||||
}
|
||||
|
||||
// search in the inputs list for this link
|
||||
const index = subgraphInput.linkIds.indexOf(link.id)
|
||||
if (index !== -1) {
|
||||
subgraphInput.linkIds.splice(index, 1)
|
||||
} else {
|
||||
console.warn(
|
||||
'disconnectNodeInput: link ID not found in subgraphInput linkIds',
|
||||
link.id
|
||||
)
|
||||
}
|
||||
const slotIndex = node.inputs.findIndex((inp) => inp === input)
|
||||
if (slotIndex !== -1) {
|
||||
node.onConnectionsChange?.(
|
||||
NodeSlotType.INPUT,
|
||||
slotIndex,
|
||||
false,
|
||||
link,
|
||||
subgraphInput
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
override drawProtected(
|
||||
ctx: CanvasRenderingContext2D,
|
||||
colorContext: DefaultConnectionColors,
|
||||
fromSlot?:
|
||||
| INodeInputSlot
|
||||
| INodeOutputSlot
|
||||
| SubgraphInput
|
||||
| SubgraphOutput,
|
||||
editorAlpha?: number
|
||||
): void {
|
||||
const { roundedRadius } = SubgraphIONodeBase
|
||||
const transform = ctx.getTransform()
|
||||
|
||||
const [x, y, width, height] = this.boundingRect
|
||||
ctx.translate(x, y)
|
||||
|
||||
// Draw top rounded part
|
||||
ctx.strokeStyle = this.sideStrokeStyle
|
||||
ctx.lineWidth = this.sideLineWidth
|
||||
ctx.beginPath()
|
||||
ctx.arc(
|
||||
width - roundedRadius,
|
||||
roundedRadius,
|
||||
roundedRadius,
|
||||
Math.PI * 1.5,
|
||||
0
|
||||
)
|
||||
|
||||
// Straight line to bottom
|
||||
ctx.moveTo(width, roundedRadius)
|
||||
ctx.lineTo(width, height - roundedRadius)
|
||||
|
||||
// Bottom rounded part
|
||||
ctx.arc(
|
||||
width - roundedRadius,
|
||||
height - roundedRadius,
|
||||
roundedRadius,
|
||||
0,
|
||||
Math.PI * 0.5
|
||||
)
|
||||
ctx.stroke()
|
||||
|
||||
// Restore context
|
||||
ctx.setTransform(transform)
|
||||
|
||||
this.drawSlots(ctx, colorContext, fromSlot, editorAlpha)
|
||||
}
|
||||
}
|
||||
+642
@@ -0,0 +1,642 @@
|
||||
import type { BaseLGraph, LGraph } from '@/lib/litegraph/src/LGraph'
|
||||
import type { LGraphButton } from '@/lib/litegraph/src/LGraphButton'
|
||||
import type { LGraphCanvas } from '@/lib/litegraph/src/LGraphCanvas'
|
||||
import { LGraphNode } from '@/lib/litegraph/src/LGraphNode'
|
||||
import type { DrawTitleBoxOptions } from '@/lib/litegraph/src/LGraphNode'
|
||||
import { LLink } from '@/lib/litegraph/src/LLink'
|
||||
import type { ResolvedConnection } from '@/lib/litegraph/src/LLink'
|
||||
import { RecursionError } from '@/lib/litegraph/src/infrastructure/RecursionError'
|
||||
import type {
|
||||
ISubgraphInput,
|
||||
IWidgetLocator
|
||||
} from '@/lib/litegraph/src/interfaces'
|
||||
import { LiteGraph } from '@/lib/litegraph/src/litegraph'
|
||||
import type {
|
||||
INodeInputSlot,
|
||||
ISlotType,
|
||||
NodeId
|
||||
} from '@/lib/litegraph/src/litegraph'
|
||||
import { NodeInputSlot } from '@/lib/litegraph/src/node/NodeInputSlot'
|
||||
import { NodeOutputSlot } from '@/lib/litegraph/src/node/NodeOutputSlot'
|
||||
import type {
|
||||
GraphOrSubgraph,
|
||||
Subgraph
|
||||
} from '@/lib/litegraph/src/subgraph/Subgraph'
|
||||
import type {
|
||||
ExportedSubgraphInstance,
|
||||
ISerialisedNode
|
||||
} from '@/lib/litegraph/src/types/serialisation'
|
||||
import type { IBaseWidget } from '@/lib/litegraph/src/types/widgets'
|
||||
import type { UUID } from '@/lib/litegraph/src/utils/uuid'
|
||||
import { toConcreteWidget } from '@/lib/litegraph/src/widgets/widgetMap'
|
||||
|
||||
import { ExecutableNodeDTO } from './ExecutableNodeDTO'
|
||||
import type { ExecutableLGraphNode, ExecutionId } from './ExecutableNodeDTO'
|
||||
import type { SubgraphInput } from './SubgraphInput'
|
||||
|
||||
const workflowSvg = new Image()
|
||||
workflowSvg.src =
|
||||
"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'%3E%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='white' stroke-linecap='round' stroke-width='1.3' d='M9.18613 3.09999H6.81377M9.18613 12.9H7.55288c-3.08678 0-5.35171-2.99581-4.60305-6.08843l.3054-1.26158M14.7486 2.1721l-.5931 2.45c-.132.54533-.6065.92789-1.1508.92789h-2.2993c-.77173 0-1.33797-.74895-1.1508-1.5221l.5931-2.45c.132-.54533.6065-.9279 1.1508-.9279h2.2993c.7717 0 1.3379.74896 1.1508 1.52211Zm-8.3033 0-.59309 2.45c-.13201.54533-.60646.92789-1.15076.92789H2.4021c-.7717 0-1.33793-.74895-1.15077-1.5221l.59309-2.45c.13201-.54533.60647-.9279 1.15077-.9279h2.29935c.77169 0 1.33792.74896 1.15076 1.52211Zm8.3033 9.8-.5931 2.45c-.132.5453-.6065.9279-1.1508.9279h-2.2993c-.77173 0-1.33797-.749-1.1508-1.5221l.5931-2.45c.132-.5453.6065-.9279 1.1508-.9279h2.2993c.7717 0 1.3379.7489 1.1508 1.5221Z'/%3E%3C/svg%3E %3C/svg%3E"
|
||||
|
||||
/**
|
||||
* An instance of a {@link Subgraph}, displayed as a node on the containing (parent) graph.
|
||||
*/
|
||||
export class SubgraphNode extends LGraphNode implements BaseLGraph {
|
||||
declare inputs: (INodeInputSlot & Partial<ISubgraphInput>)[]
|
||||
|
||||
override readonly type: UUID
|
||||
override readonly isVirtualNode = true as const
|
||||
|
||||
get rootGraph(): LGraph {
|
||||
return this.graph.rootGraph
|
||||
}
|
||||
|
||||
override get displayType(): string {
|
||||
return 'Subgraph node'
|
||||
}
|
||||
|
||||
override isSubgraphNode(): this is SubgraphNode {
|
||||
return true
|
||||
}
|
||||
|
||||
override widgets: IBaseWidget[] = []
|
||||
|
||||
/** Manages lifecycle of all subgraph event listeners */
|
||||
#eventAbortController = new AbortController()
|
||||
|
||||
constructor(
|
||||
/** The (sub)graph that contains this subgraph instance. */
|
||||
override readonly graph: GraphOrSubgraph,
|
||||
/** The definition of this subgraph; how its nodes are configured, etc. */
|
||||
readonly subgraph: Subgraph,
|
||||
instanceData: ExportedSubgraphInstance
|
||||
) {
|
||||
super(subgraph.name, subgraph.id)
|
||||
|
||||
// Update this node when the subgraph input / output slots are changed
|
||||
const subgraphEvents = this.subgraph.events
|
||||
const { signal } = this.#eventAbortController
|
||||
|
||||
subgraphEvents.addEventListener(
|
||||
'input-added',
|
||||
(e) => {
|
||||
const subgraphInput = e.detail.input
|
||||
const { name, type } = subgraphInput
|
||||
const existingInput = this.inputs.find((i) => i.name == name)
|
||||
if (existingInput) {
|
||||
const linkId = subgraphInput.linkIds[0]
|
||||
const { inputNode, input } = subgraph.links[linkId].resolve(subgraph)
|
||||
const widget = inputNode?.widgets?.find?.((w) => w.name == name)
|
||||
if (widget)
|
||||
this.#setWidget(subgraphInput, existingInput, widget, input?.widget)
|
||||
return
|
||||
}
|
||||
const input = this.addInput(name, type)
|
||||
|
||||
this.#addSubgraphInputListeners(subgraphInput, input)
|
||||
},
|
||||
{ signal }
|
||||
)
|
||||
|
||||
subgraphEvents.addEventListener(
|
||||
'removing-input',
|
||||
(e) => {
|
||||
const widget = e.detail.input._widget
|
||||
if (widget) this.ensureWidgetRemoved(widget)
|
||||
|
||||
this.removeInput(e.detail.index)
|
||||
this.setDirtyCanvas(true, true)
|
||||
},
|
||||
{ signal }
|
||||
)
|
||||
|
||||
subgraphEvents.addEventListener(
|
||||
'output-added',
|
||||
(e) => {
|
||||
const { name, type } = e.detail.output
|
||||
this.addOutput(name, type)
|
||||
},
|
||||
{ signal }
|
||||
)
|
||||
|
||||
subgraphEvents.addEventListener(
|
||||
'removing-output',
|
||||
(e) => {
|
||||
this.removeOutput(e.detail.index)
|
||||
this.setDirtyCanvas(true, true)
|
||||
},
|
||||
{ signal }
|
||||
)
|
||||
|
||||
subgraphEvents.addEventListener(
|
||||
'renaming-input',
|
||||
(e) => {
|
||||
const { index, newName } = e.detail
|
||||
const input = this.inputs.at(index)
|
||||
if (!input) throw new Error('Subgraph input not found')
|
||||
|
||||
input.label = newName
|
||||
if (input._widget) {
|
||||
input._widget.label = newName
|
||||
}
|
||||
},
|
||||
{ signal }
|
||||
)
|
||||
|
||||
subgraphEvents.addEventListener(
|
||||
'renaming-output',
|
||||
(e) => {
|
||||
const { index, newName } = e.detail
|
||||
const output = this.outputs.at(index)
|
||||
if (!output) throw new Error('Subgraph output not found')
|
||||
|
||||
output.label = newName
|
||||
},
|
||||
{ signal }
|
||||
)
|
||||
|
||||
this.type = subgraph.id
|
||||
this.configure(instanceData)
|
||||
|
||||
this.addTitleButton({
|
||||
name: 'enter_subgraph',
|
||||
text: '\uE93B', // Unicode for pi-window-maximize
|
||||
yOffset: 0, // No vertical offset needed, button is centered
|
||||
xOffset: -10,
|
||||
fontSize: 16
|
||||
})
|
||||
}
|
||||
|
||||
override onTitleButtonClick(
|
||||
button: LGraphButton,
|
||||
canvas: LGraphCanvas
|
||||
): void {
|
||||
if (button.name === 'enter_subgraph') {
|
||||
canvas.openSubgraph(this.subgraph, this)
|
||||
} else {
|
||||
super.onTitleButtonClick(button, canvas)
|
||||
}
|
||||
}
|
||||
|
||||
#addSubgraphInputListeners(
|
||||
subgraphInput: SubgraphInput,
|
||||
input: INodeInputSlot & Partial<ISubgraphInput>
|
||||
) {
|
||||
if (
|
||||
input._listenerController &&
|
||||
typeof input._listenerController.abort === 'function'
|
||||
) {
|
||||
input._listenerController.abort()
|
||||
}
|
||||
input._listenerController = new AbortController()
|
||||
const { signal } = input._listenerController
|
||||
|
||||
subgraphInput.events.addEventListener(
|
||||
'input-connected',
|
||||
(e) => {
|
||||
if (input._widget) return
|
||||
|
||||
const widget = subgraphInput._widget
|
||||
if (!widget) return
|
||||
|
||||
const widgetLocator = e.detail.input.widget
|
||||
this.#setWidget(subgraphInput, input, widget, widgetLocator)
|
||||
},
|
||||
{ signal }
|
||||
)
|
||||
|
||||
subgraphInput.events.addEventListener(
|
||||
'input-disconnected',
|
||||
() => {
|
||||
// If the input is connected to more than one widget, don't remove the widget
|
||||
const connectedWidgets = subgraphInput.getConnectedWidgets()
|
||||
if (connectedWidgets.length > 0) return
|
||||
|
||||
this.removeWidgetByName(input.name)
|
||||
|
||||
delete input.pos
|
||||
delete input.widget
|
||||
input._widget = undefined
|
||||
},
|
||||
{ signal }
|
||||
)
|
||||
}
|
||||
|
||||
override configure(info: ExportedSubgraphInstance): void {
|
||||
for (const input of this.inputs) {
|
||||
if (
|
||||
input._listenerController &&
|
||||
typeof input._listenerController.abort === 'function'
|
||||
) {
|
||||
input._listenerController.abort()
|
||||
}
|
||||
}
|
||||
|
||||
this.inputs.length = 0
|
||||
this.inputs.push(
|
||||
...this.subgraph.inputNode.slots.map(
|
||||
(slot) =>
|
||||
new NodeInputSlot(
|
||||
{
|
||||
name: slot.name,
|
||||
localized_name: slot.localized_name,
|
||||
label: slot.label,
|
||||
type: slot.type,
|
||||
link: null
|
||||
},
|
||||
this
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
this.outputs.length = 0
|
||||
this.outputs.push(
|
||||
...this.subgraph.outputNode.slots.map(
|
||||
(slot) =>
|
||||
new NodeOutputSlot(
|
||||
{
|
||||
name: slot.name,
|
||||
localized_name: slot.localized_name,
|
||||
label: slot.label,
|
||||
type: slot.type,
|
||||
links: null
|
||||
},
|
||||
this
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
super.configure(info)
|
||||
}
|
||||
|
||||
override _internalConfigureAfterSlots() {
|
||||
// Reset widgets
|
||||
this.widgets.length = 0
|
||||
|
||||
// Check all inputs for connected widgets
|
||||
for (const input of this.inputs) {
|
||||
const subgraphInput = this.subgraph.inputNode.slots.find(
|
||||
(slot) => slot.name === input.name
|
||||
)
|
||||
if (!subgraphInput) {
|
||||
// Skip inputs that don't exist in the subgraph definition
|
||||
// This can happen when loading workflows with dynamically added inputs
|
||||
console.warn(
|
||||
`[SubgraphNode.configure] No subgraph input found for input ${input.name}, skipping`
|
||||
)
|
||||
continue
|
||||
}
|
||||
|
||||
this.#addSubgraphInputListeners(subgraphInput, input)
|
||||
|
||||
// Find the first widget that this slot is connected to
|
||||
for (const linkId of subgraphInput.linkIds) {
|
||||
const link = this.subgraph.getLink(linkId)
|
||||
if (!link) {
|
||||
console.warn(
|
||||
`[SubgraphNode.configure] No link found for link ID ${linkId}`,
|
||||
this
|
||||
)
|
||||
continue
|
||||
}
|
||||
|
||||
const { inputNode } = link.resolve(this.subgraph)
|
||||
if (!inputNode) {
|
||||
console.warn('Failed to resolve inputNode', link, this)
|
||||
continue
|
||||
}
|
||||
|
||||
//Manually find input since target_slot can't be trusted
|
||||
const targetInput = inputNode.inputs.find((inp) => inp.link === linkId)
|
||||
if (!targetInput) {
|
||||
console.warn('Failed to find corresponding input', link, inputNode)
|
||||
continue
|
||||
}
|
||||
|
||||
// No widget - ignore this link
|
||||
const widget = inputNode.getWidgetFromSlot(targetInput)
|
||||
if (!widget) continue
|
||||
|
||||
this.#setWidget(subgraphInput, input, widget, targetInput.widget)
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#setWidget(
|
||||
subgraphInput: Readonly<SubgraphInput>,
|
||||
input: INodeInputSlot,
|
||||
widget: Readonly<IBaseWidget>,
|
||||
inputWidget: IWidgetLocator | undefined
|
||||
) {
|
||||
// Use the first matching widget
|
||||
const promotedWidget = toConcreteWidget(widget, this).createCopyForNode(
|
||||
this
|
||||
)
|
||||
|
||||
Object.assign(promotedWidget, {
|
||||
get name() {
|
||||
return subgraphInput.name
|
||||
},
|
||||
set name(value) {
|
||||
console.warn(
|
||||
'Promoted widget: setting name is not allowed',
|
||||
this,
|
||||
value
|
||||
)
|
||||
},
|
||||
get localized_name() {
|
||||
return subgraphInput.localized_name
|
||||
},
|
||||
set localized_name(value) {
|
||||
console.warn(
|
||||
'Promoted widget: setting localized_name is not allowed',
|
||||
this,
|
||||
value
|
||||
)
|
||||
},
|
||||
get label() {
|
||||
return subgraphInput.label
|
||||
},
|
||||
set label(value) {
|
||||
console.warn(
|
||||
'Promoted widget: setting label is not allowed',
|
||||
this,
|
||||
value
|
||||
)
|
||||
},
|
||||
get tooltip() {
|
||||
// Preserve the original widget's tooltip for promoted widgets
|
||||
return widget.tooltip
|
||||
},
|
||||
set tooltip(value) {
|
||||
console.warn(
|
||||
'Promoted widget: setting tooltip is not allowed',
|
||||
this,
|
||||
value
|
||||
)
|
||||
}
|
||||
})
|
||||
|
||||
const widgetCount = this.inputs.filter((i) => i.widget).length
|
||||
this.widgets.splice(widgetCount, 0, promotedWidget)
|
||||
|
||||
// Dispatch widget-promoted event
|
||||
this.subgraph.events.dispatch('widget-promoted', {
|
||||
widget: promotedWidget,
|
||||
subgraphNode: this
|
||||
})
|
||||
|
||||
// NOTE: This code creates linked chains of prototypes for passing across
|
||||
// multiple levels of subgraphs. As part of this, it intentionally avoids
|
||||
// creating new objects. Have care when making changes.
|
||||
input.widget ??= { name: subgraphInput.name }
|
||||
input.widget.name = subgraphInput.name
|
||||
if (inputWidget) Object.setPrototypeOf(input.widget, inputWidget)
|
||||
|
||||
input._widget = promotedWidget
|
||||
}
|
||||
|
||||
/**
|
||||
* Ensures the subgraph slot is in the params before adding the input as normal.
|
||||
* @param name The name of the input slot.
|
||||
* @param type The type of the input slot.
|
||||
* @param inputProperties Properties that are directly assigned to the created input. Default: a new, empty object.
|
||||
* @returns The new input slot.
|
||||
* @remarks Assertion is required to instantiate empty generic POJO.
|
||||
*/
|
||||
override addInput<TInput extends Partial<ISubgraphInput>>(
|
||||
name: string,
|
||||
type: ISlotType,
|
||||
inputProperties: TInput = {} as TInput
|
||||
): INodeInputSlot & TInput {
|
||||
// Bypasses type narrowing on this.inputs
|
||||
return super.addInput(name, type, inputProperties)
|
||||
}
|
||||
|
||||
override getInputLink(slot: number): LLink | null {
|
||||
// Output side: the link from inside the subgraph
|
||||
const innerLink = this.subgraph.outputNode.slots[slot].getLinks().at(0)
|
||||
if (!innerLink) {
|
||||
console.warn(
|
||||
`SubgraphNode.getInputLink: no inner link found for slot ${slot}`
|
||||
)
|
||||
return null
|
||||
}
|
||||
|
||||
const newLink = LLink.create(innerLink)
|
||||
newLink.origin_id = `${this.id}:${innerLink.origin_id}`
|
||||
newLink.origin_slot = innerLink.origin_slot
|
||||
|
||||
return newLink
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds the internal links connected to the given input slot inside the subgraph, and resolves the nodes / slots.
|
||||
* @param slot The slot index
|
||||
* @returns The resolved connections, or undefined if no input node is found.
|
||||
* @remarks This is used to resolve the input links when dragging a link from a subgraph input slot.
|
||||
*/
|
||||
resolveSubgraphInputLinks(slot: number): ResolvedConnection[] {
|
||||
const inputSlot = this.subgraph.inputNode.slots[slot]
|
||||
const innerLinks = inputSlot.getLinks()
|
||||
if (innerLinks.length === 0) {
|
||||
console.warn(
|
||||
`[SubgraphNode.resolveSubgraphInputLinks] No inner links found for input slot [${slot}] ${inputSlot.name}`,
|
||||
this
|
||||
)
|
||||
return []
|
||||
}
|
||||
return innerLinks.map((link) => link.resolve(this.subgraph))
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds the internal link connected to the given output slot inside the subgraph, and resolves the nodes / slots.
|
||||
* @param slot The slot index
|
||||
* @returns The output node if found, otherwise undefined.
|
||||
*/
|
||||
resolveSubgraphOutputLink(slot: number): ResolvedConnection | undefined {
|
||||
const outputSlot = this.subgraph.outputNode.slots[slot]
|
||||
const innerLink = outputSlot.getLinks().at(0)
|
||||
if (innerLink) {
|
||||
return innerLink.resolve(this.subgraph)
|
||||
}
|
||||
console.warn(
|
||||
`[SubgraphNode.resolveSubgraphOutputLink] No inner link found for output slot [${slot}] ${outputSlot.name}`,
|
||||
this
|
||||
)
|
||||
}
|
||||
|
||||
/** @internal Used to flatten the subgraph before execution. */
|
||||
override getInnerNodes(
|
||||
/** The set of computed node DTOs for this execution. */
|
||||
executableNodes: Map<ExecutionId, ExecutableLGraphNode>,
|
||||
/** The path of subgraph node IDs. */
|
||||
subgraphNodePath: readonly NodeId[] = [],
|
||||
/** Internal recursion param. The list of nodes to add to. */
|
||||
nodes: ExecutableLGraphNode[] = [],
|
||||
/** Internal recursion param. The set of visited nodes. */
|
||||
visited = new Set<SubgraphNode>()
|
||||
): ExecutableLGraphNode[] {
|
||||
if (visited.has(this)) {
|
||||
const nodeInfo = `${this.id}${this.title ? ` (${this.title})` : ''}`
|
||||
const subgraphInfo = `'${this.subgraph.name || 'Unnamed Subgraph'}'`
|
||||
const depth = subgraphNodePath.length
|
||||
throw new RecursionError(
|
||||
`Circular reference detected at depth ${depth} in node ${nodeInfo} of subgraph ${subgraphInfo}. ` +
|
||||
`This creates an infinite loop in the subgraph hierarchy.`
|
||||
)
|
||||
}
|
||||
visited.add(this)
|
||||
|
||||
const subgraphInstanceIdPath = [...subgraphNodePath, this.id]
|
||||
|
||||
// Store the subgraph node DTO
|
||||
const parentSubgraphNode = this.graph.rootGraph
|
||||
.resolveSubgraphIdPath(subgraphNodePath)
|
||||
.at(-1)
|
||||
const subgraphNodeDto = new ExecutableNodeDTO(
|
||||
this,
|
||||
subgraphNodePath,
|
||||
executableNodes,
|
||||
parentSubgraphNode
|
||||
)
|
||||
executableNodes.set(subgraphNodeDto.id, subgraphNodeDto)
|
||||
|
||||
for (const node of this.subgraph.nodes) {
|
||||
if ('getInnerNodes' in node && node.getInnerNodes) {
|
||||
node.getInnerNodes(
|
||||
executableNodes,
|
||||
subgraphInstanceIdPath,
|
||||
nodes,
|
||||
new Set(visited)
|
||||
)
|
||||
} else {
|
||||
// Create minimal DTOs rather than cloning the node
|
||||
const aVeryRealNode = new ExecutableNodeDTO(
|
||||
node,
|
||||
subgraphInstanceIdPath,
|
||||
executableNodes,
|
||||
this
|
||||
)
|
||||
executableNodes.set(aVeryRealNode.id, aVeryRealNode)
|
||||
nodes.push(aVeryRealNode)
|
||||
}
|
||||
}
|
||||
return nodes
|
||||
}
|
||||
|
||||
override removeWidgetByName(name: string): void {
|
||||
const widget = this.widgets.find((w) => w.name === name)
|
||||
if (widget) {
|
||||
this.subgraph.events.dispatch('widget-demoted', {
|
||||
widget,
|
||||
subgraphNode: this
|
||||
})
|
||||
}
|
||||
super.removeWidgetByName(name)
|
||||
}
|
||||
|
||||
override ensureWidgetRemoved(widget: IBaseWidget): void {
|
||||
if (this.widgets.includes(widget)) {
|
||||
this.subgraph.events.dispatch('widget-demoted', {
|
||||
widget,
|
||||
subgraphNode: this
|
||||
})
|
||||
}
|
||||
super.ensureWidgetRemoved(widget)
|
||||
}
|
||||
|
||||
override onRemoved(): void {
|
||||
// Clean up all subgraph event listeners
|
||||
this.#eventAbortController.abort()
|
||||
|
||||
// Clean up all promoted widgets
|
||||
for (const widget of this.widgets) {
|
||||
if ('isProxyWidget' in widget && widget.isProxyWidget) continue
|
||||
this.subgraph.events.dispatch('widget-demoted', {
|
||||
widget,
|
||||
subgraphNode: this
|
||||
})
|
||||
}
|
||||
|
||||
for (const input of this.inputs) {
|
||||
if (
|
||||
input._listenerController &&
|
||||
typeof input._listenerController.abort === 'function'
|
||||
) {
|
||||
input._listenerController.abort()
|
||||
}
|
||||
}
|
||||
}
|
||||
override drawTitleBox(
|
||||
ctx: CanvasRenderingContext2D,
|
||||
{
|
||||
scale,
|
||||
low_quality = false,
|
||||
title_height = LiteGraph.NODE_TITLE_HEIGHT,
|
||||
box_size = 10
|
||||
}: DrawTitleBoxOptions
|
||||
): void {
|
||||
if (this.onDrawTitleBox) {
|
||||
this.onDrawTitleBox(ctx, title_height, this.renderingSize, scale)
|
||||
return
|
||||
}
|
||||
ctx.save()
|
||||
ctx.fillStyle = '#3b82f6'
|
||||
ctx.beginPath()
|
||||
ctx.roundRect(6, -24.5, 22, 20, 5)
|
||||
ctx.fill()
|
||||
if (!low_quality) {
|
||||
ctx.translate(25, 23)
|
||||
ctx.scale(-1.5, 1.5)
|
||||
ctx.drawImage(workflowSvg, 0, -title_height, box_size, box_size)
|
||||
}
|
||||
ctx.restore()
|
||||
}
|
||||
|
||||
/**
|
||||
* Synchronizes widget values from this SubgraphNode instance to the
|
||||
* corresponding widgets in the subgraph definition before serialization.
|
||||
* This ensures nested subgraph widget values are preserved when saving.
|
||||
*/
|
||||
override serialize(): ISerialisedNode {
|
||||
// Sync widget values to subgraph definition before serialization
|
||||
for (let i = 0; i < this.widgets.length; i++) {
|
||||
const widget = this.widgets[i]
|
||||
const input = this.inputs.find((inp) => inp.name === widget.name)
|
||||
|
||||
if (input) {
|
||||
const subgraphInput = this.subgraph.inputNode.slots.find(
|
||||
(slot) => slot.name === input.name
|
||||
)
|
||||
|
||||
if (subgraphInput) {
|
||||
// Find all widgets connected to this subgraph input
|
||||
const connectedWidgets = subgraphInput.getConnectedWidgets()
|
||||
|
||||
// Update the value of all connected widgets
|
||||
for (const connectedWidget of connectedWidgets) {
|
||||
connectedWidget.value = widget.value
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Call parent serialize method
|
||||
return super.serialize()
|
||||
}
|
||||
override clone() {
|
||||
const clone = super.clone()
|
||||
// force reasign so domWidgets reset ownership
|
||||
|
||||
this.properties.proxyWidgets = this.properties.proxyWidgets
|
||||
|
||||
//TODO: Consider deep cloning subgraphs here.
|
||||
//It's the safest place to prevent creation of linked subgraphs
|
||||
//But the frequency of clone().serialize() calls is likely to result in
|
||||
//pollution of rootGraph.subgraphs
|
||||
|
||||
return clone
|
||||
}
|
||||
}
|
||||
+176
@@ -0,0 +1,176 @@
|
||||
import { pull } from 'es-toolkit/compat'
|
||||
|
||||
import type { LGraphNode } from '@/lib/litegraph/src/LGraphNode'
|
||||
import { LLink } from '@/lib/litegraph/src/LLink'
|
||||
import type { RerouteId } from '@/lib/litegraph/src/Reroute'
|
||||
import type {
|
||||
INodeInputSlot,
|
||||
INodeOutputSlot,
|
||||
Point,
|
||||
ReadOnlyRect
|
||||
} from '@/lib/litegraph/src/interfaces'
|
||||
import { LiteGraph } from '@/lib/litegraph/src/litegraph'
|
||||
import { NodeSlotType } from '@/lib/litegraph/src/types/globalEnums'
|
||||
|
||||
import type { SubgraphInput } from './SubgraphInput'
|
||||
import type { SubgraphOutputNode } from './SubgraphOutputNode'
|
||||
import { SubgraphSlot } from './SubgraphSlotBase'
|
||||
import { isNodeSlot, isSubgraphInput } from './subgraphUtils'
|
||||
|
||||
/**
|
||||
* An output "slot" from a subgraph to a parent graph.
|
||||
*
|
||||
* IMPORTANT: A subgraph "output" is both an output AND an input. It creates an extra link connection point between
|
||||
* a parent graph and a subgraph, so is conceptually similar to a reroute.
|
||||
*
|
||||
* This can be a little confusing, but is easier to visualise when imagining editing a subgraph.
|
||||
* You have "Subgraph Outputs", because they go from inside the subgraph and out, but links to them come from "node outputs".
|
||||
*
|
||||
* Functionally, however, when editing a subgraph, that "subgraph output" is the "target" or "input side" of a link.
|
||||
*/
|
||||
export class SubgraphOutput extends SubgraphSlot {
|
||||
declare parent: SubgraphOutputNode
|
||||
|
||||
override connect(
|
||||
slot: INodeOutputSlot,
|
||||
node: LGraphNode,
|
||||
afterRerouteId?: RerouteId
|
||||
): LLink | undefined {
|
||||
const { subgraph } = this.parent
|
||||
|
||||
// Validate type compatibility
|
||||
if (!LiteGraph.isValidConnection(slot.type, this.type)) return
|
||||
|
||||
// Allow nodes to block connection
|
||||
const outputIndex = node.outputs.indexOf(slot)
|
||||
if (outputIndex === -1)
|
||||
throw new Error('Slot is not an output of the given node')
|
||||
|
||||
if (
|
||||
node.onConnectOutput?.(outputIndex, this.type, this, this.parent, -1) ===
|
||||
false
|
||||
)
|
||||
return
|
||||
|
||||
// Link should not be present, but just in case, disconnect it
|
||||
const existingLink = this.getLinks().at(0)
|
||||
if (existingLink != null) {
|
||||
subgraph.beforeChange()
|
||||
|
||||
existingLink.disconnect(subgraph, 'input')
|
||||
const resolved = existingLink.resolve(subgraph)
|
||||
const links = resolved.output?.links
|
||||
if (links) pull(links, existingLink.id)
|
||||
}
|
||||
|
||||
const link = new LLink(
|
||||
++subgraph.state.lastLinkId,
|
||||
slot.type,
|
||||
node.id,
|
||||
outputIndex,
|
||||
this.parent.id,
|
||||
this.parent.slots.indexOf(this),
|
||||
afterRerouteId
|
||||
)
|
||||
|
||||
// Add to graph links list
|
||||
subgraph._links.set(link.id, link)
|
||||
|
||||
// Set link ID in each slot
|
||||
this.linkIds[0] = link.id
|
||||
slot.links ??= []
|
||||
slot.links.push(link.id)
|
||||
|
||||
// Reroutes
|
||||
const reroutes = LLink.getReroutes(subgraph, link)
|
||||
for (const reroute of reroutes) {
|
||||
reroute.linkIds.add(link.id)
|
||||
if (reroute.floating) delete reroute.floating
|
||||
reroute._dragging = undefined
|
||||
}
|
||||
|
||||
// If this is the terminus of a floating link, remove it
|
||||
const lastReroute = reroutes.at(-1)
|
||||
if (lastReroute) {
|
||||
for (const linkId of lastReroute.floatingLinkIds) {
|
||||
const link = subgraph.floatingLinks.get(linkId)
|
||||
if (link?.parentId === lastReroute.id) {
|
||||
subgraph.removeFloatingLink(link)
|
||||
}
|
||||
}
|
||||
}
|
||||
subgraph._version++
|
||||
|
||||
node.onConnectionsChange?.(
|
||||
NodeSlotType.OUTPUT,
|
||||
outputIndex,
|
||||
true,
|
||||
link,
|
||||
slot
|
||||
)
|
||||
|
||||
subgraph.afterChange()
|
||||
|
||||
return link
|
||||
}
|
||||
|
||||
get labelPos(): Point {
|
||||
const [x, y, , height] = this.boundingRect
|
||||
return [x + height, y + height * 0.5]
|
||||
}
|
||||
|
||||
override arrange(rect: ReadOnlyRect): void {
|
||||
const [left, top, width, height] = rect
|
||||
const { boundingRect: b, pos } = this
|
||||
|
||||
b[0] = left
|
||||
b[1] = top
|
||||
b[2] = width
|
||||
b[3] = height
|
||||
|
||||
pos[0] = left + height * 0.5
|
||||
pos[1] = top + height * 0.5
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if this slot is a valid target for a connection from the given slot.
|
||||
* For SubgraphOutput (which acts as an input inside the subgraph),
|
||||
* the fromSlot should be an output slot.
|
||||
*/
|
||||
override isValidTarget(
|
||||
fromSlot: INodeInputSlot | INodeOutputSlot | SubgraphInput | SubgraphOutput
|
||||
): boolean {
|
||||
if (isNodeSlot(fromSlot)) {
|
||||
return (
|
||||
'links' in fromSlot &&
|
||||
LiteGraph.isValidConnection(fromSlot.type, this.type)
|
||||
)
|
||||
}
|
||||
|
||||
if (isSubgraphInput(fromSlot)) {
|
||||
return LiteGraph.isValidConnection(fromSlot.type, this.type)
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
override disconnect() {
|
||||
const { subgraph } = this.parent
|
||||
//should never have more than one connection
|
||||
for (const linkId of this.linkIds) {
|
||||
const link = subgraph.links[linkId]
|
||||
if (!link) continue
|
||||
subgraph.removeLink(linkId)
|
||||
const { output, outputNode } = link.resolve(subgraph)
|
||||
if (output)
|
||||
output.links = output.links?.filter((id) => id !== linkId) ?? null
|
||||
outputNode?.onConnectionsChange?.(
|
||||
NodeSlotType.OUTPUT,
|
||||
link.origin_slot,
|
||||
false,
|
||||
link,
|
||||
this
|
||||
)
|
||||
}
|
||||
this.linkIds.length = 0
|
||||
}
|
||||
}
|
||||
+160
@@ -0,0 +1,160 @@
|
||||
import type { CanvasPointer } from '@/lib/litegraph/src/CanvasPointer'
|
||||
import type { LGraphNode, NodeId } from '@/lib/litegraph/src/LGraphNode'
|
||||
import type { LLink } from '@/lib/litegraph/src/LLink'
|
||||
import type { RerouteId } from '@/lib/litegraph/src/Reroute'
|
||||
import type { LinkConnector } from '@/lib/litegraph/src/canvas/LinkConnector'
|
||||
import { SUBGRAPH_OUTPUT_ID } from '@/lib/litegraph/src/constants'
|
||||
import type {
|
||||
DefaultConnectionColors,
|
||||
INodeInputSlot,
|
||||
INodeOutputSlot,
|
||||
ISlotType,
|
||||
Positionable
|
||||
} from '@/lib/litegraph/src/interfaces'
|
||||
import type { NodeLike } from '@/lib/litegraph/src/types/NodeLike'
|
||||
import type { CanvasPointerEvent } from '@/lib/litegraph/src/types/events'
|
||||
import type { SubgraphIO } from '@/lib/litegraph/src/types/serialisation'
|
||||
import { findFreeSlotOfType } from '@/lib/litegraph/src/utils/collections'
|
||||
|
||||
import { EmptySubgraphOutput } from './EmptySubgraphOutput'
|
||||
import { SubgraphIONodeBase } from './SubgraphIONodeBase'
|
||||
import type { SubgraphInput } from './SubgraphInput'
|
||||
import type { SubgraphOutput } from './SubgraphOutput'
|
||||
|
||||
export class SubgraphOutputNode
|
||||
extends SubgraphIONodeBase<SubgraphOutput>
|
||||
implements Positionable
|
||||
{
|
||||
readonly id: NodeId = SUBGRAPH_OUTPUT_ID
|
||||
|
||||
readonly emptySlot: EmptySubgraphOutput = new EmptySubgraphOutput(this)
|
||||
|
||||
get slots() {
|
||||
return this.subgraph.outputs
|
||||
}
|
||||
|
||||
override get allSlots(): SubgraphOutput[] {
|
||||
return [...this.slots, this.emptySlot]
|
||||
}
|
||||
|
||||
get slotAnchorX() {
|
||||
const [x] = this.boundingRect
|
||||
return x + SubgraphIONodeBase.roundedRadius
|
||||
}
|
||||
|
||||
override onPointerDown(
|
||||
e: CanvasPointerEvent,
|
||||
pointer: CanvasPointer,
|
||||
linkConnector: LinkConnector
|
||||
): void {
|
||||
// Left-click handling for dragging connections
|
||||
if (e.button === 0) {
|
||||
for (const slot of this.allSlots) {
|
||||
// Check if click is within the full slot area (including label)
|
||||
if (slot.boundingRect.containsXy(e.canvasX, e.canvasY)) {
|
||||
pointer.onDragStart = () => {
|
||||
linkConnector.dragNewFromSubgraphOutput(this.subgraph, this, slot)
|
||||
}
|
||||
pointer.onDragEnd = (eUp) => {
|
||||
linkConnector.dropLinks(this.subgraph, eUp)
|
||||
}
|
||||
pointer.onDoubleClick = () => {
|
||||
this.handleSlotDoubleClick(slot, e)
|
||||
}
|
||||
pointer.finally = () => {
|
||||
linkConnector.reset(true)
|
||||
}
|
||||
}
|
||||
}
|
||||
// Check for right-click
|
||||
} else if (e.button === 2) {
|
||||
const slot = this.getSlotInPosition(e.canvasX, e.canvasY)
|
||||
if (slot) this.showSlotContextMenu(slot, e)
|
||||
}
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
override renameSlot(slot: SubgraphOutput, name: string): void {
|
||||
this.subgraph.renameOutput(slot, name)
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
override removeSlot(slot: SubgraphOutput): void {
|
||||
this.subgraph.removeOutput(slot)
|
||||
}
|
||||
|
||||
canConnectTo(
|
||||
outputNode: NodeLike,
|
||||
fromSlot: SubgraphOutput,
|
||||
output: INodeOutputSlot | SubgraphIO
|
||||
): boolean {
|
||||
return outputNode.canConnectTo(this, fromSlot, output)
|
||||
}
|
||||
|
||||
connectByTypeOutput(
|
||||
slot: number,
|
||||
target_node: LGraphNode,
|
||||
target_slotType: ISlotType,
|
||||
optsIn?: { afterRerouteId?: RerouteId }
|
||||
): LLink | undefined {
|
||||
const outputSlot = target_node.findOutputByType(target_slotType)
|
||||
if (!outputSlot) return
|
||||
|
||||
return this.slots[slot].connect(
|
||||
outputSlot.slot,
|
||||
target_node,
|
||||
optsIn?.afterRerouteId
|
||||
)
|
||||
}
|
||||
|
||||
findInputByType(type: ISlotType): SubgraphOutput | undefined {
|
||||
return findFreeSlotOfType(
|
||||
this.slots,
|
||||
type,
|
||||
(slot) => slot.linkIds.length > 0
|
||||
)?.slot
|
||||
}
|
||||
|
||||
override drawProtected(
|
||||
ctx: CanvasRenderingContext2D,
|
||||
colorContext: DefaultConnectionColors,
|
||||
fromSlot?:
|
||||
| INodeInputSlot
|
||||
| INodeOutputSlot
|
||||
| SubgraphInput
|
||||
| SubgraphOutput,
|
||||
editorAlpha?: number
|
||||
): void {
|
||||
const { roundedRadius } = SubgraphIONodeBase
|
||||
const transform = ctx.getTransform()
|
||||
|
||||
const [x, y, , height] = this.boundingRect
|
||||
ctx.translate(x, y)
|
||||
|
||||
// Draw bottom rounded part
|
||||
ctx.strokeStyle = this.sideStrokeStyle
|
||||
ctx.lineWidth = this.sideLineWidth
|
||||
ctx.beginPath()
|
||||
ctx.arc(roundedRadius, roundedRadius, roundedRadius, Math.PI, Math.PI * 1.5)
|
||||
|
||||
// Straight line to bottom
|
||||
ctx.moveTo(0, roundedRadius)
|
||||
ctx.lineTo(0, height - roundedRadius)
|
||||
|
||||
// Bottom rounded part
|
||||
ctx.arc(
|
||||
roundedRadius,
|
||||
height - roundedRadius,
|
||||
roundedRadius,
|
||||
Math.PI,
|
||||
Math.PI * 0.5,
|
||||
true
|
||||
)
|
||||
ctx.stroke()
|
||||
|
||||
// Restore context
|
||||
ctx.setTransform(transform)
|
||||
|
||||
this.drawSlots(ctx, colorContext, fromSlot, editorAlpha)
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,6 @@
|
||||
tree 112edae7988632612bf2f7eb8f2d5fd1c18b9fee
|
||||
parent ad8ecb97d02e39c857a96b5f3b73a9791e6759d8
|
||||
author fen-release[bot] <fen-release[bot]@users.noreply.github.com> 1784749775 +0000
|
||||
committer fen-release[bot] <fen-release[bot]@users.noreply.github.com> 1784749775 +0000
|
||||
|
||||
ComfyUI v0.28.3
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"ref": "refs/tags/v0.28.3",
|
||||
"commit": "34d0629452cac83dc20aa3d84e45c9b60d9e36b3",
|
||||
"object": "34d0629452cac83dc20aa3d84e45c9b60d9e36b3"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
tree 112edae7988632612bf2f7eb8f2d5fd1c18b9fee
|
||||
parent ad8ecb97d02e39c857a96b5f3b73a9791e6759d8
|
||||
author fen-release[bot] <fen-release[bot]@users.noreply.github.com> 1784749775 +0000
|
||||
committer fen-release[bot] <fen-release[bot]@users.noreply.github.com> 1784749775 +0000
|
||||
|
||||
ComfyUI v0.28.3
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,674 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||
@@ -0,0 +1,108 @@
|
||||
import sys
|
||||
from typing_extensions import override
|
||||
|
||||
from comfy_api.latest import ComfyExtension, io
|
||||
|
||||
|
||||
class String(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="PrimitiveString",
|
||||
search_aliases=["text", "string", "text box", "prompt"],
|
||||
display_name="Text",
|
||||
category="utilities/primitive",
|
||||
inputs=[io.String.Input("value")],
|
||||
outputs=[io.String.Output()]
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, value: str) -> io.NodeOutput:
|
||||
return io.NodeOutput(value)
|
||||
|
||||
|
||||
class StringMultiline(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="PrimitiveStringMultiline",
|
||||
search_aliases=["text", "string", "text multiline", "string multiline", "text box", "prompt"],
|
||||
display_name="Text (Multiline)",
|
||||
category="utilities/primitive",
|
||||
essentials_category="Basics",
|
||||
inputs=[io.String.Input("value", multiline=True)],
|
||||
outputs=[io.String.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, value: str) -> io.NodeOutput:
|
||||
return io.NodeOutput(value)
|
||||
|
||||
|
||||
class Int(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="PrimitiveInt",
|
||||
display_name="Int",
|
||||
category="utilities/primitive",
|
||||
inputs=[
|
||||
io.Int.Input("value", min=-sys.maxsize, max=sys.maxsize, control_after_generate=io.ControlAfterGenerate.fixed),
|
||||
],
|
||||
outputs=[io.Int.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, value: int) -> io.NodeOutput:
|
||||
return io.NodeOutput(value)
|
||||
|
||||
|
||||
class Float(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="PrimitiveFloat",
|
||||
display_name="Float",
|
||||
category="utilities/primitive",
|
||||
inputs=[
|
||||
io.Float.Input("value", min=-sys.maxsize, max=sys.maxsize, step=0.1),
|
||||
],
|
||||
outputs=[io.Float.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, value: float) -> io.NodeOutput:
|
||||
return io.NodeOutput(value)
|
||||
|
||||
|
||||
class Boolean(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="PrimitiveBoolean",
|
||||
display_name="Boolean",
|
||||
category="utilities/primitive",
|
||||
inputs=[
|
||||
io.Boolean.Input("value"),
|
||||
],
|
||||
outputs=[io.Boolean.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, value: bool) -> io.NodeOutput:
|
||||
return io.NodeOutput(value)
|
||||
|
||||
|
||||
class PrimitivesExtension(ComfyExtension):
|
||||
@override
|
||||
async def get_node_list(self) -> list[type[io.ComfyNode]]:
|
||||
return [
|
||||
String,
|
||||
StringMultiline,
|
||||
Int,
|
||||
Float,
|
||||
Boolean,
|
||||
]
|
||||
|
||||
async def comfy_entrypoint() -> PrimitivesExtension:
|
||||
return PrimitivesExtension()
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,109 @@
|
||||
// Local GET-only: 34 positions, one MarkdownNote, 55 frozen summaries.
|
||||
import fs from 'node:fs';
|
||||
import assert from 'node:assert/strict';
|
||||
const { chromium } = await import(process.env.PLAYWRIGHT_MODULE || 'playwright');
|
||||
const out='.local-evidence/flux2-restore-document/browser';fs.mkdirSync(out,{recursive:true});
|
||||
const checks=[],requests=[],errors=[],blockedFonts=[],assertionGroups={},interceptions=[];let group='aggregate';
|
||||
function check(condition,label){assert.ok(condition,label);checks.push(label);assertionGroups[group]=(assertionGroups[group]||0)+1;console.log('PASS '+label);}
|
||||
const browser=await chromium.launch({headless:true,executablePath:process.env.BROWSER_EXECUTABLE});
|
||||
try {
|
||||
const page=await browser.newPage({viewport:{width:1440,height:1000}});
|
||||
await page.route('**/*',route=>{
|
||||
const u=new URL(route.request().url());
|
||||
if(u.hostname==='fonts.googleapis.com'){blockedFonts.push(String(u));return route.fulfill({contentType:'text/css',body:''});}
|
||||
if(route.request().method()!=='GET'||u.hostname!=='127.0.0.1'||u.pathname==='/api/view'||(/\.(mp4|png|wav|mp3|webm)$/i.test(u.pathname)&&u.pathname!=='/favicon.png')){errors.push('Forbidden request '+u);return route.abort();}
|
||||
return route.continue();
|
||||
});
|
||||
page.on('request',r=>{if(r.url().includes('/api/'))requests.push({method:r.method(),url:r.url()});});
|
||||
page.on('pageerror',e=>errors.push(e.message));
|
||||
requests.push({method:'GET',url:'http://127.0.0.1:8247/api/workflows'});
|
||||
const records=await(await fetch('http://127.0.0.1:8247/api/workflows')).json();
|
||||
const names=['flux2_klein_图生图_老照片修复','10_flux2_klein_文生图-角色三视图','8_flux2_klein_双图编辑','7_flux2_klein_图生图-动漫转真人','6_flux2-klein+Qwen3.5_转线稿洗图','5_flux2_klein_图生图_扩图','4_flux2_klein_图生图_局部重绘','3_flux2_klein_图生图一致性增强(大雄lora)','3_flux2_klein_图生图一致性增强(小志lora)','2_flux2_klein_图生图','1_flux2_klein_文生图','minimax_music_文生音乐','ace_step_1.5+Qwen3.5_自动歌词音乐生成','ace_step1_5_xl_turbo_8Step极速音乐生成','index-TTS2-情绪控制-音频参考-文本控制-克隆-多人对话','Qwen3-TTS_语音设计+语音克隆','Qwen3-TTS_多角色对话','Llama-cpp+Qwen3.5-提示词','moge3_深度图_几何图_线稿图','Seedvr2_视频放大FOR循环长视频','VOSR2_视频放大_分批循环长视频','视频模型放大插帧(简单快速版)','图像放大比较','VOSR2_图像超分放大','Seedvr2_3b_int8_视频放大','Seedvr2_3b_int8_图像放大','RTX_video_upscale','RTX_image_upscale','手动按分镜视频截取','sam3_图像视频-提示词遮罩分割','多视频合成分屏展示','图像4种添加水印节点','birefnet_图像移除背景','加载本地latent解码','截取视频每一帧','双图像或视频合并显示','视频转gif动图图片','加载图片合成视频','视频倒放','NLF_视频人物动作骨架获取','openpose-video-姿态检测','sdpose_视频人物姿势骨架提取','gemma4_提示词反推(图像视频音频)','图像合并成四宫格','图像分割-多宫格分割','Qwen_image2.1_图像编辑_背景移除','Qwen_image2.1_图像编辑_提示词增强','Qwen_image2.1_文生图_提示词增强','ControlNet_aux_常用样例','Qwen3-ASR-语音转文字','Qwen3-ASR-Subtitle语音转字幕','Minimax-H3提示词增强','音频转MP3格式','音频人声分离','视频-音频分离','图像嵌入文字描述'];
|
||||
const details=[];
|
||||
for(const name of names){const r=records.find(r=>r.name===name);assert.ok(r);const url=`http://127.0.0.1:8247/api/workflows/${r.id}`;requests.push({method:'GET',url});details.push(await(await fetch(url)).json());}
|
||||
check(details.length===56&&details.reduce((n,d)=>n+d.doc_json.fixed_version.fields.length,0)===2155,'56图2155保存位置');
|
||||
check(details.reduce((n,d)=>n+(d.doc_json.source_notes?.length||0),0)===62,'56图62源注释');
|
||||
await page.goto('http://127.0.0.1:5173/connections',{waitUntil:'networkidle'});
|
||||
const dialog=page.getByRole('dialog',{name:'工作流说明'});
|
||||
const fixedCard=dialog.locator('.card').filter({has:page.getByText('固定版本参数说明',{exact:true})});
|
||||
async function begin(name){const row=page.locator('.wf-row').filter({has:page.locator('.wf-name').filter({hasText:name})}).first();const button=row.getByRole('button',{name:'说明',exact:true});await button.focus();await page.keyboard.press('Enter');return button;}
|
||||
async function loaded(){await dialog.getByText('用途与来源',{exact:true}).waitFor();await dialog.evaluate(el=>Promise.all(el.getAnimations().map(a=>a.finished)));}
|
||||
for(const width of [1440,390]){
|
||||
await page.setViewportSize({width,height:width===390?844:1000});
|
||||
for(const d of details){
|
||||
group=details.indexOf(d)<1?'new_restore':'old_fifty_five';const b=d.doc_json.fixed_version,button=await begin(d.name);await loaded();
|
||||
const overview=dialog.locator('.card').filter({has:page.getByText('用途与来源',{exact:true})});
|
||||
check((await overview.innerText()).includes(b.user_overview),`${width} ${d.name}默认中文用途`);
|
||||
check(!(await dialog.getByText('源图与审校记录',{exact:true}).locator('..').evaluate(el=>el.open)),`${width} ${d.name}源审校默认折叠`);
|
||||
check(!(await dialog.getByText('核对范围与来源依据',{exact:true}).locator('..').evaluate(el=>el.open)),`${width} ${d.name}技术范围默认折叠`);
|
||||
const visible=await fixedCard.innerText();
|
||||
check(!visible.includes('执行标量')&&!visible.includes('widgetId')&&!visible.includes(b.source_sha256)&&!visible.includes('UUID'),`${width} ${d.name}默认无执行计数/实现标识`);
|
||||
check(visible.includes('依据固定版本整理,目标环境与实际效果未核对。'),`${width} ${d.name}默认依据限制可见`);
|
||||
for(const t of ['说明未定稿','未验证实跑','未检查'])check((await dialog.innerText()).includes(t),`${width} ${d.name} ${t}`);
|
||||
check(!d.is_enabled&&!d.doc_completed_at&&!d.exec_verified_at,`${width} ${d.name}停用/时间戳空`);
|
||||
check(await fixedCard.locator('summary').filter({hasText:/^节点 [\d:]+ · /}).count()===b.fields.length,`${width} ${d.name}参数全保留`);
|
||||
check(await dialog.locator('.drawer-body').evaluate(el=>el.scrollWidth<=el.clientWidth),`${width} ${d.name}默认无溢出`);
|
||||
await dialog.locator('.drawer-body').evaluate(el=>el.scrollTop=0);
|
||||
if(details.indexOf(d)<1)await page.screenshot({path:`${out}/${width}-${d.id}-default.png`});
|
||||
if(details.indexOf(d)>0){await page.keyboard.press('Escape');await dialog.waitFor({state:'hidden'});check(await button.evaluate(el=>el===document.activeElement),`${width} ${d.name}旧图归还焦点`);continue;}
|
||||
await dialog.getByText('源图与审校记录',{exact:true}).click();
|
||||
check((await overview.innerText()).includes(d.doc_json.purpose)&&(await overview.innerText()).includes(d.source_repo_path),`${width} ${d.name}原用途/源路径展开保留`);
|
||||
await dialog.getByText('核对范围与来源依据',{exact:true}).click();
|
||||
const flowText=await fixedCard.innerText();check(flowText.includes('被连线覆盖 10 项')&&flowText.includes('仅前端控制 3 项'),`${width}准确覆盖与前端位置计数`);
|
||||
for(const line of b.flow)check(flowText.includes(line),`${width} ${d.name}展开流程 ${b.flow.indexOf(line)}`);
|
||||
if(width===1440){await fixedCard.getByText(b.flow[2],{exact:true}).first().evaluate(el=>el.scrollIntoView({block:'center'}));await page.screenshot({path:`${out}/${width}-${d.id}-branch-flow.png`});}
|
||||
await dialog.getByText('版本、源图与连线依据',{exact:true}).click();
|
||||
check((await fixedCard.innerText()).includes(b.source_sha256)&&b.versions.every(v=>(v&&true)),`${width} ${d.name}原件摘要可展开`);
|
||||
const versionText=await fixedCard.innerText();
|
||||
for(const v of b.versions)check(versionText.includes(v),`${width} ${d.name}版本 ${b.versions.indexOf(v)}`);
|
||||
if(details.indexOf(d)<1){
|
||||
for(const f of b.fields){
|
||||
const summary=fixedCard.locator(`details[data-fixed-field="${f.pointer}"] > summary`);await summary.focus();await page.keyboard.press('Enter');const box=summary.locator('..');
|
||||
check(await box.evaluate(el=>el.open),`${width} ${f.node_id}.${f.field}键盘展开`);
|
||||
let text=await box.innerText();const has=value=>text.replace(/\s+/g,' ').includes(value.replace(/\s+/g,' '));check(has(f.effect)&&has(f.limits)&&has(f.schema_default)&&has(f.execution_note)&&has(f.unit),`${width} ${f.node_id}.${f.field}用途/单位/范围/来源条件`);
|
||||
check(await box.locator(':scope > pre').textContent()===(typeof f.value==='string'?f.value:JSON.stringify(f.value,null,2)),`${width} ${f.node_id}.${f.field}精确保留现值`);
|
||||
check(!text.includes(f.pointer),`${width} ${f.node_id}.${f.field}指针默认折叠`);
|
||||
await box.getByText('来源依据',{exact:true}).click();text=await box.innerText();
|
||||
check(text.includes(f.pointer)&&text.includes(f.named_pointer)&&text.includes(f.class_type)&&text.includes(f.json_type)&&f.evidence.every(i=>{const e=b.sources[i];return (!e.commit||text.includes(e.commit))&&text.includes(e.sha256)&&text.includes(e.lines.join('~'));}),`${width} ${f.node_id}.${f.field}精确源码/类型/指针`);
|
||||
check(await dialog.locator('.drawer-body').evaluate(el=>el.scrollWidth<=el.clientWidth),`${width} ${f.node_id}.${f.field}展开无溢出`);
|
||||
if(f.node_id==='147'&&f.field==='round_to_multiple'){
|
||||
await page.screenshot({path:`${out}/${width}-${d.id}-scale-multiple.png`});
|
||||
await box.getByText('来源依据',{exact:true}).evaluate(el=>el.scrollIntoView({block:'start'}));
|
||||
check(await dialog.locator('.drawer-body').evaluate(el=>el.scrollWidth<=el.clientWidth),`${width}准确来源展开无横溢`);
|
||||
await page.screenshot({path:`${out}/${width}-${d.id}-source-citations.png`});
|
||||
}
|
||||
if(f.node_id==='145'){await summary.evaluate(el=>el.scrollIntoView({block:'start'}));await page.screenshot({path:`${out}/${width}-${d.id}-history-source.png`});}
|
||||
if((f.node_id==='152'&&f.field==='value')||(['150:108','150:109'].includes(f.node_id)&&f.field==='text'))await page.screenshot({path:`${out}/${width}-${d.id}-${f.node_id}-${f.field}.png`});
|
||||
await summary.click();
|
||||
}
|
||||
for(const n of b.comments){const summary=dialog.getByText(`节点 ${n.node_id}`,{exact:true});await summary.click();const expected=d.doc_json.source_notes.find(x=>String(x.node_id)===n.node_id);check(await summary.locator('..').locator('pre').textContent()===JSON.stringify(expected.content,null,2),`${width}注释${n.node_id}全文`);check(await dialog.locator('.drawer-body').evaluate(el=>el.scrollWidth<=el.clientWidth),`${width}注释${n.node_id}无溢出`);if(width===390){await summary.evaluate(el=>el.scrollIntoView({block:'start'}));await page.screenshot({path:`${out}/${width}-${d.id}-${n.node_id}-note.png`});}await summary.click();}
|
||||
await dialog.getByRole('button',{name:'关闭',exact:true}).focus();await page.keyboard.press('Tab');check(await dialog.evaluate(el=>el.contains(document.activeElement)),`${width}Tab焦点保留`);await page.keyboard.press('Shift+Tab');check(await dialog.evaluate(el=>el.contains(document.activeElement)),`${width}ShiftTab焦点保留`);
|
||||
}
|
||||
await page.keyboard.press('Escape');await dialog.waitFor({state:'hidden'});check(await button.evaluate(el=>el===document.activeElement),`${width} ${d.name}关闭归还焦点`);
|
||||
}
|
||||
}
|
||||
group='shared_regressions';
|
||||
for(const name of ['旧工作流回退(隔离测试夹具)','空说明回退(隔离测试夹具)']){await begin(name);await loaded();check((await dialog.innerText()).includes('隔离库旧条目回退测试'),'旧/空说明回退 '+name);await page.keyboard.press('Escape');}
|
||||
// Missing summary and mismatched bindings are tested with local GET fixtures, without writes.
|
||||
for(const variant of ['missing-overview','mismatched','html-summary']){
|
||||
const d=structuredClone(details[0]);
|
||||
if(variant==='missing-overview')delete d.doc_json.fixed_version.user_overview;
|
||||
if(variant==='mismatched')d.doc_json.fixed_version={matched:false,notice:'固定版本参数说明待核对:源文件、声明版本或说明依据未匹配,未采用旧定义。'};
|
||||
if(variant==='html-summary')d.doc_json.fixed_version.user_overview='<img src="https://example.invalid/forbidden">仅纯文本';
|
||||
await page.route(`**/api/workflows/${d.id}`,route=>{interceptions.push({variant,url:route.request().url()});return route.fulfill({json:d});});await begin(d.name);await loaded();
|
||||
if(variant==='missing-overview')check((await dialog.innerText()).includes('这张图的用途和操作重点可在下方使用步骤中查看;目标环境与实际效果仍待核对。'),'缺摘要自然中文回退');
|
||||
if(variant==='mismatched')check((await dialog.innerText()).includes(d.doc_json.fixed_version.notice)&&!await dialog.getByText('核对范围与来源依据',{exact:true}).count(),'错绑定提示明确且不展示旧字段');
|
||||
if(variant==='html-summary')check((await dialog.innerText()).includes(d.doc_json.fixed_version.user_overview)&&await dialog.locator('img').count()===0,'摘要HTML仅纯文本不创建图像或请求');
|
||||
check(!(await dialog.innerText()).includes('undefined'),'回退不暴露undefined');await page.keyboard.press('Escape');await page.unroute(`**/api/workflows/${d.id}`);
|
||||
}
|
||||
let release,entered,delivered;const hold=new Promise(r=>release=r),intercept=new Promise(r=>entered=r),done=new Promise(r=>delivered=r);
|
||||
await page.route(`**/api/workflows/${details[0].id}`,async route=>{interceptions.push({variant:"late",url:route.request().url()});entered();await hold;await route.fulfill({json:details[0]});delivered();});
|
||||
await begin(details[0].name);await intercept;await page.keyboard.press('Escape');await begin(details[1].name);await loaded();release();await done;
|
||||
check((await dialog.innerText()).includes(details[1].doc_json.fixed_version.user_overview)&&await fixedCard.locator('summary').filter({hasText:/^节点 [\d:]+ · /}).count()===details[1].doc_json.fixed_version.fields.length,'迟到老照片响应不覆盖旧图摘要/字段');await page.keyboard.press('Escape');await page.unroute(`**/api/workflows/${details[0].id}`);
|
||||
await page.route(`**/api/workflows/${details[0].id}`,route=>{interceptions.push({variant:'failure',url:route.request().url()});return route.fulfill({status:500,json:{detail:'隔离失败夹具'}});});await begin(details[0].name);await dialog.getByRole('alert').waitFor({timeout:20000});check(await dialog.getByRole('button',{name:'重试',exact:true}).isVisible(),'GET失败显示重试');check(await dialog.getByText('用途与来源',{exact:true}).count()===0,'读取失败隐藏旧摘要');await page.unroute(`**/api/workflows/${details[0].id}`);await dialog.getByRole('button',{name:'重试',exact:true}).click();await loaded();check((await dialog.innerText()).includes(details[0].doc_json.fixed_version.user_overview),'重试恢复摘要');await page.keyboard.press('Escape');
|
||||
check(errors.length===0,'无脚本错误或禁止请求 '+JSON.stringify(errors));check(requests.every(r=>r.method==='GET'&&new URL(r.url).hostname==='127.0.0.1'&&!r.url.includes('/api/view')),'全程本地GET无写/生成/目标/历史预览请求');
|
||||
const polling=requests.filter(r=>['/api/jobs','/api/events'].includes(new URL(r.url).pathname));
|
||||
const fixed=requests.filter(r=>!polling.includes(r));
|
||||
const frequencies=rs=>Object.fromEntries([...new Set(rs.map(r=>new URL(r.url).pathname))].sort().map(p=>[p,rs.filter(r=>new URL(r.url).pathname===p).length]));
|
||||
fs.writeFileSync(`${out}/browser-results.json`,JSON.stringify({request_accounting:{fixed_count:fixed.length,fixed_paths:frequencies(fixed),polling_count:polling.length,polling_paths:frequencies(polling),polling_tolerance:1,reason:'定时轮询可因浏览耗时与计时器边界相差±1;固定请求逐条保存,不忽略真实新请求,禁止请求零容忍。'},assertion_count:checks.length,assertionGroups,interceptions,checks,requests,errors,blockedFonts,viewports:[1440,390]},null,2));
|
||||
} finally {await browser.close();}
|
||||
@@ -0,0 +1,95 @@
|
||||
"""Foreground local browser check; stop every owned service before returning."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import signal
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
import urllib.error
|
||||
import urllib.request
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
OUT = ROOT / ".local-evidence/flux2-restore-document/browser"
|
||||
|
||||
|
||||
def main():
|
||||
OUT.mkdir(parents=True, exist_ok=True)
|
||||
# Refuse to reuse another operator's service or port.
|
||||
import socket
|
||||
|
||||
for port in (8247, 5173):
|
||||
with socket.socket() as sock:
|
||||
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||
sock.bind(("127.0.0.1", port))
|
||||
processes = []
|
||||
logs = []
|
||||
try:
|
||||
commands = [
|
||||
([sys.executable, str(ROOT / "e2e/workflow-document-server.py")], ROOT),
|
||||
(
|
||||
["node", "node_modules/vite/bin/vite.js", "--host", "127.0.0.1"],
|
||||
ROOT / "calliope-web",
|
||||
),
|
||||
]
|
||||
for i, (command, cwd) in enumerate(commands):
|
||||
log = (OUT / f"service-{i}.log").open("w")
|
||||
logs.append(log)
|
||||
processes.append(
|
||||
subprocess.Popen(command, cwd=cwd, stdout=log, stderr=log, start_new_session=True)
|
||||
)
|
||||
for url in (
|
||||
"http://127.0.0.1:8247/api/workflows",
|
||||
"http://127.0.0.1:5173/connections",
|
||||
):
|
||||
deadline = time.monotonic() + 30
|
||||
while True:
|
||||
if any(p.poll() is not None for p in processes):
|
||||
raise RuntimeError("Local service exited; inspect service logs")
|
||||
try:
|
||||
with urllib.request.urlopen(url, timeout=1) as response:
|
||||
if response.status == 200:
|
||||
break
|
||||
except (urllib.error.URLError, TimeoutError):
|
||||
pass
|
||||
if time.monotonic() > deadline:
|
||||
raise TimeoutError(url)
|
||||
time.sleep(0.2)
|
||||
names = ["flux2-restore"]
|
||||
for name in names:
|
||||
subprocess.run(["node", f"e2e/{name}-document.mjs"], cwd=ROOT, check=True)
|
||||
finally:
|
||||
for p in processes:
|
||||
if p.poll() is None:
|
||||
os.killpg(p.pid, signal.SIGTERM)
|
||||
try:
|
||||
p.wait(timeout=10)
|
||||
except subprocess.TimeoutExpired:
|
||||
os.killpg(p.pid, signal.SIGKILL)
|
||||
p.wait(timeout=5)
|
||||
for log in logs:
|
||||
log.close()
|
||||
import json
|
||||
|
||||
released = []
|
||||
for port in (8247, 5173):
|
||||
with socket.socket() as sock:
|
||||
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||
sock.bind(("127.0.0.1", port))
|
||||
released.append(port)
|
||||
(OUT / "service-stop.json").write_text(
|
||||
json.dumps(
|
||||
{
|
||||
"ports_released": released,
|
||||
"child_exit_codes": [p.returncode for p in processes],
|
||||
}
|
||||
)
|
||||
+ "\n"
|
||||
)
|
||||
print("All owned browser services stopped; ports released.")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user