1120 lines
66 KiB
Plaintext
1120 lines
66 KiB
Plaintext
E501 Line too long (1384 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/build_definition.py:23:101
|
||
|
|
||
21 | …
|
||
22 | …
|
||
23 | …EmptySD3LatentImage': ['width', 'height', 'batch_s…vae_name'], 'PrimitiveNode': ['author_text']}
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
24 | … 存值', 'batch_size': '批量保存值', 'add_noise': '加噪选择', 'noise_seed': '噪声种子保存值', 'seed': '种子保存值', 'seed_control_candidate': '前端种子控制辅助', 'steps': '步数保存值', 'cfg': '引导系数', 'sampler_name': '采样器', 'scheduler': '调度器', 'start_at_step': '采样起点保存值', 'end_at_step': '采样终点保存值', 'return_with_leftover_noise': '保留剩余噪声选择', 'value': '完整模板/整数/标签原值', 'string': '完整字符串缓存', 'find': '查找字符串', 'replace': '替换字符串', 'sigma': '首sigma保存值', 'start_at_sigma': '扩展起始sigma条件', 'end_at_sigma': '扩展结束sigma条件', 'spacing': 'sigma扩展间隔选择', 'sigma_max': 'sigma上界保存值', 'sigma_min': 'sigma下界保存值', 'rho': 'Karras rho保存值', 'step': '拆分位置保存值', 'saved_display_text': '完整显示历史(非本次产物)', 'mode': '修剪模式', 'measurement': '尺寸度量选择', 'fit': '适配条件', 'method': '插值方法', 'strength': '加噪强度', 'saved_object_0': '完整保存对象0(非LoRA配置)', 'saved_header_object': '完整Header控件对象', 'saved_object_2': '完整保存对象2(非LoRA配置)', 'saved_empty_string': '完整末尾空串', 'filename_prefix': '正式保存前缀字符串', 'model_name': '放大模型引用', 'unet_name': '扩散模型引用', 'weight_dtype': '权重类型', 'clip_name': '文本模型引用', 'type': '编码器类型', 'device': '设备选择', 'vae_name': '…
|
||
25 | …
|
||
|
|
||
|
||
E501 Line too long (1441 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/build_definition.py:24:75
|
||
|
|
||
22 | …
|
||
23 | …EmptySD3LatentImage': ['width', 'height', 'batch_size'], 'KSamplerAdvanced': ['add_noise', 'noise_seed', 'seed_control_candidate', 'steps', 'cfg', 'sampler_name', 'scheduler', 'start_at_step', 'end_at_step', 'return_with_leftover_noise'], 'PrimitiveString': ['value'], 'StringReplace': ['string', 'find', 'replace'], 'SetFirstSigma': ['sigma'], 'ExtendIntermediateSigmas': ['steps', 'start_at_sigma', 'end_at_sigma', 'spacing'], 'KarrasScheduler': ['steps', 'sigma_max', 'sigma_min', 'rho'], 'SplitSigmas': ['step'], 'KSamplerSelect': ['sampler_name'], 'Display Any (rgthree)': ['saved_display_text'], 'StringTrim': ['string', 'mode'], 'PrimitiveInt': ['value', 'seed_control_candidate'], 'SamplerCustom': ['add_noise', 'noise_seed', 'seed_control_candidate', 'cfg'], 'Image Resize (rgthree)': ['measurement', 'width', 'height', 'fit', 'method'], 'ImageAddNoise': ['seed', 'seed_control_candidate', 'strength'], 'Power Lora Loader (rgthree)': ['saved_object_0', 'saved_header_object', 'saved_object_2', 'saved_empty_string'], 'SaveImage': ['filename_prefix'], 'UpscaleModelLoader': ['model_name'], 'PrimitiveStringMultiline': ['value'], 'UNETLoader': ['unet_name', 'weight_dtype'], 'CLIPLoader': ['clip_name', 'type', 'device'], 'VAELoader': ['vae_name'], 'PrimitiveNode': ['author_text']}
|
||
24 | … 存值', 'batch_size': '批量保存值', 'add_noise': '加噪选择', 'noise_seed': '噪声种子保存值', 'seed': '种子保存值', 'seed_control_candidate': '前端种子控制辅助', 'steps': '步数保存值', 'cfg': '引导系数', 'sampler_name': '采样器', 'scheduler': '调度器', 'start_at_step': '采样起点保存值', 'end_at_step': '采样终点保存值', 'return_with_leftover_noise': '保留剩余噪声选择', 'value': '完整模板/整数/标签原值', 'string': '完整字符串缓存', 'find': '查找字符串', 'replace': '替换字符串', 'sigma': '首sigma保存值', 'start_at_sigma': '扩展起始sigma条件', 'end_at_sigma': '扩展结束sigma条件', 'spacing': 'sigma扩展间隔选择', 'sigma_max': 'sigma上界保存值', 'sigma_min': 'sigma下界保存值', 'rho': 'Karras rho保存值', 'step': '拆分位置保存值', 'saved_display_text': '完整显示历史(非本次产物)', 'mode': '修剪模式', 'measurement': '尺寸度量选择', 'fit': '适配条件', 'method': '插值方法', 'strength': '加噪强度', 'saved_object_0': '完整保存对象0(非LoRA配置)', 'saved_header_object': '完整Header控件对象', 'saved_object_2': '完整保存对象2(非LoRA配置)', 'saved_empty_string': '完整末尾空串', 'filename_prefix': '正式保存前缀字符串', 'model_name': '放大模型引用', 'unet_name': '扩散模型引用', 'weight_dtype': '权重类型', 'clip_name': '文本模型引用', 'type': '编码器类型', 'device': '设备选择', 'vae_name': 'VAE引用', 'author_text': '完整作者英文(原样保留)'}
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
25 | …
|
||
26 | …
|
||
|
|
||
|
||
E501 Line too long (166 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/build_definition.py:54:101
|
||
|
|
||
52 | …
|
||
53 | …
|
||
54 | …, '8ff50e4521881eca1fe26aec9615fc9362474931': 'rgnew', '1.0.2511270846': 'rgpkg'}.get(p.get('ver'))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
55 | …
|
||
|
|
||
|
||
E501 Line too long (170 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/build_definition.py:62:101
|
||
|
|
||
60 | …
|
||
61 | …
|
||
62 | …+ f'/nodes/{i}', pre or 'root', n) for (pre, ptr, sg) in scopes for (i, n) in enumerate(sg['nodes'])]
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
63 | …es']
|
||
64 | …
|
||
|
|
||
|
||
E501 Line too long (218 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/build_definition.py:68:101
|
||
|
|
||
66 | …
|
||
67 | …
|
||
68 | …lines=[1, len(data.decode().splitlines())], claim='本图准确来源原文;Git与发布成员分列,源码许可不等于模型素材许可,未执行'))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
69 | …
|
||
70 | …
|
||
|
|
||
|
||
E501 Line too long (755 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/build_definition.py:83:101
|
||
|
|
||
81 | …
|
||
82 | …
|
||
83 | …eStringMultiline': 'StringMultiline', 'PrimitiveIn… PurgeVRAM V2': 'PurgeVRAM_V2'}.get(cls, cls)
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
84 | …
|
||
85 | …
|
||
|
|
||
|
||
E501 Line too long (143 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/build_definition.py:86:97
|
||
|
|
||
84 | …
|
||
85 | …e == symbol:
|
||
86 | …s=[c.lineno, c.end_lineno], claim='本图准确声明类实现;保存索引映射/运行恢复仍需区分'))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
87 | …
|
||
88 | …
|
||
|
|
||
|
||
E501 Line too long (117 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/build_definition.py:92:101
|
||
|
|
||
90 | continue
|
||
91 | for (k, v) in zip(d.keys, d.values, strict=True):
|
||
92 | if isinstance(k, ast.Constant) and isinstance(k.value, str) and isinstance(v, ast.Tuple):
|
||
| ^^^^^^^^^^^^^^^^^
|
||
93 | default = '无显式default;动态枚举或方法条件见准确原文'
|
||
94 | for a in v.elts[1:]:
|
||
|
|
||
|
||
E501 Line too long (102 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/build_definition.py:97:101
|
||
|
|
||
95 | … if isinstance(a, ast.Dict):
|
||
96 | … for (dk, dv) in zip(a.keys, a.values, strict=True):
|
||
97 | … if isinstance(dk, ast.Constant) and dk.value == 'default':
|
||
| ^^
|
||
98 | … default = ast.unparse(dv)
|
||
99 | … schemas[nid, k.value] = (default, ast.unparse(v))
|
||
|
|
||
|
||
E501 Line too long (224 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/build_definition.py:101:101
|
||
|
|
||
99 | …
|
||
100 | …
|
||
101 | …and (call.func.attr == 'Input') and call.args and isinstance(call.args[0], ast.Constant) and isinstance(call.args[0].value, str):
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
102 | …
|
||
103 | …g == 'default'), '无显式default;不从方法缺省补值')
|
||
|
|
||
|
||
E501 Line too long (146 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/build_definition.py:103:101
|
||
|
|
||
101 | … isinstance(call.func, ast.Attribute) and (call.func.attr == 'Input') and call.args and isinstance(call.args[0], ast.Constant) and i…
|
||
102 | …
|
||
103 | ….value) for k in call.keywords if k.arg == 'default'), '无显式default;不从方法缺省补值')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
104 | …, ast.unparse(call))
|
||
105 | …te(manifest) if e['id'] == key and (e['file'].endswith('__init__.py') or not refs)]
|
||
|
|
||
|
||
E501 Line too long (140 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/build_definition.py:105:101
|
||
|
|
||
103 | …e(k.value) for k in call.keywords if k.arg == 'default'), '无显式default;不从方法缺省补值')
|
||
104 | …ult, ast.unparse(call))
|
||
105 | …erate(manifest) if e['id'] == key and (e['file'].endswith('__init__.py') or not refs)]
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
106 | …
|
||
107 | …
|
||
|
|
||
|
||
E501 Line too long (150 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/build_definition.py:110:101
|
||
|
|
||
108 | …
|
||
109 | …
|
||
110 | … '/widgets_values/0', text=n['widgets_values'][0], meaning=NOTE_MEANING[nid], evidence=[]))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
111 | …
|
||
112 | …e']) + ('(静音保存态,不当旁路穿透)' if n['mode'] == 2 else '(保存活动态,不认证执行)')
|
||
|
|
||
|
||
E501 Line too long (150 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/build_definition.py:112:85
|
||
|
|
||
110 | … '/widgets_values/0', text=n['widgets_values'][0], meaning=NOTE_MEANING[nid], evidence=[]))
|
||
111 | …
|
||
112 | …e']) + ('(静音保存态,不当旁路穿透)' if n['mode'] == 2 else '(保存活动态,不认证执行)')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
113 | …n.get('properties', {}), ensure_ascii=False), nid + ' 原具名保存(缺键与空对象分列,仅文本) ' + (json.dumps(n['widgets_values_named…
|
||
114 | …
|
||
|
|
||
|
||
E501 Line too long (381 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/build_definition.py:113:98
|
||
|
|
||
111 | …
|
||
112 | … ' if n['mode'] == 2 else '(保存活动态,不认证执行)')
|
||
113 | …i=False), nid + ' 原具名保存(缺键与空对象分列,仅文本) ' + (json.d…ascii=False)])
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
114 | …
|
||
115 | …sing' if 'widgets_values' not in n else 'empty_list', effect=effect))
|
||
|
|
||
|
||
E501 Line too long (164 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/build_definition.py:115:101
|
||
|
|
||
113 | …properties', {}), ensure_ascii=False), nid + ' 原具名保存(缺键与空对象分列,仅文本) ' + (json.dumps(n['widgets_values_named'], ens…
|
||
114 | …
|
||
115 | …=ptr, scope=scope, state='missing' if 'widgets_values' not in n else 'empty_list', effect=effect))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
116 | …
|
||
117 | …idgets_values'], strict=True)):
|
||
|
|
||
|
||
E501 Line too long (118 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/build_definition.py:122:101
|
||
|
|
||
120 | boundary = False
|
||
121 | linked = inp is not None and n['inputs'][inp].get('link') is not None
|
||
122 | aux = name in ['seed_control_candidate', 'saved_display_text', 'author_text'] or name.startswith('saved_')
|
||
| ^^^^^^^^^^^^^^^^^^
|
||
123 | (default, limits) = schemas.get((nid, name), ('无准确独立后端widget默认', '完整保存位置/前端辅助,不补运行值'))
|
||
124 | if name == 'seed_control_candidate':
|
||
|
|
||
|
||
E501 Line too long (123 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/build_definition.py:123:86
|
||
|
|
||
121 | linked = inp is not None and n['inputs'][inp].get('link') is not None
|
||
122 | aux = name in ['seed_control_candidate', 'saved_display_text', 'author_text'] or name.startswith('saved_')
|
||
123 | (default, limits) = schemas.get((nid, name), ('无准确独立后端widget默认', '完整保存位置/前端辅助,不补运行值'))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||
124 | if name == 'seed_control_candidate':
|
||
125 | (default, limits) = ((
|
||
|
|
||
|
||
E501 Line too long (493 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/build_definition.py:130:78
|
||
|
|
||
128 | …
|
||
129 | …
|
||
130 | …'图像宽高乘数,非denoise', 'steps': '采样步数接口,不保证实际完整执行', 'cfg': '引导系数,无物理单位', 'denoise': '采样降噪系数,不与图像百分比缩放混同', 'text': '完整作者文本/空串,非产物保证', 'shift': 'AuraFlow采样参数,无物理单位', 'seed': '整数种子保存值,非最终执行seed', 'filename_prefix': '保存文件前缀字符串', 'saved_comparison_history': '完整A/B历史列表,仅文本,不访问/view', 'width': (
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
131 | …
|
||
132 | …
|
||
|
|
||
|
||
E501 Line too long (1601 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/build_definition.py:138:73
|
||
|
|
||
136 | …
|
||
137 | …
|
||
138 | … ;兼容与效果未知', 'tile_size': '空间分块尺寸接口,像素;准确实现可调整,不保证显存', 'overlap': '空间分块重叠接口,像素;非时间重叠', 'temporal_size': '时间分块尺寸接口,非秒;准确VAE/模型压缩关系待核', 'temporal_overlap': '时间分块重叠接口,非空间像素或秒', 'resize_type.multiplier': '图像宽高乘数,非denoise', 'prompt': '完整作者文本字符串,末尾换行保留;非生成请求', 'purge_cache': '布尔保存开关;准确实现未判断该参数,不能据此阻止清理', 'purge_models': '布尔保存开关;准确实现控制模型卸载,未执行', 'noise_seed': '噪声整数种子;连线覆盖与前端fixed另列,非最终seed', 'value': '模板/标签为完整字符串;PrimitiveInt为整数参考,非最终尺寸或种子', 'author_text': '完整作者英文字符串,无末尾换行', 'saved_display_text': '完整历史字符串,仅文本,非本次产物', 'string': '完整保存字符串;外线覆盖缓存,不执行处理', 'find': '完整查找字符串,空格及标签保留,不执行', 'replace': '完整替换字符串或外线缓存,不执行', 'sigma': 'sigma接口保存系数,不计算序列或认证模型范围', 'sigma_max': 'sigma上界接口保存系数,不生成调度', 'sigma_min': 'sigma下界接口保存系数,不生成调度', 'rho': 'Karras调度形状参数,无物理单位,不计算', 'start_at_sigma': 'sigma阈值接口保存系数,不计算扩展', 'end_at_sigma': 'sigma阈值接口保存系数,不计算扩展', 'start_at_step': '采样步索引保存值,非秒或实际执行步数', 'end_at_step': '采样步索引保存值,非秒或实际执行步数', 'step': 'sigmas拆分位置保存值,不计算序列长度', 'strength': '加噪强度接口,无物理单位;不执行噪声'}.get(name, '保存枚举/模型文件引用/前端对象,无独立物理单位;目标环境未知')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
139 | …_type=cls, field=name, label=LABELS[name], pointer=f'{ptr}/widgets_values/{j}', value=value, json_type=type(value).__name__, named_pointer=ptr + '/widgets_values_named/' + {'alias': 'Constant', 'seed_control_candidate': 'control_after_generate', 'saved_comparison_history': 'rgthree_comparer'}.get(name, name) if {'alias': 'Constant', 'seed_control_candidate': 'control_after_generate', 'saved_comparison_history': 'rgthree_comparer'}.get(name, name) in n.get('widgets_values_named', {}) else '源无此具名保存键,不构造值', **{'named_value': n['widgets_values_named'][{'alias': 'Constant', 'seed_control_candidate': 'control_after_generate', 'saved_comparison_history': 'rgthree_comparer'}.get(name, name)]} if {'alias': 'Constant', 'seed_control_candidate': 'control_after_generate', 'saved_comparison_history': 'rgthree_comparer'}.get(name, name) in n.get('widgets_values_named', {}) else {}, 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=class_refs[nid] + ([i for (i, e) in enumerate(manifest) if e['id'] == 'frontend' and e['file'] == 'src/scripts/widgets.ts'] if name == 'seed_control_candidate' else []), …
|
||
140 | …
|
||
|
|
||
|
||
E501 Line too long (1734 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/build_definition.py:139:101
|
||
|
|
||
137 | …
|
||
138 | … ;兼容与效果未知', 'tile_size': '空间分块尺寸接口,像素;准确实现可调整,不保证显存', 'overlap': '空间分块重叠接口,像素;非时间重叠', 'temporal_size': '时间分块尺寸接口,非秒;准确VAE/模型压缩关系待核', 'temporal_overlap': '时间分块重叠接口,非空间像素或秒', 'resize_type.multiplier': '图像宽高乘数,非denoise', 'prompt': '完整作者文本字符串,末尾换行保留;非生成请求', 'purge_cache': '布尔保存开关;准确实现未判断该参数,不能据此阻止清理', 'purge_models': '布尔保存开关;准确实现控制模型卸载,未执行', 'noise_seed': '噪声整数种子;连线覆盖与前端fixed另列,非最终seed', 'value': '模板/标签为完整字符串;PrimitiveInt为整数参考,非最终尺寸或种子', 'author_text': '完整作者英文字符串,无末尾换行', 'saved_display_text': '完整历史字符串,仅文本,非本次产物', 'string': '完整保存字符串;外线覆盖缓存,不执行处理', 'find': '完整查找字符串,空格及标签保留,不执行', 'replace': '完整替换字符串或外线缓存,不执行', 'sigma': 'sigma接口保存系数,不计算序列或认证模型范围', 'sigma_max': 'sigma上界接口保存系数,不生成调度', 'sigma_min': 'sigma下界接口保存系数,不生成调度', 'rho': 'Karras调度形状参数,无物理单位,不计算', 'start_at_sigma': 'sigma阈值接口保存系数,不计算扩展', 'end_at_sigma': 'sigma阈值接口保存系数,不计算扩展', 'start_at_step': '采样步索引保存值,非秒或实际执行步数', 'end_at_step': '采样步索引保存值,非秒或实际执行步数', 'step': 'sigmas拆分位置保存值,不计算序列长度', 'strength': '加噪强度接口,无物理单位;不执行噪声'}.get(name, '保存枚举/模型文件引用/前端对象,无独立物理单位;目标环境未知')
|
||
139 | …_type=cls, field=name, label=LABELS[name], pointer=f'{ptr}/widgets_values/{j}', value=value, json_type=type(value).__name__, named_pointer=ptr + '/widgets_values_named/' + {'alias': 'Constant', 'seed_control_candidate': 'control_after_generate', 'saved_comparison_history': 'rgthree_comparer'}.get(name, name) if {'alias': 'Constant', 'seed_control_candidate': 'control_after_generate', 'saved_comparison_history': 'rgthree_comparer'}.get(name, name) in n.get('widgets_values_named', {}) else '源无此具名保存键,不构造值', **{'named_value': n['widgets_values_named'][{'alias': 'Constant', 'seed_control_candidate': 'control_after_generate', 'saved_comparison_history': 'rgthree_comparer'}.get(name, name)]} if {'alias': 'Constant', 'seed_control_candidate': 'control_after_generate', 'saved_comparison_history': 'rgthree_comparer'}.get(name, name) in n.get('widgets_values_named', {}) else {}, 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=class_refs[nid] + ([i for (i, e) in enumerate(manifest) if e['id'] == 'frontend' and e['file'] == 'src/scripts/widgets.ts'] if name == 'seed_control_candidate' else []), execution_note='仅静态参考,不构造prompt或执行上游/模型/GPU/' + '媒体/随机/钩子/恢复/表达式/缓存清理;转换执行资格不' + '变。'))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
140 | …
|
||
141 | … 补缺保存或认证运行恢复。')
|
||
|
|
||
|
||
E501 Line too long (123 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/build_definition.py:141:84
|
||
|
|
||
139 | fields.append(dict(node_id=nid, definition_node_id=str(n['id']), scope=scope, class_type=cls, field=name, label=LABELS[na…
|
||
140 | for ((nid, name), (default, limits)) in schemas.items():
|
||
141 | flow.append(f'节点{nid}准确具名schema {name}:default={default};{limits}。仅接口参考,不补缺保存或认证运行恢复。')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||
142 | for (pre, ptr, sg) in scopes:
|
||
143 | flow.extend(((pre or 'root') + ' 物理边 ' + json.dumps(e, ensure_ascii=False) for e in sg['links']))
|
||
|
|
||
|
||
E501 Line too long (108 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/build_definition.py:143:98
|
||
|
|
||
141 | flow.append(f'节点{nid}准确具名schema {name}:default={default};{limits}。仅接口参考,不补缺保存或认证运行恢复。')
|
||
142 | for (pre, ptr, sg) in scopes:
|
||
143 | flow.extend(((pre or 'root') + ' 物理边 ' + json.dumps(e, ensure_ascii=False) for e in sg['links']))
|
||
| ^^^^^^^^
|
||
144 | boundaries = []
|
||
145 | flow.extend(json.loads((OUT / 'findings.json').read_bytes())['findings'])
|
||
|
|
||
|
||
E501 Line too long (443 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/build_definition.py:162:101
|
||
|
|
||
160 | …
|
||
161 | …
|
||
162 | …256=hashlib.sha256(raw).hexdigest(), canonical_sh…s()] + [(
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
163 | …
|
||
164 | …
|
||
|
|
||
|
||
E501 Line too long (686 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/build_definition.py:168:101
|
||
|
|
||
166 | …
|
||
167 | …
|
||
168 | …fields=sum((f['role'] == 'linked_saved_cache' for…y, boundaries=boundaries, steps=[overview, (
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
169 | …
|
||
170 | …
|
||
|
|
||
|
||
E501 Line too long (110 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/collect_browser.py:35:101
|
||
|
|
||
33 | data = json.loads((LOCAL / 'browser-results.json').read_bytes())
|
||
34 | assert not data['errors'] and data['viewports'] == [1440, 390]
|
||
35 | backend = collections.Counter(re.findall('"GET ([^ ]+) HTTP/1.1"', (LOCAL / 'service-0.log').read_text()))
|
||
| ^^^^^^^^^^
|
||
36 | polling = {p: n for (p, n) in backend.items() if p in ['/api/events', '/api/jobs']}
|
||
37 | fixed = {p: n for (p, n) in backend.items() if p not in polling}
|
||
|
|
||
|
||
E501 Line too long (217 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/collect_browser.py:47:101
|
||
|
|
||
45 | …
|
||
46 | …
|
||
47 | …(polling.values()), 'polling_paths': polling, 'readiness_gets': 1, 'detail_fixture_intercepts': len(data['interceptions']), (
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
48 | …
|
||
49 | …
|
||
|
|
||
|
||
E501 Line too long (109 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/collect_browser.py:52:101
|
||
|
|
||
50 | 'iness_matches_backend'
|
||
51 | ): True, 'polling_snapshot_delta': polling_delta, 'polling_snapshot_tolerance': 1}
|
||
52 | (OUT / 'backend-request-counts.json').write_text(json.dumps(counts, ensure_ascii=False, indent=2) + '\n')
|
||
| ^^^^^^^^^
|
||
53 | (OUT / 'ports-independent.json').write_text(json.dumps(ports, indent=2) + '\n')
|
||
54 | for name in ['browser-results.json', 'service-stop.json', 'service-0.log', 'service-1.log']:
|
||
|
|
||
|
||
E501 Line too long (321 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/collect_browser.py:56:101
|
||
|
|
||
54 | …:
|
||
55 | …
|
||
56 | …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')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
57 | …
|
||
58 | …
|
||
|
|
||
|
||
E501 Line too long (220 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/extend_sources.py:17:101
|
||
|
|
||
15 | …
|
||
16 | …
|
||
17 | …/context_utils.py', 'py/power_prompt_utils.py'], 'frontend': ['src/lib/litegraph/LICENSE', 'src/lib/litegraph/src/LGraph.ts']}
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
18 | …
|
||
19 | …
|
||
|
|
||
|
||
E501 Line too long (110 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/extend_sources.py:30:101
|
||
|
|
||
28 | continue
|
||
29 | cache = ROOT / '.local-evidence' / ('zimage-generalb-' + key + '-git')
|
||
30 | raw = subprocess.check_output(['git', '-C', str(cache), 'show', prototype['commit'] + ':' + file])
|
||
| ^^^^^^^^^^
|
||
31 | name = key + '__' + file.replace('/', '__')
|
||
32 | (REF / name).write_bytes(raw)
|
||
|
|
||
|
||
E501 Line too long (191 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/extend_sources.py:34:101
|
||
|
|
||
32 | …
|
||
33 | …
|
||
34 | …ntent.com/{e['repo']}/{e['commit']}/{file}", sha256=hashlib.sha256(raw).hexdigest(), git_blob_sha1=entry['sha'])
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
35 | …
|
||
36 | …'\n')
|
||
|
|
||
|
||
E501 Line too long (490 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/fetch_release.py:79:99
|
||
|
|
||
77 | …
|
||
78 | …
|
||
79 | …'发布成员到Git绑定未知', tree='未知', url=download, sha256=ha…HA/Git绑定未知'))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
80 | …
|
||
81 | …
|
||
|
|
||
|
||
E501 Line too long (112 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/fetch_release.py:83:101
|
||
|
|
||
81 | (REF / 'rgpkg-members.json').write_text(json.dumps(members, indent=2) + '\n')
|
||
82 | (REF / 'rgpkg-range-proof.json').write_text(json.dumps(archive.log, indent=2) + '\n')
|
||
83 | (REF / 'rgpkg-sources.json').write_text(json.dumps(dict(sources=rows), ensure_ascii=False, indent=2) + '\n')
|
||
| ^^^^^^^^^^^^
|
||
84 | x = json.loads((REF / 'sources.json').read_bytes())
|
||
85 | x['sources'] = [e for e in x['sources'] if e['id'] != 'rgpkg'] + rows
|
||
|
|
||
|
||
E501 Line too long (132 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/inventory.py:24:101
|
||
|
|
||
22 | …
|
||
23 | …[])
|
||
24 | …s/{i}', s) for (i, s) in enumerate(g.get('definitions', {}).get('subgraphs', []))]
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
25 | …
|
||
26 | …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/zimage-generalb-document-evidence/inventory.py:26:101
|
||
|
|
||
24 | …efinitions', {}).get('subgraphs', []))]
|
||
25 | …
|
||
26 | …'links']), modes=[n['mode'] for n in graph['nodes']], named_nodes=sum(('widgets_values_named' in n for n in graph['nodes']))))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
27 | …
|
||
28 | …
|
||
|
|
||
|
||
E501 Line too long (166 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/inventory.py:30:101
|
||
|
|
||
28 | …
|
||
29 | …[None, []]:
|
||
30 | …issing' if 'widgets_values' not in n else 'null' if n['widgets_values'] is None else 'empty_list'))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
31 | …
|
||
32 | …ts_values/0', text=n['widgets_values'][0], characters=len(n['widgets_values'][0])))
|
||
|
|
||
|
||
E501 Line too long (150 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/inventory.py:32:101
|
||
|
|
||
30 | …state='missing' if 'widgets_values' not in n else 'null' if n['widgets_values'] is None else 'empty_list'))
|
||
31 | …
|
||
32 | … '/widgets_values/0', text=n['widgets_values'][0], characters=len(n['widgets_values'][0])))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
33 | …
|
||
34 | … or []):
|
||
|
|
||
|
||
E501 Line too long (198 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/inventory.py:35:101
|
||
|
|
||
33 | …
|
||
34 | …
|
||
35 | … value=v, json_type=type(v).__name__, scope='root' if not prefix else prefix, named=n.get('widgets_values_named')))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
36 | …shlib.sha1(b'blob ' + str(len(raw)).encode() + b'\x00' + raw).hexdigest(), fields=fields, empty=empty, notes=notes, scopes=scopes, ex…
|
||
37 | …
|
||
|
|
||
|
||
E501 Line too long (445 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/inventory.py:36:101
|
||
|
|
||
34 | …
|
||
35 | …on_type=type(v).__name__, scope='root' if not prefix else prefix, named=n.get('widgets_values_named')))
|
||
36 | …'blob ' + str(len(raw)).encode() + b'\x00' + raw).…get('definitions', {}).get('subgraphs', [])])
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
37 | …
|
||
38 | …
|
||
|
|
||
|
||
E501 Line too long (103 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/inventory.py:39:101
|
||
|
|
||
37 | if __name__ == '__main__':
|
||
38 | x = inventory()
|
||
39 | (OUT / 'independent-inventory.json').write_text(json.dumps(x, ensure_ascii=False, indent=2) + '\n')
|
||
| ^^^
|
||
40 | print('Saved', len(x['fields']), 'notes', len(x['notes']), 'scopes', x['scopes'])
|
||
|
|
||
|
||
E501 Line too long (2098 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/prepare_sources.py:17:101
|
||
|
|
||
15 | …
|
||
16 | …
|
||
17 | …tras/nodes_string.py', 'comfy_extras/nodes_primiti…ib/litegraph/src/LGraphNode.ts', 'LICENSE'])]
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
18 | …
|
||
19 | …
|
||
|
|
||
|
||
E501 Line too long (118 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/prepare_sources.py:37:70
|
||
|
|
||
35 | e['license_file'] = '../' + folder + '/' + e['license_file']
|
||
36 | e.setdefault('tag', e['commit'])
|
||
37 | e['applicability'] = '本图独立准确声明身份;旧采集时间保留、原字节重核。包到Git未知、宿主和别名恢复未知。'
|
||
| ^^^^^^^^^^^^^^^^^
|
||
38 | rows.append(e)
|
||
39 | for (key, repo, tag, files) in SPECS:
|
||
|
|
||
|
||
E501 Line too long (200 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/prepare_sources.py:44:101
|
||
|
|
||
42 | …process.DEVNULL)
|
||
43 | …
|
||
44 | …'--depth=1', 'https://github.com/' + repo + '.git', 'refs/tags/' + tag if tag.startswith('v') else tag], check=True)
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
45 | …
|
||
46 | …
|
||
|
|
||
|
||
E501 Line too long (158 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/prepare_sources.py:52:101
|
||
|
|
||
50 | …', 'commit', rev))
|
||
51 | …'-p', 'FETCH_HEAD'))
|
||
52 | …ref=tag, commit=rev, object=git('rev-parse', 'FETCH_HEAD').decode().strip()), indent=2) + '\n')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
53 | …
|
||
54 | …es():
|
||
|
|
||
|
||
E501 Line too long (123 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/prepare_sources.py:58:101
|
||
|
|
||
56 | (mode, kind, sha) = head.split()
|
||
57 | entries.append(dict(path=path, mode=mode, type=kind, sha=sha))
|
||
58 | (REF / (key + '-tree.json')).write_text(json.dumps(dict(sha=tree, truncated=False, tree=entries), indent=2) + '\n')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||
59 | missing = []
|
||
60 | if key in ['easy', 'reel', 'core0270', 'layer']:
|
||
|
|
||
|
||
E501 Line too long (220 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/prepare_sources.py:61:101
|
||
|
|
||
59 | …
|
||
60 | …
|
||
61 | …'path'].lower() for s in (['seedvr', 'resize'] if key == 'core0270' else ['purge'] if key == 'layer' else ['seed', 'reel'])))]
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
62 | …
|
||
63 | …'path'].lower()]
|
||
|
|
||
|
||
E501 Line too long (110 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/prepare_sources.py:63:101
|
||
|
|
||
61 | … files += [e['path'] for e in entries if e['path'].endswith('.py') and any((s in e['path'].lower() for s in (['seedvr', 'resi…
|
||
62 | … if key == 'easy':
|
||
63 | … files += [e['path'] for e in entries if e['path'].endswith('.js') and 'seed' in e['path'].lower()]
|
||
| ^^^^^^^^^^
|
||
64 | … for f in dict.fromkeys(files):
|
||
65 | … ent = next((x for x in entries if x['path'] == f), None)
|
||
|
|
||
|
||
E501 Line too long (488 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/prepare_sources.py:72:101
|
||
|
|
||
70 | …
|
||
71 | …
|
||
72 | … tag=tag, url=f'https://raw.githubusercontent.com/…, identity_key=key))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
73 | …
|
||
74 | …
|
||
|
|
||
|
||
E501 Line too long (110 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/prepare_sources.py:77:101
|
||
|
|
||
75 | if e['id'] == 'core0211':
|
||
76 | e['identity_root'] = '../flux2-img-reference'
|
||
77 | (REF / 'sources.json').write_text(json.dumps(dict(sources=rows), ensure_ascii=False, indent=2) + '\n')
|
||
| ^^^^^^^^^^
|
||
78 | print('PINNED', key, rev, flush=True)
|
||
79 | if __name__ == '__main__':
|
||
|
|
||
|
||
E501 Line too long (105 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/rebuild.py:35:101
|
||
|
|
||
33 | block = reviews[path]['fixed_version_document']
|
||
34 | pins[path] = hashlib.sha256(canonical(block)).hexdigest()
|
||
35 | (OUT / f'definition-{i}.json').write_text(json.dumps(block, ensure_ascii=False, indent=2) + '\n')
|
||
| ^^^^^
|
||
36 | module = REPO / ('calliope-backend/src/calliope/' + 'co' + 'mfyui/fixed_document.py')
|
||
37 | text = module.read_text()
|
||
|
|
||
|
||
E501 Line too long (198 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/rebuild.py:46:101
|
||
|
|
||
44 | …
|
||
45 | …
|
||
46 | …join((' ' + repr(path[i:i + 41]) + '\n' for i in range(0, len(path), 41))) + ' ): ' + repr(digest) + ',')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
47 | …
|
||
48 | … '\n')
|
||
|
|
||
|
||
E501 Line too long (124 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/recompute.py:34:86
|
||
|
|
||
32 | s = sorted(dist.glob('*.tar.gz'))
|
||
33 | if not w or not s:
|
||
34 | raise SystemExit('缺少wheel/sdist包产物,请先在仓库根执行:uv bui' + 'ld --project calliope-backend --' + 'offline')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||
35 | return (w[-1], s[-1])
|
||
|
|
||
|
||
E501 Line too long (113 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/recompute.py:46:101
|
||
|
|
||
44 | (rebuilt, previous) = build_all()
|
||
45 | assert rebuilt == json.loads((REPO / RESOURCE).read_bytes())
|
||
46 | old_blocks = {p: r['fixed_version_document'] for (p, r) in previous.items() if 'fixed_version_document' in r}
|
||
| ^^^^^^^^^^^^^
|
||
47 | assert len(old_blocks) == 75
|
||
48 | assert all((rebuilt[p]['fixed_version_document'] == b for (p, b) in old_blocks.items()))
|
||
|
|
||
|
||
E501 Line too long (263 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/recompute.py:52:101
|
||
|
|
||
50 | …
|
||
51 | …
|
||
52 | …: 155, 'old_blocks_unchanged': 75, 'old_saved': 3639, 'old_notes': 94, 'new_saved': 175, 'new_notes': 4, 'total_documents': 76, 'total_saved': 3814, 'total_notes': 98})
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
53 | …
|
||
54 | …
|
||
|
|
||
|
||
E501 Line too long (107 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/recompute.py:64:101
|
||
|
|
||
62 | … def run(name, historical=False):
|
||
63 | … out = work / name
|
||
64 | … env = {**os.environ, 'PYTHONPATH': str((old if historical else REPO) / 'calliope-backend/src')}
|
||
| ^^^^^^^
|
||
65 | … subprocess.run([sys.executable, '-m', 'calliope.comfyui.library_cli', 'import', '--root', str(REPO / 'example_ComfyUI_workfl…
|
||
66 | … return (json.loads((out / 'import_report.json').read_bytes()), out)
|
||
|
|
||
|
||
E501 Line too long (352 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/recompute.py:65:101
|
||
|
|
||
63 | …
|
||
64 | …ckend/src')}
|
||
65 | …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)
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
66 | …
|
||
|
|
||
|
||
E501 Line too long (101 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/recompute.py:71:101
|
||
|
|
||
69 | with sqlite3.connect(db) as c:
|
||
70 | c.row_factory = sqlite3.Row
|
||
71 | return {r['source_repo_path']: dict(r) for r in c.execute('SELECT * FROM workflows')}
|
||
| ^
|
||
72 | (first, _) = run('historical', True)
|
||
73 | before = rows()
|
||
|
|
||
|
||
E501 Line too long (181 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/recompute.py:75:101
|
||
|
|
||
73 | …
|
||
74 | …
|
||
75 | …f BASE.startswith('3c307e0') else 'fixed_version' not in json.loads(before[p]['doc_json']) for p in PATHS))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
76 | …tched'] for p in DEFINITIONS if p not in PATHS))
|
||
77 | …
|
||
|
|
||
|
||
E501 Line too long (122 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/recompute.py:76:101
|
||
|
|
||
74 | … assert first['counts'] == {'imported': 155, 'user_excluded': 1}
|
||
75 | … assert all(('fixed_version' in json.loads(before[p]['doc_json']) if BASE.startswith('3c307e0') else 'fixed_version' not in json.…
|
||
76 | … assert all((json.loads(before[p]['doc_json'])['fixed_version']['matched'] for p in DEFINITIONS if p not in PATHS))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||
77 | … original = db
|
||
78 | … protected = []
|
||
|
|
||
|
||
E501 Line too long (115 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/recompute.py:86:101
|
||
|
|
||
84 | src.backup(dst)
|
||
85 | for p in PATHS:
|
||
86 | dst.execute('UPDATE workflows SET descripti' + 'on' + '=? WHERE source_repo_path=?', (name, p))
|
||
| ^^^^^^^^^^^^^^^
|
||
87 | snapshot = rows()
|
||
88 | (r, _) = run(name)
|
||
|
|
||
|
||
E501 Line too long (133 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/recompute.py:102:101
|
||
|
|
||
100 | continue
|
||
101 | assert len(row) == 29
|
||
102 | assert all((row[k] == before[p][k] for k in row.keys() - {'doc_json', 'batch_id', 'imported_at', 'library_fingerprint'}))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
103 | d = json.loads(row['doc_json'])
|
||
104 | assert d['fixed_version']['matched']
|
||
|
|
||
|
||
E501 Line too long (183 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/recompute.py:108:68
|
||
|
|
||
106 | …
|
||
107 | …
|
||
108 | … 节点定义、模型来源及所需素材;完成输入输出映射核对。', '明确触发真实测试后核对产物;本批未提交生成任务。']
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
109 | …
|
||
110 | …
|
||
|
|
||
|
||
E501 Line too long (113 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/recompute.py:111:101
|
||
|
|
||
109 | offset = old_doc['steps'].index(generic[0])
|
||
110 | assert old_doc['steps'][offset:offset + 3] == generic
|
||
111 | assert without['steps'] == old_doc['steps'][:offset] + fixed['steps'] + old_doc['steps'][offset + 3:]
|
||
| ^^^^^^^^^^^^^
|
||
112 | without['steps'] = old_doc['steps']
|
||
113 | assert without.pop('source_review_sha') != old_doc.pop('source_review_sha')
|
||
|
|
||
|
||
E501 Line too long (102 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/recompute.py:135:101
|
||
|
|
||
133 | for row in rows().values():
|
||
134 | d = json.loads(row['doc_json'])
|
||
135 | companion += sum((p.get('value_origin') == 'supplied_api_companion' for p in d['params']))
|
||
| ^^
|
||
136 | assert not row['is_enabled'] and row['doc_completed_at'] is None and (row['exec_verified_at'] is None)
|
||
137 | assert not d['status']['doc_done'] and (not d['status']['exec_verified'])
|
||
|
|
||
|
||
E501 Line too long (114 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/recompute.py:136:101
|
||
|
|
||
134 | d = json.loads(row['doc_json'])
|
||
135 | companion += sum((p.get('value_origin') == 'supplied_api_companion' for p in d['params']))
|
||
136 | assert not row['is_enabled'] and row['doc_completed_at'] is None and (row['exec_verified_at'] is None)
|
||
| ^^^^^^^^^^^^^^
|
||
137 | assert not d['status']['doc_done'] and (not d['status']['exec_verified'])
|
||
138 | assert d['dependencies']['check_state'] == 'unchecked'
|
||
|
|
||
|
||
E501 Line too long (121 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/recompute.py:140:101
|
||
|
|
||
138 | assert d['dependencies']['check_state'] == 'unchecked'
|
||
139 | report = audit(REPO, exported)
|
||
140 | assert report['named_values_preserved'] == 1217 and report['unnamed_widget_nodes'] == 3660 and (companion == 294)
|
||
| ^^^^^^^^^^^^^^^^^^^^^
|
||
141 | assert report['full_documents_completed'] == report['real_executions'] == 0
|
||
142 | write('audit-summary.json', {k: v for (k, v) in report.items() if k != 'files'})
|
||
|
|
||
|
||
E501 Line too long (593 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/recompute.py:143:101
|
||
|
|
||
141 | …
|
||
142 | …
|
||
143 | …rade['counts'], 'repeat': repeat['counts'], 'rest…abled': True, 'doc_done': 0, 'executed': 0})
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
144 | …=REPO))
|
||
145 | …
|
||
|
|
||
|
||
E501 Line too long (102 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/recompute.py:144:101
|
||
|
|
||
142 | write('audit-summary.json', {k: v for (k, v) in report.items() if k != 'files'})
|
||
143 | write('import-protection.json', {'base': BASE, 'first': first['counts'], 'upgrade': upgrade['counts'], 'repeat': repeat['coun…
|
||
144 | old_reviews = json.loads(subprocess.check_output(['git', 'show', f'{BASE}:{RESOURCE}'], cwd=REPO))
|
||
| ^^
|
||
145 | current = json.loads((REPO / RESOURCE).read_bytes())
|
||
146 | for p in PATHS:
|
||
|
|
||
|
||
E501 Line too long (124 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/recompute.py:150:101
|
||
|
|
||
148 | old_reviews[p].pop('fixed_version_document', None)
|
||
149 | assert current == old_reviews
|
||
150 | boundaries = json.loads((REPO / ('docs/hel-892/h3-document-evide' + 'nc' + 'e/unchanged-boundaries.json')).read_bytes())
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||
151 | paths = [f['path'] for f in boundaries['files']] + boundaries['frozen_conversion_and_audits'] + ['calliope-backend/src/calliope/c…
|
||
152 | kept = []
|
||
|
|
||
|
||
E501 Line too long (157 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/recompute.py:151:101
|
||
|
|
||
149 | …
|
||
150 | …evide' + 'nc' + 'e/unchanged-boundaries.json')).read_bytes())
|
||
151 | …es['frozen_conversion_and_audits'] + ['calliope-backend/src/calliope/co' + 'mfyui/library.py']
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
152 | …
|
||
153 | …
|
||
|
|
||
|
||
E501 Line too long (307 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/recompute.py:160:101
|
||
|
|
||
158 | …
|
||
159 | …
|
||
160 | …ged': 75, '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'})
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
161 | ….decode().rstrip('\x00').split('\x00')
|
||
162 | …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/zimage-generalb-document-evidence/recompute.py:161:101
|
||
|
|
||
159 | …['git', 'show', f'{BASE}:{ui}'], cwd=REPO)
|
||
160 | …: kept, 'originals': 156, 'old_blocks_unchanged': 75, 'drawer_css_unchanged': True, 'drawer_whole_file_unchanged': True, 'drawer_sha…
|
||
161 | …ree', '-rz', '--name-only', BASE], cwd=REPO).decode().rstrip('\x00').split('\x00')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
162 | …example_ComfyUI_workflows/', 'docs/hel-892/supplied-api/')) or (p.startswith('calliope-backend/src/calliope/' + 'co' + 'mfyui/') and…
|
||
163 | …
|
||
|
|
||
|
||
E501 Line too long (274 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/recompute.py:162:101
|
||
|
|
||
160 | …ged': 75, 'drawer_css_unchanged': True, 'drawer_whole_file_unchanged': True, 'drawer_sha256': hashlib.sha256(drawer_bytes).hexdigest(), 'conversion_rerun': False, 'profiles_28_candidat…
|
||
161 | ….decode().rstrip('\x00').split('\x00')
|
||
162 | …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'])]
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
163 | …
|
||
164 | …], cwd=REPO)
|
||
|
|
||
|
||
E501 Line too long (107 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/recompute.py:164:101
|
||
|
|
||
162 | frozen = [p for p in tracked if p.startswith(('example_ComfyUI_workflows/', 'docs/hel-892/supplied-api/')) or (p.startswith('call…
|
||
163 | for p in frozen:
|
||
164 | assert (REPO / p).read_bytes() == subprocess.check_output(['git', 'show', f'{BASE}:{p}'], cwd=REPO)
|
||
| ^^^^^^^
|
||
165 | write('frozen-resource-check.json', {'base': BASE, 'files': [{'path': p, 'sha256': hashlib.sha256((REPO / p).read_bytes()).hexdig…
|
||
166 | packages = []
|
||
|
|
||
|
||
E501 Line too long (266 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/recompute.py:165:101
|
||
|
|
||
163 | …
|
||
164 | …], cwd=REPO)
|
||
165 | …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})
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
166 | …
|
||
167 | …
|
||
|
|
||
|
||
E501 Line too long (135 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/recompute.py:173:101
|
||
|
|
||
171 | …f n.endswith('/src/calliope/comfyui/' + name)))
|
||
172 | …aw
|
||
173 | … hashlib.sha256(raw).hexdigest(), 'wheel': True, 'sdist': True, 'definitions': 76})
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
174 | …
|
||
175 | …eat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 76 definitions, frozen boundaries, wheel/sdist')
|
||
|
|
||
|
||
E501 Line too long (159 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/recompute.py:175:101
|
||
|
|
||
173 | …256(raw).hexdigest(), 'wheel': True, 'sdist': True, 'definitions': 76})
|
||
174 | …
|
||
175 | …back1, edits1/29cols, fresh155, 1217/3660/294, 76 definitions, frozen boundaries, wheel/sdist')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
176 | …
|
||
177 | …
|
||
|
|
||
|
||
E501 Line too long (444 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/render_report.py:28:101
|
||
|
|
||
26 | …
|
||
27 | …
|
||
28 | … '', '源路径:`' + b['source_path'] + '`', '', 'SHA1:'…位置说明', '']
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
29 | …
|
||
30 | …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/zimage-generalb-document-evidence/render_report.py:30:97
|
||
|
|
||
28 | … '', '源路径:`' + 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']], '### 逐保存位置说明', '']
|
||
29 | …
|
||
30 | …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'], '', '依据:']
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
31 | …
|
||
32 | …
|
||
|
|
||
|
||
E501 Line too long (155 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/render_report.py:36:81
|
||
|
|
||
34 | …']};{e['url']}"]
|
||
35 | …value']:
|
||
36 | … ):', '', '```json', json.dumps(f['named_value'], ensure_ascii=False, indent=2), '```', '']
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
37 | …
|
||
38 | …
|
||
|
|
||
|
||
E501 Line too long (132 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/render_report.py:42:96
|
||
|
|
||
40 | lines += [z['node_id'] + ' ' + z['class_type'] + ':' + z['effect'], '']
|
||
41 | for n in b['comments']:
|
||
42 | lines += ['节点' + n['node_id'] + ',位置`' + n['pointer'] + '`', '', n['meaning'], '', '```text', n['text'], '```', '']
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
43 | lines += ['### 固定原件索引', '']
|
||
44 | for (k, e) in enumerate(b['sources']):
|
||
|
|
||
|
||
E501 Line too long (104 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/render_report.py:50:87
|
||
|
|
||
48 | f"提交{e['commit']};SHA256 {e['sha256']};{e['url']}", '']
|
||
49 | index.append(dict(document=b['source_path'], **e))
|
||
50 | (OUT.parent / 'ZImage十八风格通用b固定参考中文说明.md').write_text('\n'.join(lines).rstrip() + '\n')
|
||
| ^^^^
|
||
51 | (OUT / 'fixed-source-index.json').write_text(json.dumps(index, ensure_ascii=False, indent=2) + '\n')
|
||
52 | if __name__ == '__main__':
|
||
|
|
||
|
||
E501 Line too long (104 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/render_report.py:51:101
|
||
|
|
||
49 | index.append(dict(document=b['source_path'], **e))
|
||
50 | (OUT.parent / 'ZImage十八风格通用b固定参考中文说明.md').write_text('\n'.join(lines).rstrip() + '\n')
|
||
51 | (OUT / 'fixed-source-index.json').write_text(json.dumps(index, ensure_ascii=False, indent=2) + '\n')
|
||
| ^^^^
|
||
52 | if __name__ == '__main__':
|
||
53 | main()
|
||
|
|
||
|
||
E501 Line too long (256 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/repeat.py:24:101
|
||
|
|
||
22 | …
|
||
23 | …
|
||
24 | …l': True, 'repeated_render_equal': True, 'resource_sha256': hashlib.sha256(canonical(a)).hexdigest(), 'artifacts': before}, ensure_ascii=False, indent=2) + '\n')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
25 | … 'erence')
|
||
26 | …
|
||
|
|
||
|
||
E501 Line too long (105 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/repeat.py:25:101
|
||
|
|
||
23 | assert before == {p.name: hashlib.sha256(p.read_bytes()).hexdigest() for p in paths}
|
||
24 | (OUT / 'repeatability.json').write_text(json.dumps({'definitions': 76, 'repeated_build_equal': True, 'repeated_render_equal': True…
|
||
25 | print('PASS deterministic definitions' + ' a' + ('nd rendered artifacts: zero di' + 'ff') + 'erence')
|
||
| ^^^^^
|
||
26 | if __name__ == '__main__':
|
||
27 | main()
|
||
|
|
||
|
||
E501 Line too long (166 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/source_closure.py:23:101
|
||
|
|
||
21 | …
|
||
22 | …
|
||
23 | …key'] + suffix)).resolve() for suffix in ['-registry.json', '-members.json', '-range-proof.json']))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
24 | …
|
||
25 | …
|
||
|
|
||
|
||
E501 Line too long (140 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/source_closure.py:26:101
|
||
|
|
||
24 | …
|
||
25 | …
|
||
26 | …fix)).resolve() for suffix in ['-commit.txt', '-tag.txt', '-tag.json', '-tree.json']))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
27 | …stry*.json')))
|
||
28 | …
|
||
|
|
||
|
||
E501 Line too long (157 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/source_closure.py:31:101
|
||
|
|
||
29 | …
|
||
30 | …
|
||
31 | …56=hashlib.sha256(raw).hexdigest(), purpose='准确来源原文、许可或Git对象绑定;静态读取未执行'))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
32 | …iles=result, count=len(result), upstream_executed=False, note=(
|
||
33 | …
|
||
|
|
||
|
||
E501 Line too long (125 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/source_closure.py:32:101
|
||
|
|
||
30 | raw = p.read_bytes()
|
||
31 | result.append(dict(path=str(p.relative_to(REPO)), sha256=hashlib.sha256(raw).hexdigest(), purpose='准确来源原文、许可或Git对…
|
||
32 | (OUT / 'source-closure.json').write_text(json.dumps(dict(files=result, count=len(result), upstream_executed=False, note=(
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
33 | 'commit/tag字节和选定blob已重算'
|
||
34 | ';tree列表非完整树对象重哈希。本批为选定'
|
||
|
|
||
|
||
E501 Line too long (111 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/verify_sources.py:28:101
|
||
|
|
||
26 | if e['id'] == 'litegraph':
|
||
27 | root = REF / e['identity_root']
|
||
28 | assert json.loads((root / 'litegraph__package__package.json').read_bytes())['version'] == '0.15.15'
|
||
| ^^^^^^^^^^^
|
||
29 | front = next((x for x in rows if x['id'] == 'frontend' and x['file'] == 'package-lock.json'))
|
||
30 | lock = json.loads((REF / front['local_file']).read_bytes())
|
||
|
|
||
|
||
E501 Line too long (105 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/verify_sources.py:29:101
|
||
|
|
||
27 | root = REF / e['identity_root']
|
||
28 | assert json.loads((root / 'litegraph__package__package.json').read_bytes())['version'] == '0.15.15'
|
||
29 | front = next((x for x in rows if x['id'] == 'frontend' and x['file'] == 'package-lock.json'))
|
||
| ^^^^^
|
||
30 | lock = json.loads((REF / front['local_file']).read_bytes())
|
||
31 | assert lock['packages']['node_modules/@comfyorg/litegraph']['integrity'] == 'sha512-' + e['artifact_sha512_base64']
|
||
|
|
||
|
||
E501 Line too long (127 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/verify_sources.py:31:101
|
||
|
|
||
29 | front = next((x for x in rows if x['id'] == 'frontend' and x['file'] == 'package-lock.json'))
|
||
30 | lock = json.loads((REF / front['local_file']).read_bytes())
|
||
31 | assert lock['packages']['node_modules/@comfyorg/litegraph']['integrity'] == 'sha512-' + e['artifact_sha512_base64']
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
32 | proof = (
|
||
33 | 'Pinned frontend1.23.0 '
|
||
|
|
||
|
||
E501 Line too long (133 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/verify_sources.py:56:101
|
||
|
|
||
54 | assert commit.decode().splitlines()[0] == 'tree ' + e['tree'] == 'tree ' + tree['sha']
|
||
55 | assert not tree['truncated']
|
||
56 | assert next((t['sha'] for t in tree['tree'] if t['path'] == e['file'])) == e['git_blob_sha1'] == object_hash('blob', raw)
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
57 | tag = json.loads((root / (key + '-tag.json')).read_bytes())
|
||
58 | tag_raw = (root / (key + '-tag.txt')).read_bytes()
|
||
|
|
||
|
||
E501 Line too long (176 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/verify_sources.py:72:101
|
||
|
|
||
70 | …
|
||
71 | …
|
||
72 | …d ((REF / x['local_file']).resolve() == (REF / e['license_file']).resolve() or x['file'] == 'LICENSE')))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
73 | …).hexdigest() == license_row['sha256']
|
||
74 | …], proof=proof))
|
||
|
|
||
|
||
E501 Line too long (110 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/verify_sources.py:73:101
|
||
|
|
||
71 | if not e['license_file'].startswith('未知'):
|
||
72 | license_row = next((x for x in rows if x['id'] == e['id'] and ((REF / x['local_file']).resolve() == (REF / e['license_file…
|
||
73 | assert hashlib.sha256((REF / e['license_file']).read_bytes()).hexdigest() == license_row['sha256']
|
||
| ^^^^^^^^^^
|
||
74 | checks.append(dict(id=e['id'], file=e['file'], sha256=e['sha256'], proof=proof))
|
||
75 | assert len(inv['fields']) == 175 and len(inv['notes']) == 4
|
||
|
|
||
|
||
E501 Line too long (125 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/verify_sources.py:82:101
|
||
|
|
||
80 | assert sum((e['state'] == 'empty_list' for e in inv['empty'])) == 27
|
||
81 | for (a, f) in zip(inv['fields'], block['fields'], strict=True):
|
||
82 | assert (a['pointer'], a['json_type'], canonical(a['value'])) == (f['pointer'], f['json_type'], canonical(f['value']))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
83 | assert [(n['pointer'], n['text']) for n in block['comments']] == [(n['pointer'], n['text']) for n in inv['notes']]
|
||
84 | from build_definition import PATHS, REPO
|
||
|
|
||
|
||
E501 Line too long (118 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/verify_sources.py:83:101
|
||
|
|
||
81 | for (a, f) in zip(inv['fields'], block['fields'], strict=True):
|
||
82 | assert (a['pointer'], a['json_type'], canonical(a['value'])) == (f['pointer'], f['json_type'], canonical(f['value']))
|
||
83 | assert [(n['pointer'], n['text']) for n in block['comments']] == [(n['pointer'], n['text']) for n in inv['notes']]
|
||
| ^^^^^^^^^^^^^^^^^^
|
||
84 | from build_definition import PATHS, REPO
|
||
85 | g = json.loads((REPO / PATHS[0]).read_bytes())
|
||
|
|
||
|
||
E501 Line too long (480 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/verify_sources.py:90:101
|
||
|
|
||
88 | …
|
||
89 | …
|
||
90 | …r (rgthree)': 4, 'Mute / Bypass Repeater (rgthree)…leWithModel': 2, 'Image Resize (rgthree)': 5}
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
91 | …
|
||
92 | …
|
||
|
|
||
|
||
E501 Line too long (111 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/verify_sources.py:98:101
|
||
|
|
||
96 | checked.append(eid)
|
||
97 | assert len(checked) == 332 and len(set(checked)) == 332
|
||
98 | assert [n['id'] for n in g['nodes'] if n['type'] == 'PrimitiveStringMultiline' and n['mode'] == 0] == [125]
|
||
| ^^^^^^^^^^^
|
||
99 | assert ns[566]['inputs'][0]['label'] == 'BAD' and ns[566]['inputs'][0]['type'] == '*'
|
||
100 | assert ns[392]['widgets_values'] == [{}, {'type': 'PowerLoraLoaderHeaderWidget'}, {}, '']
|
||
|
|
||
|
||
E501 Line too long (154 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/verify_sources.py:108:101
|
||
|
|
||
106 | …
|
||
107 | …ClassDef) and c.name == 'SaveImage'))
|
||
108 | …st.Assign) and any((isinstance(n, ast.Name) and n.id == 'RETURN_TYPES' for n in c.targets))))
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
109 | …
|
||
110 | …
|
||
|
|
||
|
||
E501 Line too long (397 > 100)
|
||
--> docs/hel-892/zimage-generalb-document-evidence/verify_sources.py:114:101
|
||
|
|
||
112 | …
|
||
113 | …
|
||
114 | …'], physical_edges_checked=len(checked), inventor…True), ensure_ascii=False, indent=2) + '\n')
|
||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
115 | …
|
||
116 | …
|
||
|
|
||
|
||
Found 114 errors (12 fixed, 102 remaining).
|