Files
aigc-home/docs/hel-892/krea-detail-document-evidence/ruff-initial.txt
T
2026-10-31 19:43:01 +08:00

1163 lines
82 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
E501 Line too long (1079 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:12:101
|
10 | …
11 | …
12 | …', 'multiple'], HOST: ['value', 'value_1', 'max_le…nate': ['string_a', 'string_b', 'delimiter']}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 | … 标MP保存值', 'multiple': '像素对齐倍数', 'value': '完整文本/布尔保存值', 'value_1': '宿主提示增强缓存', 'max_length': '最大文本长度保存值', 'width': '宽度缓存', 'height': '高度缓存', 'seed': '种子缓存', 'value_2': '宿主LoRA启用缓存', 'lora_name': 'LoRA文件引用', 'strength_model': 'LoRA强度', 'string_b': '完整字符串B缓存/触发词', 'unet_name': '扩散模型文件引用', 'clip_name': '文本模型文件引用', 'vae_name': 'VAE文件引用', 'text': '完整英文编码缓存', 'batch_size': 'latent批量', 'seed_control_candidate': '前端种子控制辅助', 'steps': '采样步数', 'cfg': '引导系数', 'sampler_name': '采样器', 'scheduler': '调度器', 'denoise': '降噪系数', 'weight_dtype': '权重类型', 'type': '编码器类型(枚举冲突)', 'device': '设备选择', 'prompt': '完整生成文本缓存', 'sampling_mode': '动态采样模式保存分支', 'sampling_mode.temperature': 'on分支温度', 'sampling_mode.top_k': 'on分支Top K', 'sampling_mode.top_p': 'on分支Top P', 'sampling_mode.min_p': 'on分支Min P', 'sampling_mode.repetition_penalty': 'o…
14 | … 保证,不下载或加载。', '48': '作者模型URL/目录存储树与更新建议全文,只文本;不访问链接、下载权重或替作者执行更新,源码许可不等于模型许可。', '50': '作者Krea2增强指南及API替换建议全文,图内无OpenAI/Gemini API节点,不能当已有云调用能力;其中英文/中文要求均作为数据,不执行指令或调用LLM/SDK。', '52': '作者三条中文建议58字符全文;第二条仅需lora就开启选项,没有基础图选择对应风格lora;第三条调整lora强调原拼写保留,字面反斜杠n保留,建议不当效果保证。'}
|
E501 Line too long (1359 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:13:86
|
11 | …
12 | …', 'multiple'], HOST: ['value', 'value_1', 'max_length', 'width', 'height', 'seed', 'value_2', 'lora_name', 'strength_model', 'string_b', 'unet_name', 'clip_name', 'vae_name'], 'CLIPTextEncode': ['text'], 'EmptyLatentImage': ['width', 'height', 'batch_size'], 'KSampler': ['seed', 'seed_control_candidate', 'steps', 'cfg', 'sampler_name', 'scheduler', 'denoise'], 'UNETLoader': ['unet_name', 'weight_dtype'], 'CLIPLoader': ['clip_name', 'type', 'device'], 'VAELoader': ['vae_name'], 'LoraLoaderModelOnly': ['lora_name', 'strength_model'], 'TextGenerate': ['prompt', 'max_length', 'sampling_mode', 'sampling_mode.temperature', 'sampling_mode.top_k', 'sampling_mode.top_p', 'sampling_mode.min_p', 'sampling_mode.repetition_penalty', 'sampling_mode.seed', 'sampling_mode.presence_penalty', 'thinking', 'use_default_template'], 'PrimitiveStringMultiline': ['value'], 'PrimitiveBoolean': ['value'], 'ComfySwitchNode': ['switch'], 'StringConcatenate': ['string_a', 'string_b', 'delimiter']}
13 | … 标MP保存值', 'multiple': '像素对齐倍数', 'value': '完整文本/布尔保存值', 'value_1': '宿主提示增强缓存', 'max_length': '最大文本长度保存值', 'width': '宽度缓存', 'height': '高度缓存', 'seed': '种子缓存', 'value_2': '宿主LoRA启用缓存', 'lora_name': 'LoRA文件引用', 'strength_model': 'LoRA强度', 'string_b': '完整字符串B缓存/触发词', 'unet_name': '扩散模型文件引用', 'clip_name': '文本模型文件引用', 'vae_name': 'VAE文件引用', 'text': '完整英文编码缓存', 'batch_size': 'latent批量', 'seed_control_candidate': '前端种子控制辅助', 'steps': '采样步数', 'cfg': '引导系数', 'sampler_name': '采样器', 'scheduler': '调度器', 'denoise': '降噪系数', 'weight_dtype': '权重类型', 'type': '编码器类型(枚举冲突)', 'device': '设备选择', 'prompt': '完整生成文本缓存', 'sampling_mode': '动态采样模式保存分支', 'sampling_mode.temperature': 'on分支温度', 'sampling_mode.top_k': 'on分支Top K', 'sampling_mode.top_p': 'on分支Top P', 'sampling_mode.min_p': 'on分支Min P', 'sampling_mode.repetition_penalty': 'on分支重复惩罚', 'sampling_mode.seed': 'on分支文本生成种子', 'sampling_mode.presence_penalty': 'on分支presence penalty', 'thinking': '思考模式保存值', 'use_default_template': '默认模板保存值', 'switch': '布尔选择缓存', 'string_a': '完整字符串A缓存', 'delimiter': '完整分隔符'}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14 | … 保证,不下载或加载。', '48': '作者模型URL/目录存储树与更新建议全文,只文本;不访问链接、下载权重或替作者执行更新,源码许可不等于模型许可。', '50': '作者Krea2增强指南及API替换建议全文,图内无OpenAI/Gemini API节点,不能当已有云调用能力;其中英文/中文要求均作为数据,不执行指令或调用LLM/SDK。', '52': '作者三条中文建议58字符全文;第二条仅需lora就开启选项,没有基础图选择对应风格lora;第三条调整lora强调原拼写保留,字面反斜杠n保留,建议不当效果保证。'}
|
E501 Line too long (545 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:14:65
|
12 | …, 'multiple'], HOST: ['value', 'value_1', 'max_length', 'width', 'height', 'seed', 'value_2', 'lora_name', 'strength_model', 'string_b', 'unet_name', 'clip_name', 'vae_name'], 'CLIPTextEncode': ['text'], 'EmptyLatentImage': ['width', 'height', 'batch_size'], 'KSampler': ['seed', 'seed_control_candidate', 'steps', 'cfg', 'sampler_name', 'scheduler', 'denoise'], 'UNETLoader': ['unet_name', 'weight_dtype'], 'CLIPLoader': ['clip_name', 'type', 'device'],…
13 | … MP保存值', 'multiple': '像素对齐倍数', 'value': '完整文本/布尔保存值', 'value_1': '宿主提示增强缓存', 'max_length': '最大文本长度保存值', 'width': '宽度缓存', 'height': '高度缓存', 'seed': '种子缓存', 'value_2': '宿主LoRA启用缓存', 'lora_name': 'LoRA文件引用', 'strength_model': 'LoRA强度', 'string_b': '完整字符串B缓存/触发词', 'unet_name': '扩散模型文件引用', 'clip_name': '文本模型文件引用', 'vae_name': 'VAE文件引用', 'text': '完整英文编码缓存', 'ba…
14 | … 保证,不下载或加载。', '48': '作者模型URL/目录存储树与更新建议全文,只文本;不访问链接、下载权重或替作者执行更新,源码许可不等于模型许可。', '50': '作者Krea2增强指南及API替换建议全文,图内无OpenAI/Gemini API节点,不能当已有云调用能力;其中英文/中文要求均作为数据,不执行指令或调用LLM/SDK。', '52': '作者三条中文建议58字符全文;第二条仅需lora就开启选项,没有基础图选择对应风格lora;第三条调整lora强调原拼写保留,字面反斜杠n保留,建议不当效果保证。'}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15 | …
16 | …
|
E501 Line too long (168 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:25:101
|
23 | …
24 | …
25 | …des/{i}', pre or 'root', n) for (pre, ptr, graph) in scopes for (i, n) in enumerate(graph['nodes'])]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26 | …ces']
27 | …
|
E501 Line too long (211 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:32:101
|
30 | …
31 | …
32 | …lines=[1, len(data.decode().splitlines())], claim='本图准确tag/commit原文与许可;静态读取未执行,源码许可不等于模型许可'))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33 | …
34 | …
|
E501 Line too long (142 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:39:101
|
37 | …
38 | …
39 | …ltiline', 'PrimitiveBoolean': 'Boolean', 'ComfySwitchNode': 'SwitchNode'}.get(cls, cls)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40 | …
41 | …
|
E501 Line too long (144 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:47:97
|
45 | …name != symbol:
46 | …
47 | ….lineno, c.end_lineno], claim='本图准确0.25.0声明类实现;不等于目标安装或宿主恢复认证'))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
48 | …
49 | …
|
E501 Line too long (117 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:52:101
|
50 | if isinstance(d, ast.Dict):
51 | for (k, v) in zip(d.keys, d.values, strict=True):
52 | if isinstance(k, ast.Constant) and isinstance(k.value, str) and isinstance(v, ast.Tuple):
| ^^^^^^^^^^^^^^^^^
53 | default = '无显式default;动态枚举/方法条件只作参考'
54 | for opts in v.elts[1:]:
|
E501 Line too long (102 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:57:101
|
55 | … if isinstance(opts, ast.Dict):
56 | … for (dk, dv) in zip(opts.keys, opts.values, strict=True):
57 | … if isinstance(dk, ast.Constant) and dk.value == 'default':
| ^^
58 | … default = ast.unparse(dv)
59 | … schemas[nid, k.value] = (default, ast.unparse(v))
|
E501 Line too long (114 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:60:101
|
58 | default = ast.unparse(dv)
59 | schemas[nid, k.value] = (default, ast.unparse(v))
60 | if isinstance(d, ast.Call) and isinstance(d.func, ast.Attribute) and (d.func.attr == 'Input'):
| ^^^^^^^^^^^^^^
61 | arg = d.args[0] if d.args else next((k.value for k in d.keywords if k.arg == 'id'), None)
62 | if not isinstance(arg, ast.Constant) or not isinstance(arg.value, str):
|
E501 Line too long (113 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:61:101
|
59 | schemas[nid, k.value] = (default, ast.unparse(v))
60 | if isinstance(d, ast.Call) and isinstance(d.func, ast.Attribute) and (d.func.attr == 'Input'):
61 | arg = d.args[0] if d.args else next((k.value for k in d.keywords if k.arg == 'id'), None)
| ^^^^^^^^^^^^^
62 | if not isinstance(arg, ast.Constant) or not isinstance(arg.value, str):
63 | continue
|
E501 Line too long (154 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:65:101
|
63 | …
64 | …
65 | …['temperature', 'top_k', 'top_p', 'min_p', 'repetition_penalty', 'seed', 'presence_penalty']:
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66 | …
67 | …for k in d.keywords if k.arg == 'default'), '无显式default,不从execute函数缺省补值')
|
E501 Line too long (146 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:67:101
|
65 | … in ['temperature', 'top_k', 'top_p', 'min_p', 'repetition_penalty', 'seed', 'presence_penalty']:
66 | …e
67 | …ue) for k in d.keywords if k.arg == 'default'), '无显式default,不从execute函数缺省补值')
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
68 | …t.unparse(d))
69 | …
|
E501 Line too long (176 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:74:101
|
72 | …tswith('comfy_api/latest/')]
73 | …
74 | …ontend' and e['file'].endswith(('dynamicWidgets.ts', 'LGraphNode.ts', 'SubgraphNode.ts', 'widgets.ts'))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
75 | …
76 | …
|
E501 Line too long (150 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:83:101
|
81 | …
82 | …
83 | … '/widgets_values/0', text=n['widgets_values'][0], meaning=NOTE_MEANING[nid], evidence=[]))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
84 | …
85 | …]) + '(活动保存态,不认证执行)。'
|
E501 Line too long (227 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:86:98
|
84 | …
85 | …
86 | …lse), nid + ' 原输入/输出 ' + json.dumps({k: n[k] for k in ['inputs', 'outputs']}, ensure_ascii=False), nid + ' 原具名保存 missing']
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
87 | …
88 | …sing' if 'widgets_values' not in n else 'empty_list', effect=effect))
|
E501 Line too long (164 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:88:101
|
86 | …erties', {}), ensure_ascii=False), nid + ' 原输入/输出 ' + json.dumps({k: n[k] for k in ['inputs', 'outputs']}, ensure_ascii=False), …
87 | …
88 | …=ptr, scope=scope, state='missing' if 'widgets_values' not in n else 'empty_list', effect=effect))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
89 | …
90 | …idgets_values'], strict=True)):
|
E501 Line too long (143 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:94:101
|
92 | …
93 | …p].get('link') is not None
94 | …ny((e['id'] == n['inputs'][inp]['link'] and e['origin_id'] == -10 for e in sg['links']))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
95 | …cls == HOST and (not linked))
96 | …, ('无准确独立宿主/前端widget默认', '宿主保存位置/声明边界,不认证promoted或后端执行映射'))
|
E501 Line too long (146 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:96:86
|
94 | …((e['id'] == n['inputs'][inp]['link'] and e['origin_id'] == -10 for e in sg['links']))
95 | …s == HOST and (not linked))
96 | …('无准确独立宿主/前端widget默认', '宿主保存位置/声明边界,不认证promoted或后端执行映射'))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
97 | …
98 | … randomize;保存值和恢复/调用条件分开'
|
E501 Line too long (104 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:99:84
|
97 | if name == 'seed_control_candidate':
98 | default = '准确frontend1.45.19辅助函数缺省randomize;保存值和恢复/调用条件分开'
99 | limits = 'fixed/increment/decrement/randomize;前端控制,不执行种子操作或当后端seed参数'
| ^^^
100 | if nid == '30:11' and name == 'type':
101 | limits += ';冲突:krea2枚举缺失,准确0.25.0列表无krea2,不借新版补齐或认证支持'
|
E501 Line too long (136 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:103:83
|
101 | … 0.25.0列表无krea2,不借新版补齐或认证支持'
102 | …mode':
103 | … 项,再接thinking/use_default_template;保存布局是准确前端/后端组合参考,不执行恢复'
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
104 | … 选择,无物理单位;目标环境未知'
105 | …
|
E501 Line too long (130 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:108:85
|
106 | unit = '像素请求缓存;外线/边界覆盖另列,非最终尺寸'
107 | if name == 'megapixels':
108 | unit = '准确实现MP基数为1024×1024目标像素;源JSON int1与准确FLOAT schema default1.0分开,不计算或保证精确百万像素'
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
109 | if name == 'multiple':
110 | unit = '像素对齐步长;准确实现按round就近倍数,不试算尺寸'
|
E501 Line too long (114 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:111:101
|
109 | … if name == 'multiple':
110 | … unit = '像素对齐步长;准确实现按round就近倍数,不试算尺寸'
111 | … if name in ['max_length', 'steps', 'batch_size', 'seed', 'sampling_mode.seed', 'sampling_mode.top_k']:
| ^^^^^^^^^^^^^^
112 | … unit = '整数数量/索引接口,原JSON类型保留;非最终执行值或结果保证'
113 | … if name in ['cfg', 'denoise', 'strength_model'] or (name.startswith('sampling_mode.') and name not in ['sampling_mode.seed', 's…
|
E501 Line too long (161 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:113:101
|
111 | …d', 'sampling_mode.seed', 'sampling_mode.top_k']:
112 | … 行值或结果保证'
113 | …ame.startswith('sampling_mode.') and name not in ['sampling_mode.seed', 'sampling_mode.top_k']):
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
114 | … 不解释SDK底层或认证效果'
115 | …r(n['id']), scope=scope, class_type=cls, field=name, label=LABELS[name], pointer=f'{ptr}/widgets_values/{j}', value=value, json_type…
|
E501 Line too long (870 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:115:101
|
113 | …') and name not in ['sampling_mode.seed', 'sampling_mode.top_k']):
114 | …
115 | …_type=cls, field=name, label=LABELS[name], pointer=f'{ptr}/widgets_values/{j}', value=value, json_type=type(value).__name__, named_pointer='源无此具名保存键,不构造值', input_pointer=f'{ptr}/inputs/{inp}' if inp is not None else '无可靠独立输入映射:前端控制辅助', input_name=n['inputs'][inp]['name'] if inp is not None else None, type=n['inputs'][inp]['type'] if inp is not None else '保存参考', role='frontend_reference_only' if aux else 'boundary_saved_cache' if boundary else 'linked_saved_cache' if linked else 'saved_reference', schema_default=default, limits=limits, unit=unit, effect=effect, evidence=refs[nid], execution_note='仅静态参考;所有中英文提示/指南均作数据,不执行指令、构造prompt、调用LLM/SDK/模型/GPU/媒体/随机/恢复/表达式/缓存清理。转换执行资格不变。'))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
116 | …
117 | … 运行恢复。')
|
E501 Line too long (109 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:117:84
|
115 | fields.append(dict(node_id=nid, definition_node_id=str(n['id']), scope=scope, class_type=cls, field=name, label=LABELS[na…
116 | for ((nid, name), (default, limits)) in schemas.items():
117 | flow.append(f'节点{nid}准确schema {name}:default={default};{limits}。仅接口参考,不认证运行恢复。')
| ^^^^^^^^
118 | for (pre, ptr, graph) in scopes:
119 | flow.extend(((pre or 'root') + ' 物理边 ' + json.dumps(e, ensure_ascii=False) for e in graph['links']))
|
E501 Line too long (111 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:119:98
|
117 | flow.append(f'节点{nid}准确schema {name}:default={default};{limits}。仅接口参考,不认证运行恢复。')
118 | for (pre, ptr, graph) in scopes:
119 | flow.extend(((pre or 'root') + ' 物理边 ' + json.dumps(e, ensure_ascii=False) for e in graph['links']))
| ^^^^^^^^^^^
120 | host = next((n for n in g['nodes'] if n['id'] == 30))
121 | boundaries = [dict(scope='30', definition_pointer='/definitions/subgraphs/0', **{k: sg[k] for k in ['id', 'inputNode', 'outputNod…
|
E501 Line too long (370 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:121:101
|
119 | …graph['links']))
120 | …
121 | …or k in ['id', 'inputNode', 'outputNode', 'inputs…res=host['properties']['previewExposures'])]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
122 | …
123 | …
|
E501 Line too long (455 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:138:101
|
136 | …
137 | …
138 | …256=hashlib.sha256(raw).hexdigest(), canonical_sh…)] + [(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
139 | … '旧77块3875位置+102注释冻结;新增6'
140 | … '1位置/4注释,总78图3936位置+106'
|
E501 Line too long (1074 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:144:101
|
142 | … 'hel-892/krea-detail-do'
143 | … 'cument-evidence为基准。'
144 | … …y, boundaries=boundaries, steps=[overview, (
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
145 | … …
146 | … …
|
E501 Line too long (1210 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:145:101
|
143 | … 'cument-evidence为基准。'
144 | … )], counts=dict(saved_fields=61, root_saved_fields=17, internal_saved_fields=44, linked_saved_fields=sum((f['role'] == 'linked_saved_cache' for f in fields)), boundary_saved_fields=sum((f['role'] == 'boundary_saved_cache' for f in fields)), frontend_only=sum((f['role'] == 'frontend_reference_only' for f in fields)), source_nodes=27, root_nodes=7, internal_nodes=20, physical_edges=42, source_notes=4, saved_objects=0, history_objects=0, final_scalars=0, final_prompt_constructed=False), fields=fields, sources=sources, comments=comments, flow=flow, flow_evidence=list(range(len(sources))), zero_saved_nodes=empty, boundaries=boundaries, steps=[overview, (
145 | … … '阅读1:根49的9:16/JSON int1'
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
146 | … '/int8按准确公式/就近对齐条件看;w…
147 | … 'th槽0边69、height槽1边71覆盖宿'
|
E501 Line too long (1185 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:150:101
|
148 | … '主1024两处,再以边界50/51覆盖内部1'
149 | … '024两处,批量1独立,不试算或保证分辨率。'
150 | … ), (
^^^^^^^^^^^^^^^^
151 | … '阅读2:中文…
152 | … 'oncat17声明…
|
E501 Line too long (1299 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:157:101
|
155 | … 'ontend核,不按图上端口顺序硬映射。文本'
156 | … '缓存6由28外线覆盖;所有提示仅文本不执行。'
157 | … ), (
^^^^^^^^^^^^^^^^
158 | … …
159 | … …
|
E501 Line too long (1465 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:158:101
|
156 | … '缓存6由28外线覆盖;所有提示仅文本不执行。'
157 | … ), (
158 | … … '阅读3:24 false控制21中文/生成文'
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
159 | … '本,23 true控制22直连UNET/Lo'
160 | … 'RA及28是否追加细节增强;switch f'
|
E501 Line too long (1461 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:159:101
|
157 | … ), (
158 | … '阅读3:24 false控制21中文/生成文'
159 | … … '本,23 true控制22直连UNET/Lo'
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
160 | … 'RA及28是否追加细节增强;switch f'
161 | … 'alse缓存与外线分列。准确lazy真/假…
|
E501 Line too long (1465 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:160:101
|
158 | … '阅读3:24 false控制21中文/生成文'
159 | … '本,23 true控制22直连UNET/Lo'
160 | … 'RA及28是否追加细节增强;switch f'
^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
161 | … 'alse缓存与外线分列。准确lazy真/假分'
162 | … '支只接口条件,不保证false不读LoRA、'
|
E501 Line too long (1435 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:164:101
|
162 | … '支只接口条件,不保证false不读LoRA、'
163 | … '不加载或不联网。'
164 | … ), (
^^^^^^^^^^^^^^^^
165 | … '阅读…
166 | … 'ptyL…
|
E501 Line too long (1557 > 100)
--> docs/hel-892/krea-detail-document-evidence/build_definition.py:172:101
|
170 | … '出43/宿主再根Save29;源IMAGE出'
171 | … '口与准确空RETURN_TYPES冲突保留。'
172 | … ), (
^^^^^^^^^^^^^^^^
173 | … …
174 | … …
|
E501 Line too long (110 > 100)
--> docs/hel-892/krea-detail-document-evidence/collect_browser.py:26:101
|
24 | data = json.loads((LOCAL / 'browser-results.json').read_bytes())
25 | assert not data['errors'] and data['viewports'] == [1440, 390]
26 | backend = collections.Counter(re.findall('"GET ([^ ]+) HTTP/1.1"', (LOCAL / 'service-0.log').read_text()))
| ^^^^^^^^^^
27 | polling = {p: n for (p, n) in backend.items() if p in ['/api/events', '/api/jobs']}
28 | fixed = {p: n for (p, n) in backend.items() if p not in polling}
|
E501 Line too long (364 > 100)
--> docs/hel-892/krea-detail-document-evidence/collect_browser.py:38:101
|
36 | …
37 | …
38 | …lling.values()), 'polling_paths': polling, 'readiness_gets': 1, 'detail_fixture_intercepts': len(data['interceptions']), 'fixed_paths_browser_minus_fixtures_plus_readiness_matches_backend': True, 'polling_snapshot_delta': polling_delta, 'polling_snapshot_tolerance': 1}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39 | …ent=2) + '\n')
40 | …
|
E501 Line too long (109 > 100)
--> docs/hel-892/krea-detail-document-evidence/collect_browser.py:39:101
|
37 | assert {p: n for (p, n) in expected.items() if p not in polling_delta} == fixed
38 | counts = {'fixed_count': sum(fixed.values()), 'fixed_paths': fixed, 'polling_count': sum(polling.values()), 'polling_paths': polli…
39 | (OUT / 'backend-request-counts.json').write_text(json.dumps(counts, ensure_ascii=False, indent=2) + '\n')
| ^^^^^^^^^
40 | (OUT / 'ports-independent.json').write_text(json.dumps(ports, indent=2) + '\n')
41 | for name in ['browser-results.json', 'service-stop.json', 'service-0.log', 'service-1.log']:
|
E501 Line too long (321 > 100)
--> docs/hel-892/krea-detail-document-evidence/collect_browser.py:43:101
|
41 | …:
42 | …
43 | …ure', data['request_accounting']['fixed_count'], data['request_accounting']['polling_count'], len(data['interceptions']), 'backend', counts['fixed_count'], counts['polling_count'], 'readiness1; independently refused8247/5173')
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44 | …
45 | …
|
E501 Line too long (132 > 100)
--> docs/hel-892/krea-detail-document-evidence/inventory.py:14:101
|
12 | …
13 | …[])
14 | …s/{i}', s) for (i, s) in enumerate(g.get('definitions', {}).get('subgraphs', []))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15 | …
16 | …nodes=len(graph['nodes']), edges=len(graph['links']), modes=[n['mode'] for n in graph['nodes']], named_nodes=sum(('widgets_values_nam…
|
E501 Line too long (219 > 100)
--> docs/hel-892/krea-detail-document-evidence/inventory.py:16:101
|
14 | …efinitions', {}).get('subgraphs', []))]
15 | …
16 | …'links']), modes=[n['mode'] for n in graph['nodes']], named_nodes=sum(('widgets_values_named' in n for n in graph['nodes']))))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17 | …
18 | …
|
E501 Line too long (166 > 100)
--> docs/hel-892/krea-detail-document-evidence/inventory.py:20:101
|
18 | …
19 | …[None, []]:
20 | …issing' if 'widgets_values' not in n else 'null' if n['widgets_values'] is None else 'empty_list'))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21 | …
22 | …ts_values/0', text=n['widgets_values'][0], characters=len(n['widgets_values'][0])))
|
E501 Line too long (150 > 100)
--> docs/hel-892/krea-detail-document-evidence/inventory.py:22:101
|
20 | …state='missing' if 'widgets_values' not in n else 'null' if n['widgets_values'] is None else 'empty_list'))
21 | …
22 | … '/widgets_values/0', text=n['widgets_values'][0], characters=len(n['widgets_values'][0])))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23 | …
24 | … or []):
|
E501 Line too long (198 > 100)
--> docs/hel-892/krea-detail-document-evidence/inventory.py:25:101
|
23 | …
24 | …
25 | … value=v, json_type=type(v).__name__, scope='root' if not prefix else prefix, named=n.get('widgets_values_named')))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26 | …shlib.sha1(b'blob ' + str(len(raw)).encode() + b'\x00' + raw).hexdigest(), fields=fields, empty=empty, notes=notes, scopes=scopes, ex…
27 | …
|
E501 Line too long (444 > 100)
--> docs/hel-892/krea-detail-document-evidence/inventory.py:26:101
|
24 | …
25 | …on_type=type(v).__name__, scope='root' if not prefix else prefix, named=n.get('widgets_values_named')))
26 | …'blob ' + str(len(raw)).encode() + b'\x00' + raw).…get('definitions', {}).get('subgraphs', [])])
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27 | …
28 | …
|
E501 Line too long (103 > 100)
--> docs/hel-892/krea-detail-document-evidence/inventory.py:29:101
|
27 | if __name__ == '__main__':
28 | x = inventory()
29 | (OUT / 'independent-inventory.json').write_text(json.dumps(x, ensure_ascii=False, indent=2) + '\n')
| ^^^
30 | print('Saved', len(x['fields']), 'notes', len(x['notes']), 'scopes', x['scopes'])
|
E501 Line too long (105 > 100)
--> docs/hel-892/krea-detail-document-evidence/rebuild.py:31:101
|
29 | block = reviews[path]['fixed_version_document']
30 | pins[path] = hashlib.sha256(canonical(block)).hexdigest()
31 | (OUT / f'definition-{i}.json').write_text(json.dumps(block, ensure_ascii=False, indent=2) + '\n')
| ^^^^^
32 | module = REPO / ('calliope-backend/src/calliope/' + 'co' + 'mfyui/fixed_document.py')
33 | text = module.read_text()
|
E501 Line too long (198 > 100)
--> docs/hel-892/krea-detail-document-evidence/rebuild.py:42:101
|
40 | …
41 | …
42 | …join((' ' + repr(path[i:i + 41]) + '\n' for i in range(0, len(path), 41))) + ' ): ' + repr(digest) + ',')
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43 | …
44 | … '\n')
|
E501 Line too long (124 > 100)
--> docs/hel-892/krea-detail-document-evidence/recompute.py:30:86
|
28 | s = sorted(dist.glob('*.tar.gz'))
29 | if not w or not s:
30 | raise SystemExit('缺少wheel/sdist包产物,请先在仓库根执行:uv bui' + 'ld --project calliope-backend --' + 'offline')
| ^^^^^^^^^^^^^^^^^^^^^^^^
31 | return (w[-1], s[-1])
|
E501 Line too long (113 > 100)
--> docs/hel-892/krea-detail-document-evidence/recompute.py:42:101
|
40 | (rebuilt, previous) = build_all()
41 | assert rebuilt == json.loads((REPO / RESOURCE).read_bytes())
42 | old_blocks = {p: r['fixed_version_document'] for (p, r) in previous.items() if 'fixed_version_document' in r}
| ^^^^^^^^^^^^^
43 | assert len(old_blocks) == 77
44 | assert all((rebuilt[p]['fixed_version_document'] == b for (p, b) in old_blocks.items()))
|
E501 Line too long (264 > 100)
--> docs/hel-892/krea-detail-document-evidence/recompute.py:48:101
|
46 | …
47 | …
48 | …: 155, 'old_blocks_unchanged': 77, 'old_saved': 3875, 'old_notes': 102, 'new_saved': 61, 'new_notes': 4, 'total_documents': 78, 'total_saved': 3936, 'total_notes': 106})
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
49 | …
50 | …
|
E501 Line too long (107 > 100)
--> docs/hel-892/krea-detail-document-evidence/recompute.py:60:101
|
58 | … def run(name, historical=False):
59 | … out = work / name
60 | … env = {**os.environ, 'PYTHONPATH': str((old if historical else REPO) / 'calliope-backend/src')}
| ^^^^^^^
61 | … subprocess.run([sys.executable, '-m', 'calliope.comfyui.library_cli', 'import', '--root', str(REPO / 'example_ComfyUI_workfl…
62 | … return (json.loads((out / 'import_report.json').read_bytes()), out)
|
E501 Line too long (352 > 100)
--> docs/hel-892/krea-detail-document-evidence/recompute.py:61:101
|
59 | …
60 | …ckend/src')}
61 | …root', str(REPO / 'example_ComfyUI_workflows'), '--db', str(db), '--source-commit', BASE, '--companions', str(REPO / ('docs/hel-892/supplied-api/mani' + 'fe' + 'st.json')), '--output-dir', str(out)], cwd=REPO, env=env, check=True, stdout=subprocess.DEVNULL)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
62 | …
|
E501 Line too long (101 > 100)
--> docs/hel-892/krea-detail-document-evidence/recompute.py:67:101
|
65 | with sqlite3.connect(db) as c:
66 | c.row_factory = sqlite3.Row
67 | return {r['source_repo_path']: dict(r) for r in c.execute('SELECT * FROM workflows')}
| ^
68 | (first, _) = run('historical', True)
69 | before = rows()
|
E501 Line too long (181 > 100)
--> docs/hel-892/krea-detail-document-evidence/recompute.py:71:101
|
69 | …
70 | …
71 | …f BASE.startswith('3c307e0') else 'fixed_version' not in json.loads(before[p]['doc_json']) for p in PATHS))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
72 | …tched'] for p in DEFINITIONS if p not in PATHS))
73 | …
|
E501 Line too long (122 > 100)
--> docs/hel-892/krea-detail-document-evidence/recompute.py:72:101
|
70 | … assert first['counts'] == {'imported': 155, 'user_excluded': 1}
71 | … assert all(('fixed_version' in json.loads(before[p]['doc_json']) if BASE.startswith('3c307e0') else 'fixed_version' not in json.…
72 | … assert all((json.loads(before[p]['doc_json'])['fixed_version']['matched'] for p in DEFINITIONS if p not in PATHS))
| ^^^^^^^^^^^^^^^^^^^^^^
73 | … original = db
74 | … protected = []
|
E501 Line too long (115 > 100)
--> docs/hel-892/krea-detail-document-evidence/recompute.py:82:101
|
80 | src.backup(dst)
81 | for p in PATHS:
82 | dst.execute('UPDATE workflows SET descripti' + 'on' + '=? WHERE source_repo_path=?', (name, p))
| ^^^^^^^^^^^^^^^
83 | snapshot = rows()
84 | (r, _) = run(name)
|
E501 Line too long (133 > 100)
--> docs/hel-892/krea-detail-document-evidence/recompute.py:98:101
|
96 | continue
97 | assert len(row) == 29
98 | assert all((row[k] == before[p][k] for k in row.keys() - {'doc_json', 'batch_id', 'imported_at', 'library_fingerprint'}))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
99 | d = json.loads(row['doc_json'])
100 | assert d['fixed_version']['matched']
|
E501 Line too long (183 > 100)
--> docs/hel-892/krea-detail-document-evidence/recompute.py:104:68
|
102 | …
103 | …
104 | … 节点定义、模型来源及所需素材;完成输入输出映射核对。', '明确触发真实测试后核对产物;本批未提交生成任务。']
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
105 | …
106 | …
|
E501 Line too long (113 > 100)
--> docs/hel-892/krea-detail-document-evidence/recompute.py:107:101
|
105 | offset = old_doc['steps'].index(generic[0])
106 | assert old_doc['steps'][offset:offset + 3] == generic
107 | assert without['steps'] == old_doc['steps'][:offset] + fixed['steps'] + old_doc['steps'][offset + 3:]
| ^^^^^^^^^^^^^
108 | without['steps'] = old_doc['steps']
109 | assert without.pop('source_review_sha') != old_doc.pop('source_review_sha')
|
E501 Line too long (102 > 100)
--> docs/hel-892/krea-detail-document-evidence/recompute.py:131:101
|
129 | for row in rows().values():
130 | d = json.loads(row['doc_json'])
131 | companion += sum((p.get('value_origin') == 'supplied_api_companion' for p in d['params']))
| ^^
132 | assert not row['is_enabled'] and row['doc_completed_at'] is None and (row['exec_verified_at'] is None)
133 | assert not d['status']['doc_done'] and (not d['status']['exec_verified'])
|
E501 Line too long (114 > 100)
--> docs/hel-892/krea-detail-document-evidence/recompute.py:132:101
|
130 | d = json.loads(row['doc_json'])
131 | companion += sum((p.get('value_origin') == 'supplied_api_companion' for p in d['params']))
132 | assert not row['is_enabled'] and row['doc_completed_at'] is None and (row['exec_verified_at'] is None)
| ^^^^^^^^^^^^^^
133 | assert not d['status']['doc_done'] and (not d['status']['exec_verified'])
134 | assert d['dependencies']['check_state'] == 'unchecked'
|
E501 Line too long (121 > 100)
--> docs/hel-892/krea-detail-document-evidence/recompute.py:136:101
|
134 | assert d['dependencies']['check_state'] == 'unchecked'
135 | report = audit(REPO, exported)
136 | assert report['named_values_preserved'] == 1217 and report['unnamed_widget_nodes'] == 3660 and (companion == 294)
| ^^^^^^^^^^^^^^^^^^^^^
137 | assert report['full_documents_completed'] == report['real_executions'] == 0
138 | write('audit-summary.json', {k: v for (k, v) in report.items() if k != 'files'})
|
E501 Line too long (593 > 100)
--> docs/hel-892/krea-detail-document-evidence/recompute.py:139:101
|
137 | …
138 | …
139 | …rade['counts'], 'repeat': repeat['counts'], 'rest…abled': True, 'doc_done': 0, 'executed': 0})
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
140 | …=REPO))
141 | …
|
E501 Line too long (102 > 100)
--> docs/hel-892/krea-detail-document-evidence/recompute.py:140:101
|
138 | write('audit-summary.json', {k: v for (k, v) in report.items() if k != 'files'})
139 | write('import-protection.json', {'base': BASE, 'first': first['counts'], 'upgrade': upgrade['counts'], 'repeat': repeat['coun…
140 | old_reviews = json.loads(subprocess.check_output(['git', 'show', f'{BASE}:{RESOURCE}'], cwd=REPO))
| ^^
141 | current = json.loads((REPO / RESOURCE).read_bytes())
142 | for p in PATHS:
|
E501 Line too long (124 > 100)
--> docs/hel-892/krea-detail-document-evidence/recompute.py:146:101
|
144 | old_reviews[p].pop('fixed_version_document', None)
145 | assert current == old_reviews
146 | boundaries = json.loads((REPO / ('docs/hel-892/h3-document-evide' + 'nc' + 'e/unchanged-boundaries.json')).read_bytes())
| ^^^^^^^^^^^^^^^^^^^^^^^^
147 | paths = [f['path'] for f in boundaries['files']] + boundaries['frozen_conversion_and_audits'] + ['calliope-backend/src/calliope/c…
148 | kept = []
|
E501 Line too long (157 > 100)
--> docs/hel-892/krea-detail-document-evidence/recompute.py:147:101
|
145 | …
146 | …evide' + 'nc' + 'e/unchanged-boundaries.json')).read_bytes())
147 | …es['frozen_conversion_and_audits'] + ['calliope-backend/src/calliope/co' + 'mfyui/library.py']
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
148 | …
149 | …
|
E501 Line too long (307 > 100)
--> docs/hel-892/krea-detail-document-evidence/recompute.py:156:101
|
154 | …
155 | …
156 | …ged': 77, 'drawer_css_unchanged': True, 'drawer_whole_file_unchanged': True, 'drawer_sha256': hashlib.sha256(drawer_bytes).hexdigest(), 'conversion_rerun': False, 'profiles_28_candidates_9_diffs_6': 'unchanged'})
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
157 | ….decode().rstrip('\x00').split('\x00')
158 | …upplied-api/')) or (p.startswith('calliope-backend/src/calliope/' + 'co' + 'mfyui/') and p not in [RESOURCE, 'calliope-backend/src/calliope/' + 'co' + 'mfyui/fixed_document.py'])]
|
E501 Line too long (133 > 100)
--> docs/hel-892/krea-detail-document-evidence/recompute.py:157:101
|
155 | …['git', 'show', f'{BASE}:{ui}'], cwd=REPO)
156 | …: kept, 'originals': 156, 'old_blocks_unchanged': 77, 'drawer_css_unchanged': True, 'drawer_whole_file_unchanged': True, 'drawer_sha…
157 | …ree', '-rz', '--name-only', BASE], cwd=REPO).decode().rstrip('\x00').split('\x00')
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
158 | …example_ComfyUI_workflows/', 'docs/hel-892/supplied-api/')) or (p.startswith('calliope-backend/src/calliope/' + 'co' + 'mfyui/') and…
159 | …
|
E501 Line too long (274 > 100)
--> docs/hel-892/krea-detail-document-evidence/recompute.py:158:101
|
156 | …ged': 77, 'drawer_css_unchanged': True, 'drawer_whole_file_unchanged': True, 'drawer_sha256': hashlib.sha256(drawer_bytes).hexdigest(), 'conversion_rerun': False, 'profiles_28_candidat…
157 | ….decode().rstrip('\x00').split('\x00')
158 | …upplied-api/')) or (p.startswith('calliope-backend/src/calliope/' + 'co' + 'mfyui/') and p not in [RESOURCE, 'calliope-backend/src/calliope/' + 'co' + 'mfyui/fixed_document.py'])]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
159 | …
160 | …], cwd=REPO)
|
E501 Line too long (107 > 100)
--> docs/hel-892/krea-detail-document-evidence/recompute.py:160:101
|
158 | frozen = [p for p in tracked if p.startswith(('example_ComfyUI_workflows/', 'docs/hel-892/supplied-api/')) or (p.startswith('call…
159 | for p in frozen:
160 | assert (REPO / p).read_bytes() == subprocess.check_output(['git', 'show', f'{BASE}:{p}'], cwd=REPO)
| ^^^^^^^
161 | write('frozen-resource-check.json', {'base': BASE, 'files': [{'path': p, 'sha256': hashlib.sha256((REPO / p).read_bytes()).hexdig…
162 | packages = []
|
E501 Line too long (266 > 100)
--> docs/hel-892/krea-detail-document-evidence/recompute.py:161:101
|
159 | …
160 | …], cwd=REPO)
161 | …sha256((REPO / p).read_bytes()).hexdigest()} for p in frozen], 'original_files': sum((p.startswith('example_ComfyUI_workflows/') for p in frozen)), 'all_unchanged': True})
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
162 | …
163 | …
|
E501 Line too long (135 > 100)
--> docs/hel-892/krea-detail-document-evidence/recompute.py:169:101
|
167 | …f n.endswith('/src/calliope/comfyui/' + name)))
168 | …aw
169 | … hashlib.sha256(raw).hexdigest(), 'wheel': True, 'sdist': True, 'definitions': 78})
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
170 | …
171 | …eat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 78 definitions, frozen boundaries, wheel/sdist')
|
E501 Line too long (159 > 100)
--> docs/hel-892/krea-detail-document-evidence/recompute.py:171:101
|
169 | …256(raw).hexdigest(), 'wheel': True, 'sdist': True, 'definitions': 78})
170 | …
171 | …back1, edits1/29cols, fresh155, 1217/3660/294, 78 definitions, frozen boundaries, wheel/sdist')
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
172 | …
173 | …
|
E501 Line too long (320 > 100)
--> docs/hel-892/krea-detail-document-evidence/render_report.py:11:75
|
10 | …
11 | …02源注释不变,78图3936位置+106注释仅参考;155定稿0/实跑0/新增转换0。', '', '来源local_file以docs/hel-892/krea-detail-document' + ('-evidence为基准;源SHA/全图摘要/定义摘要绑' + '定;不加' + '载上游代码、媒体或链接。'), '']
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 | …
13 | …
|
E501 Line too long (444 > 100)
--> docs/hel-892/krea-detail-document-evidence/render_report.py:15:101
|
13 | …
14 | …
15 | … '', '源路径:`' + b['source_path'] + '`', '', 'SHA1:'…位置说明', '']
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16 | …
17 | …fect'], '', '```json', json.dumps(f['value'], ensure_ascii=False, indent=2), '```', '', f"类:{f['class_type']};JSON类型:{f['json_type']};角色:{f['role']}。", '', '源保存位置:`' + f['pointer'] + '`;源输入口:`' + f['input_pointer'] + '`', '', '具名保存位置:`' + f['named_pointer'] + '`;作用域:' + f['scope'], '', '定义默认:' + f['schema_default…
|
E501 Line too long (549 > 100)
--> docs/hel-892/krea-detail-document-evidence/render_report.py:17:97
|
15 | … '', '源路径:`' + b['source_path'] + '`', '', 'SHA1:' + b['source_sha1'], '', '原字节SHA256:' + b['source_sha256'], '', '规范全图SHA256:' + b['canonical_sha256'], '', *[v + '\n' for v in b['versions']], '### 具体连线与处理条件', '', *[v + '\n' for v in b['flow']], '### 使用与核对', '', *[v + '\n' for v in b['steps']], '### 逐保存位置说明', '']
16 | …
17 | …fect'], '', '```json', json.dumps(f['value'], ensure_ascii=False, indent=2), '```', '', f"类:{f['class_type']};JSON类型:{f['json_type']};角色:{f['role']}。", '', '源保存位置:`' + f['pointer'] + '`;源输入口:`' + f['input_pointer'] + '`', '', '具名保存位置:`' + f['named_pointer'] + '`;作用域:' + f['scope'], '', '定义默认:' + f['schema_default'] + ';单位:' + f['unit'], '', '范围/条件:' + f['limits'], '', f['execution_note'], '', '依据:']
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18 | …
19 | …
|
E501 Line too long (154 > 100)
--> docs/hel-892/krea-detail-document-evidence/render_report.py:20:97
|
18 | …
19 | …
20 | … {e['lines'][0]}~{e['lines'][1]}行;commit {e['commit']};SHA256 {e['sha256']};{e['url']}"]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21 | …value']:
22 | … ):', '', '```json', json.dumps(f['named_value'], ensure_ascii=False, indent=2), '```', '']
|
E501 Line too long (155 > 100)
--> docs/hel-892/krea-detail-document-evidence/render_report.py:22:81
|
20 | … {e['lines'][0]}~{e['lines'][1]}行;commit {e['commit']};SHA256 {e['sha256']};{e['url']}"]
21 | …value']:
22 | … ):', '', '```json', json.dumps(f['named_value'], ensure_ascii=False, indent=2), '```', '']
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23 | …
24 | …
|
E501 Line too long (132 > 100)
--> docs/hel-892/krea-detail-document-evidence/render_report.py:28:96
|
26 | lines += [z['node_id'] + ' ' + z['class_type'] + ':' + z['effect'], '']
27 | for n in b['comments']:
28 | lines += ['节点' + n['node_id'] + ',位置`' + n['pointer'] + '`', '', n['meaning'], '', '```text', n['text'], '```', '']
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
29 | lines += ['### 固定原件索引', '']
30 | for (k, e) in enumerate(b['sources']):
|
E501 Line too long (150 > 100)
--> docs/hel-892/krea-detail-document-evidence/render_report.py:33:94
|
31 | …
32 | …ha256']
33 | …['lines'][0]}~{e['lines'][1]}行;提交{e['commit']};SHA256 {e['sha256']};{e['url']}", '']
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34 | …e))
35 | …write_text('\n'.join(lines).rstrip() + '\n')
|
E501 Line too long (103 > 100)
--> docs/hel-892/krea-detail-document-evidence/render_report.py:35:89
|
33 | lines += [f"{k}. {e['claim']};{e['file']} 第{e['lines'][0]}~{e['lines'][1]}行;提交{e['commit']};SHA256 {e['sha256']};…
34 | index.append(dict(document=b['source_path'], **e))
35 | (OUT.parent / 'Krea2Turbo细节增强固定参考中文说明.md').write_text('\n'.join(lines).rstrip() + '\n')
| ^^^
36 | (OUT / 'fixed-source-index.json').write_text(json.dumps(index, ensure_ascii=False, indent=2) + '\n')
37 | if __name__ == '__main__':
|
E501 Line too long (104 > 100)
--> docs/hel-892/krea-detail-document-evidence/render_report.py:36:101
|
34 | index.append(dict(document=b['source_path'], **e))
35 | (OUT.parent / 'Krea2Turbo细节增强固定参考中文说明.md').write_text('\n'.join(lines).rstrip() + '\n')
36 | (OUT / 'fixed-source-index.json').write_text(json.dumps(index, ensure_ascii=False, indent=2) + '\n')
| ^^^^
37 | if __name__ == '__main__':
38 | main()
|
E501 Line too long (256 > 100)
--> docs/hel-892/krea-detail-document-evidence/repeat.py:20:101
|
18 | …
19 | …
20 | …l': True, 'repeated_render_equal': True, 'resource_sha256': hashlib.sha256(canonical(a)).hexdigest(), 'artifacts': before}, ensure_ascii=False, indent=2) + '\n')
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21 | … 'erence')
22 | …
|
E501 Line too long (105 > 100)
--> docs/hel-892/krea-detail-document-evidence/repeat.py:21:101
|
19 | assert before == {p.name: hashlib.sha256(p.read_bytes()).hexdigest() for p in paths}
20 | (OUT / 'repeatability.json').write_text(json.dumps({'definitions': 78, 'repeated_build_equal': True, 'repeated_render_equal': True…
21 | print('PASS deterministic definitions' + ' a' + ('nd rendered artifacts: zero di' + 'ff') + 'erence')
| ^^^^^
22 | if __name__ == '__main__':
23 | main()
|
E501 Line too long (166 > 100)
--> docs/hel-892/krea-detail-document-evidence/source_closure.py:18:101
|
16 | …
17 | …
18 | …key'] + suffix)).resolve() for suffix in ['-registry.json', '-members.json', '-range-proof.json']))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19 | …
20 | …
|
E501 Line too long (140 > 100)
--> docs/hel-892/krea-detail-document-evidence/source_closure.py:21:101
|
19 | …
20 | …
21 | …fix)).resolve() for suffix in ['-commit.txt', '-tag.txt', '-tag.json', '-tree.json']))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22 | …stry*.json')))
23 | …
|
E501 Line too long (157 > 100)
--> docs/hel-892/krea-detail-document-evidence/source_closure.py:26:101
|
24 | …
25 | …
26 | …56=hashlib.sha256(raw).hexdigest(), purpose='准确来源原文、许可或Git对象绑定;静态读取未执行'))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27 | …iles=result, count=len(result), upstream_executed=False, note=(
28 | … 'commit/tag字节和选定blob已重算'
|
E501 Line too long (125 > 100)
--> docs/hel-892/krea-detail-document-evidence/source_closure.py:27:101
|
25 | raw = p.read_bytes()
26 | result.append(dict(path=str(p.relative_to(REPO)), sha256=hashlib.sha256(raw).hexdigest(), purpose='准确来源原文、许可或Git对…
27 | (OUT / 'source-closure.json').write_text(json.dumps(dict(files=result, count=len(result), upstream_executed=False, note=(
| ^^^^^^^^^^^^^^^^^^^^^^^^^
28 | 'commit/ta…
29 | ',完整tre…
|
E501 Line too long (165 > 100)
--> docs/hel-892/krea-detail-document-evidence/source_closure.py:34:101
|
32 | … '冒充整包SHA/Git绑定,旧SeedVR越'
33 | … '界及删除记录保留。'
34 | … )), ensure_ascii=False, indent=2) + '\n')
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
35 | …
36 | …
|
E501 Line too long (111 > 100)
--> docs/hel-892/krea-detail-document-evidence/verify_sources.py:23:101
|
21 | if e['id'] == 'litegraph':
22 | root = REF / e['identity_root']
23 | assert json.loads((root / 'litegraph__package__package.json').read_bytes())['version'] == '0.15.15'
| ^^^^^^^^^^^
24 | front = next((x for x in rows if x['id'] == 'frontend' and x['file'] == 'package-lock.json'))
25 | lock = json.loads((REF / front['local_file']).read_bytes())
|
E501 Line too long (105 > 100)
--> docs/hel-892/krea-detail-document-evidence/verify_sources.py:24:101
|
22 | root = REF / e['identity_root']
23 | assert json.loads((root / 'litegraph__package__package.json').read_bytes())['version'] == '0.15.15'
24 | front = next((x for x in rows if x['id'] == 'frontend' and x['file'] == 'package-lock.json'))
| ^^^^^
25 | lock = json.loads((REF / front['local_file']).read_bytes())
26 | assert lock['packages']['node_modules/@comfyorg/litegraph']['integrity'] == 'sha512-' + e['artifact_sha512_base64']
|
E501 Line too long (127 > 100)
--> docs/hel-892/krea-detail-document-evidence/verify_sources.py:26:101
|
24 | front = next((x for x in rows if x['id'] == 'frontend' and x['file'] == 'package-lock.json'))
25 | lock = json.loads((REF / front['local_file']).read_bytes())
26 | assert lock['packages']['node_modules/@comfyorg/litegraph']['integrity'] == 'sha512-' + e['artifact_sha512_base64']
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
27 | proof = 'Pinned frontend1.23.0 lock, exact0.15.15 member SHA; whole artifact digest reused, Git unknown'
28 | elif 'member_crc32' in e:
|
E501 Line too long (116 > 100)
--> docs/hel-892/krea-detail-document-evidence/verify_sources.py:27:101
|
25 | lock = json.loads((REF / front['local_file']).read_bytes())
26 | assert lock['packages']['node_modules/@comfyorg/litegraph']['integrity'] == 'sha512-' + e['artifact_sha512_base64']
27 | proof = 'Pinned frontend1.23.0 lock, exact0.15.15 member SHA; whole artifact digest reused, Git unknown'
| ^^^^^^^^^^^^^^^^
28 | elif 'member_crc32' in e:
29 | root = REF / e['identity_root']
|
E501 Line too long (133 > 100)
--> docs/hel-892/krea-detail-document-evidence/verify_sources.py:45:101
|
43 | assert commit.decode().splitlines()[0] == 'tree ' + e['tree'] == 'tree ' + tree['sha']
44 | assert not tree['truncated']
45 | assert next((t['sha'] for t in tree['tree'] if t['path'] == e['file'])) == e['git_blob_sha1'] == object_hash('blob', raw)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46 | tag = json.loads((root / (key + '-tag.json')).read_bytes())
47 | tag_raw = (root / (key + '-tag.txt')).read_bytes()
|
E501 Line too long (107 > 100)
--> docs/hel-892/krea-detail-document-evidence/verify_sources.py:54:101
|
52 | … assert object_hash('tag', tag_raw) == tag['object']
53 | … assert tag_raw.decode().startswith('object ' + e['commit'] + '\n')
54 | … proof = 'Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash'
| ^^^^^^^
55 | … if not e['license_file'].startswith('未知'):
56 | … license_row = next((x for x in rows if x['id'] == e['id'] and ((REF / x['local_file']).resolve() == (REF / e['license_file']…
|
E501 Line too long (176 > 100)
--> docs/hel-892/krea-detail-document-evidence/verify_sources.py:56:101
|
54 | …sting, not full tree-object rehash'
55 | …
56 | …d ((REF / x['local_file']).resolve() == (REF / e['license_file']).resolve() or x['file'] == 'LICENSE')))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
57 | …).hexdigest() == license_row['sha256']
58 | …], proof=proof))
|
E501 Line too long (110 > 100)
--> docs/hel-892/krea-detail-document-evidence/verify_sources.py:57:101
|
55 | if not e['license_file'].startswith('未知'):
56 | license_row = next((x for x in rows if x['id'] == e['id'] and ((REF / x['local_file']).resolve() == (REF / e['license_file…
57 | assert hashlib.sha256((REF / e['license_file']).read_bytes()).hexdigest() == license_row['sha256']
| ^^^^^^^^^^
58 | checks.append(dict(id=e['id'], file=e['file'], sha256=e['sha256'], proof=proof))
59 | assert len(inv['fields']) == 61 and len(inv['notes']) == 4
|
E501 Line too long (118 > 100)
--> docs/hel-892/krea-detail-document-evidence/verify_sources.py:68:101
|
66 | assert canonical(raw['value']) == canonical(field['value'])
67 | assert raw['json_type'] == field['json_type']
68 | assert [(n['pointer'], n['text']) for n in block['comments']] == [(n['pointer'], n['text']) for n in inv['notes']]
| ^^^^^^^^^^^^^^^^^^
69 | assert [n['characters'] for n in inv['notes']] == [1023, 1657, 1965, 58]
70 | from build_definition import PATHS, REPO
|
E501 Line too long (154 > 100)
--> docs/hel-892/krea-detail-document-evidence/verify_sources.py:93:101
|
91 | …
92 | …assDef) and c.name == 'SaveImage'))
93 | …st.Assign) and any((isinstance(n, ast.Name) and n.id == 'RETURN_TYPES' for n in c.targets))))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
94 | …][0]['type'] == 'IMAGE'
95 | …assDef) and c.name == 'CLIPLoader'))
|
E501 Line too long (168 > 100)
--> docs/hel-892/krea-detail-document-evidence/verify_sources.py:96:101
|
94 | …ype'] == 'IMAGE'
95 | … and c.name == 'CLIPLoader'))
96 | …ce(x, ast.List) and all((isinstance(y, ast.Constant) and isinstance(y.value, str) for y in x.elts))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
97 | …dgets_values'][1] == 'krea2'
98 | …0.95, 0.05, 1.05, 0, 0, False, True]
|
E501 Line too long (104 > 100)
--> docs/hel-892/krea-detail-document-evidence/verify_sources.py:98:101
|
96 | enums = [ast.literal_eval(x) for x in ast.walk(clip) if isinstance(x, ast.List) and all((isinstance(y, ast.Constant) and isinstan…
97 | assert not any(('krea2' in x for x in enums)) and inside[11]['widgets_values'][1] == 'krea2'
98 | assert inside[16]['widgets_values'] == ['', 512, 'on', 0.7, 64, 0.95, 0.05, 1.05, 0, 0, False, True]
| ^^^^
99 | assert sum((f['role'] == 'boundary_saved_cache' for f in block['fields'])) == 13
100 | assert sum((f['scope'] == 'root' for f in block['fields'])) == 17
|
E501 Line too long (376 > 100)
--> docs/hel-892/krea-detail-document-evidence/verify_sources.py:106:101
|
104 | …
105 | …
106 | …'], physical_edges_checked=42, boundary_inputs=13…True), ensure_ascii=False, indent=2) + '\n')
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
107 | …
108 | …
|
Found 115 errors (9 fixed, 106 remaining).