HEL-892: record case04 fixed sources and saved-state validation

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
leefer
2026-10-30 01:33:19 +08:00
co-authored by multica-agent
parent 2b6321c538
commit f8e1f79e58
57 changed files with 118599 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
Building source distribution...
Building wheel from source distribution...
Successfully built dist/calliope-1.5.8.tar.gz
Successfully built dist/calliope-1.5.8-py3-none-any.whl
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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,936 @@
{
"cases": [
{
"id": "01",
"source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/ControlNet_aux_常用样例.json",
"state": "pending_check",
"adopted": true,
"api_nodes": 22,
"api_inputs": 57,
"new_api_literal_params": 34,
"field_comparison": {
"unnamed_or_virtual_boundary_unverified": 34,
"link_difference": 9,
"link_equal": 14
},
"source_only_ids": [
"31",
"32",
"24",
"35"
],
"api_only_ids": [],
"named_evidence_differences": [],
"output_map": [
{
"class_type": "PreviewImage",
"kind": "image",
"label": "预览图像",
"nodeId": "3"
},
{
"class_type": "PreviewImage",
"kind": "image",
"label": "预览图像",
"nodeId": "5"
},
{
"class_type": "PreviewImage",
"kind": "image",
"label": "预览图像",
"nodeId": "11"
},
{
"class_type": "PreviewImage",
"kind": "image",
"label": "预览图像",
"nodeId": "13"
},
{
"class_type": "PreviewImage",
"kind": "image",
"label": "预览图像",
"nodeId": "22"
},
{
"class_type": "PreviewImage",
"kind": "image",
"label": "预览图像",
"nodeId": "36"
},
{
"class_type": "PreviewImage",
"kind": "image",
"label": "预览图像",
"nodeId": "37"
}
],
"kind": "image",
"issues": [
{
"code": "companion_unverified",
"message": "采用提供的配套API;源图差异、导出版本与真实执行尚未核验,保持停用"
}
],
"general_conversion_verified": false,
"execution_verified": false,
"evidence_file": "01.json"
},
{
"id": "02",
"source_path": "example_ComfyUI_workflows/1-语音生成/Qwen3-ASR-Subtitle语音转字幕.json",
"state": "pending_check",
"adopted": true,
"api_nodes": 6,
"api_inputs": 21,
"new_api_literal_params": 16,
"field_comparison": {
"link_equal": 5,
"unnamed_or_virtual_boundary_unverified": 15,
"link_difference": 1
},
"source_only_ids": [
"7"
],
"api_only_ids": [],
"named_evidence_differences": [],
"output_map": [],
"kind": "unknown",
"issues": [
{
"code": "companion_unverified",
"message": "采用提供的配套API;源图差异、导出版本与真实执行尚未核验,保持停用"
}
],
"general_conversion_verified": false,
"execution_verified": false,
"evidence_file": "02.json"
},
{
"id": "03",
"source_path": "example_ComfyUI_workflows/2-音乐生成/minimax_music_文生音乐.json",
"state": "pending_check",
"adopted": true,
"api_nodes": 12,
"api_inputs": 40,
"new_api_literal_params": 24,
"field_comparison": {
"named_equal": 16,
"link_difference": 9,
"link_equal": 15
},
"source_only_ids": [
"39",
"40",
"37"
],
"api_only_ids": [],
"named_evidence_differences": [
{
"node_id": "37:6",
"field": "unet_name",
"api_value": "MiniMax/minimax_music3_dit_fp16.safetensors",
"api_type": "str",
"named_evidence": {
"source_value": "minimax_music3_dit_fp16.safetensors",
"source_type": "str",
"status": "different"
},
"source_link": [
55,
-10,
4,
6,
0,
"COMBO"
],
"source_expected": [
"37:-10",
4
],
"status": "link_difference"
},
{
"node_id": "37:13",
"field": "caption",
"api_value": "Global Metadata: Lo-fi hip-hop, chillhop. 78 BPM, D flat major, major scale with jazzy extensions. Laid-back and dreamy throughout, a gentle warm drift with a subtle late-night glow that deepens in the middle and dissolves softly at the end. Studying, raining-outside, headphones-on late-night listening. Bedroom production: muddy warm texture, heavy vinyl crackle, tape hiss and wow-flutter pitch wobble, low-passed dusty mix, soft-clipped drums, everything slightly detuned and cozy.\n\nVocal Details: Soft androgynous vocal, hushed half-sung half-spoken delivery, sitting low in the mix like another instrument, lazy behind-the-beat phrasing, gentle breathy timbre. Sparse murmured double-tracked harmonies, occasional wordless \"mmm\" and \"ooh\" hums drenched in tape delay and warm spring reverb. Long stretches with no vocals at all.\n\nArrangement: Dusty boom-bap drums with a soft thumping kick, cracked snare with lazy swing, brushed hi-hats, low round sub bass. Warm Rhodes piano chords with slow chorus wobble as the harmonic bed, mellow jazzy guitar licks answering the vocal lines, constant vinyl crackle as texture. Intro: rain and vinyl noise, solo Rhodes chords fading in, drums slipping in halfway. Verses: minimal — drums, bass, Rhodes, soft guitar fills between lines. Instrumental sections: guitar and Rhodes trade relaxed jazzy phrases over the beat, occasional muted trumpet ghost notes far in the background. Bridge: drums drop away to rain, crackle, and floating detuned Rhodes, then the beat eases back in. Outro: elements fade one by one until only vinyl crackle and a last unresolved Rhodes chord remain.",
"api_type": "str",
"named_evidence": {
"source_value": "",
"source_type": "str",
"status": "different"
},
"source_link": [
45,
-10,
0,
13,
1,
"STRING"
],
"source_expected": [
"37:-10",
0
],
"status": "link_difference"
},
{
"node_id": "37:13",
"field": "lyrics",
"api_value": "[Intro]\nMmm...\n(rain on the window)\nOoh...\n\n[Verse]\nMidnight and the canvas glows\nDragging little wires where the current flows\nType a quiet dream, let the sampler drift\nNoise into a picture, like the fog just lifts\nTwenty slow steps, I'm in no hurry now\nLatents turning colors and I don't know how\nEvery render's like a polaroid I found\nSoft focus memories, no sound\n\n[Instrumental]\n\n[Verse]\nQueue another frame, let the motion breathe\nPictures start to move like the falling leaves\nVideo drifting by at twenty-four\nLittle animations on my bedroom floor\nSeed after seed like the rain outside\nSome of them are keepers, some I let slide\nSave the ones that feel like a Sunday slow\nNode to node to node... and off we go\n\n[Chorus]\nMmm... let it render on\n(take your time, take your time)\nOoh... by the morning it'll all be done\n(one more queue, one more try)\n\n[Instrumental]\n\n[Bridge]\nRain keeps drawing pictures on the glass...\nMy machine keeps dreaming...\nNeither of us fast...\n\n[Chorus]\nMmm... let it render on\n(take your time, take your time)\nOoh... by the morning it'll all be done\n(one more queue, one more try)\n\n[Instrumental]\n\n[Outro]\nMmm...\n(node to node)\nOoh... goodnight",
"api_type": "str",
"named_evidence": {
"source_value": "",
"source_type": "str",
"status": "different"
},
"source_link": [
46,
-10,
1,
13,
2,
"STRING"
],
"source_expected": [
"37:-10",
1
],
"status": "link_difference"
},
{
"node_id": "37:13",
"field": "seed",
"api_value": [
"37:38",
0
],
"api_type": "list",
"named_evidence": {
"source_value": 222,
"source_type": "int",
"status": "different"
},
"source_link": [
52,
38,
0,
13,
3,
"INT"
],
"source_expected": [
"37:38",
0
],
"status": "link_equal"
},
{
"node_id": "37:3",
"field": "clip_name",
"api_value": "MiniMax/minimax_music3_text_encoder_pruned_int8_convrot.safetensors",
"api_type": "str",
"named_evidence": {
"source_value": "minimax_music3_text_encoder_pruned_int8_convrot.safetensors",
"source_type": "str",
"status": "different"
},
"source_link": [
56,
-10,
5,
3,
0,
"COMBO"
],
"source_expected": [
"37:-10",
5
],
"status": "link_difference"
},
{
"node_id": "37:7",
"field": "vae_name",
"api_value": "MiniMax/minimax_music3_dav.safetensors",
"api_type": "str",
"named_evidence": {
"source_value": "minimax_music3_dav.safetensors",
"source_type": "str",
"status": "different"
},
"source_link": [
57,
-10,
6,
7,
0,
"COMBO"
],
"source_expected": [
"37:-10",
6
],
"status": "link_difference"
},
{
"node_id": "37:15",
"field": "seconds",
"api_value": [
"37:13",
1
],
"api_type": "list",
"named_evidence": {
"source_value": 120,
"source_type": "int",
"status": "different"
},
"source_link": [
20,
13,
1,
15,
0,
"FLOAT"
],
"source_expected": [
"37:13",
1
],
"status": "link_equal"
},
{
"node_id": "37:9",
"field": "seed",
"api_value": [
"37:38",
0
],
"api_type": "list",
"named_evidence": {
"source_value": 1111111112,
"source_type": "int",
"status": "different"
},
"source_link": [
53,
38,
0,
9,
4,
"INT"
],
"source_expected": [
"37:38",
0
],
"status": "link_equal"
},
{
"node_id": "37:38",
"field": "seed",
"api_value": 617970236276137,
"api_type": "int",
"named_evidence": {
"source_value": 0,
"source_type": "int",
"status": "different"
},
"source_link": [
54,
-10,
3,
38,
0,
"INT"
],
"source_expected": [
"37:-10",
3
],
"status": "link_difference"
},
{
"node_id": "37:43",
"field": "switch",
"api_value": true,
"api_type": "bool",
"named_evidence": {
"source_value": false,
"source_type": "bool",
"status": "different"
},
"source_link": [
63,
-10,
7,
43,
2,
"BOOLEAN"
],
"source_expected": [
"37:-10",
7
],
"status": "link_difference"
}
],
"output_map": [],
"kind": "unknown",
"issues": [
{
"code": "companion_unverified",
"message": "采用提供的配套API;源图差异、导出版本与真实执行尚未核验,保持停用"
}
],
"general_conversion_verified": false,
"execution_verified": false,
"evidence_file": "03.json"
},
{
"id": "04",
"source_path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生图_提示词增强.json",
"state": "pending_check",
"adopted": true,
"api_nodes": 16,
"api_inputs": 60,
"new_api_literal_params": 42,
"field_comparison": {
"named_equal": 27,
"link_difference": 20,
"link_equal": 13
},
"source_only_ids": [
"459",
"463",
"468"
],
"api_only_ids": [],
"named_evidence_differences": [
{
"node_id": "459:451",
"field": "unet_name",
"api_value": "Qwen-Image/qwen_image_2.1_bf16.safetensors",
"api_type": "str",
"named_evidence": {
"source_value": "qwen_image_2.1_int8_convrot.safetensors",
"source_type": "str",
"status": "different"
},
"source_link": [
663,
-10,
11,
451,
0,
"COMBO"
],
"source_expected": [
"459:-10",
11
],
"status": "link_difference"
},
{
"node_id": "459:452",
"field": "prompt",
"api_value": [
"459:472",
0
],
"api_type": "list",
"named_evidence": {
"source_value": "",
"source_type": "str",
"status": "different"
},
"source_link": [
687,
472,
0,
452,
3,
"STRING"
],
"source_expected": [
"459:472",
0
],
"status": "link_equal"
},
{
"node_id": "459:456",
"field": "width",
"api_value": [
"13",
0
],
"api_type": "list",
"named_evidence": {
"source_value": 1024,
"source_type": "int",
"status": "different"
},
"source_link": [
660,
-10,
6,
456,
0,
"INT"
],
"source_expected": [
"459:-10",
6
],
"status": "link_difference"
},
{
"node_id": "459:456",
"field": "height",
"api_value": [
"13",
1
],
"api_type": "list",
"named_evidence": {
"source_value": 1024,
"source_type": "int",
"status": "different"
},
"source_link": [
661,
-10,
7,
456,
1,
"INT"
],
"source_expected": [
"459:-10",
7
],
"status": "link_difference"
},
{
"node_id": "459:458",
"field": "seed",
"api_value": 447606998181263,
"api_type": "int",
"named_evidence": {
"source_value": 0,
"source_type": "int",
"status": "different"
},
"source_link": [
667,
-10,
10,
458,
4,
"INT"
],
"source_expected": [
"459:-10",
10
],
"status": "link_difference"
},
{
"node_id": "459:471",
"field": "prompt",
"api_value": [
"483",
0
],
"api_type": "list",
"named_evidence": {
"source_value": "",
"source_type": "str",
"status": "different"
},
"source_link": [
711,
-10,
0,
471,
5,
"STRING"
],
"source_expected": [
"459:-10",
0
],
"status": "link_difference"
},
{
"node_id": "459:471",
"field": "sampling_mode.seed",
"api_value": 447606998181263,
"api_type": "int",
"named_evidence": {
"source_value": 0,
"source_type": "int",
"status": "different"
},
"source_link": [
697,
-10,
10,
471,
13,
"INT"
],
"source_expected": [
"459:-10",
10
],
"status": "link_difference"
},
{
"node_id": "459:473",
"field": "clip_name",
"api_value": "Qwen-Image/qwen3.5_qwen_image_2.1_pe_t2i.int8_convrot.safetensors",
"api_type": "str",
"named_evidence": {
"source_value": "qwen3.5_9b_qwen_image_2.1_pe_t2i.int8_convrot.safetensors",
"source_type": "str",
"status": "different"
},
"source_link": [
696,
-10,
14,
473,
0,
"COMBO"
],
"source_expected": [
"459:-10",
14
],
"status": "link_difference"
},
{
"node_id": "459:474",
"field": "switch",
"api_value": true,
"api_type": "bool",
"named_evidence": {
"source_value": false,
"source_type": "bool",
"status": "different"
},
"source_link": [
688,
-10,
1,
474,
2,
"BOOLEAN"
],
"source_expected": [
"459:-10",
1
],
"status": "link_difference"
}
],
"output_map": [
{
"class_type": "SaveImageAdvanced",
"kind": "image",
"label": "保存图像(高级)",
"nodeId": "461"
}
],
"kind": "image",
"issues": [
{
"code": "companion_unverified",
"message": "采用提供的配套API;源图差异、导出版本与真实执行尚未核验,保持停用"
}
],
"general_conversion_verified": false,
"execution_verified": false,
"evidence_file": "04.json"
},
{
"id": "05",
"source_path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台时间线素材_双采样潜空间放大_多分段拼接.json",
"state": "pending_check",
"adopted": true,
"api_nodes": 16,
"api_inputs": 66,
"new_api_literal_params": 48,
"field_comparison": {
"named_difference": 5,
"named_equal": 43,
"link_equal": 18
},
"source_only_ids": [
"25"
],
"api_only_ids": [],
"named_evidence_differences": [
{
"node_id": "1",
"field": "unet_name",
"api_value": "MiniMax/minimax_h3_ref2va_pruned_int8_convrot.safetensors",
"api_type": "str",
"named_evidence": {
"source_value": "MiniMax\\minimax_h3_ref2va_pruned_int8_convrot.safetensors",
"source_type": "str",
"status": "different"
},
"source_value": "MiniMax\\minimax_h3_ref2va_pruned_int8_convrot.safetensors",
"status": "named_difference"
},
{
"node_id": "2",
"field": "clip_name",
"api_value": "MiniMax/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",
"api_type": "str",
"named_evidence": {
"source_value": "MiniMax\\qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",
"source_type": "str",
"status": "different"
},
"source_value": "MiniMax\\qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",
"status": "named_difference"
},
{
"node_id": "3",
"field": "vae_name",
"api_value": "MiniMax/minimax_h3_video_vae_fp16.safetensors",
"api_type": "str",
"named_evidence": {
"source_value": "MiniMax\\minimax_h3_video_vae_fp16.safetensors",
"source_type": "str",
"status": "different"
},
"source_value": "MiniMax\\minimax_h3_video_vae_fp16.safetensors",
"status": "named_difference"
},
{
"node_id": "4",
"field": "vae_name",
"api_value": "MiniMax/minimax_h3_audio_vae_fp32.safetensors",
"api_type": "str",
"named_evidence": {
"source_value": "MiniMax\\minimax_h3_audio_vae_fp32.safetensors",
"source_type": "str",
"status": "different"
},
"source_value": "MiniMax\\minimax_h3_audio_vae_fp32.safetensors",
"status": "named_difference"
},
{
"node_id": "7",
"field": "width",
"api_value": [
"24",
0
],
"api_type": "list",
"named_evidence": {
"source_value": 1536,
"source_type": "int",
"status": "different"
},
"source_link": [
44,
24,
0,
7,
2,
"INT"
],
"source_expected": [
"24",
0
],
"status": "link_equal"
},
{
"node_id": "7",
"field": "height",
"api_value": [
"24",
1
],
"api_type": "list",
"named_evidence": {
"source_value": 960,
"source_type": "int",
"status": "different"
},
"source_link": [
45,
24,
1,
7,
3,
"INT"
],
"source_expected": [
"24",
1
],
"status": "link_equal"
},
{
"node_id": "21",
"field": "lora_name",
"api_value": "MiniMax/minimax_h3_ref2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors",
"api_type": "str",
"named_evidence": {
"source_value": "MiniMax\\minimax_h3_ref2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors",
"source_type": "str",
"status": "different"
},
"source_value": "MiniMax\\minimax_h3_ref2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors",
"status": "named_difference"
}
],
"output_map": [
{
"class_type": "SaveVideo",
"kind": "video",
"label": "保存视频",
"nodeId": "10"
}
],
"kind": "video",
"issues": [
{
"code": "companion_unverified",
"message": "采用提供的配套API;源图差异、导出版本与真实执行尚未核验,保持停用"
}
],
"general_conversion_verified": false,
"execution_verified": false,
"evidence_file": "05.json"
},
{
"id": "06",
"source_path": "example_ComfyUI_workflows/5-数字人/Wan2.1_I2V_InfiniteTalk_rCM_数字人对口型多动态(KJ版).json",
"state": "user_excluded",
"adopted": false,
"new_api_literal_params": 0,
"exclusion": {
"status": "user_excluded",
"case_id": "06",
"reason": "用户明确排除这一份,不补导、不修补,不作为剩余阻塞",
"decision": {
"issue_id": "01a17910-fd9c-72aa-9e76-331f0cfdf896",
"comment_id": "01a187e6-5df9-7c98-8afe-05fc9baa5b55",
"issue_link": "mention://issue/01a17910-fd9c-72aa-9e76-331f0cfdf896",
"quote": "缺的那份不需要了"
}
},
"historical_row_preserved": false
},
{
"id": "07",
"source_path": "example_ComfyUI_workflows/6-动作迁移/Wan_Animate2_动作迁移_for循环长视频.json",
"state": "pending_check",
"adopted": true,
"api_nodes": 72,
"api_inputs": 251,
"new_api_literal_params": 130,
"field_comparison": {
"unnamed_or_virtual_boundary_unverified": 92,
"link_difference": 57,
"link_equal": 93,
"named_difference": 1,
"named_equal": 7,
"source_node_unresolved": 1
},
"source_only_ids": [
"574",
"575",
"292",
"582",
"291",
"291:78",
"291:77",
"291:90",
"291:80",
"291:290",
"291:96",
"291:79",
"291:97",
"291:416",
"291:417",
"291:571",
"291:572",
"291:573",
"581",
"539",
"600",
"603",
"602",
"604",
"605",
"587",
"597",
"477",
"477:466",
"598",
"261",
"261:241",
"608",
"609",
"540",
"601",
"610",
"606"
],
"api_only_ids": [
"612"
],
"named_evidence_differences": [
{
"node_id": "585",
"field": "video",
"api_value": "抖音20261025-285806.mp4",
"api_type": "str",
"named_evidence": {
"source_value": "1daafaf7f9a12f651c41e56d38bc518f.mp4",
"source_type": "str",
"status": "different"
},
"source_value": "1daafaf7f9a12f651c41e56d38bc518f.mp4",
"status": "named_difference"
}
],
"output_map": [
{
"class_type": "SaveVideo",
"kind": "video",
"label": "保存视频",
"nodeId": "246"
}
],
"kind": "video",
"issues": [
{
"code": "companion_unverified",
"message": "采用提供的配套API;源图差异、导出版本与真实执行尚未核验,保持停用"
}
],
"general_conversion_verified": false,
"execution_verified": false,
"evidence_file": "07.json"
}
],
"adopted": 6,
"user_excluded": 1,
"source_files": 156,
"target_files": 155,
"general_conversion_verified": 0,
"execution_verified": 0,
"new_api_literal_params": 294
}
@@ -0,0 +1,11 @@
{
"total": 155,
"enabled": 0,
"doc_completed": 0,
"exec_verified": 0,
"states": {
"needs_conversion": 139,
"pending_check": 16
},
"user_row_protection": "277 affected tests include existing modified-row protection regression"
}
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
{"batch_id": "945d3aee-5055-4780-a4f1-6774b30b0b9e", "source_commit": "1fc8bdb8bb2a88ccace6f21a507fd77bcf22f532", "counts": {"imported": 155, "user_excluded": 1}, "states": {"pending_check": 16, "needs_conversion": 139}, "source_total": 156, "excluded_total": 1, "target_total": 155, "total": 156, "doc_completed": 0, "exec_verified": 0}
@@ -0,0 +1,821 @@
{
"source_files": 156,
"original_exports": 7,
"files": [
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/ControlNet_aux_常用样例.json",
"sha256": "8898689d777330c4749a079cd762f573bb12a278c47a2fefbd066ffbdc122b6b",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/Minimax-H3提示词增强.json",
"sha256": "ffea53b27d52c63aa9ec9c60144489cc4f9e5a44d9478bcc297be9d9008f1a4c",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"sha256": "a6799c5022c13e46d2b1cf27809cd3c1e1d140a605fa226c19359682751fd036",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
"sha256": "5dbe1a7ab608ba6e9158369ff6498e9bb3f926d151a0ed31cf711c31b167c488",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/NLF_视频人物动作骨架获取.json",
"sha256": "1edc7ae5cca8e059577a9572d296c84e1683695e4f13a72388ff70473795ce97",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json",
"sha256": "43f76f599f15058b6e62ae0dfb105518a37532008eed23ef7118e4950b37a608",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/sdpose_视频人物姿势骨架提取.json",
"sha256": "4586c72d8a906d4a956fb7d62307b81e57e4e345324c7e73f63103e56bfffd14",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"sha256": "f5245d225f77cd64aefe6d0b8bb9342ec48a8a6293a533d65ea7304ce1b03f93",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载本地latent解码.json",
"sha256": "1fd83bd3f2d7950440189932b4c17718190af88daa4a93ac86474081dea9005b",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/双图像或视频合并显示.json",
"sha256": "61a0b1a2aa17a7d8c4f09f4f57e276eaf37227f69b5fc5789193005e593548c9",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"sha256": "2eecd407d667d2ef6249061181edfdcfc417a2151627622f280d74aaac1794d8",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像分割-多宫格分割.json",
"sha256": "aeceb3fd00eb0966eebf8d8c89d90e2ad29d0aa8d02589aa05d52a6c145a4bcc",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像合并成四宫格.json",
"sha256": "fb5e5b346d51a79c19e611b76d39cf4b9491493723684bbb85ab3c49923467bb",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像嵌入文字描述.json",
"sha256": "938ad9ad0eed2253e9a5a9a9dc16dc6b0a22bf976a80af90aa1d0b56e42ba7d3",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json",
"sha256": "3c2f6558c199a7689546dc881df2b26dc31c02715fbc7b32f51caaa4601c13d7",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/截取视频每一帧.json",
"sha256": "43858b9121439a92e7ab35c2fb62b78e56fa93bcd0ad62679f2387f71fdec1fa",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json",
"sha256": "381bb5f3a6e2788d0dd3ee9594a97eaedb153611194d4f8fdde420cf47814132",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/提示词生成与反推/Llama-cpp+Qwen3.5-提示词.json",
"sha256": "9071928ce74d5133401942583603a6bc98873263fbe4c32a438fe73cee81ce90",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/提示词生成与反推/gemma4_提示词反推(图像视频音频).json",
"sha256": "1a94bdd5987955a29e403d128c2ea5ca0b6bc8a8d5ece145e1baba07146588b0",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/深度图/moge3_深度图_几何图_线稿图.json",
"sha256": "a50e8b9961fbdd83fa42ca121ff77b3c1b058c7e454ad374b0de7c60e7b8c4a9",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频-音频分离.json",
"sha256": "4861e3e33291ed962d2215b1d8cc976a4706d19719e3541e9cbb2c636683afc3",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
"sha256": "8c760ea58d7ff664323f92a1174fe88300cd931c00201ccf437df1ad0067cb24",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"sha256": "39f7ddf60bf5958882215bd4227a85707f1f9003f2c5aaefc709a28b1ef16827",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/音频人声分离.json",
"sha256": "3c4bc0f7b1891e298a5d4e00072c6243a61b98d5fc0d86d82a476ecead43a1a2",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/音频转MP3格式.json",
"sha256": "c46e83b4fe8fc291e9de45b4af6cc50b566ab9377a51b50767315917dd13861b",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/RTX_image_upscale.json",
"sha256": "35bf9b7731e6199b5ccc113e31c248573f9ae74d1bb9302071a3a97524fea8c4",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/RTX_video_upscale.json",
"sha256": "ce189e5efdb1d608eaf7f7905f0dbf3776be2c199e143193c226ab497f2eb9ec",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_图像放大.json",
"sha256": "2be6b137efaaf25a54aaedc841a14ff3089afdc8a01a04af6353634b8457393f",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"sha256": "06c427c688c13b87ed5724ac6b1ed432c31f8ea6c44212b3e7596b94128619da",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_视频放大FOR循环长视频.json",
"sha256": "576a9516292ed3e63b50c2a03fbfc1a99f9d643f526dc7fa3b98f6cb9832c893",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/VOSR2_图像超分放大.json",
"sha256": "87484f700a9a18d1bffbc61834af2b489a58171dcb4a225e210e695a30c85dd5",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/VOSR2_视频放大_分批循环长视频.json",
"sha256": "0f55316d2961a293a7d9f77b7993fd6f01bd5a41a4dca58f69f4d0b35c0aa6ea",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
"sha256": "1ca5938a963921b16c96649a97d3b1a9f75d810d3aabcd7ce472a30e5805f3e4",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/视频模型放大插帧(简单快速版).json",
"sha256": "bf47ba2462a3f683fe4f1d742b7dcde81a7a3f95e7e63c021e942a6c4f9ef071",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-ASR-Subtitle语音转字幕.json",
"sha256": "47f9afa955a6a5dce37000cb6a15bac7516d26ff50b6398bda334c825552cfd8",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-ASR-语音转文字.json",
"sha256": "958a3b7cb7070f4207901c79f13863b44ffcd0ed5c2c7fb4cd779e7964da0d65",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
"sha256": "549a6502b3e0d4386323e6e67d6a9b4943b7a01eb59bdbe7adc7a920cfe5b690",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_语音设计+语音克隆.json",
"sha256": "9c75272e418064f46da96f6167448216a9390566e4b5d5e168d8cc5955447ab1",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/1-语音生成/index-TTS2-情绪控制-音频参考-文本控制-克隆-多人对话.json",
"sha256": "d2c469a8a17c6d1fcffb9a96700c38290895873d99c40d13d669bd45f6ea79de",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/2-音乐生成/ace_step1_5_xl_turbo_8Step极速音乐生成.json",
"sha256": "668fae23de5f84cc530fa4cab7381299cbc787b30c4597345b47e7f5c17415ef",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/2-音乐生成/ace_step_1.5+Qwen3.5_自动歌词音乐生成.json",
"sha256": "518085b1e8d12257e68427dcc0f01e6cda5018ec353fd90fdf366afb4fc89b85",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/2-音乐生成/minimax_music_文生音乐.json",
"sha256": "0a655ead5a0da406159dceb46451439df0c02050becaaa25b3018abb41840284",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Anima/Anima_Klein放大_超强动漫模型.json",
"sha256": "000843bc0e46844e556b04fc820ae1b2f7fa9bba1dd0ec21805c0c7ab27a647c",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/10_flux2_klein_文生图-角色三视图.json",
"sha256": "e04e5bd04f03ce32b5221d37c5f7cffb0405b1471cb7be90b47b407d900a49b7",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/1_flux2_klein_文生图.json",
"sha256": "523905ac41323c626d7a156c88d02156cfa4758a70175cd7a3fba2a8c4fd449b",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/2_flux2_klein_图生图.json",
"sha256": "c0472959097f4e785205f41109c941dab26d12a874311834a7dc02c4616bbe9b",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/3_flux2_klein_图生图一致性增强(大雄lora).json",
"sha256": "c6af28d5bd72df5577f1e4d336974397494dd500fff23efd4afe81037514be71",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/3_flux2_klein_图生图一致性增强(小志lora).json",
"sha256": "43995837f89e5112afa74a57180dc356f7b4d4ef9e3a325984a2fc5ca1b7c651",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/4_flux2_klein_图生图_局部重绘.json",
"sha256": "d1d57bd401959975cbe6fd70f97706cec21bbed0a5ec3747447b9f192631f414",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/5_flux2_klein_图生图_扩图.json",
"sha256": "ad8c09e81b07aa7809a7d42f633d0b9069f704187e7a983bc2ac12bc3cbb8507",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/6_flux2-klein+Qwen3.5_转线稿洗图.json",
"sha256": "40a9fee073066914ac610f74dc7f7a49022bda63f5b89560d4bd635094a5c757",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/7_flux2_klein_图生图-动漫转真人.json",
"sha256": "8cab62c6b7b2401bb6b51ff4426aaad2a644fc6cfe49d974769fadf19c16a0a1",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/8_flux2_klein_双图编辑.json",
"sha256": "9d00eb7af7e8d49c54396e6dc2afe7770f99cf75ae765dc1b906c8c9e6b69d83",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein-图生图_人物动作迁移.json",
"sha256": "fc6daf483ac05fdc904ca402271223d14cc217ea4c81a17ba2ef4cae993aefe7",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_人物迁移.json",
"sha256": "81409bdcd546102a7a6d5b7e32578912bf7ad4f89b35718de0401ceed624225e",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_印花提取.json",
"sha256": "8768dec340e35dbd70f928d8bbc34813b2bd45f5c270c405d4495b92da478337",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_老照片修复.json",
"sha256": "922c534d70b85beacc2cd51354552ed1d850dbb611b20f2d6981c4e524ce06c5",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_服装迁移.json",
"sha256": "e3f01ba44f3628297e714b4307ed959758f04e0415093dc5ec690857384a8386",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_Image2.1_图像编辑_VNCCS任意角度-任意姿势.json",
"sha256": "a5a675500a473214eaeb1d25dc1eda83b57bba3a17d18f1f0042bee62b474314",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_一键16张姿势图.json",
"sha256": "248b6c5ae28d5a44035c5ad91bcdfa458360a67598eaa4d195c3fb6853b18a49",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_动漫转真人.json",
"sha256": "1aa1d3641f82533f99d99567c2708919438b9efbfc6623d684a9a88b876b75cd",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_提示词增强.json",
"sha256": "ebf173eb9d871717534a379d451d4a08ca06c3b677b552de12a5d51dbe8febf2",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_深度-姿势-线稿-硬边缘-控图洗图.json",
"sha256": "b6e232082089dd9c4046e0dc5bd1d046907525b8cb01758fb804b5f4aa11275e",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_背景移除.json",
"sha256": "d225102993ad5aa08e619bd7f1e5abbfd54e2d5ac8d8be1eacf09722107c4c9e",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_角色BFS头部迁移.json",
"sha256": "6a9da127ee2bccafeff7499ab3d62f349aec1eff4265cb211bdec578dba1fe7b",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_角色表四视图.json",
"sha256": "0036c02e1ab22f44c94bd9f311d5254d7b3b0cea25211bc4ff1e92cd90e0acdf",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_8步lora加速.json",
"sha256": "172b8fff0b531fbea367e79aa6b5ed1e6b59cab2ce6cb23d324092d5b55a3f97",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_提示词增强(N版).json",
"sha256": "ae6521e5f42bef0b887f754c2fec5961d612afc464fbd98940a976a9795662c6",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_透明背景.json",
"sha256": "5853f21657d56e97a6b625c4487e23473b846fa8c96dc292f3700b3075245a39",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生图_提示词增强.json",
"sha256": "dfe10917d101bf1a8a8c20750f4360690ecd478e9eb33d16a59ea0c6f12c086c",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生图_角色表四视图.json",
"sha256": "6fd307b02b7ba29858723e283580c1cf4ab1fce8804a3ced1f4fc37934965392",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/10_Z_Image双采样+Fluax2-klein修复-高清直出.json",
"sha256": "043cd2abe731996b80637d87b9a799e412e08b9a15e4b7c2f4440fbcff2487b9",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/11_Z_Image_Turbo+模型放大_图像4K高清放大.json",
"sha256": "baaa0cd969a28abe5e6ab19b3d7f6e161468cd15c970fe4bd9922afbe09ab4da",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/12_Z_Image_Tubro_文生图_SeedVR2高清放大8K.json",
"sha256": "8d79bcd44a7843ac5df9fbcd372a6327ba72274260ef463c46ec85709da7846a",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/1_Z-Image-Tubro_文生图.json",
"sha256": "36713b1a3f5c4f2992c7edef2e1e8c3246d44d28ecc750b87f4353a08c3b5ab0",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/2_Z-Image+Base+Turbo+双重采样工作流.json",
"sha256": "27108ae85715b147f63d8640ee032484c70a21633e2c6234eed346079b9aba2c",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/3_Z-Image_文生图(摇光梦幻).app.json",
"sha256": "58e88cacc6e1375cad39023e39eb1728eb36e63acce3c46fca40898d706b1d42",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/4_Z-Image+Qwen3.5-文生图.json",
"sha256": "56bd28b5253fe734e851abd81c7851d00c62e4dbf37a22d97781d93ec367a35d",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/5_Z-Image+Qwen3.5提示词反推_文生图.json",
"sha256": "910317a123e658f26e48ad5cd144d28b7f31e0d43cbdb3ed567048c7917b5c73",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/6_Z-image_局部重绘.json",
"sha256": "f60e734b6ed9e678571ad7666411d6282065c38abe3e9c29ea4c5cc1c3455505",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/7_Z-image+Controlnet_图像扩展.json",
"sha256": "82cda5dca2e224a5b042daecba4c3c1405a825648a9e9ced29fe21e58f7e55f8",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/8_Z-image+Controlnet_姿势控制-洗图.json",
"sha256": "babc1dbeb3bb4981e338d8317ff9fb6fd8c28913bf47a2e2e3eb5409439447bf",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/9_Z-Image+Flux2-Klein_风格重新编辑.json",
"sha256": "3734f261691c3ad13d29b30d88e91f671d9c548f723e77d78651c7155b06c408",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_插图漫画.json",
"sha256": "02ea31b959de72f9b5c00a92f21b4e17bbc2bf5a54495093a204957771a88039",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_照片摄影.json",
"sha256": "740d7d41b3248978dca2046d9a2ea99d3a66ef081d45609782d2847f04f7e0c8",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用a_.json",
"sha256": "e58341a99587077a69baf3cec62d9ae7bb0ce02a87cb3973ce3134c04a119b23",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用b.json",
"sha256": "8d9e66744e0266c5f53a6396e030c38bb90053f2525ac9c3c6cc1b321006a976",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_4_6_8宫格故事板.json",
"sha256": "776b2f92f8906232c2ffe1b25c8b9cfe3398bfe45a9f80715f6ce5acc03e96b4",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_极致写实双采样2k版(N版).json",
"sha256": "50433cee0d5bab60a2cce44d73adbe5fe9b486c039bc89e1caef640fe6e0b28d",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_角色三视图双采样2k版.json",
"sha256": "64bb5eb4e5399d307c12553717b8a1f0046f48b625b16e62d40e962b6bec1847",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2-Edit-Anything2Real_动漫转真人v3.json",
"sha256": "0d482e6c6fac70af6dd5549e8a464ee080a0ec135350d72d32a4ce4a8fd05bbe",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_identity_edit_图像编辑.json",
"sha256": "c208883f17eb873063a4febaef636f0fa065131fc82bc4b0b26eff41f442719a",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图 (N版).json",
"sha256": "935fc592ead1a89614470d41c512e2d7b4a41a6887f71a0a8d8f4c071a60e3c9",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图.json",
"sha256": "6b317af2bda225d9441074ef330669b4537e95c705987223efafd2705dbbc344",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_2万提示词随机模板+4千种风格选择.json",
"sha256": "599bb58d48d68de929e7ec476f77e9f7c736c00235b68570416d214d3b4e391c",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_Qwen3.5自动提示词生成.json",
"sha256": "afafb0e0ebdc445a7534041589b7f6a580e0b15b8293c2fd26907474892f5957",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格2.5D半写实.json",
"sha256": "3faf9b1f0a20c7d21367af1721583a7402f048e18991025f9afff192ff8fe077",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格Image2风格.json",
"sha256": "bf65d0080ab80a5934855a0dbc7a5e167300bb54e24a18e05e4321a70ec838ea",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格线条动漫.json",
"sha256": "9bab028943604b4b167a56dcc51475f67bac897c9eae3c7bf9d311b2c5cb7d91",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_图像风格参考.json",
"sha256": "8c248ccc44df79b475c81e0bb260596ece066d65f2a21c0b2a72dc6b2441b170",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_奇幻现实风格.json",
"sha256": "7a2af26c48114c7f1a7741a5cded07c0cceb68c4e69410de8af6429eb6b5041c",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_极致写实(N版).json",
"sha256": "ec98804940c28956af1719096751bba2d274eef8a251b97207ac655a05779384",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_细节增强.json",
"sha256": "faa28f85fbd80ec9c3aba76749d6447c1d3b4a8489c88853ebde665a4f78ef10",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_美学质量增强.json",
"sha256": "fbca5f24abf71f10ed5e2b90012aab1c25c6632a18541fbf0412b8845f603b85",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_赛博朋克现实风格.json",
"sha256": "a353acdb89b02462abed5f1513acfcb4f538c50ab5bc8ede8e8597f3ce8eea60",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/3-图像生成/肖像大师_美女提示词生成.json",
"sha256": "4ff20f7350813ec74fc054971b4532200d61661951c103c89f7729f89f7be2ff",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_FastH3_i2v_图生视频8步极速.json",
"sha256": "c5eff277eeeeefacb39c4af2e5ac41251785cc18ca90c1678a653367f4dd5942",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_FastH3_t2v_文生图8步极速.json",
"sha256": "ed4a30da03245f35ff9006ac64cd045c1b9c64eb8b585520dbbb418f6793fc78",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_多参考_双采样潜空间放大.json",
"sha256": "8b97388e142ddb67c84f2cbe0bb68c10f519e7615d75f1ea0005580fe4537ab2",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_孤海智能一体化(多合一简化版).json",
"sha256": "827f43d5d9bdb6f2d6f4d8b69e86708e6d08642ed0df04bee15087d10b9a0e35",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台MiniMaxH3_多合一多分段拼接.json",
"sha256": "34fde3a91f9ef932adc2837cc9d4254bf75a3251ad5c6474d90e4085690cbafc",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_双采样多段循环-PV动画尾帧衔接.json",
"sha256": "c8a442bd8cae8dcd75a6a01847ca99b75dcc37ef8ff0a855c82213ed25e943e0",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_双采样潜空间放大.json",
"sha256": "2434bd48e3c29abf9e6ed0931f3c8825481772a134a065f6cfdd3c0b89ba81b7",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_文-图-参考-分段循环-双采放大_多合一.json",
"sha256": "698430e2b234a107b15f1bebf7704833afeea819bd21a3af56f7121daa1383e0",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_文_图_首尾_参考多合一(单采样).json",
"sha256": "526986a02875bbefebeb8a81cce9b58a8e764ab0c0092b2d8e858ecfac771638",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_短剧创作-多宫格分镜参考.json",
"sha256": "d2850f5fb3e5b54e3e4ec9e17f34bdb11bf7009728b5e585c769fb2f11f80275",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_短剧创作-音频参考.json",
"sha256": "c188a7383a6c7a0dbd5d4d0717527b096ec73c1232373ee50c731bceefcfe7fb",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频人物替换.json",
"sha256": "dce57cfc239c9f90cda2107fff5614b2cb0944e0441d9d8137b3f1c325f41a7a",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频参考+多参图-SelfLift双采样潜放大.json",
"sha256": "97ec7f73f32126aa24798fc65736734dfa839b74d25c4b2a94021abe063f06d7",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频参考+多参图.json",
"sha256": "40f92a22aa66c9d87b876784e33b02471339d64504e22e1672155608fbcbf079",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台时间线素材_双采样潜空间放大_多分段拼接.json",
"sha256": "172eb8af3aca70082941427520fdcca06568957bab3d39101c5e9d6641b45e4a",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_音频MV_多参长视频分段_Selflift双采潜放大_Qwen3.8官方Skills自动提示词.json",
"sha256": "bdc93d36fb8a4728dfa8031d1f00782d68e8e6aedd718b166f57e54216f2882f",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_音频数字人_SelfLift双采样潜放大分块_Qwen3.8官方Skills自动提示词.json",
"sha256": "903e32248fc0c53df36c5841f4f4ccdb5fb8190a39c6c9015d3e55a451aaf7eb",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_参考生视频-8步高质量极速版.json",
"sha256": "fae96106a128342a6903bd32680463d1be98c0d5ad738d2fff40fc0f52a35389",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_图生视频-8步高质量极速版.json",
"sha256": "97f188c9295af0dbe6358a4b23117ca1612e812d2fa3df67dd7b10ee68e96fb5",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_文生音视频-8步高质量极速版.json",
"sha256": "5b45b49ebe4402c207e7d894e03a1bb53482b24a0c09ce50d549be4a01f9c6d0",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双采样_潜空间放大_参考生视频.json",
"sha256": "fab48be409cf423aaed7be268c6655ae39ecd1733218413c51874c5ba2ad0bdf",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_r2v_参考生视频_双采样潜空间放大+Qwen3.8官方Skills自动提示词.json",
"sha256": "4c1305fdfe6d5643e64a7b6c99cc92e331ffc9475f30fef5e0119c887367aab0",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_视频动作参考_SelfLift双采样潜放大_Qwen3.8官方Skills自动提示词.json",
"sha256": "2be3981360fff849a53a928a6a2040c97bcf1944dce2df82d716a805c0ef2594",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_音频数字人_单采样.json",
"sha256": "77b665bf6bcd11195f424d42d88f5142b43b0c608af776eef5744aca896f4b56",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_i2v_图生视频.json",
"sha256": "a071e6070ee933396f225b4447c363bbf6b0df059b3cd43da567e81bc7937e84",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_r2v_多参生视频.json",
"sha256": "89166eb9cce4c9177a0f9a0a3a058e140429413e7beb3692e7ee5c30b76bc4fb",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_t2v_文生视频.json",
"sha256": "039d46a5bbb809b84fab3b42c777118f91d0c06835555d54410631742584f1be",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3多参生视频无审核版.json",
"sha256": "e501089f36c4c7f76a9e926e09ab9c467316d0778e62dff4c9e9faa6b155cb83",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3文生视频无审核版.json",
"sha256": "07baed6dd4a259701f7e5563fa1f19799fbbb558668d09a74876db3729fff3a2",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3首尾帧生视频无审核版.json",
"sha256": "d47d3e995858a9c581863a593d89d4f6a24ea04014a1df3faeffa7e07cb19537",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_I2V_InfiniteTalk_rCM_数字人对口型多动态(KJ版).json",
"sha256": "90fb512939d5bbaebfd3462d8edd019ad388611951748e6df09993ddd7f3a36f",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_I2V_InfiniteTalk_提示词调度动作控制图生视频数字人(KJ版).json",
"sha256": "98b4c399948f99aeac9326b4de9638d9a7bc3d718edd2561ab745f6bec12478c",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_infinitetalk_音频驱动视频配音-单人for循环长视频(官流).json",
"sha256": "ebd0c2823b70e5121f9642f781f2d0fa32cda6abe7d4a68fb0eecacc30e92d06",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_infinitetalk_音频驱动视频配音-双人for循环长视频(官流).json",
"sha256": "87412366e6bedd2a2f4490d1a945d0fc005251bb49a20e4ba1157cd6c4ddfbcd",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_SCAIL2_角色迁移_动作迁移_FOR循环长视频.json",
"sha256": "60d7a6c9b1b567d726ffd0981de3d8afb3675f88b320733d8442081d849b0ba8",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_Scail-2_动作迁移_WanAnimatePlus_v4.2.json",
"sha256": "f0da1e6c1eab5706d29d8d12897db0cea0d9d5f7a73b4882cf07ef2a626dda45",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_Scail-2_角色迁移_WanAnimatePlus_v4.2.json",
"sha256": "395dc48ad21d9da6a3a815654922193a9893696015154f53be0cc6f484882637",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.2_Animate_SAM3-人物迁移-动作迁移-长视频循环(KJ流).json",
"sha256": "3ea95e56f193c046937ad246087292865a809d2cc26571357c22fff415295f41",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.2_Animate_人物遮罩替换(官流整理).json",
"sha256": "394c3c31ad05255d3eb130f309d8445764f4d3772b40fa07fbf19708bfcc1002",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan_Animate2_动作迁移_for循环长视频.json",
"sha256": "22b7853e22629822dd354b0b768e2961a53b4c2f480cfaceeaea9dc51c0f0d0b",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/Krea2_t2i_20260818_API.json",
"sha256": "dcf5fad9b464e4154d8ec7ba7af1c21987cb0153c7df747266a02de9f24e1313",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/MiniMax-H3-Turbo-R2V-Extend-2Refs1Vid_API.json",
"sha256": "080a17d7ae079f278518de1af15b880a4404105ec89edbac4fd82cf16097b757",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/krea2_T2I_CharSheetV1_API.json",
"sha256": "6a991229721d0a501846bf0bc55f793d1ab5225be28b2c9eea485fed56ed5b40",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/minimax_h3-Turbo_Image2Video_20260813_API.json",
"sha256": "3d895b01e72c10008c036a9c65fa281b3dfe0d0808417089960fd8f4b56c48ce",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/minimax_h3-Turbo_Text2Video_20260813_API.json",
"sha256": "55c6d0e7fb323e05c3d9373606607e0e8fefb3127cac356b03e29f19b7aaa4ed",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_2ref_API.json",
"sha256": "56ab7cbf2402f94000eb1df2b5415f90f36a2821e68f1c35af17a2d9498e7c49",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_3ref_API.json",
"sha256": "2a687133f175180584ebfc3b4318f29cfcac3a24a0f422e1b9c77e6b16c9862a",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_4ref_API.json",
"sha256": "0b00bfc29ad48f8af3c7b6ebc1dcaa03b809b33c24bc31dadc628289480b154a",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_5ref_API.json",
"sha256": "0b6c1bee6507c2485aa115d3b6c038c6c3dabf1ce8569205f8ece50e58f4e909",
"unchanged": true
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_API.json",
"sha256": "29f440f7123b9ce64e0fda01ee3cdafb7f87408c47c1fe46c2b73f88682eae0c",
"unchanged": true
},
{
"path": "docs/hel-892/supplied-api/01.api.json",
"sha256": "0ed76e088a23af43d6fecbf273fc0a983d7112e2b046d347f715afffac56d57e",
"unchanged": true
},
{
"path": "docs/hel-892/supplied-api/02.api.json",
"sha256": "daa40971b730076691721afe95e165932df94e3423f1fc44dcb7707026e7125b",
"unchanged": true
},
{
"path": "docs/hel-892/supplied-api/03.api.json",
"sha256": "91e6c2cea3747a03bbb71f661dbd016b28040781482b956365ff76a7a8b647ce",
"unchanged": true
},
{
"path": "docs/hel-892/supplied-api/04.api.json",
"sha256": "2066b07b2ca5390ba3e795df6b43934dab83865b12870b6ff26d8c0ef24f091e",
"unchanged": true
},
{
"path": "docs/hel-892/supplied-api/05.api.json",
"sha256": "95a01c1ea27a8279a6dc202820505099a94161d91e0789189b61208b09007af8",
"unchanged": true
},
{
"path": "docs/hel-892/supplied-api/06.api.json",
"sha256": "3e9176a5346ce8b8122b6da10f377fbeb894dc7c2c82a415f85ffc0dbfefc90b",
"unchanged": true
},
{
"path": "docs/hel-892/supplied-api/07.api.json",
"sha256": "b1b4f6a6c02d8d21701943c67b62805b1210fed17e7e26b618c58e112ea1d70d",
"unchanged": true
}
]
}
@@ -0,0 +1,17 @@
[
{
"file": "calliope/comfyui/serialization_reference.py",
"sha256": "ef8b363091d4277876b78adc9ffa9933a6ab49f4a973d864fedc063cab60b449",
"wheel_and_sdist_match": true
},
{
"file": "calliope/comfyui/structure_reference.py",
"sha256": "254fefd48b12228a3d20c65fcb35c2c208c54e0054a00b55850c148aa1b78858",
"wheel_and_sdist_match": true
},
{
"file": "calliope/comfyui/ui2api.py",
"sha256": "0b21702594f3c671cd71f0224c8974123c7b221ae73dd4f4f733276416fa943f",
"wheel_and_sdist_match": true
}
]
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
@@ -0,0 +1,12 @@
[
{
"profile": "aux",
"all_six_case_results_equal_to_previous_evidence": true,
"new_metadata_key_ignored": "serialization_stage=None"
},
{
"profile": "promoted",
"all_six_case_results_equal_to_previous_evidence": true,
"new_metadata_key_ignored": "serialization_stage=None"
}
]
@@ -0,0 +1 @@
{"batch_id": "fa1b9132-9a9e-4a51-b331-e9dc95b4a6cf", "source_commit": "1fc8bdb8bb2a88ccace6f21a507fd77bcf22f532", "counts": {"skipped": 155, "user_excluded": 1}, "states": {"pending_check": 16, "needs_conversion": 139}, "source_total": 156, "excluded_total": 1, "target_total": 155, "total": 156, "doc_completed": 0, "exec_verified": 0}
@@ -0,0 +1,155 @@
{
"authority": "public_reference_only",
"sources_verified": [
{
"id": "1.37.11:src/renderer/extensions/vueNodes/widgets/composables/useMarkdownWidget.ts",
"sha256": "d51c760e6dbfedad73d86bd4836620130bc4f482a150fe1a9b9d3ad446da7543"
},
{
"id": "1.48.7:src/stores/widgetValueStore.ts",
"sha256": "c2aa35433b597a922a86ff4880d2f00647c73cced7183611780013a121354b52"
},
{
"id": "1.48.7:src/types/widgetId.ts",
"sha256": "7730cccc80b6436ce0316f589f11d71c459a128d44459473da274174134beb35"
},
{
"id": "1.48.7:src/lib/litegraph/src/subgraph/SubgraphInput.ts",
"sha256": "f7683d58aa9e30a8a52448ad3771a6cf8550ac455eb4595f68b4a115be7bc4c5"
},
{
"id": "1.48.7:src/lib/litegraph/src/LGraphNode.ts",
"sha256": "7d312ebe5182c4c69d45b5d5e4434dfd42405f72455310886acded76ce1d60ed"
},
{
"id": "1.53.6:src/stores/widgetValueStore.ts",
"sha256": "ecf18bbc714070a7e67a00599ae09b711d1b6eebf5675dd7a6d56ef6d3a3e40a"
},
{
"id": "1.53.6:src/types/widgetId.ts",
"sha256": "a803a0701d0f8f29e6af3e44519c8a6e8f6a45704416bc48cca56ea67bcc16af"
},
{
"id": "1.53.6:src/lib/litegraph/src/subgraph/SubgraphInput.ts",
"sha256": "a729607feeae4afebbd9c25ada167987dd31984b9e7c1b378e9bccd0de124660"
},
{
"id": "1.53.6:src/lib/litegraph/src/LGraphNode.ts",
"sha256": "01f7e784e32acef112a4b91d94f33253d7a898acc4796c8ab014500c1cd8d682"
},
{
"id": "1.53.6:src/lib/litegraph/src/subgraph/promotedWidgetStoreProjection.ts",
"sha256": "2caccfda18d4715e1a4d77ce5026db3170d03b590dbe1ec15c41a47b9ea568c6"
},
{
"id": "0.31.0:LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
},
{
"id": "0.31.0:nodes.py",
"sha256": "aa7e2a87bb7c1b43273736eef9fcf4811cb55497c5bde2e201135b244b97431a"
},
{
"id": "0.31.0:comfy_extras/nodes_qwen.py",
"sha256": "b8d18d9f897c4bd5a4b2651b30643bed277f1808e033c9c376dc21025fed00a5"
},
{
"id": "0.38.0:LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
},
{
"id": "0.38.0:nodes.py",
"sha256": "fe624b0c1b6a3cd124a2214e5700b61337589144c2f0668900a04f8ccc031e38"
},
{
"id": "0.38.0:comfy_extras/nodes_minimax_music.py",
"sha256": "ff0c9d6dfcd63b76fea0bf52026ee408272dc7a1ffc43fa6ced2097608e25af5"
},
{
"id": "0.38.0:comfy_extras/nodes_qwen.py",
"sha256": "54ce02aa9e167c0b497ce026ac6b558f539427d2d1ed4fc1fcc2ec8e6bc529da"
},
{
"id": "0.31.0:comfy_extras/nodes_logic.py",
"sha256": "2cb1ce149ce616c0b12a67962ed7b799eb398fbcdeb20dcec4c5210eb6af6df1"
},
{
"id": "0.31.0:comfy_extras/nodes_primitive.py",
"sha256": "ee3882214ebdd0d20c8061691075cebb1642c303e162f6d22ae525d75aa59b2d"
},
{
"id": "0.31.0:comfy_extras/nodes_textgen.py",
"sha256": "b328e8a2dc89cfd3a93ab49c1be880a3e89ec4521eef506823753617c86c99e9"
},
{
"id": "0.38.0:comfy_extras/nodes_logic.py",
"sha256": "6a146d3a814e37c65c9e749c2fde6d8f0ea8c1fc3f215cb249009e87303908bf"
},
{
"id": "0.38.0:comfy_extras/nodes_primitive.py",
"sha256": "329963dd20fbf8985539b7b990780291f4b82ee9cfd42b96b571288b77eaa47a"
},
{
"id": "0.38.0:comfy_extras/nodes_textgen.py",
"sha256": "ce41b40babe829cf8773aee3c3e43079f91205db921f6d964685e5fb0e5d7f54"
},
{
"id": "1.48.7:src/renderer/extensions/vueNodes/widgets/composables/useStringWidget.ts",
"sha256": "9d015f423d90ac563f55c9f92d016948ac0e4496d660f6020bced8fa0e0d43a6"
},
{
"id": "1.48.7:src/renderer/extensions/vueNodes/widgets/composables/useBooleanWidget.ts",
"sha256": "36f477f75561e0c7bfc2c6757906724f8ff2c8660ace26759f3f07493877fece"
},
{
"id": "1.48.7:src/renderer/extensions/vueNodes/widgets/composables/useIntWidget.ts",
"sha256": "8720d5a8194c9987eddbb42d0e925bcbb20e96e94f52c5f21750ba90b2113e02"
},
{
"id": "1.48.7:src/renderer/extensions/vueNodes/widgets/composables/useFloatWidget.ts",
"sha256": "8485d1edc17e911e65e38055e704045245f2de8310a54b87d429e7ed111accef"
},
{
"id": "1.48.7:src/extensions/core/dynamicPrompts.ts",
"sha256": "31004dc7ba9b8ea5c8caa92ab3a15a0e63af8a822f57cb487079aad84d06f4bd"
},
{
"id": "1.53.6:src/renderer/extensions/vueNodes/widgets/composables/useStringWidget.ts",
"sha256": "9d015f423d90ac563f55c9f92d016948ac0e4496d660f6020bced8fa0e0d43a6"
},
{
"id": "1.53.6:src/renderer/extensions/vueNodes/widgets/composables/useBooleanWidget.ts",
"sha256": "36f477f75561e0c7bfc2c6757906724f8ff2c8660ace26759f3f07493877fece"
},
{
"id": "1.53.6:src/renderer/extensions/vueNodes/widgets/composables/useIntWidget.ts",
"sha256": "8720d5a8194c9987eddbb42d0e925bcbb20e96e94f52c5f21750ba90b2113e02"
},
{
"id": "1.53.6:src/renderer/extensions/vueNodes/widgets/composables/useFloatWidget.ts",
"sha256": "8485d1edc17e911e65e38055e704045245f2de8310a54b87d429e7ed111accef"
},
{
"id": "1.53.6:src/extensions/core/dynamicPrompts.ts",
"sha256": "31004dc7ba9b8ea5c8caa92ab3a15a0e63af8a822f57cb487079aad84d06f4bd"
},
{
"id": "1.48.7:src/renderer/extensions/vueNodes/widgets/composables/useComboWidget.ts",
"sha256": "4f2621d7b7ce770e2592ba0aad7b786a51de9d6d1e1cdc3efd51f79b22009c91"
},
{
"id": "1.48.7:src/scripts/widgets.ts",
"sha256": "ecdcd4a6acade9718598aa93fa87901997e0befdcc7ffdc16a55a2de519871d2"
},
{
"id": "1.53.6:src/renderer/extensions/vueNodes/widgets/composables/useComboWidget.ts",
"sha256": "1790b25076266242dc7e61e14e3496c80476317dbe4acad6635063b638f79065"
},
{
"id": "1.53.6:src/scripts/widgets.ts",
"sha256": "932a143a1a48c93aa3bee43b6dc3f932cd7f9a946802530650b4acdd41d36bd5"
}
],
"upstream_code_executed": false,
"target_version_match": "unknown"
}
@@ -0,0 +1,203 @@
{
"authority": "public_reference_only",
"sources_verified": [
{
"id": "1.37.11:LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
},
{
"id": "1.37.11:src/extensions/core/widgetInputs.ts",
"sha256": "488d38eb209816778a6da8cb8f734f539e3fbd7f77aae41ec649a52b8764b613"
},
{
"id": "1.37.11:src/utils/executionUtil.ts",
"sha256": "4e51bc54e35cb7ac9bb7cba418a74ccdd5974f640b9b088aa4ae7668f746ab36"
},
{
"id": "1.37.11:src/lib/litegraph/src/subgraph/ExecutableNodeDTO.ts",
"sha256": "fd2e19a6b8f4369e6e97d79f407cc1bec130feec9d6d3c979cc03b0a556f249f"
},
{
"id": "1.37.11:src/lib/litegraph/src/subgraph/Subgraph.ts",
"sha256": "321403ca3ba2faa0b448dec6e8bf379e49ddea4bfbe8619547d29926e30d62d2"
},
{
"id": "1.37.11:src/lib/litegraph/src/subgraph/SubgraphNode.ts",
"sha256": "d4f1017495158a6133ff770441a4d517dfbf2a328ba42b0405f8729853fe8209"
},
{
"id": "1.37.11:src/lib/litegraph/src/LLink.ts",
"sha256": "1d58845322b30f122aeafb23ca286ca7349ca23215469f96afb7a98fd6596af4"
},
{
"id": "1.48.7:LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
},
{
"id": "1.48.7:src/extensions/core/widgetInputs.ts",
"sha256": "fdceceedc727e8a696f273a810fc39a075004a09ea793e0df51418f96ac52a61"
},
{
"id": "1.48.7:src/utils/executionUtil.ts",
"sha256": "264e11395f28880603e7f9fe36d2e61c74cd59d6d88be990225cce8510e3f816"
},
{
"id": "1.48.7:src/lib/litegraph/src/subgraph/ExecutableNodeDTO.ts",
"sha256": "64baa71b46bd67440b032e18e4d9aebb67a6cc135fe7c4509ae1b5bc25acc2a3"
},
{
"id": "1.48.7:src/lib/litegraph/src/subgraph/Subgraph.ts",
"sha256": "321403ca3ba2faa0b448dec6e8bf379e49ddea4bfbe8619547d29926e30d62d2"
},
{
"id": "1.48.7:src/lib/litegraph/src/subgraph/SubgraphNode.ts",
"sha256": "822b0cdde3fe6a096f82310075a6285ae967dc58d760f19d743442ea20f4f15f"
},
{
"id": "1.48.7:src/lib/litegraph/src/LLink.ts",
"sha256": "9e9c92acacd5edc58a9c1ad2b3ba66679f27ebda28da74765947d88ce11df656"
},
{
"id": "1.53.6:LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
},
{
"id": "1.53.6:src/extensions/core/widgetInputs.ts",
"sha256": "f6b3d33b9ffdf4f68136ee0f72d03dabf4affa3292721d1f221b47de792e0daf"
},
{
"id": "1.53.6:src/utils/executionUtil.ts",
"sha256": "b29fd312e66c7415fa4c720654ac121dc67600b0c1fedf079b6575a174960698"
},
{
"id": "1.53.6:src/lib/litegraph/src/subgraph/ExecutableNodeDTO.ts",
"sha256": "0c0ca487822a9f86324925c2fb4ea59c6c032ad5d042a83ac367cb15196454fe"
},
{
"id": "1.53.6:src/lib/litegraph/src/subgraph/Subgraph.ts",
"sha256": "321403ca3ba2faa0b448dec6e8bf379e49ddea4bfbe8619547d29926e30d62d2"
},
{
"id": "1.53.6:src/lib/litegraph/src/subgraph/SubgraphNode.ts",
"sha256": "29f2da27396bcc426180d819549f654278d65de973ade651d57c4905e319fb9c"
},
{
"id": "1.53.6:src/lib/litegraph/src/LLink.ts",
"sha256": "562694d5bccb5682222c500a7e7069501eeb94e69eeb1b9a534d1e511902ef57"
},
{
"id": "1.48.6:LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
},
{
"id": "1.48.6:src/extensions/core/widgetInputs.ts",
"sha256": "fdceceedc727e8a696f273a810fc39a075004a09ea793e0df51418f96ac52a61"
},
{
"id": "1.48.6:src/utils/executionUtil.ts",
"sha256": "264e11395f28880603e7f9fe36d2e61c74cd59d6d88be990225cce8510e3f816"
},
{
"id": "1.48.6:src/lib/litegraph/src/subgraph/ExecutableNodeDTO.ts",
"sha256": "64baa71b46bd67440b032e18e4d9aebb67a6cc135fe7c4509ae1b5bc25acc2a3"
},
{
"id": "1.48.6:src/lib/litegraph/src/subgraph/Subgraph.ts",
"sha256": "321403ca3ba2faa0b448dec6e8bf379e49ddea4bfbe8619547d29926e30d62d2"
},
{
"id": "1.48.6:src/lib/litegraph/src/subgraph/SubgraphNode.ts",
"sha256": "822b0cdde3fe6a096f82310075a6285ae967dc58d760f19d743442ea20f4f15f"
},
{
"id": "1.48.6:src/lib/litegraph/src/LLink.ts",
"sha256": "9e9c92acacd5edc58a9c1ad2b3ba66679f27ebda28da74765947d88ce11df656"
},
{
"id": "Comfy-Org/ComfyUI_frontend:src/extensions/core/previewAny.ts",
"sha256": "2b19989ac8a3c26e198c7db7f7e2210936b0a4f4d3b26183917baafb841c1874"
},
{
"id": "Comfy-Org/ComfyUI_frontend:src/extensions/core/uploadAudio.ts",
"sha256": "0a11f1ad5651d238130bc06aca2a4b31a41f8bec98d0f8512e02ffb42b262e66"
},
{
"id": "Comfy-Org/ComfyUI_frontend:src/scripts/widgets.ts",
"sha256": "e8bb428cbf69635015de43a4ebc89817b3443f876cbed52eeafe67d26f2398d8"
},
{
"id": "Comfy-Org/ComfyUI_frontend:src/scripts/app.ts",
"sha256": "e57985f7d365abb035bc2fc755a8f5b10efbca97a7dcb5b2a4a05bcbc78b9d5c"
},
{
"id": "1038lab/ComfyUI-QwenASR:AILab_QwenASR.py",
"sha256": "f8cda2d0d39517f93ace1a73263146a4bea59a02604e58919a05393c45ade6b7"
},
{
"id": "1038lab/ComfyUI-QwenASR:__init__.py",
"sha256": "0919008142c12f8fe9a12671a1ca1de548ded128dd7287a13f6230d9729b47c2"
},
{
"id": "Comfy-Org/ComfyUI:LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
},
{
"id": "Comfy-Org/ComfyUI:comfy_extras/nodes_audio.py",
"sha256": "d47eefe226c273f20561545f6a664bfdfa5c193cec7178c925b5dc5ccb642a9c"
},
{
"id": "Comfy-Org/ComfyUI:comfy_extras/nodes_preview_any.py",
"sha256": "f8c526dbc4ec512f88a067524865f59eb24db636858f37d601e848885b2d0751"
},
{
"id": "qwen-history:aaf40688c93c8e083f8a47d9107e6f95405ea7c9",
"sha256": "f8cda2d0d39517f93ace1a73263146a4bea59a02604e58919a05393c45ade6b7"
},
{
"id": "qwen-history:b037d7be121111a1ba6f40a4d99f6b43ac6411b6",
"sha256": "af7721c1015fef8cb40a724226fb0f720397d70fb1ce367f9145a3b653dd0cd9"
},
{
"id": "Comfy-Org/ComfyUI_frontend:src/utils/nodeDefUtil.ts",
"sha256": "9c62901804e584a2e9d7e17e7914475113e41993c44df3d063f0027e95735dc1"
},
{
"id": "Comfy-Org/ComfyUI_frontend:src/renderer/extensions/vueNodes/widgets/composables/useStringWidget.ts",
"sha256": "b734a2584d558de501150e8011e1c16031f33778c2cd3b4c712f296ce4f05396"
},
{
"id": "Comfy-Org/ComfyUI_frontend:packages/shared-frontend-utils/src/formatUtil.ts",
"sha256": "7313418fe3a92aae99f2ef91f081257c2b2162b1578155d7346f2f03ab440039"
},
{
"id": "Comfy-Org/ComfyUI_frontend:src/scripts/domWidget.ts",
"sha256": "34ec3c58d6b236f4e99bfa0c82dcab8e15c6a6b51c6dcb9ace30e37d1a395800"
},
{
"id": "Comfy-Org/ComfyUI_frontend:src/lib/litegraph/src/LGraphNode.ts",
"sha256": "706225a8a06cd7929f9e04fe2388bcdb8f158cdac756c65c45657c020ab7b319"
},
{
"id": "1038lab/ComfyUI-QwenASR:LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
},
{
"id": "1038lab/ComfyUI-QwenASR:__init__.py",
"sha256": "e35f18c3986ee7b00a918ed644e375bc7cee1b88f740cc52fd93b45ace621a41"
},
{
"id": "ComfyUI_frontend:src/lib/litegraph/src/widgets/BaseWidget.ts",
"sha256": "6a77b402bbf8c67b9ea2ce58de28c61a1b17da82bb437c29565fb260b721b8c7"
},
{
"id": "ComfyUI_frontend:src/lib/litegraph/src/widgets/LegacyWidget.ts",
"sha256": "05d098254988191736f1c72f7efc57e3f350d97c82267a97f0b8c193d65daa96"
},
{
"id": "ComfyUI_frontend:src/renderer/extensions/vueNodes/widgets/composables/useBooleanWidget.ts",
"sha256": "36f477f75561e0c7bfc2c6757906724f8ff2c8660ace26759f3f07493877fece"
}
],
"upstream_code_executed": false,
"target_version_match": "unknown"
}
@@ -0,0 +1 @@
All checks passed!
@@ -0,0 +1 @@
5 files already formatted
File diff suppressed because one or more lines are too long
@@ -0,0 +1,111 @@
{
"authority": "public_reference_only",
"sources_verified": [
{
"id": "0.38.0:comfy_extras/nodes_resolution.py",
"sha256": "3fe5c3f9aeceed343725a91c6feaa13377b5ebad2c95fd633e3806d69d10bcc8"
},
{
"id": "0.38.0:comfy_extras/nodes_images.py",
"sha256": "f8e171f428e2e81de8d7b1cd582ac4ac82cd7ae5a3c947f118ecf85df920bf50"
},
{
"id": "0.38.0:comfy_extras/nodes_preview_any.py",
"sha256": "48cffa3b2ddd08c311af609642da8703abc9bac9e624c400c3dc41f6edcea930"
},
{
"id": "0.38.0:comfy_api/latest/_io.py",
"sha256": "e697ed00732deffb46d7a017d82dae48ee2504a8d356f911a1447ec6146294f7"
},
{
"id": "0.38.0:comfy_api/latest/_io_public.py",
"sha256": "c805d754d61aba1ea72ed2d9d5c371de35be9affa5305d35426fb298fcb7c046"
},
{
"id": "0.38.0:comfy/samplers.py",
"sha256": "f2c264ca9d394612f828e3ffe167c856a278a10e1711b269f0ba65dccb66393f"
},
{
"id": "1.53.6:src/scripts/valueControl.ts",
"sha256": "007c7204d1fe88d156e07fee783a55e79fa7610e98a8a9f7761704a076a60458"
},
{
"id": "1.53.6:src/scripts/app.ts",
"sha256": "ba650ea75b14affbdd1fbf4d821679d29dde59bd09986666a4734c8a160f7027"
},
{
"id": "1.53.6:src/renderer/extensions/vueNodes/widgets/composables/useResolutionPreviewWidget.ts",
"sha256": "4316e8869b8673488ea9b136dbd4027160626c53cab9372fa1ca7aab059cf124"
},
{
"id": "1.53.6:src/extensions/core/previewAny.ts",
"sha256": "da8f4361b054d8619c09b4abaae1c2c464d6c8927968e60f18e61b467d2a3366"
},
{
"id": "1.53.6:src/core/graph/widgets/dynamicWidgets.ts",
"sha256": "35cbe6eae6470bdd9aa45f17000ba444dce21597fdb8edf54da43ffb840936c1"
},
{
"id": "1.53.6:src/schemas/nodeDef/migration.ts",
"sha256": "ae357da184625b93c492c0b73ce9bd2f3b49d158ca19a2944c6500f924a7a533"
},
{
"id": "1.53.6:src/renderer/extensions/vueNodes/widgets/composables/useIntWidget.ts",
"sha256": "8720d5a8194c9987eddbb42d0e925bcbb20e96e94f52c5f21750ba90b2113e02"
},
{
"id": "1.53.6:src/renderer/extensions/vueNodes/widgets/composables/useStringWidget.ts",
"sha256": "9d015f423d90ac563f55c9f92d016948ac0e4496d660f6020bced8fa0e0d43a6"
},
{
"id": "1.53.6:src/scripts/promotedWidgetControl.ts",
"sha256": "30b0703305b8c3f921be3e700d9a1406f5721a7d5f8a8d1be56c8964e32743a4"
},
{
"id": "1.53.6:src/extensions/core/textPreviewWidgets.ts",
"sha256": "453e4c11c902e84dc9950475f8439d4364d0244bfe370c4b74770b84c2592a75"
},
{
"id": "1.53.6:src/services/litegraphService.ts",
"sha256": "84ffdeae56bc73065fd2a44ae924b6ab4fd48bb7e79a710210e858cce508784e"
},
{
"id": "1.53.6:packages/shared-frontend-utils/src/formatUtil.ts",
"sha256": "939faea5d135ce2aeb78c4dc92232de7e4836ab90d9fb61a804a457bbc910253"
},
{
"id": "1.53.6:src/extensions/core/saveImageExtraOutput.ts",
"sha256": "2115ffeb31f3099e0e97b46304b802653c1ba58ad746323d1b094a1605265682"
},
{
"id": "1.53.6:src/extensions/core/uploadImage.ts",
"sha256": "48d062c2ee95bd77c537c539e6c8f8bc03bd71dcec94c5b82487c014ea3e9c06"
},
{
"id": "1.53.6:src/utils/searchAndReplace.ts",
"sha256": "c7462edebf266b8b8cc62954a371ca3ec3fd1ee4c188e1b80a675003b49887d4"
},
{
"id": "1.53.6:src/core/graph/subgraph/promotedInputWidget.ts",
"sha256": "9d785e3515e0cfc84cbfbdaf33dc00cd668b243fcab9739a66c1954c22e15936"
},
{
"id": "1.53.6:src/core/graph/subgraph/resolveConcretePromotedWidget.ts",
"sha256": "9833f86c3533518ed6ce2085a38afc8039cf903e4729bb10572551bd148a317d"
},
{
"id": "0.38.0:comfy_api/internal/__init__.py",
"sha256": "50786f7e2ebc910ed9becddf066e92d7924b7f6080189651067bbcd839e8a410"
},
{
"id": "1.53.6:src/core/graph/subgraph/resolveSubgraphInputTarget.ts",
"sha256": "11395e93cf9199ea2a7a9f097306e01434a43d6a9df2c0db773170c5ecd85451"
},
{
"id": "1.53.6:src/core/graph/subgraph/resolveSubgraphInputLink.ts",
"sha256": "20fe9c7dd9a30f316e8b903df53db693434f0827187286a4dfb6a7f4c7fff6f7"
}
],
"upstream_code_executed": false,
"target_version_match": "unknown"
}
+46
View File
@@ -0,0 +1,46 @@
{
"increment_base": "572304aa4a7e63097bebbff16ce06770e61c0eec",
"tested_code_head": "2b6321c5385477cd96f3bb81e1168ae8b3d48f66",
"code_file_sha256": {
"calliope-backend/scripts/audit_reference_conversion.py": "6d2b74c80446c7f9ce630cfa5e4ba248ec4684fa7f59ccd2e84aa00056804355",
"calliope-backend/src/calliope/comfyui/serialization_reference.py": "ef8b363091d4277876b78adc9ffa9933a6ab49f4a973d864fedc063cab60b449",
"calliope-backend/src/calliope/comfyui/structure_reference.py": "254fefd48b12228a3d20c65fcb35c2c208c54e0054a00b55850c148aa1b78858",
"calliope-backend/src/calliope/comfyui/ui2api.py": "0b21702594f3c671cd71f0224c8974123c7b221ae73dd4f4f733276416fa943f",
"calliope-backend/tests/test_case04_saved_reference.py": "621512e031ec4d64f028880bea9eb8fff49f8f05d101966789bb2f9830cb64a7"
},
"tests": {
"passed": 277,
"failed": 0,
"new_specialized": 61,
"third_party_warnings": 1,
"suite": "affected only, not full backend"
},
"case04": {
"nodes": 16,
"scalars": 42,
"links": 18,
"resolved_boundaries": 15,
"unresolved_boundaries": [],
"unsupported_widget_nodes": [],
"full_json_differences": 16,
"title_differences": 14,
"value_pointers_verified": 46,
"serialization_stage": "restored_saved_state_before_queue_hooks",
"queue_hooks_simulated": false,
"target_version_match": "unknown"
},
"source_refetch_count": 26,
"reused_local_hashes": {
"promoted": 37,
"structure": 49
},
"production_import_eligibility_relaxed": false,
"full_goal_completed": false,
"execution_verified": false,
"remaining": "145 UI general reliable conversions; 155 complete docs and necessary actual executions; case03 0.31.0 contract unknown; case07 unchanged rejection; case06 excluded",
"historical_only": [
"216",
"178",
"865 passed / 5 baseline failed / 6 skipped"
]
}
+11
View File
@@ -0,0 +1,11 @@
........................................................................ [ 25%]
........................................................................ [ 51%]
........................................................................ [ 77%]
............................................................. [100%]
=============================== warnings summary ===============================
.venv/lib/python3.12/site-packages/starlette/testclient.py:53
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-cccb92c55a6d/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
277 passed, 1 warning in 8.51s
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,150 @@
# Internal infrastructure for ComfyAPI
from .api_registry import (
ComfyAPIBase as ComfyAPIBase,
ComfyAPIWithVersion as ComfyAPIWithVersion,
register_versions as register_versions,
get_all_versions as get_all_versions,
)
import asyncio
from dataclasses import asdict
from typing import Callable, Optional
def first_real_override(cls: type, name: str, *, base: type=None) -> Optional[Callable]:
"""Return the *callable* override of `name` visible on `cls`, or None if every
implementation up to (and including) `base` is the placeholder defined on `base`.
If base is not provided, it will assume cls has a GET_BASE_CLASS
"""
if base is None:
if not hasattr(cls, "GET_BASE_CLASS"):
raise ValueError("base is required if cls does not have a GET_BASE_CLASS; is this a valid ComfyNode subclass?")
base = cls.GET_BASE_CLASS()
base_attr = getattr(base, name, None)
if base_attr is None:
return None
base_func = base_attr.__func__
for c in cls.mro(): # NodeB, NodeA, ComfyNode, object …
if c is base: # reached the placeholder – we're done
break
if name in c.__dict__: # first class that *defines* the attr
func = getattr(c, name).__func__
if func is not base_func: # real override
return getattr(cls, name) # bound to *cls*
return None
class _ComfyNodeInternal:
"""Class that all V3-based APIs inherit from for ComfyNode.
This is intended to only be referenced within execution.py, as it has to handle all V3 APIs going forward."""
@classmethod
def GET_NODE_INFO_V1(cls):
...
class _NodeOutputInternal:
"""Class that all V3-based APIs inherit from for NodeOutput.
This is intended to only be referenced within execution.py, as it has to handle all V3 APIs going forward."""
...
def as_pruned_dict(dataclass_obj):
'''Return dict of dataclass object with pruned None values.'''
return prune_dict(asdict(dataclass_obj))
def prune_dict(d: dict):
return {k: v for k,v in d.items() if v is not None}
def is_class(obj):
'''
Returns True if is a class type.
Returns False if is a class instance.
'''
return isinstance(obj, type)
def copy_class(cls: type) -> type:
'''
Copy a class and its attributes.
'''
if cls is None:
return None
cls_dict = {
k: v for k, v in cls.__dict__.items()
if k not in ('__dict__', '__weakref__', '__module__', '__doc__')
}
# new class
new_cls = type(
cls.__name__,
(cls,),
cls_dict
)
# metadata preservation
new_cls.__module__ = cls.__module__
new_cls.__doc__ = cls.__doc__
return new_cls
class classproperty(object):
def __init__(self, f):
self.f = f
def __get__(self, obj, owner):
return self.f(owner)
# NOTE: this was ai generated and validated by hand
def shallow_clone_class(cls, new_name=None):
'''
Shallow clone a class while preserving super() functionality.
'''
new_name = new_name or f"{cls.__name__}Clone"
# Include the original class in the bases to maintain proper inheritance
new_bases = (cls,) + cls.__bases__
return type(new_name, new_bases, dict(cls.__dict__))
# NOTE: this was ai generated and validated by hand
def lock_class(cls):
'''
Lock a class so that its top-levelattributes cannot be modified.
'''
# Locked instance __setattr__
def locked_instance_setattr(self, name, value):
raise AttributeError(
f"Cannot set attribute '{name}' on immutable instance of {type(self).__name__}"
)
# Locked metaclass
class LockedMeta(type(cls)):
def __setattr__(cls_, name, value):
raise AttributeError(
f"Cannot modify class attribute '{name}' on locked class '{cls_.__name__}'"
)
# Rebuild class with locked behavior
locked_dict = dict(cls.__dict__)
locked_dict['__setattr__'] = locked_instance_setattr
return LockedMeta(cls.__name__, cls.__bases__, locked_dict)
def make_locked_method_func(type_obj, func, class_clone):
"""
Returns a function that, when called with **inputs, will execute:
getattr(type_obj, func).__func__(lock_class(class_clone), **inputs)
Supports both synchronous and asynchronous methods.
"""
locked_class = lock_class(class_clone)
method = getattr(type_obj, func).__func__
# Check if the original method is async
if asyncio.iscoroutinefunction(method):
async def wrapped_async_func(**inputs):
return await method(locked_class, **inputs)
return wrapped_async_func
else:
def wrapped_func(**inputs):
return method(locked_class, **inputs)
return wrapped_func
File diff suppressed because it is too large Load Diff
@@ -0,0 +1 @@
from ._io import * # noqa: F403
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,48 @@
import json
from comfy.comfy_types.node_typing import IO
import torch
# Preview Any - original implement from
# https://github.com/rgthree/rgthree-comfy/blob/main/py/display_any.py
# upstream requested in https://github.com/Kosinkadink/rfcs/blob/main/rfcs/0000-corenodes.md#preview-nodes
class PreviewAny():
@classmethod
def INPUT_TYPES(cls):
return {
"required": {"source": (IO.ANY, {})},
}
RETURN_TYPES = (IO.STRING,)
FUNCTION = "main"
OUTPUT_NODE = True
CATEGORY = "utilities"
SEARCH_ALIASES = ["preview", "preview text", "show output", "inspect", "debug", "print value", "show text"]
DESCRIPTION = "Preview any input value as text."
def main(self, source=None):
torch.set_printoptions(edgeitems=6)
value = 'None'
if isinstance(source, str):
value = source
elif isinstance(source, (int, float, bool)):
value = str(source)
elif source is not None:
try:
value = json.dumps(source, indent=4, ensure_ascii=False)
except Exception:
try:
value = str(source)
except Exception:
value = 'source exists, but could not be serialized.'
torch.set_printoptions()
return {"ui": {"text": (value,)}, "result": (value,)}
NODE_CLASS_MAPPINGS = {
"PreviewAny": PreviewAny,
}
NODE_DISPLAY_NAME_MAPPINGS = {
"PreviewAny": "Preview as Text",
}
@@ -0,0 +1,98 @@
import math
from enum import Enum
from typing_extensions import override
from comfy_api.latest import ComfyExtension, io
class AspectRatio(str, Enum):
SQUARE = "1:1 (Square)"
PHOTO_V = "2:3 (Portrait Photo)"
PHOTO_H = "3:2 (Photo)"
STANDARD_V = "3:4 (Portrait Standard)"
STANDARD_H = "4:3 (Standard)"
WIDESCREEN_V = "9:16 (Portrait Widescreen)"
WIDESCREEN_H = "16:9 (Widescreen)"
ULTRAWIDE_H = "21:9 (Ultrawide)"
ASPECT_RATIOS: dict[AspectRatio, tuple[int, int]] = {
AspectRatio.SQUARE: (1, 1),
AspectRatio.PHOTO_V: (2, 3),
AspectRatio.PHOTO_H: (3, 2),
AspectRatio.STANDARD_V: (3, 4),
AspectRatio.STANDARD_H: (4, 3),
AspectRatio.WIDESCREEN_V: (9, 16),
AspectRatio.WIDESCREEN_H: (16, 9),
AspectRatio.ULTRAWIDE_H: (21, 9),
}
class ResolutionSelector(io.ComfyNode):
"""Calculate width and height from aspect ratio and megapixel target."""
@classmethod
def define_schema(cls):
return io.Schema(
node_id="ResolutionSelector",
display_name="Resolution Selector",
category="utilities",
description="Calculate width and height from aspect ratio and megapixel target. Useful for setting up Empty Latent Image dimensions.",
inputs=[
io.Combo.Input(
"aspect_ratio",
options=AspectRatio,
default=AspectRatio.SQUARE,
tooltip="The aspect ratio for the output dimensions.",
),
io.Float.Input(
"megapixels",
default=1.0,
min=0.1,
max=16.0,
step=0.1,
tooltip="Target total megapixels. 1.0 MP ≈ 1024x1024 for square.",
),
io.ResolutionPreview.Input(
"preview",
tooltip="Live preview of the calculated output resolution.",
),
io.Int.Input(
id="multiple",
default=8,
min=8,
max=128,
step=4,
tooltip="Nearest multiple of the result to set the selected resolution to.",
advanced=True,
),
],
outputs=[
io.Int.Output(
"width", tooltip="Calculated width in pixels multiplied by the selected multiple."
),
io.Int.Output(
"height", tooltip="Calculated height in pixels multiplied by the selected multiple."
),
],
)
@classmethod
def execute(cls, aspect_ratio: str, megapixels: float, multiple: int, preview=None) -> io.NodeOutput:
w_ratio, h_ratio = ASPECT_RATIOS[aspect_ratio]
total_pixels = megapixels * 1024 * 1024
scale = math.sqrt(total_pixels / (w_ratio * h_ratio))
width = round(w_ratio * scale / multiple) * multiple
height = round(h_ratio * scale / multiple) * multiple
return io.NodeOutput(width, height)
class ResolutionExtension(ComfyExtension):
@override
async def get_node_list(self) -> list[type[io.ComfyNode]]:
return [
ResolutionSelector,
]
async def comfy_entrypoint() -> ResolutionExtension:
return ResolutionExtension()
@@ -0,0 +1,772 @@
import type { operations } from '@comfyorg/registry-types'
export function formatCamelCase(str: string): string {
// Check if the string is camel case
const isCamelCase = /^([A-Z][a-z]*)+$/.test(str)
if (!isCamelCase) {
return str // Return original string if not camel case
}
// Split the string into words, keeping acronyms together
const words = str.split(/(?=[A-Z][a-z])|\d+/)
// Process each word
const processedWords = words.map((word) => {
// If the word is all uppercase and longer than one character, it's likely an acronym
if (word.length > 1 && word === word.toUpperCase()) {
return word // Keep acronyms as is
}
// For other words, ensure the first letter is capitalized
return word.charAt(0).toUpperCase() + word.slice(1)
})
// Join the words with spaces
return processedWords.join(' ')
}
// Metadata cannot be associated with workflows, so extension encodes the mode.
const JSON_SUFFIX = 'json'
const APP_JSON_SUFFIX = `app.${JSON_SUFFIX}`
const JSON_EXT = `.${JSON_SUFFIX}`
const APP_JSON_EXT = `.${APP_JSON_SUFFIX}`
export function appendJsonExt(path: string) {
if (!path.toLowerCase().endsWith(JSON_EXT)) {
path += JSON_EXT
}
return path
}
export type WorkflowSuffix = typeof JSON_SUFFIX | typeof APP_JSON_SUFFIX
export function getWorkflowSuffix(
suffix: string | null | undefined
): WorkflowSuffix {
return suffix === APP_JSON_SUFFIX ? APP_JSON_SUFFIX : JSON_SUFFIX
}
export function appendWorkflowJsonExt(path: string, isApp: boolean): string {
return ensureWorkflowSuffix(path, isApp ? APP_JSON_SUFFIX : JSON_SUFFIX)
}
export function ensureWorkflowSuffix(
name: string,
suffix: WorkflowSuffix
): string {
const lower = name.toLowerCase()
if (lower.endsWith(APP_JSON_EXT)) {
name = name.slice(0, -APP_JSON_EXT.length)
} else if (lower.endsWith(JSON_EXT)) {
name = name.slice(0, -JSON_EXT.length)
}
return name + '.' + suffix
}
interface HighlightQueryPart {
text: string
highlighted: boolean
}
export function highlightQuery(
text: string,
query: string
): HighlightQueryPart[] {
if (!query) return [{ text, highlighted: false }]
// Escape special regex characters, then join with an optional single
// space so cross-word matches (e.g. "geto" → "imaGE TO") are
// highlighted without spanning tabs, newlines, or multi-space gaps.
const pattern = Array.from(query)
.map((ch) => ch.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'))
.join('[ ]?')
const regex = new RegExp(pattern, 'gi')
const parts: HighlightQueryPart[] = []
let lastIndex = 0
for (const match of text.matchAll(regex)) {
if (match.index > lastIndex) {
parts.push({
text: text.slice(lastIndex, match.index),
highlighted: false
})
}
parts.push({ text: match[0], highlighted: true })
lastIndex = match.index + match[0].length
}
if (lastIndex < text.length || parts.length === 0) {
parts.push({ text: text.slice(lastIndex), highlighted: false })
}
return parts
}
export function formatNumberWithSuffix(
num: number,
{
precision = 1,
roundToInt = false
}: { precision?: number; roundToInt?: boolean } = {}
): string {
const suffixes = ['', 'k', 'm', 'b', 't']
const absNum = Math.abs(num)
if (absNum < 1000) {
return roundToInt ? Math.round(num).toString() : num.toFixed(precision)
}
const exp = Math.min(Math.floor(Math.log10(absNum) / 3), suffixes.length - 1)
const formattedNum = (num / Math.pow(1000, exp)).toFixed(precision)
return `${formattedNum}${suffixes[exp]}`
}
export function formatSize(value?: number) {
if (value === null || value === undefined) {
return '-'
}
const bytes = value
if (bytes === 0) return '0 B'
const k = 1024
const sizes = ['B', 'KB', 'MB', 'GB']
const i = Math.floor(Math.log(bytes) / Math.log(k))
return `${parseFloat((bytes / Math.pow(k, i)).toFixed(2))} ${sizes[i]}`
}
/**
* Formats a commit hash by truncating long (40-char) hashes to 7 chars.
* Returns the original string if not a valid full commit hash.
*/
export function formatCommitHash(value: string): string {
if (/^[a-f0-9]{40}$/i.test(value)) {
return value.slice(0, 7)
}
return value
}
/**
* Returns various filename components.
* Recognises compound extensions like `.app.json`.
* Example:
* - fullFilename: 'file.txt' → { filename: 'file', suffix: 'txt' }
* - fullFilename: 'file.app.json' → { filename: 'file', suffix: 'app.json' }
*/
export function getFilenameDetails(fullFilename: string) {
const lower = fullFilename.toLowerCase()
if (
lower.endsWith(APP_JSON_EXT) &&
fullFilename.length > APP_JSON_EXT.length
) {
return {
filename: fullFilename.slice(0, -APP_JSON_EXT.length),
suffix: APP_JSON_SUFFIX
}
}
const dotIndex = fullFilename.lastIndexOf('.')
if (dotIndex <= 0) return { filename: fullFilename, suffix: null }
return {
filename: fullFilename.slice(0, dotIndex),
suffix: fullFilename.slice(dotIndex + 1)
}
}
/**
* Returns various path components.
* Example:
* - path: 'dir/file.txt'
* - directory: 'dir'
* - fullFilename: 'file.txt'
* - filename: 'file'
* - suffix: 'txt'
*/
export function getPathDetails(path: string) {
const directory = path.split('/').slice(0, -1).join('/')
const fullFilename = path.split('/').pop() ?? path
return { directory, fullFilename, ...getFilenameDetails(fullFilename) }
}
/**
* Normalizes a string to be used as an i18n key.
* Replaces dots with underscores.
*/
export function normalizeI18nKey(key: string) {
return typeof key === 'string' ? key.replace(/\./g, '_') : ''
}
const VUE_I18N_BACKSLASH = /\\/g
const VUE_I18N_SYNTAX_CHARS = /[@${}|%]/g
/**
* Escapes vue-i18n message syntax so arbitrary text can be stored as a locale
* message and rendered verbatim by `t()`.
*
* Backslash is doubled rather than wrapped in a literal interpolation: since
* vue-i18n 11 the message compiler reads `\` as an escape introducer, so a
* backslash before an escaped character would swallow the `{` this emits, and
* `{'\'}` would escape its own closing quote. Doubling must therefore run
* first; the literal interpolations it emits contain no backslashes.
*
* Apply exactly once. This is NOT idempotent, because the escape output itself
* contains `{`/`}`.
*
* Apply only to values read back through `t()`/`st()`. Values read through
* `tm()`/`stRaw()` are never compiled, so escaping them renders the escape
* syntax literally.
*/
export function escapeI18nMessage(text: string): string {
if (typeof text !== 'string') return ''
return text
.replace(VUE_I18N_BACKSLASH, '\\\\')
.replace(VUE_I18N_SYNTAX_CHARS, (char) => `{'${char}'}`)
}
/**
* Takes a dynamic prompt in the format {opt1|opt2|{optA|optB}|} and randomly replaces groups. Supports C style comments.
* @param input The dynamic prompt to process
* @returns
*/
export function processDynamicPrompt(input: string): string {
/*
* Strips C-style line and block comments from a string
*/
function stripComments(str: string) {
return str.replace(/\/\*[\s\S]*?\*\/|\/\/.*/g, '')
}
let i = 0
let result = ''
input = stripComments(input)
const handleEscape = () => {
const nextChar = input[i++]
return '\\' + nextChar
}
function parseChoiceBlock() {
// Parse the content inside {}
const options: string[] = []
let choice = ''
let depth = 0
while (i < input.length) {
const char = input[i++]
if (char === '\\') {
choice += handleEscape()
continue
} else if (char === '{') {
depth++
} else if (char === '}') {
if (!depth) break
depth--
} else if (char === '|') {
if (!depth) {
options.push(choice)
choice = ''
continue
}
}
choice += char
}
options.push(choice)
const chosenOption = options[Math.floor(Math.random() * options.length)]
return processDynamicPrompt(chosenOption)
}
while (i < input.length) {
const char = input[i++]
if (char === '\\') {
result += handleEscape()
} else if (char === '{') {
result += parseChoiceBlock()
} else {
result += char
}
}
return result.replace(/\\([{}|])/g, '$1')
}
export function isValidUrl(url: string): boolean {
try {
new URL(url)
return true
} catch {
return false
}
}
export function joinFilePath(
subfolder: string | null | undefined,
filename: string | null | undefined
): string {
const normalizedSubfolder = normalizeFilePathSeparators(
subfolder ?? ''
).replace(/^\/+|\/+$/g, '')
const normalizedFilename = normalizeFilePathSeparators(
filename ?? ''
).replace(/^\/+/g, '')
if (!normalizedSubfolder) return normalizedFilename
if (!normalizedFilename) return normalizedSubfolder
return `${normalizedSubfolder}/${normalizedFilename}`
}
export function getFilePathSeparatorVariants(filepath: string): string[] {
const slashPath = normalizeFilePathSeparators(filepath)
const backslashPath = slashPath.replace(/\//g, '\\')
return slashPath === backslashPath ? [slashPath] : [slashPath, backslashPath]
}
function normalizeFilePathSeparators(filepath: string): string {
return filepath.replace(/[\\/]+/g, '/')
}
/**
* Parses a filepath into its filename and subfolder components.
*
* @example
* parseFilePath('folder/file.txt') // → { filename: 'file.txt', subfolder: 'folder' }
* parseFilePath('/folder/file.txt') // → { filename: 'file.txt', subfolder: 'folder' }
* parseFilePath('file.txt') // → { filename: 'file.txt', subfolder: '' }
* parseFilePath('folder//file.txt') // → { filename: 'file.txt', subfolder: 'folder' }
*
* @param filepath The filepath to parse
* @returns Object containing filename and subfolder
*/
export function parseFilePath(filepath: string): {
filename: string
subfolder: string
} {
if (!filepath?.trim()) return { filename: '', subfolder: '' }
const normalizedPath = normalizeFilePathSeparators(filepath)
.replace(/^\//, '') // Remove leading slash
.replace(/\/$/, '') // Remove trailing slash
const lastSlashIndex = normalizedPath.lastIndexOf('/')
if (lastSlashIndex === -1) {
return {
filename: normalizedPath,
subfolder: ''
}
}
return {
filename: normalizedPath.slice(lastSlashIndex + 1),
subfolder: normalizedPath.slice(0, lastSlashIndex)
}
}
// Simple date formatter
const parts = {
d: (d: Date) => d.getDate(),
M: (d: Date) => d.getMonth() + 1,
h: (d: Date) => d.getHours(),
m: (d: Date) => d.getMinutes(),
s: (d: Date) => d.getSeconds()
}
const format =
Object.keys(parts)
.map((k) => k + k + '?')
.join('|') + '|yyy?y?'
export function formatDate(text: string, date: Date) {
return text.replace(new RegExp(format, 'g'), (text: string): string => {
if (text === 'yy') return (date.getFullYear() + '').substring(2)
if (text === 'yyyy') return date.getFullYear().toString()
if (text[0] in parts) {
const p = parts[text[0] as keyof typeof parts](date)
return (p + '').padStart(text.length, '0')
}
return text
})
}
/**
* Generate a cache key from parameters
* Sorts the parameters to ensure consistent keys regardless of parameter order
*/
export const paramsToCacheKey = (params: unknown): string => {
if (typeof params === 'string') return params
if (typeof params === 'object' && params !== null)
return Object.keys(params)
.sort((a, b) => a.localeCompare(b))
.map((key) => `${key}:${params[key as keyof typeof params]}`)
.join('&')
return String(params)
}
const UUID_PATTERN =
/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i
/** Accepts canonical UUIDs of any version or variant for legacy compatibility. */
export const isValidUuid = (value: unknown): value is string =>
typeof value === 'string' && UUID_PATTERN.test(value)
/**
* Generates a RFC4122 compliant UUID v4 using the native crypto API when available
* @returns A properly formatted UUID string
*/
export const generateUUID = (): string => {
// Use native crypto.randomUUID() if available (modern browsers)
if (
typeof crypto !== 'undefined' &&
typeof crypto.randomUUID === 'function'
) {
return crypto.randomUUID()
}
// Fallback implementation for older browsers
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {
const r = (Math.random() * 16) | 0
const v = c === 'x' ? r : (r & 0x3) | 0x8
return v.toString(16)
})
}
const isCivitaiHost = (hostname: string): boolean =>
hostname === 'civitai.com' ||
hostname.endsWith('.civitai.com') ||
hostname === 'civitai.red' ||
hostname.endsWith('.civitai.red')
/**
* Checks if a URL belongs to any Civitai domain (civitai.com or civitai.red).
* Use this for source-name detection; use `isCivitaiModelUrl` when the URL
* must also match a specific model API path format.
*/
export const isCivitaiUrl = (url: string): boolean => {
if (!isValidUrl(url)) return false
return isCivitaiHost(new URL(url).hostname.toLowerCase())
}
/**
* Checks if a URL is a Civitai model URL
* @example
* isCivitaiModelUrl('https://civitai.com/api/download/models/1234567890') // true
* isCivitaiModelUrl('https://civitai.com/api/v1/models/1234567890') // true
* isCivitaiModelUrl('https://civitai.com/api/v1/models-versions/15342') // true
* isCivitaiModelUrl('https://example.com/model.safetensors') // false
*/
export const isCivitaiModelUrl = (url: string): boolean => {
if (!isValidUrl(url)) return false
const urlObj = new URL(url)
if (!isCivitaiHost(urlObj.hostname.toLowerCase())) return false
const pathname = urlObj.pathname
return (
/^\/api\/download\/models\/(\d+)$/.test(pathname) ||
/^\/api\/v1\/models\/(\d+)$/.test(pathname) ||
/^\/api\/v1\/models-versions\/(\d+)$/.test(pathname)
)
}
/**
* Converts a Hugging Face download URL to a repository page URL
* @param url The download URL to convert
* @returns The repository page URL or the Hugging Face root if conversion fails
* @example
* downloadUrlToHfRepoUrl(
* 'https://huggingface.co/bfl/FLUX.1/resolve/main/flux1-canny-dev.safetensors?download=true'
* ) // https://huggingface.co/bfl/FLUX.1
*/
export const downloadUrlToHfRepoUrl = (url: string): string => {
try {
const urlObj = new URL(url)
const pathname = urlObj.pathname
// Use regex to match everything before /resolve/ or /blob/
const regex = /^(.*?)(?:\/resolve\/|\/blob\/|$)/
const repoPathMatch = regex.exec(pathname)
// Extract the repository path and remove leading slash if present
const repoPath = repoPathMatch?.[1]?.replace(/^\//, '') || ''
return `https://huggingface.co/${repoPath}`
} catch {
return 'https://huggingface.co/'
}
}
/**
* Converts Metronome's integer amount back to a formatted currency string.
* For USD, converts from cents to dollars.
* For all other currencies (including custom pricing units), returns the amount as is.
* This is specific to Metronome's API requirements.
*
* @param amount - The amount in Metronome's integer format (cents for USD, base units for others)
* @param currency - The currency to convert
* @returns The formatted amount in currency with 2 decimal places for USD
* @example
* formatMetronomeCurrency(123, 'usd') // returns "1.23" (cents to USD)
* formatMetronomeCurrency(1000, 'jpy') // returns "1000" (yen)
*/
export function formatMetronomeCurrency(
amount: number,
currency: string
): string {
if (currency === 'usd') {
return (amount / 100).toFixed(2)
}
return amount.toString()
}
/**
* Converts a USD amount to microdollars (1/1,000,000 of a dollar).
* This conversion is commonly used in financial systems to avoid floating-point precision issues
* by representing monetary values as integers.
*
* @param usd - The amount in US dollars to convert
* @returns The amount in microdollars (multiplied by 1,000,000)
* @example
* usdToMicros(1.23) // returns 1230000
*/
export function usdToMicros(usd: number): number {
return Math.round(usd * 1_000_000)
}
/**
* Converts URLs in a string to HTML links.
* @param text - The string to convert
* @returns The string with URLs converted to HTML links
* @example
* linkifyHtml('Visit https://example.com for more info') // returns 'Visit <a href="https://example.com" target="_blank" rel="noopener noreferrer" class="text-primary-400 hover:underline">https://example.com</a> for more info'
*/
export function linkifyHtml(text: string): string {
if (!text) return ''
const urlRegex =
/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#/%?=~_|!:,.;]*[-A-Z0-9+&@#/%?=~_|])|(\bwww\.[-A-Z0-9+&@#/%?=~_|!:,.;]*[-A-Z0-9+&@#/%?=~_|])/gi
return text.replace(urlRegex, (_match, p1, _p2, p3) => {
const url = p1 || p3
const href = p3 ? `http://${url}` : url
return `<a href="${href}" target="_blank" rel="noopener noreferrer" class="text-primary-400 hover:underline">${url}</a>`
})
}
/**
* Converts newline characters to HTML <br> tags.
* @param text - The string to convert
* @returns The string with newline characters converted to <br> tags
* @example
* nl2br('Hello\nWorld') // returns 'Hello<br />World'
*/
export function nl2br(text: string): string {
if (!text) return ''
return text.replace(/\n/g, '<br />')
}
/**
* Converts a version string to an anchor-safe format by replacing dots with dashes.
* @param version The version string (e.g., "1.0.0", "2.1.3-beta.1")
* @returns The anchor-safe version string (e.g., "v1-0-0", "v2-1-3-beta-1")
* @example
* formatVersionAnchor("1.0.0") // returns "v1-0-0"
* formatVersionAnchor("2.1.3-beta.1") // returns "v2-1-3-beta-1"
*/
export function formatVersionAnchor(version: string): string {
return `v${version.replace(/\./g, '-')}`
}
/**
* Supported locale types for the application (from OpenAPI schema)
*/
type SupportedLocale = NonNullable<
operations['getReleaseNotes']['parameters']['query']['locale']
>
/**
* Converts a string to a valid locale type with 'en' as default
* @param locale - The locale string to validate and convert
* @returns A valid SupportedLocale type, defaults to 'en' if invalid
* @example
* stringToLocale('fr') // returns 'fr'
* stringToLocale('invalid') // returns 'en'
* stringToLocale('') // returns 'en'
*/
export function stringToLocale(locale: string): SupportedLocale {
const supportedLocales: SupportedLocale[] = [
'en',
'es',
'fr',
'ja',
'ko',
'ru',
'zh'
]
return supportedLocales.includes(locale as SupportedLocale)
? (locale as SupportedLocale)
: 'en'
}
export function formatDuration(milliseconds: number): string {
if (!milliseconds || milliseconds < 0) return '0s'
const totalSeconds = Math.floor(milliseconds / 1000)
const hours = Math.floor(totalSeconds / 3600)
const minutes = Math.floor((totalSeconds % 3600) / 60)
const remainingSeconds = Math.floor(totalSeconds % 60)
const parts: string[] = []
if (hours > 0) {
parts.push(`${hours}h`)
}
if (minutes > 0) {
parts.push(`${minutes}m`)
}
if (remainingSeconds > 0 || parts.length === 0) {
parts.push(`${remainingSeconds}s`)
}
return parts.join(' ')
}
const IMAGE_EXTENSIONS = [
'png',
'jpg',
'jpeg',
'gif',
'webp',
'bmp',
'avif',
'tif',
'tiff',
'svg'
] as const
const VIDEO_EXTENSIONS = ['mp4', 'm4v', 'webm', 'mov', 'avi', 'mkv'] as const
const AUDIO_EXTENSIONS = ['mp3', 'wav', 'ogg', 'flac', 'opus', 'm4a'] as const
const THREE_D_EXTENSIONS = [
'obj',
'fbx',
'gltf',
'glb',
'stl',
'usdz',
'ply',
'spz',
'splat',
'ksplat'
] as const
const TEXT_EXTENSIONS = [
'txt',
'md',
'markdown',
'json',
'csv',
'yaml',
'yml',
'xml',
'log'
] as const
const MEDIA_TYPES = ['image', 'video', 'audio', '3D', 'text', 'other'] as const
export type MediaType = (typeof MEDIA_TYPES)[number]
// Type guard helper for checking array membership
type ImageExtension = (typeof IMAGE_EXTENSIONS)[number]
type VideoExtension = (typeof VIDEO_EXTENSIONS)[number]
type AudioExtension = (typeof AUDIO_EXTENSIONS)[number]
type ThreeDExtension = (typeof THREE_D_EXTENSIONS)[number]
type TextExtension = (typeof TEXT_EXTENSIONS)[number]
/**
* Truncates a filename while preserving the extension
* @param filename The filename to truncate
* @param maxLength Maximum length for the filename without extension
* @returns Truncated filename with extension preserved
*/
export function truncateFilename(
filename: string,
maxLength: number = 20
): string {
if (!filename || filename.length <= maxLength) {
return filename
}
const lastDotIndex = filename.lastIndexOf('.')
const nameWithoutExt =
lastDotIndex > -1 ? filename.substring(0, lastDotIndex) : filename
const extension = lastDotIndex > -1 ? filename.substring(lastDotIndex) : ''
// If the name without extension is short enough, return as is
if (nameWithoutExt.length <= maxLength) {
return filename
}
// Calculate how to split the truncation
const halfLength = Math.floor((maxLength - 3) / 2) // -3 for '...'
const start = nameWithoutExt.substring(0, halfLength)
const end = nameWithoutExt.substring(nameWithoutExt.length - halfLength)
return `${start}...${end}${extension}`
}
/**
* Determines the media type from a filename's extension (singular form)
* @param filename The filename to analyze
* @returns The media type: 'image', 'video', 'audio', '3D', 'text', or 'other'
*/
export function getMediaTypeFromFilename(
filename: string | null | undefined
): MediaType {
if (!filename) return 'other'
const ext = filename.split('.').pop()?.toLowerCase()
if (!ext) return 'other'
// Type-safe array includes check using type assertion
if (IMAGE_EXTENSIONS.includes(ext as ImageExtension)) return 'image'
if (VIDEO_EXTENSIONS.includes(ext as VideoExtension)) return 'video'
if (AUDIO_EXTENSIONS.includes(ext as AudioExtension)) return 'audio'
if (THREE_D_EXTENSIONS.includes(ext as ThreeDExtension)) return '3D'
if (TEXT_EXTENSIONS.includes(ext as TextExtension)) return 'text'
return 'other'
}
export function isPreviewableMediaType(mediaType: MediaType): boolean {
return mediaType !== 'other'
}
export function formatTime(seconds: number): string {
if (isNaN(seconds) || seconds === 0) return '0:00'
const mins = Math.floor(seconds / 60)
const secs = Math.floor(seconds % 60)
return `${mins}:${secs.toString().padStart(2, '0')}`
}
/**
* Format a number with the given BCP-47 locale.
* Returns an em-dash for non-numeric, NaN, or infinite inputs.
*/
export function formatLocalizedNumber(
value: number | undefined,
locale: string
): string {
if (typeof value !== 'number' || !Number.isFinite(value)) return '—'
return new Intl.NumberFormat(locale).format(value)
}
/**
* Format an ISO 8601 date string with the given BCP-47 locale using the
* `medium` date style (e.g. "Apr 19, 2026"). Returns an em-dash for missing
* or unparseable inputs.
*/
export function formatLocalizedMediumDate(
value: string | undefined,
locale: string
): string {
if (!value) return '—'
const timestamp = Date.parse(value)
if (Number.isNaN(timestamp)) return '—'
return new Intl.DateTimeFormat(locale, { dateStyle: 'medium' }).format(
timestamp
)
}
@@ -0,0 +1,100 @@
import type { INodeInputSlot } from '@/lib/litegraph/src/interfaces'
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
import type { IBaseWidget } from '@/lib/litegraph/src/types/widgets'
import { useWidgetValueStore } from '@/stores/widgetValueStore'
import type { NodeId } from '@/types/nodeId'
import { resolveSubgraphInputTarget } from './resolveSubgraphInputTarget'
/**
* Where a promoted subgraph input is sourced from inside the subgraph. The
* interior node id + widget name that the host input slot forwards to. Resolved
* by walking the live link, so it is authoritative derived data — never stored
* on the projected widget.
*/
export interface PromotedSource {
nodeId: NodeId
widgetName: string
}
/**
* The interior source of a host input slot, or undefined when the slot is not a
* promoted widget input.
*/
export function promotedInputSource(
node: LGraphNode,
input: INodeInputSlot
): PromotedSource | undefined {
if (!input.widgetId) return undefined
return resolveSubgraphInputTarget(node, input.name)
}
/** The host input slot backing a projected widget, matched by widgetId. */
export function inputForWidget(
node: LGraphNode,
widget: IBaseWidget
): INodeInputSlot | undefined {
return node.getSlotFromWidget(widget)
}
/**
* Projects a promoted subgraph input into an ordinary widget descriptor. The
* descriptor is store-backed: type/value/options read live from
* {@link useWidgetValueStore} by widgetId (mirroring BaseWidget), so the row
* list does not reactively rebuild — and re-key — on every value edit.
*
* `name` is the input slot name (unique + fixed; widgetId derives from it), and
* `label` is the mutable display label. Returns null when the input is not a
* promoted widget input.
*/
export function promotedInputWidget(input: INodeInputSlot): IBaseWidget | null {
const id = input.widgetId
if (!id) return null
const store = useWidgetValueStore()
return {
get name() {
return store.getWidget(id)?.name ?? input.name
},
get label() {
return store.getWidget(id)?.label ?? input.label ?? input.name
},
set label(next) {
const state = store.getWidget(id)
if (state) state.label = next
},
get y() {
return store.getWidget(id)?.y ?? 0
},
set y(next) {
const state = store.getWidget(id)
if (state) state.y = next
},
widgetId: id,
get type() {
return store.getWidget(id)?.type ?? 'text'
},
get options() {
return store.getWidget(id)?.options ?? {}
},
get value() {
return store.getWidget(id)?.value
},
set value(next) {
store.setValue(id, next)
},
// Canvas edits operate on a transient concrete widget (toConcreteWidget),
// so the value setter above is never invoked; BaseWidget.setValue writes its
// own local state and then calls this callback, which is the only bridge
// back to the store.
callback(next) {
store.setValue(id, next)
}
}
}
export function promotedInputWidgets(node: LGraphNode): IBaseWidget[] {
return node.inputs.flatMap((input) => {
const widget = promotedInputWidget(input)
return widget ? [widget] : []
})
}
@@ -0,0 +1,156 @@
import type { ResolvedPromotedWidget } from '@/core/graph/subgraph/promotedWidgetTypes'
import { resolveSubgraphInputTarget } from '@/core/graph/subgraph/resolveSubgraphInputTarget'
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
import type { SubgraphNode } from '@/lib/litegraph/src/subgraph/SubgraphNode'
import { LGraphEventMode } from '@/lib/litegraph/src/types/globalEnums'
import type { NodeExecutionId } from '@/types/nodeIdentification'
import { createNodeExecutionId } from '@/types/nodeIdentification'
import { toNodeId } from '@/types/nodeId'
import type { NodeId, SerializedNodeId } from '@/types/nodeId'
type PromotedWidgetResolutionFailure =
| 'invalid-host'
| 'cycle'
| 'missing-node'
| 'missing-widget'
| 'max-depth-exceeded'
type PromotedWidgetResolutionResult =
| { status: 'resolved'; resolved: ResolvedPromotedWidget }
| { status: 'failure'; failure: PromotedWidgetResolutionFailure }
const MAX_PROMOTED_WIDGET_CHAIN_DEPTH = 100
function isNodeActive(node: LGraphNode): boolean {
return (
node.mode !== LGraphEventMode.NEVER && node.mode !== LGraphEventMode.BYPASS
)
}
function hasActiveConsumer(
hostNode: SubgraphNode,
inputName: string,
depth: number,
visitedByHost: WeakMap<SubgraphNode, Set<string>>
): boolean {
if (depth >= MAX_PROMOTED_WIDGET_CHAIN_DEPTH) return false
const visited = visitedByHost.get(hostNode) ?? new Set<string>()
if (visited.has(inputName)) return false
visited.add(inputName)
visitedByHost.set(hostNode, visited)
const inputSlot = hostNode.subgraph.inputNode.slots.find(
(slot) => slot.name === inputName
)
if (!inputSlot) return false
for (const linkId of inputSlot.linkIds) {
const link = hostNode.subgraph.getLink(linkId)
if (!link) continue
const { inputNode } = link.resolve(hostNode.subgraph)
if (!inputNode || !isNodeActive(inputNode)) continue
const targetInput = inputNode.inputs?.find((entry) => entry.link === linkId)
if (!targetInput) continue
if (inputNode.isSubgraphNode()) {
if (
targetInput.widgetId &&
hasActiveConsumer(inputNode, targetInput.name, depth + 1, visitedByHost)
) {
return true
}
continue
}
if (inputNode.getWidgetFromSlot(targetInput)) return true
}
return false
}
export function hasActivePromotedWidgetConsumer(
hostNode: LGraphNode,
inputName: string
): boolean {
return (
hostNode.isSubgraphNode() &&
hasActiveConsumer(hostNode, inputName, 0, new WeakMap())
)
}
function traversePromotedWidgetChain(
hostNode: SubgraphNode,
nodeId: NodeId,
widgetName: string
): PromotedWidgetResolutionResult {
const visitedByHost = new WeakMap<SubgraphNode, Set<string>>()
let currentHost = hostNode
let currentNodeId = nodeId
let currentWidgetName = widgetName
const nodePath: NodeId[] = []
for (let depth = 0; depth < MAX_PROMOTED_WIDGET_CHAIN_DEPTH; depth++) {
const key = `${currentNodeId}:${currentWidgetName}`
const visited = visitedByHost.get(currentHost) ?? new Set<string>()
if (visited.has(key)) {
return { status: 'failure', failure: 'cycle' }
}
visited.add(key)
visitedByHost.set(currentHost, visited)
const sourceNode = currentHost.subgraph.getNodeById(currentNodeId)
if (!sourceNode) {
return { status: 'failure', failure: 'missing-node' }
}
nodePath.push(sourceNode.id)
if (sourceNode.isSubgraphNode()) {
const target = resolveSubgraphInputTarget(sourceNode, currentWidgetName)
if (!target) {
return { status: 'failure', failure: 'missing-widget' }
}
currentHost = sourceNode
currentNodeId = target.nodeId
currentWidgetName = target.widgetName
continue
}
const sourceWidget = sourceNode.widgets?.find(
(entry) => entry.name === currentWidgetName
)
if (!sourceWidget) {
return { status: 'failure', failure: 'missing-widget' }
}
return {
status: 'resolved',
resolved: { node: sourceNode, nodePath, widget: sourceWidget }
}
}
return { status: 'failure', failure: 'max-depth-exceeded' }
}
export function resolveConcretePromotedWidget(
hostNode: LGraphNode,
rawNodeId: SerializedNodeId,
widgetName: string
): PromotedWidgetResolutionResult {
if (!hostNode.isSubgraphNode()) {
return { status: 'failure', failure: 'invalid-host' }
}
const nodeId = toNodeId(rawNodeId)
return traversePromotedWidgetChain(hostNode, nodeId, widgetName)
}
export function buildPromotedSourceExecutionId(
hostExecutionId: NodeExecutionId,
nodePath: readonly NodeId[]
): NodeExecutionId | undefined {
const hostNodeIds = hostExecutionId.split(':').map(toNodeId)
return nodePath.length
? (createNodeExecutionId([...hostNodeIds, ...nodePath]) ?? undefined)
: undefined
}
@@ -0,0 +1,51 @@
import type { INodeInputSlot } from '@/lib/litegraph/src/interfaces'
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
type SubgraphInputLinkContext = {
inputNode: LGraphNode
targetInput: INodeInputSlot
getTargetWidget: () => ReturnType<LGraphNode['getWidgetFromSlot']>
}
export function resolveSubgraphInputLink<TResult>(
node: LGraphNode,
inputName: string,
resolve: (context: SubgraphInputLinkContext) => TResult | undefined
): TResult | undefined {
if (!node.isSubgraphNode()) return undefined
const inputSlot = node.subgraph.inputNode.slots.find(
(slot) => slot.name === inputName
)
if (!inputSlot) return undefined
// Iterate forward so the first connected source is the promoted representative,
// matching SubgraphNode._resolveLinkedPromotionBySubgraphInput.
for (const linkId of inputSlot.linkIds) {
const link = node.subgraph.getLink(linkId)
if (!link) continue
const { inputNode, input: targetInput } = link.resolve(node.subgraph)
if (!inputNode || !targetInput) continue
let cachedTargetWidget:
| ReturnType<LGraphNode['getWidgetFromSlot']>
| undefined
let hasCachedTargetWidget = false
const resolved = resolve({
inputNode,
targetInput,
getTargetWidget: () => {
if (!hasCachedTargetWidget) {
cachedTargetWidget = inputNode.getWidgetFromSlot(targetInput)
hasCachedTargetWidget = true
}
return cachedTargetWidget
}
})
if (resolved !== undefined) return resolved
}
return undefined
}
@@ -0,0 +1,35 @@
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
import type { NodeId } from '@/types/nodeId'
import { resolveSubgraphInputLink } from './resolveSubgraphInputLink'
type ResolvedSubgraphInputTarget = {
nodeId: NodeId
widgetName: string
}
export function resolveSubgraphInputTarget(
node: LGraphNode,
inputName: string
): ResolvedSubgraphInputTarget | undefined {
return resolveSubgraphInputLink(
node,
inputName,
({ inputNode, targetInput, getTargetWidget }) => {
if (inputNode.isSubgraphNode()) {
return {
nodeId: inputNode.id,
widgetName: targetInput.name
}
}
const targetWidget = getTargetWidget()
if (!targetWidget) return undefined
return {
nodeId: inputNode.id,
widgetName: targetWidget.name
}
}
)
}
@@ -0,0 +1,706 @@
import { remove } from 'es-toolkit'
import { shallowReactive } from 'vue'
import { useChainCallback } from '@/composables/functional/useChainCallback'
import type { ISlotType, INodeInputSlot } from '@/lib/litegraph/src/interfaces'
import type { LGraphNode } from '@/lib/litegraph/src/LGraphNode'
import { LiteGraph } from '@/lib/litegraph/src/litegraph'
import type { LLink } from '@/lib/litegraph/src/LLink'
import { commonType } from '@/lib/litegraph/src/utils/type'
import {
getWidgetIds,
resolveNodeRootGraphId
} from '@/lib/litegraph/src/utils/widget'
import { transformInputSpecV1ToV2 } from '@/schemas/nodeDef/migration'
import type { ComboInputSpec, InputSpec } from '@/schemas/nodeDefSchema'
import type { InputSpec as InputSpecV2 } from '@/schemas/nodeDef/nodeDefSchemaV2'
import {
zAutogrowOptions,
zDynamicComboInputSpec,
zMatchTypeOptions
} from '@/schemas/nodeDefSchema'
import { useLitegraphService } from '@/services/litegraphService'
import { app } from '@/scripts/app'
import type { ComfyApp } from '@/scripts/app'
import {
captureInputLayout,
replaceNodeInputs
} from '@/lib/litegraph/src/node/slotLinks'
import type { InputLayoutSnapshot } from '@/lib/litegraph/src/node/slotLinks'
import { useLinkStore } from '@/stores/linkStore'
import { graphScopeOf } from '@/types/graphScopeId'
import { useWidgetValueStore } from '@/stores/widgetValueStore'
import type { WidgetValue } from '@/types/simplifiedWidget'
import { widgetId } from '@/types/widgetId'
const INLINE_INPUTS = false
type MatchTypeNode = LGraphNode &
Pick<Required<LGraphNode>, 'onConnectionsChange'> & {
comfyDynamic: { matchType: Record<string, Record<string, string>> }
}
type AutogrowNode = LGraphNode &
Pick<Required<LGraphNode>, 'onConnectionsChange' | 'widgets'> & {
comfyDynamic: {
autogrow: Record<
string,
{
min: number
max: number
inputSpecs: InputSpecV2[]
prefix?: string
names?: string[]
}
>
}
}
function commitMutatedInputs(
node: LGraphNode,
previous: InputLayoutSnapshot,
assignments: ReadonlyMap<INodeInputSlot, LLink>
) {
const finalInputs = [...node.inputs]
node.inputs.splice(0, node.inputs.length, ...previous.inputs)
return replaceNodeInputs(node, previous, finalInputs, assignments)
}
function syncNodeWidgetOrder(node: LGraphNode) {
const graphId = resolveNodeRootGraphId(node)
if (!graphId || !node.widgets) return
useWidgetValueStore().setNodeWidgetOrder(
graphId,
node.id,
getWidgetIds(node.widgets)
)
}
function ensureWidgetForInput(node: LGraphNode, input: INodeInputSlot) {
node.widgets ??= []
const { widget } = input
if (widget && node.widgets.some((w) => w.name === widget.name)) return
node.widgets.push({
draw(ctx, _n, _w, y) {
ctx.save()
ctx.fillStyle = LiteGraph.NODE_TEXT_COLOR
ctx.fillText(input.label ?? input.name, 20, y + 15)
ctx.restore()
},
name: input.name,
options: {},
serialize: false,
type: 'shim',
y: 0
})
input.alwaysVisible = true
input.widget = { name: input.name }
}
function dynamicComboWidget(
node: LGraphNode,
inputName: string,
untypedInputData: InputSpec,
appArg: ComfyApp,
widgetName?: string
) {
const { addNodeInput } = useLitegraphService()
const { deleteWidget } = useWidgetValueStore()
const parseResult = zDynamicComboInputSpec.safeParse(untypedInputData)
if (!parseResult.success) throw new Error('invalid DynamicCombo spec')
const inputData = parseResult.data
const options = Object.fromEntries(
inputData[1].options.map(({ key, inputs }) => [key, inputs])
)
const subSpec: ComboInputSpec = [Object.keys(options), {}]
const { widget, minWidth, minHeight } = app.widgets['COMBO'](
node,
inputName,
subSpec,
appArg,
widgetName
)
const removedWidgetValues = new Map<
string | undefined,
Map<string, { type: string; value: WidgetValue }>
>()
let activeOption = widget.value as string | undefined
function isInGroup(e: { name: string }): boolean {
return e.name.startsWith(inputName + '.')
}
function restoreRemovedValues(
value: string | undefined,
widgetNames: string[]
) {
const widgets = node.widgets
if (!widgets) return
const graphId = resolveNodeRootGraphId(node)
const removedValues = removedWidgetValues.get(value)
const names = new Set(widgetNames)
for (const name of removedValues?.keys() ?? []) names.add(name)
for (const name of names) {
const addedWidget = widgets.find((widget) => widget.name === name)
if (!addedWidget) continue
const removed = removedValues?.get(name)
const positionalIndex = widgets
.filter((widget) => widget.serialize !== false)
.indexOf(addedWidget)
const restored =
graphId && positionalIndex >= 0
? useWidgetValueStore().getRestoredWidgetValue(
graphId,
node.id,
name,
positionalIndex
)
: undefined
if (!restored && removed?.type === addedWidget.type) {
addedWidget.value = removed.value
}
}
}
const updateWidgets = (value?: string) => {
if (!node.widgets) throw new Error('Not Reachable')
const newSpec = value ? options[value] : undefined
const removedOption = activeOption
activeOption = value
const previous = captureInputLayout(node)
const inputLinks = new Map(previous.links)
const removedInputs = remove(node.inputs, isInGroup)
for (const widget of remove(node.widgets, isInGroup)) {
const optionValues = removedWidgetValues.get(removedOption) ?? new Map()
optionValues.set(widget.name, {
type: widget.type,
value: widget.value
})
removedWidgetValues.set(removedOption, optionValues)
widget.onRemove?.()
if (widget.widgetId) deleteWidget(widget.widgetId)
}
if (!newSpec) {
const result = commitMutatedInputs(node, previous, inputLinks)
if (!result.ok) return
syncNodeWidgetOrder(node)
return
}
const insertionPoint = node.widgets.findIndex((w) => w === widget) + 1
const startingLength = node.widgets.length
const startingInputLength = node.inputs.length
if (insertionPoint === 0)
throw new Error("Dynamic widget doesn't exist on node")
const inputTypes: (Record<string, InputSpec> | undefined)[] = [
newSpec.required,
newSpec.optional
]
inputTypes.forEach((inputType, idx) => {
for (const key in inputType ?? {}) {
const name = `${widget.name}.${key}`
const specToAdd = transformInputSpecV1ToV2(inputType![key], {
name,
isOptional: idx !== 0
})
specToAdd.display_name = key
addNodeInput(node, specToAdd)
const newInputs = node.inputs
.slice(startingInputLength)
.filter((inp) => inp.name.startsWith(name))
for (const newInput of newInputs) {
if (INLINE_INPUTS && !newInput.widget)
ensureWidgetForInput(node, newInput)
}
}
})
const inputInsertionPoint =
node.inputs.findIndex((i) => i.name === widget.name) + 1
const addedWidgets = node.widgets.splice(startingLength)
const addedWidgetNames = addedWidgets.map(({ name }) => name)
node.widgets.splice(insertionPoint, 0, ...addedWidgets)
syncNodeWidgetOrder(node)
if (inputInsertionPoint === 0) {
if (
addedWidgets.length === 0 &&
node.inputs.length !== startingInputLength
)
//input is inputOnly, but lacks an insertion point
throw new Error('Failed to find input socket for ' + widget.name)
const result = commitMutatedInputs(node, previous, inputLinks)
if (!result.ok) return
restoreRemovedValues(value, addedWidgetNames)
return
}
const addedInputs = node.inputs
.splice(startingInputLength)
.map((addedInput) => {
const existingInput = node.inputs.findIndex(
(existingInput) => addedInput.name === existingInput.name
)
return existingInput === -1
? addedInput
: node.inputs.splice(existingInput, 1)[0]
})
//assume existing inputs are in correct order
node.inputs.splice(inputInsertionPoint, 0, ...addedInputs)
for (const input of removedInputs) {
const replacement = node.inputs.find((item) => item.name === input.name)
const link = inputLinks.get(input)
if (replacement && link) inputLinks.set(replacement, link)
}
const result = commitMutatedInputs(node, previous, inputLinks)
if (!result.ok) return
for (const { input, link, slot } of result.replacements) {
node.onConnectionsChange?.(LiteGraph.INPUT, slot, true, link, input)
}
restoreRemovedValues(value, addedWidgetNames)
if (!node.graph) return
node._setConcreteSlots()
node.arrange()
app.canvas?.setDirty(true, true)
}
//Refit height on the callback channel: interaction fires it after the value
//setter, while configure (load, clone, paste) only fires the setter and must
//keep the serialised height.
widget.callback = useChainCallback(widget.callback, () => {
node.size = [node.size[0], node.computeSize([...node.size])[1]]
app.canvas?.setDirty(true, true)
})
//A little hacky, but onConfigure won't work.
//It fires too late and is overly disruptive
let widgetValue = widget.value
const getState = () => {
const graphId = resolveNodeRootGraphId(node)
if (!graphId) return undefined
return useWidgetValueStore().getWidget(
widgetId(graphId, node.id, widget.name)
)
}
Object.defineProperty(widget, 'value', {
get() {
return getState()?.value ?? widgetValue
},
set(value) {
const state = getState()
if (state) state.value = value
widgetValue = value
updateWidgets(value)
}
})
widget.value = widgetValue
return { widget, minWidth, minHeight }
}
export const dynamicWidgets = { COMFY_DYNAMICCOMBO_V3: dynamicComboWidget }
const dynamicInputs: Record<
string,
(node: LGraphNode, inputSpec: InputSpecV2) => void
> = {
COMFY_AUTOGROW_V3: applyAutogrow,
COMFY_MATCHTYPE_V3: applyMatchType
}
export function applyDynamicInputs(
node: LGraphNode,
inputSpec: InputSpecV2
): boolean {
if (!(inputSpec.type in dynamicInputs)) return false
//TODO: move parsing/validation of inputSpec here?
dynamicInputs[inputSpec.type](node, inputSpec)
return true
}
function changeOutputType(
node: LGraphNode,
slot: number,
combinedType: ISlotType
) {
const output = node.outputs[slot]
if (output.type === combinedType) return
output.type = combinedType
//check and potentially remove links
if (!node.graph) return
const topologies = useLinkStore().getOutputSlotLinks(
graphScopeOf(node.graph),
node.id,
slot
)
for (const topology of topologies) {
const link = node.graph.getLink(topology.id)
if (!link) continue
const { input, inputNode, subgraphOutput } = link.resolve(node.graph)
const inputType = (input ?? subgraphOutput)?.type
if (!inputType) continue
const keep = LiteGraph.isValidConnection(combinedType, inputType)
if (!keep && subgraphOutput) subgraphOutput.disconnect()
else if (!keep && inputNode) inputNode.disconnectInput(link.target_slot)
if (input && inputNode?.onConnectionsChange)
inputNode.onConnectionsChange(
LiteGraph.INPUT,
link.target_slot,
keep,
link,
input
)
}
}
function withComfyMatchType(node: LGraphNode): asserts node is MatchTypeNode {
if (node.comfyDynamic?.matchType) return
node.comfyDynamic ??= {}
node.comfyDynamic.matchType = {}
const outputGroups = node.constructor.nodeData?.output_matchtypes
node.onConnectionsChange = useChainCallback(
node.onConnectionsChange,
function (
this: MatchTypeNode,
contype: ISlotType,
slot: number,
iscon: boolean,
linf: LLink | null | undefined
) {
const input = this.inputs[slot]
if (contype !== LiteGraph.INPUT || !this.graph || !input) return
if (app.configuringGraph) return
const [matchKey, matchGroup] = Object.entries(
this.comfyDynamic.matchType
).find(([, group]) => input.name in group) ?? ['', undefined]
if (!matchGroup) return
if (iscon && linf) {
const { output, subgraphInput } = linf.resolve(this.graph)
const connectingType = (output ?? subgraphInput)?.type
if (connectingType) linf.type = connectingType
}
//NOTE: inputs contains input
const groupInputs: INodeInputSlot[] = node.inputs.filter(
(inp) => inp.name in matchGroup
)
const connectedTypes = groupInputs.map((inp) => {
const link = this.getInputLink(this.inputs.indexOf(inp))
if (!link) return '*'
const { output, subgraphInput } = link.resolve(this.graph!)
return (output ?? subgraphInput)?.type ?? '*'
})
//An input slot can accept a connection that is
// - Compatible with original type
// - Compatible with all other input types
//An output slot can output
// - Only what every input can output
groupInputs.forEach((input, idx) => {
const otherConnected = [
...connectedTypes.slice(0, idx),
...connectedTypes.slice(idx + 1)
]
const combinedType = commonType(
...otherConnected,
matchGroup[input.name]
)
if (!combinedType) throw new Error('invalid connection')
input.type = combinedType
})
const outputType = commonType(...connectedTypes)
if (!outputType) throw new Error('invalid connection')
this.outputs.forEach((_output, idx) => {
if (!(outputGroups?.[idx] == matchKey)) return
changeOutputType(this, idx, outputType)
})
app.canvas?.setDirty(true, true)
}
)
}
function applyMatchType(node: LGraphNode, inputSpec: InputSpecV2) {
const { addNodeInput } = useLitegraphService()
const name = inputSpec.name
const parseResult = zMatchTypeOptions.safeParse(inputSpec)
if (!parseResult.success) {
console.warn(
`Unparseable COMFY_MATCHTYPE_V3 spec for input "${name}"; falling back to a wildcard socket.`,
parseResult.error.issues
)
addNodeInput(node, { ...inputSpec, type: '*' })
return
}
const matchTypeSpec = parseResult.data
const { allowed_types, template_id } = matchTypeSpec.template
const typedSpec = { ...inputSpec, type: allowed_types }
addNodeInput(node, typedSpec)
withComfyMatchType(node)
node.comfyDynamic.matchType[template_id] ??= {}
node.comfyDynamic.matchType[template_id][name] = allowed_types
//TODO: instead apply on output add?
//ensure outputs get updated
const index = node.inputs.length - 1
requestAnimationFrame(() => {
const input = node.inputs[index]
if (!input || !node.graph) return
node.inputs[index] = shallowReactive(input)
const existingLink = node.getInputLink(index)
node.onConnectionsChange?.(
LiteGraph.INPUT,
index,
!!existingLink,
existingLink ?? undefined,
input
)
})
}
function autogrowOrdinalToName(
ordinal: number,
key: string,
groupName: string,
node: AutogrowNode
) {
const {
names,
prefix = '',
inputSpecs
} = node.comfyDynamic.autogrow[groupName]
const baseName = names
? names[ordinal]
: (inputSpecs.length == 1 ? prefix : key) + ordinal
return { name: `${groupName}.${baseName}`, display_name: baseName }
}
function addAutogrowGroup(
ordinal: number,
groupName: string,
node: AutogrowNode
) {
const { addNodeInput } = useLitegraphService()
const { max, min, inputSpecs } = node.comfyDynamic.autogrow[groupName]
if (ordinal >= max) return
const previous = captureInputLayout(node)
const inputLinks = new Map(previous.links)
const namedSpecs = inputSpecs.map((input) => ({
...input,
isOptional: ordinal >= (min ?? 0) || input.isOptional,
...autogrowOrdinalToName(ordinal, input.name, groupName, node)
}))
const newInputs = namedSpecs.map((namedSpec) => {
addNodeInput(node, namedSpec)
const input = node.inputs.splice(node.inputs.length - 1, 1)[0]
if (inputSpecs.length !== 1 || (INLINE_INPUTS && !input.widget))
ensureWidgetForInput(node, input)
return input
})
for (const newInput of newInputs) {
for (const existingInput of remove(
node.inputs,
(inp) => inp.name === newInput.name
)) {
const link = inputLinks.get(existingInput)
if (link && !inputLinks.has(newInput)) inputLinks.set(newInput, link)
}
}
const targetName = autogrowOrdinalToName(
ordinal - 1,
inputSpecs.at(-1)!.name,
groupName,
node
).name
const lastIndex = node.inputs.findLastIndex((inp) =>
inp.name.startsWith(targetName)
)
const insertionIndex = lastIndex === -1 ? node.inputs.length : lastIndex + 1
node.inputs.splice(insertionIndex, 0, ...newInputs)
const result = commitMutatedInputs(node, previous, inputLinks)
if (!result.ok) return
app.canvas?.setDirty(true, true)
}
const ORDINAL_REGEX = /\d+$/
function resolveAutogrowOrdinal(
inputName: string,
groupName: string,
node: AutogrowNode
): number | undefined {
//TODO preslice groupname?
const name = inputName.slice(groupName.length + 1)
const { names } = node.comfyDynamic.autogrow[groupName]
if (names) {
const ordinal = names.findIndex((s) => s === name)
return ordinal === -1 ? undefined : ordinal
}
const match = name.match(ORDINAL_REGEX)
if (!match) return undefined
const ordinal = parseInt(match[0])
return ordinal !== ordinal ? undefined : ordinal
}
function autogrowInputConnected(index: number, node: AutogrowNode) {
const input = node.inputs[index]
const groupName = input.name.slice(0, input.name.lastIndexOf('.'))
const lastInput = node.inputs.findLast((inp) =>
inp.name.startsWith(groupName + '.')
)
const ordinal = resolveAutogrowOrdinal(input.name, groupName, node)
if (
!lastInput ||
ordinal == undefined ||
(ordinal !== resolveAutogrowOrdinal(lastInput.name, groupName, node) &&
!app.configuringGraph)
)
return
addAutogrowGroup(ordinal + 1, groupName, node)
}
function autogrowInputDisconnected(index: number, node: AutogrowNode) {
const input = node.inputs[index]
if (!input) return
const groupName = input.name.slice(0, input.name.lastIndexOf('.'))
const autogrowGroup = node.comfyDynamic.autogrow[groupName]
if (!autogrowGroup) return
const { min = 1, inputSpecs } = autogrowGroup
const ordinal = resolveAutogrowOrdinal(input.name, groupName, node)
if (ordinal == undefined || ordinal + 1 < min) return
//resolve all inputs in group
const groupInputs = node.inputs.filter(
(inp) =>
inp.name.startsWith(groupName + '.') &&
inp.name.lastIndexOf('.') === groupName.length
)
const stride = inputSpecs.length
if (stride + index >= node.inputs.length) return
if (groupInputs.length % stride !== 0) {
console.error('Failed to group multi-input autogrow inputs')
return
}
app.canvas?.setDirty(true, true)
const previous = captureInputLayout(node)
const inputLinks = new Map(previous.links)
const transplants: { input: INodeInputSlot; link: LLink }[] = []
for (let column = 0; column < stride; column++) {
for (
let bubbleOrdinal = ordinal * stride + column;
bubbleOrdinal + stride < groupInputs.length;
bubbleOrdinal += stride
) {
const input = groupInputs[bubbleOrdinal]
const donor = groupInputs[bubbleOrdinal + stride]
const link = inputLinks.get(donor)
inputLinks.delete(input)
inputLinks.delete(donor)
if (link) {
inputLinks.set(input, link)
transplants.push({ input, link })
}
}
}
const removalChecks = groupInputs.slice(min * stride)
let i
for (i = removalChecks.length - stride; i >= 0; i -= stride) {
if (
removalChecks.slice(i, i + stride).some((input) => inputLinks.has(input))
)
break
}
const toRemove = removalChecks.slice(i + stride * 2)
const finalInputs = node.inputs.filter((input) => !toRemove.includes(input))
const result = replaceNodeInputs(node, previous, finalInputs, inputLinks)
if (!result.ok) return
for (const { input, link } of transplants) {
const slot = node.inputs.indexOf(input)
if (slot === -1) continue
node.onConnectionsChange?.(LiteGraph.INPUT, slot, true, link, input)
}
for (const input of toRemove) {
const widgetName = input?.widget?.name
if (!widgetName) continue
for (const widget of remove(node.widgets, (w) => w.name === widgetName)) {
widget.onRemove?.()
if (widget.widgetId) useWidgetValueStore().deleteWidget(widget.widgetId)
}
syncNodeWidgetOrder(node)
}
node.size = [node.size[0], node.computeSize([...node.size])[1]]
}
function withComfyAutogrow(node: LGraphNode): asserts node is AutogrowNode {
if (node.comfyDynamic?.autogrow) return
node.comfyDynamic ??= {}
node.comfyDynamic.autogrow = {}
let pendingConnection: number | undefined
let swappingConnection = false
const originalOnConnectInput = node.onConnectInput
node.onConnectInput = function (slot: number, ...args) {
pendingConnection = slot
requestAnimationFrame(() => (pendingConnection = undefined))
return originalOnConnectInput?.apply(this, [slot, ...args]) ?? true
}
node.onConnectionsChange = useChainCallback(
node.onConnectionsChange,
function (
this: AutogrowNode,
contype: ISlotType,
slot: number,
iscon: boolean,
linf: LLink | null | undefined
) {
const input = this.inputs[slot]
if (contype !== LiteGraph.INPUT || !input) return
//Return if input isn't known autogrow
const key = input.name.slice(0, input.name.lastIndexOf('.'))
const autogrowGroup = this.comfyDynamic.autogrow[key]
if (!autogrowGroup) return
if (app.configuringGraph && input.widget)
ensureWidgetForInput(node, input)
if (iscon) {
if (swappingConnection || !linf) return
autogrowInputConnected(slot, this)
} else {
if (pendingConnection === slot) {
swappingConnection = true
requestAnimationFrame(() => (swappingConnection = false))
return
}
requestAnimationFrame(() => autogrowInputDisconnected(slot, this))
}
}
)
}
function applyAutogrow(node: LGraphNode, inputSpecV2: InputSpecV2) {
withComfyAutogrow(node)
const parseResult = zAutogrowOptions.safeParse(inputSpecV2)
if (!parseResult.success) throw new Error('invalid Autogrow spec')
const inputSpec = parseResult.data
const { input, min = 1, names, prefix, max = 100 } = inputSpec.template
const inputTypes: (Record<string, InputSpec> | undefined)[] = [
input.required,
input.optional
]
const inputsV2 = inputTypes.flatMap((inputType, index) =>
Object.entries(inputType ?? {}).map(([name, v]) =>
transformInputSpecV1ToV2(v, { name, isOptional: index === 1 })
)
)
node.comfyDynamic.autogrow[inputSpecV2.name] = {
names,
min,
max: names?.length ?? max,
prefix,
inputSpecs: inputsV2
}
for (let i = 0; i === 0 || i < min + 1; i++)
addAutogrowGroup(i, inputSpecV2.name, node)
}
@@ -0,0 +1,42 @@
/*
Preview Any - original implement from
https://github.com/rgthree/rgthree-comfy/blob/main/py/display_any.py
upstream requested in https://github.com/Kosinkadink/rfcs/blob/main/rfcs/0000-corenodes.md#preview-nodes
*/
import type { LGraphNode } from '@/lib/litegraph/src/LGraphNode'
import {
addTextPreviewWidgets,
updateTextPreviewWidgets
} from '@/extensions/core/textPreviewWidgets'
import type { ComfyNodeDef } from '@/schemas/nodeDefSchema'
import { app } from '@/scripts/app'
import { useExtensionService } from '@/services/extensionService'
import { getNodeByLocatorId } from '@/utils/graphTraversalUtil'
useExtensionService().registerExtension({
name: 'Comfy.PreviewAny',
async beforeRegisterNodeDef(
nodeType: typeof LGraphNode,
nodeData: ComfyNodeDef
) {
if (nodeData.name !== 'PreviewAny') return
const onNodeCreated = nodeType.prototype.onNodeCreated
nodeType.prototype.onNodeCreated = function () {
onNodeCreated?.apply(this, [])
addTextPreviewWidgets(this)
}
const onExecuted = nodeType.prototype.onExecuted
nodeType.prototype.onExecuted = function (message) {
onExecuted?.apply(this, [message])
updateTextPreviewWidgets(this, message)
}
},
onNodeOutputsUpdated(nodeOutputs) {
for (const [nodeLocatorId, output] of Object.entries(nodeOutputs)) {
const node = getNodeByLocatorId(app.rootGraph, nodeLocatorId)
if (node?.type === 'PreviewAny') updateTextPreviewWidgets(node, output)
}
}
})
@@ -0,0 +1,74 @@
import type { LGraphNode } from '@/lib/litegraph/src/LGraphNode'
import type { ComfyNodeDef } from '@/schemas/nodeDefSchema'
import { applyTextReplacements } from '@/utils/searchAndReplace'
import { app } from '../../scripts/app'
const saveNodeTypes = new Set([
'SaveImage',
'SaveImageAdvanced',
'SaveSVGNode',
'SaveVideo',
'SaveAnimatedWEBP',
'SaveWEBM',
'SaveAudio',
'SaveAudioMP3',
'SaveAudioOpus',
'SaveAudioAdvanced',
'SaveGLB',
'Save3DAdvanced',
'SaveGaussianSplat',
'SavePointCloud',
'SaveAnimatedPNG',
'CLIPSave',
'VAESave',
'ModelSave',
'LoraSave',
'SaveLatent'
])
// Use widget values and dates in output filenames
app.registerExtension({
name: 'Comfy.SaveImageExtraOutput',
async beforeRegisterNodeDef(
nodeType: typeof LGraphNode,
nodeData: ComfyNodeDef
) {
if (saveNodeTypes.has(nodeData.name)) {
const onNodeCreated = nodeType.prototype.onNodeCreated
// When the SaveImage node is created we want to override the serialization of the output name widget to run our S&R
nodeType.prototype.onNodeCreated = function () {
const r = onNodeCreated
? // @ts-expect-error fixme ts strict error
onNodeCreated.apply(this, arguments)
: undefined
// @ts-expect-error fixme ts strict error
const widget = this.widgets.find((w) => w.name === 'filename_prefix')
// @ts-expect-error fixme ts strict error
widget.serializeValue = () => {
// @ts-expect-error fixme ts strict error
return applyTextReplacements(app.graph, widget.value)
}
return r
}
} else {
// When any other node is created add a property to alias the node
const onNodeCreated = nodeType.prototype.onNodeCreated
nodeType.prototype.onNodeCreated = function () {
const r = onNodeCreated
? // @ts-expect-error fixme ts strict error
onNodeCreated.apply(this, arguments)
: undefined
if (!this.properties || !('Node name for S&R' in this.properties)) {
this.addProperty('Node name for S&R', this.constructor.type, 'string')
}
return r
}
}
}
})
@@ -0,0 +1,85 @@
import type { LGraphNode } from '@/lib/litegraph/src/LGraphNode'
import { resolveNodeRootGraphId } from '@/lib/litegraph/src/litegraph'
import WidgetTextPreview from '@/renderer/extensions/vueNodes/widgets/components/WidgetTextPreview.vue'
import type { NodeExecutionOutput } from '@/schemas/apiSchema'
import type { CustomInputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
import { app } from '@/scripts/app'
import { ComponentWidgetImpl, addWidget } from '@/scripts/domWidget'
import { ComfyWidgets } from '@/scripts/widgets'
import { useWidgetValueStore } from '@/stores/widgetValueStore'
import { widgetId } from '@/types/widgetId'
const PREVIEW_WIDGET_NAME = 'preview_text'
const MODE_WIDGET_NAME = 'preview_mode'
const inputSpecTextPreview: CustomInputSpec = {
name: PREVIEW_WIDGET_NAME,
type: 'TEXT_PREVIEW',
isPreview: true
}
export function addTextPreviewWidgets(node: LGraphNode) {
const widgetStore = useWidgetValueStore()
let fallbackValue = ''
const previewWidgetId = () =>
widgetId(
resolveNodeRootGraphId(node, app.rootGraph.id),
node.id,
PREVIEW_WIDGET_NAME
)
const preview = new ComponentWidgetImpl<string | object>({
node,
name: PREVIEW_WIDGET_NAME,
component: WidgetTextPreview,
inputSpec: inputSpecTextPreview,
type: 'textPreview',
options: {
serialize: false,
hideInPanel: true,
getMinHeight: () => 60,
getValue: () => {
const stored = widgetStore.getWidget(previewWidgetId())?.value
return typeof stored === 'string' ? stored : fallbackValue
},
setValue: (value: string | object) => {
fallbackValue = typeof value === 'string' ? value : ''
const state = widgetStore.getWidget(previewWidgetId())
if (state) state.value = fallbackValue
}
}
})
preview.serialize = false
addWidget(node, preview)
const modeWidget = ComfyWidgets['BOOLEAN'](
node,
MODE_WIDGET_NAME,
[
'BOOLEAN',
{ label_on: 'Markdown', label_off: 'Plain text', default: false }
],
app
).widget
modeWidget.options.serialize = false
modeWidget.serialize = false
}
function toPreviewText(text: unknown): string {
if (text == null) return ''
if (Array.isArray(text))
return text.filter((part) => part != null).join('\n\n')
return String(text)
}
export function updateTextPreviewWidgets(
node: LGraphNode,
message: NodeExecutionOutput | null | undefined
) {
const preview = node.widgets?.find((w) => w.name === PREVIEW_WIDGET_NAME)
if (!preview) return
preview.value = toPreviewText(message?.text)
}
@@ -0,0 +1,40 @@
import type { LGraphNode } from '@/lib/litegraph/src/LGraphNode'
import {
type ComfyNodeDef,
type InputSpec,
isMediaUploadComboInput
} from '@/schemas/nodeDefSchema'
import { app } from '../../scripts/app'
// Adds an upload button to the nodes
const createUploadInput = (
imageInputName: string,
imageInputOptions: InputSpec
): InputSpec => [
'IMAGEUPLOAD',
{
...imageInputOptions[1],
imageInputName
}
]
app.registerExtension({
name: 'Comfy.UploadImage',
beforeRegisterNodeDef(_nodeType: typeof LGraphNode, nodeData: ComfyNodeDef) {
const { input } = nodeData ?? {}
const { required } = input ?? {}
if (!required) return
const found = Object.entries(required).find(([_, input]) =>
isMediaUploadComboInput(input)
)
// If media combo input found, attach upload input
if (found) {
const [inputName, inputSpec] = found
required.upload = createUploadInput(inputName, inputSpec)
}
}
})
@@ -0,0 +1,93 @@
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
import type { INumericWidget } from '@/lib/litegraph/src/types/widgets'
import { useSettingStore } from '@/platform/settings/settingStore'
import type { InputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
import { isIntInputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
import type { ComfyWidgetConstructorV2 } from '@/scripts/widgets'
import { addValueControlWidget } from '@/scripts/widgets'
import { transformInputSpecV2ToV1 } from '@/schemas/nodeDef/migration'
function onValueChange(this: INumericWidget, v: number) {
// For integers, always round to the nearest step
// step === 0 is invalid, assign 1 if options.step is 0
const step = this.options.step2 || 1
if (step === 1) {
// Simple case: round to nearest integer
this.value = Math.round(v)
} else {
// Round to nearest multiple of step
// First, determine if min value creates an offset
const min = this.options.min ?? 0
const offset = min % step
// Round to nearest step, accounting for offset
this.value = Math.round((v - offset) / step) * step + offset
}
}
export const _for_testing = {
onValueChange
}
export const useIntWidget = () => {
const widgetConstructor: ComfyWidgetConstructorV2 = (
node: LGraphNode,
inputSpec: InputSpec
) => {
if (!isIntInputSpec(inputSpec)) {
throw new Error(`Invalid input data: ${inputSpec}`)
}
const settingStore = useSettingStore()
const sliderEnabled = !settingStore.get('Comfy.DisableSliders')
const display_type = inputSpec.display
const widgetType =
sliderEnabled && display_type == 'slider'
? 'slider'
: display_type == 'knob'
? 'knob'
: 'number'
const step = inputSpec.step ?? 1
/** Assertion {@link inputSpec.default} */
const defaultValue = (inputSpec.default as number | undefined) ?? 0
const widget = node.addWidget(
widgetType,
inputSpec.name,
defaultValue,
onValueChange,
{
min: inputSpec.min ?? 0,
max: inputSpec.max ?? 2048,
/** @deprecated Use step2 instead. The 10x value is a legacy implementation. */
step: step * 10,
step2: step,
precision: 0
}
)
const controlAfterGenerate =
inputSpec.control_after_generate ??
['seed', 'noise_seed'].includes(inputSpec.name)
if (controlAfterGenerate) {
const defaultType =
typeof inputSpec.control_after_generate === 'string'
? inputSpec.control_after_generate
: 'randomize'
const controlWidget = addValueControlWidget(
node,
widget,
defaultType,
undefined,
undefined,
transformInputSpecV2ToV1(inputSpec)
)
widget.linkedWidgets = [controlWidget]
}
return widget
}
return widgetConstructor
}
@@ -0,0 +1,35 @@
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
import type {
IResolutionPreviewWidget,
IWidgetResolutionPreviewOptions
} from '@/lib/litegraph/src/types/widgets'
import { isResolutionPreviewInputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
import type { InputSpec as InputSpecV2 } from '@/schemas/nodeDef/nodeDefSchemaV2'
import type { ComfyWidgetConstructorV2 } from '@/scripts/widgets'
export const useResolutionPreviewWidget = (): ComfyWidgetConstructorV2 => {
return (
node: LGraphNode,
inputSpec: InputSpecV2
): IResolutionPreviewWidget => {
const spec = isResolutionPreviewInputSpec(inputSpec) ? inputSpec : undefined
const options: IWidgetResolutionPreviewOptions = {
serialize: false,
canvasOnly: false,
hideInPanel: true,
ratio_widget: spec?.ratio_widget,
megapixels_widget: spec?.megapixels_widget,
multiple_widget: spec?.multiple_widget
}
const rawWidget = node.addWidget(
'resolutionpreview',
inputSpec.name,
null,
() => {},
options
)
rawWidget.serialize = false
return rawWidget as IResolutionPreviewWidget
}
}
@@ -0,0 +1,95 @@
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
import { resolveNodeRootGraphId } from '@/lib/litegraph/src/litegraph'
import { defineDeprecatedProperty } from '@/lib/litegraph/src/utils/feedback'
import {
bindMultilineTextareaWidget,
createMultilineInputElement
} from '@/renderer/extensions/vueNodes/widgets/utils/multilineTextarea'
import { isStringInputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
import type { InputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
import { app } from '@/scripts/app'
import type { ComfyWidgetConstructorV2 } from '@/scripts/widgets'
import { useWidgetValueStore } from '@/stores/widgetValueStore'
import { widgetId } from '@/types/widgetId'
function addMultilineWidget(
node: LGraphNode,
name: string,
opts: { defaultVal: string; placeholder?: string }
) {
const widgetStore = useWidgetValueStore()
const inputEl = createMultilineInputElement(
opts.defaultVal,
opts.placeholder || name
)
const widget = node.addDOMWidget(name, 'customtext', inputEl, {
getValue(): string {
const graphId = resolveNodeRootGraphId(node, app.rootGraph.id)
const widgetState = widgetStore.getWidget(
widgetId(graphId, node.id, name)
)
return (widgetState?.value as string) ?? inputEl.value
},
setValue(v: string) {
inputEl.value = v
const graphId = resolveNodeRootGraphId(node, app.rootGraph.id)
const id = widgetId(graphId, node.id, name)
const widgetState = widgetStore.getWidget(id)
if (widgetState) {
widgetState.value = v
return
}
widgetStore.registerWidget(id, {
type: 'customtext',
value: v,
options: widget.options ?? {}
})
}
})
widget.element = inputEl
/** @deprecated Use {@link widget.element} instead (renamed in PR #8594). */
defineDeprecatedProperty(
widget,
'inputEl',
'element',
'widget.inputEl is deprecated. Use widget.element instead.'
)
widget.options.minNodeSize = [400, 200]
bindMultilineTextareaWidget(widget, inputEl)
return widget
}
export const useStringWidget = () => {
const widgetConstructor: ComfyWidgetConstructorV2 = (
node: LGraphNode,
inputSpec: InputSpec
) => {
if (!isStringInputSpec(inputSpec)) {
throw new Error(`Invalid input data: ${inputSpec}`)
}
const defaultVal = inputSpec.default ?? ''
const multiline = inputSpec.multiline
const widget = multiline
? addMultilineWidget(node, inputSpec.name, {
defaultVal,
placeholder: inputSpec.placeholder
})
: node.addWidget('text', inputSpec.name, defaultVal, () => {}, {})
if (typeof inputSpec.dynamicPrompts === 'boolean') {
widget.dynamicPrompts = inputSpec.dynamicPrompts
}
return widget
}
return widgetConstructor
}
@@ -0,0 +1,143 @@
import type {
ComfyNodeDef as ComfyNodeDefV2,
InputSpec as InputSpecV2,
OutputSpec as OutputSpecV2
} from '@/schemas/nodeDef/nodeDefSchemaV2'
import type {
ComfyNodeDef as ComfyNodeDefV1,
InputSpec as InputSpecV1
} from '@/schemas/nodeDefSchema'
import {
getComboSpecComboOptions,
isComboInputSpec,
isComboInputSpecV1
} from '@/schemas/nodeDefSchema'
/**
* Transforms a V1 node definition to V2 format
* @param nodeDefV1 The V1 node definition to transform
* @returns The transformed V2 node definition
*/
export function transformNodeDefV1ToV2(
nodeDefV1: ComfyNodeDefV1
): ComfyNodeDefV2 {
// Transform inputs
const inputs: Record<string, InputSpecV2> = {}
// Process required inputs
if (nodeDefV1.input?.required) {
Object.entries(nodeDefV1.input.required).forEach(([name, inputSpecV1]) => {
inputs[name] = transformInputSpecV1ToV2(inputSpecV1, {
name,
isOptional: false
})
})
}
// Process optional inputs
if (nodeDefV1.input?.optional) {
Object.entries(nodeDefV1.input.optional).forEach(([name, inputSpecV1]) => {
inputs[name] = transformInputSpecV1ToV2(inputSpecV1, {
name,
isOptional: true
})
})
}
// Transform outputs
const outputs: OutputSpecV2[] = []
if (nodeDefV1.output) {
if (Array.isArray(nodeDefV1.output)) {
nodeDefV1.output.forEach((outputType, index) => {
const outputSpec: OutputSpecV2 = {
index,
name: nodeDefV1.output_name?.[index] || `output_${index}`,
type: Array.isArray(outputType) ? 'COMBO' : outputType,
is_list: nodeDefV1.output_is_list?.[index] || false,
tooltip: nodeDefV1.output_tooltips?.[index]
}
// Add options for combo outputs
if (Array.isArray(outputType)) {
outputSpec.options = outputType
}
outputs.push(outputSpec)
})
} else {
console.warn('nodeDefV1.output is not an array:', nodeDefV1.output)
}
}
// Create the V2 node definition
return {
inputs,
outputs,
hidden: nodeDefV1.input?.hidden,
name: nodeDefV1.name,
display_name: nodeDefV1.display_name,
description: nodeDefV1.description,
category: nodeDefV1.category,
output_node: nodeDefV1.output_node,
python_module: nodeDefV1.python_module,
deprecated: nodeDefV1.deprecated,
experimental: nodeDefV1.experimental
}
}
/**
* Transforms a V1 input specification to V2 format
* @param inputSpecV1 The V1 input specification to transform
* @param name The name of the input
* @param isOptional Whether the input is optional
* @returns The transformed V2 input specification
*/
export function transformInputSpecV1ToV2(
inputSpecV1: InputSpecV1,
kwargs: {
name: string
isOptional?: boolean
}
): InputSpecV2 {
const { name, isOptional = false } = kwargs
// Extract options from the input spec
const options = inputSpecV1[1] || {}
// Base properties for all input types
const baseProps = {
name,
isOptional,
...options
}
// Handle different input types
if (isComboInputSpec(inputSpecV1)) {
return {
type: 'COMBO',
...baseProps,
options: isComboInputSpecV1(inputSpecV1)
? inputSpecV1[0]
: getComboSpecComboOptions(inputSpecV1)
}
} else if (typeof inputSpecV1[0] === 'string') {
// Handle standard types (INT, FLOAT, BOOLEAN, STRING) and custom types
return {
type: inputSpecV1[0],
...baseProps
}
}
// Fallback for any unhandled cases
return {
type: 'UNKNOWN',
...baseProps
}
}
export function transformInputSpecV2ToV1(
inputSpecV2: InputSpecV2
): InputSpecV1 {
return [inputSpecV2.type, inputSpecV2]
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,107 @@
import { promotedInputSource } from '@/core/graph/subgraph/promotedInputWidget'
import { resolveConcretePromotedWidget } from '@/core/graph/subgraph/resolveConcretePromotedWidget'
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
import type { IBaseWidget } from '@/lib/litegraph/src/types/widgets'
import { useSettingStore } from '@/platform/settings/settingStore'
import { isValueControlWidget, nextValueForLinkedTarget } from './valueControl'
/**
* A promoted subgraph host widget whose interior source widget is driven by a
* `control_after_generate` widget. The host owns the value (store-backed), while
* the interior linked widgets supply the control mode and filter (ADR 0009).
*/
interface PromotedControlTarget {
hostWidget: IBaseWidget
linkedWidgets: IBaseWidget[]
}
function collectPromotedControlTargets(
node: LGraphNode
): PromotedControlTarget[] {
if (!node.isSubgraphNode()) return []
const targets: PromotedControlTarget[] = []
for (const [index, input] of node.inputs.entries()) {
// Promoted inputs are store-backed and addressed by widgetId.
if (!input.widgetId) continue
// An incoming link means the value is fed externally (or by an outer
// subgraph boundary in the nested case), so the host store is not the
// authoritative source and control must not run here.
if (node.isInputConnected(index)) continue
const source = promotedInputSource(node, input)
if (!source) continue
const resolution = resolveConcretePromotedWidget(
node,
source.nodeId,
source.widgetName
)
if (resolution.status !== 'resolved') continue
const { linkedWidgets } = resolution.resolved.widget
if (!linkedWidgets?.some(isValueControlWidget)) continue
const hostWidget = node.getWidgetFromSlot(input)
if (!hostWidget) continue
targets.push({ hostWidget, linkedWidgets })
}
return targets
}
function applyTarget(target: PromotedControlTarget, nodeId: unknown): void {
const next = nextValueForLinkedTarget({
target: target.hostWidget,
linkedWidgets: target.linkedWidgets,
nodeId
})
if (next === undefined) return
target.hostWidget.value = next
target.hostWidget.callback?.(next)
}
function controlValueRunBefore(): boolean {
return useSettingStore().get('Comfy.WidgetControlMode') === 'before'
}
/**
* Host widgets that have run control at least once, so `before` mode can skip
* the first execution (mirroring the interior control widget's HAS_EXECUTED).
*
* Keyed by the widget instance so entries are released when the graph is
* cleared and its widgets are recreated, avoiding stale state across reloads.
*/
const executedWidgets = new WeakSet<IBaseWidget>()
/**
* Applies `control_after_generate` to a subgraph host node's promoted widgets.
*
* The interior control widget short-circuits for promoted inputs because the
* interior widget is link-fed by the subgraph boundary, so its value is dead.
* The authoritative value lives on the host node (store-backed), and this
* applies the next controlled value there.
*/
export function applyPromotedWidgetControl(
node: LGraphNode,
phase: 'beforeQueued' | 'afterQueued'
): void {
const runBefore = controlValueRunBefore()
if (phase === 'beforeQueued' && !runBefore) return
if (phase === 'afterQueued' && runBefore) return
for (const target of collectPromotedControlTargets(node)) {
if (phase === 'afterQueued') {
applyTarget(target, node.id)
continue
}
if (executedWidgets.has(target.hostWidget)) {
applyTarget(target, node.id)
}
executedWidgets.add(target.hostWidget)
}
}
@@ -0,0 +1,158 @@
import { isComboWidget } from '@/lib/litegraph/src/litegraph'
import type { IBaseWidget } from '@/lib/litegraph/src/types/widgets'
import { IS_CONTROL_WIDGET } from './controlWidgetMarker'
type ValueControlMode =
| 'fixed'
| 'increment'
| 'increment-wrap'
| 'decrement'
| 'randomize'
export function nextValueForLinkedTarget(params: {
target: IBaseWidget
linkedWidgets: IBaseWidget[] | undefined
nodeId: unknown
}): IBaseWidget['value'] | undefined {
const linked = params.linkedWidgets
if (!linked) return undefined
const controlWidget = linked.find(isValueControlWidget)
if (!controlWidget) return undefined
const comboFilter = linked.find(
(w) => w !== controlWidget && w.type === 'string'
)
const filterValue =
typeof comboFilter?.value === 'string' ? comboFilter.value : undefined
const mode = controlWidget.value as ValueControlMode
return computeNextControlledValue(params.target, mode, {
comboFilter: filterValue,
nodeId: params.nodeId
})
}
const SAFE_INTEGER_MAX = 1125899906842624
const SAFE_INTEGER_MIN = -1125899906842624
export function isValueControlWidget(widget: IBaseWidget): boolean {
return (
(widget as Record<symbol, unknown>)[IS_CONTROL_WIDGET] === true &&
typeof widget.beforeQueued === 'function' &&
typeof widget.afterQueued === 'function'
)
}
function buildComboFilter(
filter: string | undefined,
nodeId?: unknown
): ((item: string) => boolean) | undefined {
if (!filter) return undefined
if (filter.startsWith('/') && filter.endsWith('/')) {
try {
const regex = new RegExp(filter.substring(1, filter.length - 1))
return (item: string) => regex.test(item)
} catch (error) {
console.error(
'Error constructing RegExp filter for node ' + String(nodeId),
filter,
error
)
}
}
const lower = filter.toLocaleLowerCase()
return (item: string) => item.toLocaleLowerCase().includes(lower)
}
export function computeNextControlledValue(
target: IBaseWidget,
mode: ValueControlMode,
options: { comboFilter?: string; nodeId?: unknown } = {}
): IBaseWidget['value'] | undefined {
if (mode === 'fixed') return undefined
if (isComboWidget(target)) {
return computeNextComboValue(target, mode, options)
}
return computeNextNumberValue(target, mode)
}
function computeNextComboValue(
target: IBaseWidget,
mode: ValueControlMode,
{ comboFilter, nodeId }: { comboFilter?: string; nodeId?: unknown }
): IBaseWidget['value'] | undefined {
const rawValues = target.options.values
if (!Array.isArray(rawValues)) return undefined
const allValues = rawValues.filter(
(value): value is string => typeof value === 'string'
)
const check = buildComboFilter(comboFilter, nodeId)
const values = check ? allValues.filter(check) : allValues
if (!values.length) {
if (allValues.length) {
console.warn(
'Filter for node ' + String(nodeId) + ' has filtered out all items',
comboFilter
)
}
return undefined
}
let currentIndex = values.indexOf(target.value as string)
const length = values.length
switch (mode) {
case 'increment':
currentIndex += 1
break
case 'increment-wrap':
currentIndex += 1
if (currentIndex >= length) currentIndex = 0
break
case 'decrement':
currentIndex -= 1
break
case 'randomize':
currentIndex = Math.floor(Math.random() * length)
break
}
currentIndex = Math.max(0, Math.min(length - 1, currentIndex))
return values[currentIndex]
}
function computeNextNumberValue(
target: IBaseWidget,
mode: ValueControlMode
): number | undefined {
if (typeof target.value !== 'number') return undefined
const { min: rawMin = 0, max: rawMax = 1, step2 = 1 } = target.options
const max = Math.min(SAFE_INTEGER_MAX, rawMax)
const min = Math.max(SAFE_INTEGER_MIN, rawMin)
const range = (max - min) / step2
let next = target.value
switch (mode) {
case 'increment':
case 'increment-wrap':
next += step2
break
case 'decrement':
next -= step2
break
case 'randomize':
next = Math.floor(Math.random() * range) * step2 + min
break
}
return Math.min(Math.max(next, min), max)
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,57 @@
import type { LGraph, Subgraph } from '@/lib/litegraph/src/litegraph'
import { formatDate } from '@/utils/formatUtil'
import { collectAllNodes } from '@/utils/graphTraversalUtil'
export function applyTextReplacements(
graph: LGraph | Subgraph,
value: string
): string {
const allNodes = collectAllNodes(graph)
return value.replace(/%([^%]+)%/g, function (match, text) {
const split = text.split('.')
if (split.length !== 2) {
// Special handling for dates
if (split[0].startsWith('date:')) {
return formatDate(split[0].substring(5), new Date())
}
if (text !== 'width' && text !== 'height') {
// Dont warn on standard replacements
console.warn('Invalid replacement pattern', text)
}
return match
}
// Find node with matching S&R property name
let nodes = allNodes.filter(
(n) => n.properties?.['Node name for S&R'] === split[0]
)
// If we can't, see if there is a node with that title
if (!nodes.length) {
nodes = allNodes.filter((n) => n.title === split[0])
}
if (!nodes.length) {
console.warn('Unable to find node', split[0])
return match
}
if (nodes.length > 1) {
console.warn('Multiple nodes matched', split[0], 'using first match')
}
const node = nodes[0]
const widget = node.widgets?.find((w) => w.name === split[1])
if (!widget) {
console.warn('Unable to find widget', split[1], 'on node', split[0], node)
return match
}
return ((widget.value ?? '') + '').replaceAll(
// eslint-disable-next-line no-control-regex
/[/?<>\\:*|"\x00-\x1F\x7F]/g,
'_'
)
})
}
@@ -0,0 +1,185 @@
{
"profile": "comfy-frontend-1.53.6-core-0.38.0-saved-state-reference",
"phase": "restored_saved_state_before_queue_hooks",
"constructors": [
{
"type": "ResolutionSelector",
"source_file": "case04-reference/0.38.0__comfy_extras__nodes_resolution.py",
"sha256": "3fe5c3f9aeceed343725a91c6feaa13377b5ebad2c95fd633e3806d69d10bcc8",
"constructor_lines": [
[
7,
80
]
],
"source_manifest": "sources.json"
},
{
"type": "SaveImageAdvanced",
"source_file": "case04-reference/0.38.0__comfy_extras__nodes_images.py",
"sha256": "f8e171f428e2e81de8d7b1cd582ac4ac82cd7ae5a3c947f118ecf85df920bf50",
"constructor_lines": [
[
1769,
1875
]
],
"source_manifest": "sources.json"
},
{
"type": "KSampler",
"source_file": "promoted-reference/core-0.38.0__nodes.py",
"sha256": "fe624b0c1b6a3cd124a2214e5700b61337589144c2f0668900a04f8ccc031e38",
"constructor_lines": [
[
1605,
1631
]
],
"source_manifest": "../promoted-reference/sources.json"
},
{
"type": "TextGenerate",
"source_file": "promoted-reference/core-0.38.0__comfy_extras__nodes_textgen.py",
"sha256": "ce41b40babe829cf8773aee3c3e43079f91205db921f6d964685e5fb0e5d7f54",
"constructor_lines": [
[
4,
49
]
],
"source_manifest": "../promoted-reference/sources.json"
},
{
"type": "TextEncodeQwenImage21",
"source_file": "promoted-reference/core-0.38.0__comfy_extras__nodes_qwen.py",
"sha256": "54ce02aa9e167c0b497ce026ac6b558f539427d2d1ed4fc1fcc2ec8e6bc529da",
"constructor_lines": [
[
111,
141
]
],
"source_manifest": "../promoted-reference/sources.json"
},
{
"type": "VAEDecode",
"source_file": "promoted-reference/core-0.38.0__nodes.py",
"sha256": "fe624b0c1b6a3cd124a2214e5700b61337589144c2f0668900a04f8ccc031e38",
"constructor_lines": [
[
320,
345
]
],
"source_manifest": "../promoted-reference/sources.json"
},
{
"type": "PreviewAny",
"source_file": "case04-reference/0.38.0__comfy_extras__nodes_preview_any.py",
"sha256": "48cffa3b2ddd08c311af609642da8703abc9bac9e624c400c3dc41f6edcea930",
"constructor_lines": [
[
9,
44
]
],
"source_manifest": "sources.json"
},
{
"type": "ComfySwitchNode",
"source_file": "promoted-reference/core-0.38.0__comfy_extras__nodes_logic.py",
"sha256": "6a146d3a814e37c65c9e749c2fde6d8f0ea8c1fc3f215cb249009e87303908bf",
"constructor_lines": [
[
86,
112
]
],
"source_manifest": "../promoted-reference/sources.json"
},
{
"type": "UNETLoader",
"source_file": "promoted-reference/core-0.38.0__nodes.py",
"sha256": "fe624b0c1b6a3cd124a2214e5700b61337589144c2f0668900a04f8ccc031e38",
"constructor_lines": [
[
991,
1015
]
],
"source_manifest": "../promoted-reference/sources.json"
},
{
"type": "CLIPLoader",
"source_file": "promoted-reference/core-0.38.0__nodes.py",
"sha256": "fe624b0c1b6a3cd124a2214e5700b61337589144c2f0668900a04f8ccc031e38",
"constructor_lines": [
[
1016,
1041
]
],
"source_manifest": "../promoted-reference/sources.json"
},
{
"type": "VAELoader",
"source_file": "promoted-reference/core-0.38.0__nodes.py",
"sha256": "fe624b0c1b6a3cd124a2214e5700b61337589144c2f0668900a04f8ccc031e38",
"constructor_lines": [
[
775,
806
]
],
"source_manifest": "../promoted-reference/sources.json"
},
{
"type": "EmptyLatentImage",
"source_file": "promoted-reference/core-0.38.0__nodes.py",
"sha256": "fe624b0c1b6a3cd124a2214e5700b61337589144c2f0668900a04f8ccc031e38",
"constructor_lines": [
[
1254,
1274
]
],
"source_manifest": "../promoted-reference/sources.json"
},
{
"type": "PrimitiveStringMultiline",
"source_file": "promoted-reference/core-0.38.0__comfy_extras__nodes_primitive.py",
"sha256": "329963dd20fbf8985539b7b990780291f4b82ee9cfd42b96b571288b77eaa47a",
"constructor_lines": [
[
25,
40
]
],
"source_manifest": "../promoted-reference/sources.json"
},
{
"type": "QwenImage21Cache",
"source_file": "promoted-reference/core-0.38.0__comfy_extras__nodes_qwen.py",
"sha256": "54ce02aa9e167c0b497ce026ac6b558f539427d2d1ed4fc1fcc2ec8e6bc529da",
"constructor_lines": [
[
185,
215
]
],
"source_manifest": "../promoted-reference/sources.json"
}
],
"assumption": "unmodified pinned frontend/core constructors and built-in extensions; target unknown",
"coverage": "TextGenerate.on; SaveImageAdvanced.png; STRING MatchType; contiguous image autogrow with final empty socket; fixed control only",
"not_covered": [
"beforeQueued/afterQueued history/settings",
"nonfixed control RNG",
"other dynamic branches",
"dynamic text expressions",
"filename replacements",
"third-party custom serializer overrides",
"target dynamic model/file availability"
]
}
@@ -0,0 +1,36 @@
{
"identity": "git_tree_sha plus sorted fixed paths",
"trees": [
{
"tree_file": "docs/hel-892/case04-reference/frontend-tree.json",
"git_tree_sha": "7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1",
"path_count": 7340,
"fixed_paths_sha256": "e60e38f4e6fbeb04c3ae73ee0c40bdcf2a6c3a0b9f6da5547d901dfc1fa60118",
"truncated": false,
"received_response_bytes_sha256": "05d8f4d77b564d46829bbc258ec0e9d24f2cb38cd97f63f496ea2fe0c4689648",
"response_hash_scope": "local received bytes only; not a canonical cross-request identifier",
"retrieval": "frontend fetched this run; core reused previous audited original; no new 0.31.0 search"
},
{
"tree_file": "docs/hel-892/promoted-reference/core-tree-0.38.0.json",
"git_tree_sha": "6b747c0428c343e1417219641db93a4fb7cb69ae",
"path_count": 1439,
"fixed_paths_sha256": "b8b4b3d52df03dcd67be3c393709cba96f2e56c952064b88782393716279ffba",
"truncated": false,
"received_response_bytes_sha256": "d2389807d456d8b68ec6b15d4f609a7e31ee6bf459e0620697fce652b472a185",
"response_hash_scope": "local received bytes only; not a canonical cross-request identifier",
"retrieval": "frontend fetched this run; core reused previous audited original; no new 0.31.0 search"
},
{
"tree_file": "docs/hel-892/promoted-reference/core-tree-0.31.0.json",
"git_tree_sha": "43cb4fffc89bba20ab7bd61467a36d0339338dab",
"path_count": 1194,
"fixed_paths_sha256": "5166b14a245b077efa1be96c60058b908a833eac576374a6ee0e5d33ac4065ce",
"truncated": false,
"received_response_bytes_sha256": "a301df0e968dee355a92afa84e3b6252de8eec054efbe6e611429149df49b2d2",
"response_hash_scope": "local received bytes only; not a canonical cross-request identifier",
"retrieval": "frontend fetched this run; core reused previous audited original; no new 0.31.0 search"
}
],
"bounded_absent_path": "src/services/comfyWidgetService.ts returned 404; actual widget dispatch proven in src/services/litegraphService.ts"
}
File diff suppressed because one or more lines are too long
+742
View File
@@ -0,0 +1,742 @@
{
"authority": "public_reference_only",
"sources": [
{
"id": "0.38.0:comfy_extras/nodes_resolution.py",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"version": "0.38.0",
"commit": "6b747c0428c343e1417219641db93a4fb7cb69ae",
"file": "comfy_extras/nodes_resolution.py",
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/6b747c0428c343e1417219641db93a4fb7cb69ae/comfy_extras/nodes_resolution.py",
"url": "https://github.com/Comfy-Org/ComfyUI/blob/6b747c0428c343e1417219641db93a4fb7cb69ae/comfy_extras/nodes_resolution.py",
"sha256": "3fe5c3f9aeceed343725a91c6feaa13377b5ebad2c95fd633e3806d69d10bcc8",
"local_file": "0.38.0__comfy_extras__nodes_resolution.py",
"retrieved_at": "2026-10-29T17:20:33.368905+00:00",
"lines": [
[
1,
98
]
],
"license": "GPL-3.0; original LICENSE retained in ../promoted-reference (core) or ../structure-reference (frontend)",
"target_version_match": "unknown",
"rule_locations": [
[
7,
24
],
[
30,
47
]
]
},
{
"id": "0.38.0:comfy_extras/nodes_images.py",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"version": "0.38.0",
"commit": "6b747c0428c343e1417219641db93a4fb7cb69ae",
"file": "comfy_extras/nodes_images.py",
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/6b747c0428c343e1417219641db93a4fb7cb69ae/comfy_extras/nodes_images.py",
"url": "https://github.com/Comfy-Org/ComfyUI/blob/6b747c0428c343e1417219641db93a4fb7cb69ae/comfy_extras/nodes_images.py",
"sha256": "f8e171f428e2e81de8d7b1cd582ac4ac82cd7ae5a3c947f118ecf85df920bf50",
"local_file": "0.38.0__comfy_extras__nodes_images.py",
"retrieved_at": "2026-10-29T17:20:33.792525+00:00",
"lines": [
[
1,
1956
]
],
"license": "GPL-3.0; original LICENSE retained in ../promoted-reference (core) or ../structure-reference (frontend)",
"target_version_match": "unknown",
"rule_locations": [
[
1769,
1786
]
]
},
{
"id": "0.38.0:comfy_extras/nodes_preview_any.py",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"version": "0.38.0",
"commit": "6b747c0428c343e1417219641db93a4fb7cb69ae",
"file": "comfy_extras/nodes_preview_any.py",
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/6b747c0428c343e1417219641db93a4fb7cb69ae/comfy_extras/nodes_preview_any.py",
"url": "https://github.com/Comfy-Org/ComfyUI/blob/6b747c0428c343e1417219641db93a4fb7cb69ae/comfy_extras/nodes_preview_any.py",
"sha256": "48cffa3b2ddd08c311af609642da8703abc9bac9e624c400c3dc41f6edcea930",
"local_file": "0.38.0__comfy_extras__nodes_preview_any.py",
"retrieved_at": "2026-10-29T17:20:33.168904+00:00",
"lines": [
[
1,
48
]
],
"license": "GPL-3.0; original LICENSE retained in ../promoted-reference (core) or ../structure-reference (frontend)",
"target_version_match": "unknown",
"rule_locations": [
[
8,
25
],
[
15,
32
]
]
},
{
"id": "0.38.0:comfy_api/latest/_io.py",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"version": "0.38.0",
"commit": "6b747c0428c343e1417219641db93a4fb7cb69ae",
"file": "comfy_api/latest/_io.py",
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/6b747c0428c343e1417219641db93a4fb7cb69ae/comfy_api/latest/_io.py",
"url": "https://github.com/Comfy-Org/ComfyUI/blob/6b747c0428c343e1417219641db93a4fb7cb69ae/comfy_api/latest/_io.py",
"sha256": "e697ed00732deffb46d7a017d82dae48ee2504a8d356f911a1447ec6146294f7",
"local_file": "0.38.0__comfy_api__latest___io.py",
"retrieved_at": "2026-10-29T17:20:33.718750+00:00",
"lines": [
[
1,
2562
]
],
"license": "GPL-3.0; original LICENSE retained in ../promoted-reference (core) or ../structure-reference (frontend)",
"target_version_match": "unknown",
"rule_locations": [
[
268,
285
],
[
323,
340
],
[
1083,
1100
],
[
1220,
1237
]
]
},
{
"id": "0.38.0:comfy_api/latest/_io_public.py",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"version": "0.38.0",
"commit": "6b747c0428c343e1417219641db93a4fb7cb69ae",
"file": "comfy_api/latest/_io_public.py",
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/6b747c0428c343e1417219641db93a4fb7cb69ae/comfy_api/latest/_io_public.py",
"url": "https://github.com/Comfy-Org/ComfyUI/blob/6b747c0428c343e1417219641db93a4fb7cb69ae/comfy_api/latest/_io_public.py",
"sha256": "c805d754d61aba1ea72ed2d9d5c371de35be9affa5305d35426fb298fcb7c046",
"local_file": "0.38.0__comfy_api__latest___io_public.py",
"retrieved_at": "2026-10-29T17:20:33.537924+00:00",
"lines": [
[
1,
1
]
],
"license": "GPL-3.0; original LICENSE retained in ../promoted-reference (core) or ../structure-reference (frontend)",
"target_version_match": "unknown",
"rule_locations": []
},
{
"id": "0.38.0:comfy/samplers.py",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"version": "0.38.0",
"commit": "6b747c0428c343e1417219641db93a4fb7cb69ae",
"file": "comfy/samplers.py",
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/6b747c0428c343e1417219641db93a4fb7cb69ae/comfy/samplers.py",
"url": "https://github.com/Comfy-Org/ComfyUI/blob/6b747c0428c343e1417219641db93a4fb7cb69ae/comfy/samplers.py",
"sha256": "f2c264ca9d394612f828e3ffe167c856a278a10e1711b269f0ba65dccb66393f",
"local_file": "0.38.0__comfy__samplers.py",
"retrieved_at": "2026-10-29T17:20:33.774416+00:00",
"lines": [
[
1,
1463
]
],
"license": "GPL-3.0; original LICENSE retained in ../promoted-reference (core) or ../structure-reference (frontend)",
"target_version_match": "unknown",
"rule_locations": [
[
971,
988
],
[
1356,
1373
],
[
1365,
1382
]
]
},
{
"id": "1.53.6:src/scripts/valueControl.ts",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"version": "1.53.6",
"commit": "7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1",
"file": "src/scripts/valueControl.ts",
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/scripts/valueControl.ts",
"url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/scripts/valueControl.ts",
"sha256": "007c7204d1fe88d156e07fee783a55e79fa7610e98a8a9f7761704a076a60458",
"local_file": "1.53.6__src__scripts__valueControl.ts",
"retrieved_at": "2026-10-29T17:20:34.063764+00:00",
"lines": [
[
1,
158
]
],
"license": "GPL-3.0; original LICENSE retained in ../promoted-reference (core) or ../structure-reference (frontend)",
"target_version_match": "unknown",
"rule_locations": [
[
37,
54
],
[
71,
88
],
[
132,
149
],
[
139,
156
]
]
},
{
"id": "1.53.6:src/scripts/app.ts",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"version": "1.53.6",
"commit": "7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1",
"file": "src/scripts/app.ts",
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/scripts/app.ts",
"url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/scripts/app.ts",
"sha256": "ba650ea75b14affbdd1fbf4d821679d29dde59bd09986666a4734c8a160f7027",
"local_file": "1.53.6__src__scripts__app.ts",
"retrieved_at": "2026-10-29T17:20:52.938497+00:00",
"lines": [
[
1,
2602
]
],
"license": "GPL-3.0; original LICENSE retained in ../promoted-reference (core) or ../structure-reference (frontend)",
"target_version_match": "unknown",
"rule_locations": [
[
1758,
1775
],
[
1760,
1777
],
[
1769,
1786
],
[
1974,
1991
]
]
},
{
"id": "1.53.6:src/renderer/extensions/vueNodes/widgets/composables/useResolutionPreviewWidget.ts",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"version": "1.53.6",
"commit": "7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1",
"file": "src/renderer/extensions/vueNodes/widgets/composables/useResolutionPreviewWidget.ts",
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/renderer/extensions/vueNodes/widgets/composables/useResolutionPreviewWidget.ts",
"url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/renderer/extensions/vueNodes/widgets/composables/useResolutionPreviewWidget.ts",
"sha256": "4316e8869b8673488ea9b136dbd4027160626c53cab9372fa1ca7aab059cf124",
"local_file": "1.53.6__src__renderer__extensions__vueNodes__widgets__composables__useResolutionPreviewWidget.ts",
"retrieved_at": "2026-10-29T17:20:34.082702+00:00",
"lines": [
[
1,
35
]
],
"license": "GPL-3.0; original LICENSE retained in ../promoted-reference (core) or ../structure-reference (frontend)",
"target_version_match": "unknown",
"rule_locations": [
[
17,
34
],
[
31,
35
]
]
},
{
"id": "1.53.6:src/extensions/core/previewAny.ts",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"version": "1.53.6",
"commit": "7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1",
"file": "src/extensions/core/previewAny.ts",
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/extensions/core/previewAny.ts",
"url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/extensions/core/previewAny.ts",
"sha256": "da8f4361b054d8619c09b4abaae1c2c464d6c8927968e60f18e61b467d2a3366",
"local_file": "1.53.6__src__extensions__core__previewAny.ts",
"retrieved_at": "2026-10-29T17:20:34.504586+00:00",
"lines": [
[
1,
42
]
],
"license": "GPL-3.0; original LICENSE retained in ../promoted-reference (core) or ../structure-reference (frontend)",
"target_version_match": "unknown",
"rule_locations": [
[
27,
42
]
]
},
{
"id": "1.53.6:src/core/graph/widgets/dynamicWidgets.ts",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"version": "1.53.6",
"commit": "7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1",
"file": "src/core/graph/widgets/dynamicWidgets.ts",
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/core/graph/widgets/dynamicWidgets.ts",
"url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/core/graph/widgets/dynamicWidgets.ts",
"sha256": "35cbe6eae6470bdd9aa45f17000ba444dce21597fdb8edf54da43ffb840936c1",
"local_file": "1.53.6__src__core__graph__widgets__dynamicWidgets.ts",
"retrieved_at": "2026-10-29T17:20:34.662790+00:00",
"lines": [
[
1,
706
]
],
"license": "GPL-3.0; original LICENSE retained in ../promoted-reference (core) or ../structure-reference (frontend)",
"target_version_match": "unknown",
"rule_locations": [
[
99,
116
],
[
200,
217
],
[
293,
310
],
[
456,
473
],
[
680,
697
]
]
},
{
"id": "1.53.6:src/schemas/nodeDef/migration.ts",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"version": "1.53.6",
"commit": "7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1",
"file": "src/schemas/nodeDef/migration.ts",
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/schemas/nodeDef/migration.ts",
"url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/schemas/nodeDef/migration.ts",
"sha256": "ae357da184625b93c492c0b73ce9bd2f3b49d158ca19a2944c6500f924a7a533",
"local_file": "1.53.6__src__schemas__nodeDef__migration.ts",
"retrieved_at": "2026-10-29T17:20:34.532218+00:00",
"lines": [
[
1,
143
]
],
"license": "GPL-3.0; original LICENSE retained in ../promoted-reference (core) or ../structure-reference (frontend)",
"target_version_match": "unknown",
"rule_locations": []
},
{
"id": "1.53.6:src/renderer/extensions/vueNodes/widgets/composables/useIntWidget.ts",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"version": "1.53.6",
"commit": "7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1",
"file": "src/renderer/extensions/vueNodes/widgets/composables/useIntWidget.ts",
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/renderer/extensions/vueNodes/widgets/composables/useIntWidget.ts",
"url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/renderer/extensions/vueNodes/widgets/composables/useIntWidget.ts",
"sha256": "8720d5a8194c9987eddbb42d0e925bcbb20e96e94f52c5f21750ba90b2113e02",
"local_file": "1.53.6__src__renderer__extensions__vueNodes__widgets__composables__useIntWidget.ts",
"retrieved_at": "2026-10-29T17:20:34.838175+00:00",
"lines": [
[
1,
93
]
],
"license": "GPL-3.0; original LICENSE retained in ../promoted-reference (core) or ../structure-reference (frontend)",
"target_version_match": "unknown",
"rule_locations": [
[
70,
87
],
[
79,
93
]
]
},
{
"id": "1.53.6:src/renderer/extensions/vueNodes/widgets/composables/useStringWidget.ts",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"version": "1.53.6",
"commit": "7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1",
"file": "src/renderer/extensions/vueNodes/widgets/composables/useStringWidget.ts",
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/renderer/extensions/vueNodes/widgets/composables/useStringWidget.ts",
"url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/renderer/extensions/vueNodes/widgets/composables/useStringWidget.ts",
"sha256": "9d015f423d90ac563f55c9f92d016948ac0e4496d660f6020bced8fa0e0d43a6",
"local_file": "1.53.6__src__renderer__extensions__vueNodes__widgets__composables__useStringWidget.ts",
"retrieved_at": "2026-10-29T17:20:34.538389+00:00",
"lines": [
[
1,
95
]
],
"license": "GPL-3.0; original LICENSE retained in ../promoted-reference (core) or ../structure-reference (frontend)",
"target_version_match": "unknown",
"rule_locations": []
},
{
"id": "1.53.6:src/scripts/promotedWidgetControl.ts",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"version": "1.53.6",
"commit": "7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1",
"file": "src/scripts/promotedWidgetControl.ts",
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/scripts/promotedWidgetControl.ts",
"url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/scripts/promotedWidgetControl.ts",
"sha256": "30b0703305b8c3f921be3e700d9a1406f5721a7d5f8a8d1be56c8964e32743a4",
"local_file": "1.53.6__src__scripts__promotedWidgetControl.ts",
"retrieved_at": "2026-10-29T17:21:30.633547+00:00",
"lines": [
[
1,
107
]
],
"license": "GPL-3.0; LICENSE in ../structure-reference",
"target_version_match": "unknown",
"rule_locations": [
[
19,
36
],
[
88,
105
]
]
},
{
"id": "1.53.6:src/extensions/core/textPreviewWidgets.ts",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"version": "1.53.6",
"commit": "7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1",
"file": "src/extensions/core/textPreviewWidgets.ts",
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/extensions/core/textPreviewWidgets.ts",
"url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/extensions/core/textPreviewWidgets.ts",
"sha256": "453e4c11c902e84dc9950475f8439d4364d0244bfe370c4b74770b84c2592a75",
"local_file": "1.53.6__src__extensions__core__textPreviewWidgets.ts",
"retrieved_at": "2026-10-29T17:21:30.369331+00:00",
"lines": [
[
1,
85
]
],
"license": "GPL-3.0; LICENSE in ../structure-reference",
"target_version_match": "unknown",
"rule_locations": [
[
21,
38
],
[
66,
83
]
]
},
{
"id": "1.53.6:src/services/litegraphService.ts",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"version": "1.53.6",
"commit": "7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1",
"file": "src/services/litegraphService.ts",
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/services/litegraphService.ts",
"url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/services/litegraphService.ts",
"sha256": "84ffdeae56bc73065fd2a44ae924b6ab4fd48bb7e79a710210e858cce508784e",
"local_file": "1.53.6__src__services__litegraphService.ts",
"retrieved_at": "2026-10-29T17:21:31.568254+00:00",
"lines": [
[
1,
1030
]
],
"license": "GPL-3.0; LICENSE in ../structure-reference",
"target_version_match": "unknown",
"rule_locations": [
[
229,
246
],
[
285,
302
],
[
303,
320
],
[
308,
325
]
]
},
{
"id": "1.53.6:packages/shared-frontend-utils/src/formatUtil.ts",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"version": "1.53.6",
"commit": "7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1",
"file": "packages/shared-frontend-utils/src/formatUtil.ts",
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/packages/shared-frontend-utils/src/formatUtil.ts",
"url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/packages/shared-frontend-utils/src/formatUtil.ts",
"sha256": "939faea5d135ce2aeb78c4dc92232de7e4836ab90d9fb61a804a457bbc910253",
"local_file": "1.53.6__packages__shared-frontend-utils__src__formatUtil.ts",
"retrieved_at": "2026-10-29T17:21:30.089827+00:00",
"lines": [
[
1,
772
]
],
"license": "GPL-3.0; LICENSE in ../structure-reference",
"target_version_match": "unknown",
"rule_locations": [
[
231,
248
]
]
},
{
"id": "1.53.6:src/extensions/core/saveImageExtraOutput.ts",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"version": "1.53.6",
"commit": "7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1",
"file": "src/extensions/core/saveImageExtraOutput.ts",
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/extensions/core/saveImageExtraOutput.ts",
"url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/extensions/core/saveImageExtraOutput.ts",
"sha256": "2115ffeb31f3099e0e97b46304b802653c1ba58ad746323d1b094a1605265682",
"local_file": "1.53.6__src__extensions__core__saveImageExtraOutput.ts",
"retrieved_at": "2026-10-29T17:21:30.500010+00:00",
"lines": [
[
1,
74
]
],
"license": "GPL-3.0; LICENSE in ../structure-reference",
"target_version_match": "unknown",
"rule_locations": [
[
50,
67
]
]
},
{
"id": "1.53.6:src/extensions/core/uploadImage.ts",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"version": "1.53.6",
"commit": "7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1",
"file": "src/extensions/core/uploadImage.ts",
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/extensions/core/uploadImage.ts",
"url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/extensions/core/uploadImage.ts",
"sha256": "48d062c2ee95bd77c537c539e6c8f8bc03bd71dcec94c5b82487c014ea3e9c06",
"local_file": "1.53.6__src__extensions__core__uploadImage.ts",
"retrieved_at": "2026-10-29T17:21:30.881586+00:00",
"lines": [
[
1,
40
]
],
"license": "GPL-3.0; LICENSE in ../structure-reference",
"target_version_match": "unknown",
"rule_locations": []
},
{
"id": "1.53.6:src/utils/searchAndReplace.ts",
"version": "1.53.6",
"commit": "7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"file": "src/utils/searchAndReplace.ts",
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/utils/searchAndReplace.ts",
"url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/utils/searchAndReplace.ts",
"sha256": "c7462edebf266b8b8cc62954a371ca3ec3fd1ee4c188e1b80a675003b49887d4",
"local_file": "1.53.6__src__utils__searchAndReplace.ts",
"retrieved_at": "2026-10-29T17:22:32.366223+00:00",
"lines": [
[
1,
57
]
],
"license": "GPL-3.0; LICENSE in ../structure-reference",
"target_version_match": "unknown",
"rule_locations": [
[
11,
28
]
]
},
{
"id": "1.53.6:src/core/graph/subgraph/promotedInputWidget.ts",
"version": "1.53.6",
"commit": "7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"file": "src/core/graph/subgraph/promotedInputWidget.ts",
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/core/graph/subgraph/promotedInputWidget.ts",
"url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/core/graph/subgraph/promotedInputWidget.ts",
"sha256": "9d785e3515e0cfc84cbfbdaf33dc00cd668b243fcab9739a66c1954c22e15936",
"local_file": "1.53.6__src__core__graph__subgraph__promotedInputWidget.ts",
"retrieved_at": "2026-10-29T17:22:32.860757+00:00",
"lines": [
[
1,
100
]
],
"license": "GPL-3.0; LICENSE in ../structure-reference",
"target_version_match": "unknown",
"rule_locations": []
},
{
"id": "1.53.6:src/core/graph/subgraph/resolveConcretePromotedWidget.ts",
"version": "1.53.6",
"commit": "7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"file": "src/core/graph/subgraph/resolveConcretePromotedWidget.ts",
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/core/graph/subgraph/resolveConcretePromotedWidget.ts",
"url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/core/graph/subgraph/resolveConcretePromotedWidget.ts",
"sha256": "9833f86c3533518ed6ce2085a38afc8039cf903e4729bb10572551bd148a317d",
"local_file": "1.53.6__src__core__graph__subgraph__resolveConcretePromotedWidget.ts",
"retrieved_at": "2026-10-29T17:22:33.394683+00:00",
"lines": [
[
1,
156
]
],
"license": "GPL-3.0; LICENSE in ../structure-reference",
"target_version_match": "unknown",
"rule_locations": []
},
{
"id": "0.38.0:comfy_api/internal/__init__.py",
"version": "0.38.0",
"commit": "6b747c0428c343e1417219641db93a4fb7cb69ae",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"file": "comfy_api/internal/__init__.py",
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/6b747c0428c343e1417219641db93a4fb7cb69ae/comfy_api/internal/__init__.py",
"url": "https://github.com/Comfy-Org/ComfyUI/blob/6b747c0428c343e1417219641db93a4fb7cb69ae/comfy_api/internal/__init__.py",
"sha256": "50786f7e2ebc910ed9becddf066e92d7924b7f6080189651067bbcd839e8a410",
"local_file": "0.38.0__comfy_api__internal____init__.py",
"retrieved_at": "2026-10-29T17:27:47.073834+00:00",
"lines": [
[
1,
150
]
],
"license": "GPL-3.0; LICENSE retained in previous reference directories",
"target_version_match": "unknown",
"rule_locations": [
[
58,
75
]
]
},
{
"id": "1.53.6:src/core/graph/subgraph/resolveSubgraphInputTarget.ts",
"version": "1.53.6",
"commit": "7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"file": "src/core/graph/subgraph/resolveSubgraphInputTarget.ts",
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/core/graph/subgraph/resolveSubgraphInputTarget.ts",
"url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/core/graph/subgraph/resolveSubgraphInputTarget.ts",
"sha256": "11395e93cf9199ea2a7a9f097306e01434a43d6a9df2c0db773170c5ecd85451",
"local_file": "1.53.6__src__core__graph__subgraph__resolveSubgraphInputTarget.ts",
"retrieved_at": "2026-10-29T17:27:47.517113+00:00",
"lines": [
[
1,
35
]
],
"license": "GPL-3.0; LICENSE retained in previous reference directories",
"target_version_match": "unknown",
"rule_locations": []
},
{
"id": "1.53.6:src/core/graph/subgraph/resolveSubgraphInputLink.ts",
"version": "1.53.6",
"commit": "7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"file": "src/core/graph/subgraph/resolveSubgraphInputLink.ts",
"raw_url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/core/graph/subgraph/resolveSubgraphInputLink.ts",
"url": "https://github.com/Comfy-Org/ComfyUI_frontend/blob/7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1/src/core/graph/subgraph/resolveSubgraphInputLink.ts",
"sha256": "20fe9c7dd9a30f316e8b903df53db693434f0827187286a4dfb6a7f4c7fff6f7",
"local_file": "1.53.6__src__core__graph__subgraph__resolveSubgraphInputLink.ts",
"retrieved_at": "2026-10-29T17:28:27.424722+00:00",
"lines": [
[
1,
51
]
],
"license": "GPL-3.0; LICENSE retained in ../structure-reference",
"target_version_match": "unknown",
"rule_locations": [
[
24,
41
]
]
}
]
}
@@ -0,0 +1,73 @@
本轮完成 case04 固定参考条件下的保存态序列化:16 个运行节点、42 项最终标量、18 条最终连线;15 项无线边界全部解析,原先 8 个整节点 serializer 缺口均有覆盖。与原始 `04.api.json` 完整递归比较仍有 16 项差异:14 项标题、2 项模型路径反斜杠/正斜杠差异。所有节点类型、inputs 键、类型及其余值、上游 ID/槽一致。**这只是固定原始实现的 reference-only 保存态候选,不是目标环境匹配、通用可靠转换或实际执行。**
增量基点 `572304aa4a7e63097bebbff16ce06770e61c0eec`,受测代码 `2b6321c5385477cd96f3bb81e1168ae8b3d48f66`。原 PR #25,head 分支 `agent/agent/a64a969a6a44`,base `main`@`1fc8bdb8bb2a88ccace6f21a507fd77bcf22f532`。Multica PR 关联表为空;通过 Gitea 原 PR 只读 API 独立确认 open、未合并及 head/base,未新建竞争 PR。最终证据提交和远端 head 见本卡交付评论。
## 固定来源与源码链
前端 1.53.6 固定提交 `7d533a4cd4c4904ffdb0537f6b80ae9793dd62f1`;核心 0.38.0 固定提交 `6b747c0428c343e1417219641db93a4fb7cb69ae`。源图只是声明这些版本,目标安装和扩展仍未知。复用并本地核验前批 37 + 49 份原件;本轮补充/复验 26 份原件(其中 useIntWidget/useStringWidget 与前批字节相同,用于复核完整调用链),26/26 按固定 URL 重抓 SHA256 一致。没有运行上游代码、安装插件或依赖。
`case04-reference/sources.json` 逐份保留原始 raw URL、完整 commit、版本、内容 SHA256、获取时间、原文件和规则行区间、许可。GPL-3.0 的 LICENSE 原件沿用 `promoted-reference/core-0.38.0__LICENSE` 和 `structure-reference/1.53.6__LICENSE`。`contracts.json` 逐节点列构造原件及行号;`source-refetch.json` 为本轮复验。原有来源和证据未改写。
关键原文位置(文件相对于上述原仓库):
- core `nodes.py:1605-1631`:KSampler.seed 为 INT,0..0xffffffffffffffff,显式 `control_after_generate=True`;steps 1..10000、cfg 0..100、denoise 0..1。`nodes_textgen.py:4-49`:动态 sampling_mode.on 的 seed 同为 INT、相同范围,但未指定 control_after_generate;该差异不能因为字段都叫 seed 而忽略。
- core `comfy_api/latest/_io.py:270-294` 和 `comfy_api/internal/__init__.py:58-59`:未指定的控制配置为 None,并被 prune_dict 删除。前端 `dynamicWidgets.ts:196-207` 以 `${widget.name}.${key}` 构造子输入的名字,再交 `litegraphService.ts:276-320` 的控件构造;因此实际名字是 `sampling_mode.seed`。
- 前端 `useIntWidget.ts:60-88`:只有显式配置或裸名 seed/noise_seed 才增加控制。故 KSampler 有 seed+control 两个持久化控件,TextGenerate 的限定名 seed 不触发裸名回退,没有第二个附加控制。两者都为 number/step2=1/同样静态范围,标量 identity 读取条件兼容;并未将它们的控制行为视作相同。
- `widgets.ts:137-147,206-222`:控制项持久化但 `options.serialize=false`,不进入 prompt。before 模式的 beforeQueued 跳过首次、以后改变值;after 模式在 afterQueued 改变。内部输入已连接时内部控制直接返回。
- `promotedWidgetControl.ts:19-56,88-107`:无线 host 控件使用内部代表控件的 linkedWidgets 控制 host store;有外线/外层边界时不在本层控制。WeakSet 的执行历史不在源 JSON 中。`resolveSubgraphInputLink.ts:22-51` 和既有 `SubgraphNode.ts:580-617` 均按 linkIds 正序选首个可绑定来源。case04 是 667(KSampler) 后 697(TextGenerate),非按 API 推测。
- `app.ts:1755-1770,1970-1975`:普通 beforeQueued 和 promoted 控制在 graphToPrompt 之前;afterQueued 在排队后。`valueControl.ts:37-38,71-83,132-158`:fixed 不改值;增减按 step2 后夹取到界限,随机使用 Math.random,数值控制还受 ±1125899906842624 限制。此控制限制不等于输入声明的 uint64 范围。本轮不模拟这些排队阶段、不产生随机种子。
- 既有 `LGraphNode.ts:1195-1205` 持久值恢复跳过 `widget.serialize=false`,而 `executionUtil.ts:128-169` 的 API 序列化检查 `options.serialize`,先 serializer 再 resolved widgetInfo/连线。仍保持外线 > host > 内部 serializer,未把内部动态文本 serializer 用到 host 标量。
`case04-reference/discovery.json` 新增规范身份采用 Git tree SHA + 排序固定路径集合 SHA256;响应体 SHA 明确仅表示本次收到的字节,不作跨请求身份。核心 tree 原件沿用前批,未重做 case03 的 0.31.0 检索,也未拿 0.38.0 代替它。
## 代码行为与每个原缺口
新增显式 `comfy-frontend-1.53.6-core-0.38.0-saved-state-reference`,在原 `serialization_reference.py`、`structure_reference.py`、`ui2api.py` 和差分脚本上扩展。原 structure profile 继续强制 `prompt=None`,原 promoted profile 对真实 case04 仍拒绝;生产 convert/import/registry/object_info 未接入新 profile。
| 原缺口节点 | 实际覆盖及保守边界 |
| --- | --- |
| 13 ResolutionSelector | aspect_ratio 静态 8 枚举、megapixels/multiple 类型及范围;ResolutionPreview 构造的自身及 options.serialize 都为 false,不消耗持久值、不输出 preview。保留源里的输入次序,与控件恢复次序分开 |
| 461 SaveImageAdvanced | 源码定义的 png 分支:filename_prefix、format、format.bit_depth、format.input_color_space。DynamicCombo 生成带点的名字,最终 inputs 保持带点键,不凭服务端字典形态改嵌套结构。支持8/16-bit、sRGB;exr/avif及其嵌套动态分支明确拒绝。固定 SaveImageExtraOutput 的自定义 serializer 会调用 searchAndReplace;只覆盖不含 % 的字面量,日期/图引用表达式拒绝 |
| 459:452 TextEncodeQwenImage21 | prompt/negative_prompt/resolution 完整构造,clip/vae与 image_1..16 的 Autogrow.TemplateNames。仅连续连接项+最后空槽布局;源实际仅 images.image_1 空槽。动态文本内部 serializer 仅覆盖无花括号/注释/反斜杠表达式的字面量,不生成随机文本。host/外线在最后覆写,原始文本不加工 |
| 459:457 VAEDecode | 无控件,samples/vae 完整输入、IMAGE 输出 |
| 459:458 KSampler | 7 项持久化值,其中 control_after_generate 是已证明的非执行控件;只有 fixed 进入本 profile。seed/steps/cfg/sampler_name/scheduler/denoise 按构造和静态定义读取;非法枚举/范围/类型拒绝,不夹取/取整 |
| 459:471 TextGenerate | 完整 on 分支13项控件,含7个 sampling_mode.* 参数、thinking/use_default_template/mtp。限定名 seed 无隐含附加控件;额外插入控制项拒绝。其他分支保持关闭,不能给部分 prompt |
| 459:472 PreviewAny | 0.38.0 核心输出 STRING,区别于旧0.11.0空输出;1.53.6 的 textPreviewWidgets 创建 preview_text/preview_mode,两项自身和options.serialize均false,故持久值为空且不进入API。未改旧1.37.11三个null控件规则,STRING未当文件 |
| 459:474 ComfySwitchNode | 固定 MatchType 的 STRING/STRING→STRING 子集,switch BOOLEAN;其他类型组合不推断 |
已有 UNET/CLIP/VAE/EmptyLatent/PrimitiveStringMultiline/QwenImage21Cache 的构造沿用0.38.0固定原件,增加静态枚举和范围校验。模型文件名是动态 combo:可以保存字符串不代表目标选项/文件存在。dtype/device 静态选项与机器实际可用性分开。
seed 跨字段扇出只允许经过上述完整构造验证的 `KSampler.seed` + `TextGenerate.sampling_mode.seed`,二者类型/范围与固定控制条件都须满足;不开放任意同名seed、其它INT扇出或未知约束。host 保存值覆盖两个内部 seed,具名/位置表必须完全同类型同值;超出 JavaScript 安全整数子集的值明确拒绝(未擅自舍入 uint64)。非 fixed 控制、额外/缺控件、坏绑定、错误版本/提供方、未知自定义serializer、非法静态枚举及不支持分支均整图拒绝。
`Conversion.serialization_stage` 和审计报告明确是 `restored_saved_state_before_queue_hooks`。即便本图 fixed 不随内置控制改变,也不声称已经模拟队列时序/历史、扩展覆盖或将实际提交的全部输入;这些阶段未覆盖。
## 可复验差分与原字节指针
`case04-evidence/six-case-comparison.json` 保存六份真实源/API的逐类型、逐inputs值及类型、最终连线ID/槽、_meta/title比较,以及完整候选和差异。case04 16节点、42最终标量、18连线,15边界已解、0未解、0完整serializer缺口。新增的两个seed来源均是原 `/nodes/1/widgets_values/10`,具名指针 `/nodes/1/widgets_values_named/seed`;具体目标槽和作用域见 resolved_boundaries。
`field-pointers.json` 逐一解引用并核对46项恢复/覆盖值的原字节值和Python JSON类型;其中4项节点自身值稍后被最终连线覆写,故此46不冒称最终42标量的另一计数。完整候选另外比较全部最终inputs。模型路径差异原样保留在 `459:451.unet_name` 和 `459:473.clip_name`;未改prompt、模型名或种子凑相等。候选不是完整JSON相等。
旧 AUX 六份、旧 promoted 六份的逐case结果与前批证据完全一致(仅新增空的阶段元数据忽略),见 previous-protection.json。case01仍22节点/57 inputs、13标题差异;case02仍6节点/24标量/5连线及16差异。case03保持8边界/9 serializer缺口和prompt=None。case07保留首因根图环及两处缺失655的独立记录,本批没有Set/Get/循环/旁路/静音支持。case06继续排除。
## 本轮验证、保护和复现入口
受测代码 **277 passed / 0 failed / 1项第三方Starlette弃用警告**,其中新增61项真实图变形/合成测试。验证seed变更正确到达两个目标、内部值与host覆写、外线优先、控制不进入inputs、非fixed拒绝、乱序扇出、不同INT范围冲突、坏绑定/版本/数量/具名表、动态分支、有限数/范围/JavaScript精度、嵌套/多实例/同名不串值。合成例只验证离线算法,未冒充history或实际生成。
五个本批Python文件的 `ruff check` **全部通过**、`ruff format --check` **5 files already formatted**,`git diff --check`通过;顺带修复原audit脚本204行的E501。旧报告不改写。`uv build --offline` wheel/sdist通过,包内三个修改模块原字节与源码一致,见 package-check.json。216/178/865-5-6均是历史,本轮没有重跑全后台,不声称全仓lint或全后台全绿。
新建本地隔离库:源156/目标155/排除1;导入155、重导155 skipped;16 pending_check/139 needs_conversion;155全停用,doc_completed_at/exec_verified_at全空。说明审计仍1217源具名值/3660位置控件/294配套值,用户整行保护由本轮受影响套件复验。`original-bytes.json` 对156源图和7份原API同时核对原SHA及基点Git字节,全部不变。companion_unverified/environment_unchecked与旧差异不清除,未更新说明定稿或执行资格。
在仓库根目录运行:
```bash
uv run --project calliope-backend --offline python calliope-backend/scripts/audit_reference_conversion.py --repo . --profile case04-batch-reference --output case04-comparison.json
uv run --project calliope-backend --offline python calliope-backend/scripts/verify_frontend_sources.py --source-dir docs/hel-892/case04-reference --fetch --output case04-source-check.json
uv run --project calliope-backend --offline pytest calliope-backend/tests/test_case04_saved_reference.py calliope-backend/tests/test_promoted_preview_reference.py calliope-backend/tests/test_structure_reference.py calliope-backend/tests/test_controlnet_reference.py calliope-backend/tests/test_reference_serialization.py calliope-backend/tests/test_ui2api_differential.py calliope-backend/tests/test_workflow_library.py calliope-backend/tests/test_supplied_companions.py calliope-backend/tests/test_delivery_scope.py calliope-backend/tests/test_output_protocol_references.py -q
uv build --project calliope-backend --offline
uv run --project calliope-backend --offline python -m calliope.comfyui.library_cli import --db ./case04-local.sqlite --output-dir ./case04-local-import --root example_ComfyUI_workflows --source-commit 1fc8bdb8bb2a88ccace6f21a507fd77bcf22f532 --companions docs/hel-892/supplied-api/manifest.json
uv run --project calliope-backend --offline python calliope-backend/scripts/audit_library_documents.py --repo . --documents case04-local-import --output case04-documents.json
```
实际隔离库在仓库外新建,未写在线库。交付逐文件清单:serialization_reference.py 固定构造/范围/seed契约;structure_reference.py 复用原展开、加显式契约选择与有据扇出;ui2api.py 独立profile及阶段标识;audit_reference_conversion.py 复用递归差分、加原字节指针及批次profile;test_case04_saved_reference.py 61项专项;本说明与 case04-reference/case04-evidence 为来源和证据。
仍剩145份UI通用可靠转换、155份完整说明定稿与必要实跑(定稿0/实跑0)。本轮无需补材料/开放机器;未连接目标机、停TTS、启ComfyUI、提交prompt、安装运行上游插件、下载权重、引入依赖、调用付费服务、改界面、写在线库、合并或部署。新profile覆盖上述固定条件,不将未覆盖动态分支/排队阶段包装成完成。