Files
aigc-home/docs/hel-892/director-one-document-evidence/source-acquisition-tools.json
T
2026-11-01 09:20:09 +08:00

21 lines
7.9 KiB
JSON

{
"note": "本轮准确Git必要文本工具存档,fetch片段另附,未执行上游代码/媒体。首次获取时刻保留原fetch启动记录,不替换旧历史未知。",
"tools": [
{
"name": "sources-director-one.py",
"sha256": "346fdab892ea4b9339ec3e8ecdcca21aac87c6327412209625c3c5110b8165db",
"text": "from pathlib import Path\nimport json,hashlib,os,datetime,subprocess,concurrent.futures,urllib.request,urllib.error\nR=Path.cwd();REF=R/'docs/hel-892/director-one-reference';REF.mkdir(exist_ok=True);now=datetime.datetime.now(datetime.timezone.utc).isoformat();rows=[]\nfragment=Path('.local-evidence/setup-anima.py').read_text();fragment=fragment[fragment.index('def fetch(spec):'):fragment.index('with concurrent.futures.ThreadPoolExecutor')].replace('anima-','director-one-').replace(\"['git','-C',str(cache),*args]\",\"['git','-c','core.quotepath=false','-C',str(cache),*args]\");exec(fragment)\nrepos={}\nfor key,reg in [('easy','comfyui-easy-use'),('media','comfyui-easy-media'),('swap','comfyui-uniblockswap'),('kj','comfyui-kjnodes'),('core','comfy-core')]:\n url='https://api.comfy.org/nodes/'+reg\n try:\n with urllib.request.urlopen(urllib.request.Request(url,headers={'User-Agent':'Multica-static-source-review'}),timeout=30)as z:raw=z.read(1000000);status=z.status\n except urllib.error.HTTPError as e:raw=e.read(1000000);status=e.code\n (REF/(key+'-registry-response.txt')).write_bytes(raw);(REF/(key+'-registry-request.json')).write_text(json.dumps(dict(url=url,status=status,time=datetime.datetime.now(datetime.timezone.utc).isoformat(),sha256=hashlib.sha256(raw).hexdigest()),indent=2)+'\\n')\n if status==200:repos[key]=json.loads(raw)['repository'].removeprefix('https://github.com/').removesuffix('.git')\n print('REGISTRY',key,status,repos.get(key),flush=True)\nrepos['swap']=repos.get('swap','smthemex/ComfyUI_UniBlockSwap')\nspecs=[('core0290','Comfy-Org/ComfyUI','v0.29.0',['nodes.py','comfy_extras/nodes_audio.py','comfy/samplers.py','comfy/sd.py','folder_paths.py','LICENSE','requirements.txt']),('core0302','Comfy-Org/ComfyUI','v0.30.2',['nodes.py','comfy_extras/nodes_video.py','comfy_extras/nodes_string.py','comfy_extras/nodes_math.py','comfy_extras/nodes_primitive.py','comfy_api/latest/_io.py','comfy_api/latest/_io_public.py','comfy_api/latest/_ui.py','comfy_api/latest/_ui_public.py','comfy_api/latest/_util/video_types.py','comfy_api/latest/_input_impl/video_types.py','comfy_api/latest/_input/video_types.py','comfy_api/latest/__init__.py','LICENSE','requirements.txt']),('easy',repos['easy'],'595e0738a9e3f8d0d9c4d875461b2d2c9e7559c7',['__init__.py','py/nodes/logic.py','py/nodes/seed.py','py/nodes/prompt.py','LICENSE','requirements.txt','pyproject.toml']),('media85',repos['media'],'9d0282d4e19ef2718c084edf55864dfb4533032f',['__init__.py','LICENSE','requirements.txt','pyproject.toml']),('mediaout',repos['media'],'829a7a6030b151cb6ac091595570eb3a3d8c4512',['__init__.py','LICENSE','requirements.txt','pyproject.toml']),('mediaeditor',repos['media'],'fcfa42394d6347b4f04295041afdd7d92ba78c12',['__init__.py','LICENSE','requirements.txt','pyproject.toml']),('swap',repos['swap'],'4172da4e2edc03951ffead12ca1c20a0028d3cb0',['__init__.py','LICENSE','requirements.txt','pyproject.toml']),('kjpatch',repos['kj'],'35e5956193769d18a13136cdedb73a36a05c73e6',['__init__.py','nodes/nodes.py','LICENSE','requirements.txt','pyproject.toml']),('kjresize',repos['kj'],'eb356e6cd5dedac54bb84bc54b8da8f185fa8472',['__init__.py','nodes/image_nodes.py','LICENSE','requirements.txt','pyproject.toml']),('frontend','Comfy-Org/ComfyUI_frontend','v1.47.11',['package.json','pnpm-lock.yaml','LICENSE','src/lib/litegraph/LICENSE','src/lib/litegraph/src/LGraphNode.ts','src/extensions/core/widgetInputs.ts','src/scripts/widgets.ts'])]\nwith concurrent.futures.ThreadPoolExecutor(max_workers=3)as pool:\n for rr in pool.map(fetch,specs):rows+=rr\n(REF/'sources.json').write_text(json.dumps(dict(sources=rows),ensure_ascii=False,indent=2)+'\\n')\n"
},
{
"name": "extend-director-one.py",
"sha256": "1b85c3cef224d43c7d0747bcb34c093667e93805970babb2af5f21fe5b71d6e6",
"text": "from pathlib import Path\nimport json,hashlib,os,datetime,subprocess,concurrent.futures,urllib.request,urllib.error\nR=Path.cwd();REF=R/'docs/hel-892/director-one-reference';REF.mkdir(exist_ok=True);now=datetime.datetime.now(datetime.timezone.utc).isoformat();rows=[]\nfragment=Path('.local-evidence/setup-anima.py').read_text();fragment=fragment[fragment.index('def fetch(spec):'):fragment.index('with concurrent.futures.ThreadPoolExecutor')].replace('anima-','director-one-').replace(\"['git','-C',str(cache),*args]\",\"['git','-c','core.quotepath=false','-C',str(cache),*args]\");exec(fragment)\nrows=json.loads((REF/'sources.json').read_bytes())['sources']\nspecs=[('media85','yolain/ComfyUI-Easy-Media','9d0282d4e19ef2718c084edf55864dfb4533032f',['nodes/__init__.py','nodes/minimax.py','utils/minimax.py']),('mediaout','yolain/ComfyUI-Easy-Media','829a7a6030b151cb6ac091595570eb3a3d8c4512',['nodes/__init__.py','nodes/basic.py','utils/media.py','utils/prompt_builder.py','utils/prompt_override.py']),('mediaeditor','yolain/ComfyUI-Easy-Media','fcfa42394d6347b4f04295041afdd7d92ba78c12',['nodes/__init__.py','nodes/basic.py','frontend/src/index.ts','frontend/src/components/widgets/MultiTrackWidget.tsx','frontend/src/types/multitrack.ts','frontend/src/lib/multitrack-utils.ts','frontend/src/lib/create-react-widget.ts']),('swap','smthemex/ComfyUI_UniBlockSwap','4172da4e2edc03951ffead12ca1c20a0028d3cb0',['uniblockswap_node.py','block_swap.py']),('kjpatch','kijai/ComfyUI-KJNodes','35e5956193769d18a13136cdedb73a36a05c73e6',['nodes/model_optimization_nodes.py']),('easy','yolain/ComfyUI-Easy-Use','595e0738a9e3f8d0d9c4d875461b2d2c9e7559c7',['py/libs/utils.py','py/libs/log.py'])]\nwith concurrent.futures.ThreadPoolExecutor(max_workers=3)as pool:\n for rr in pool.map(fetch,specs):\n for e in rr:\n if not any(x['id']==e['id']and x['file']==e['file']for x in rows):rows.append(e)\n(REF/'sources.json').write_text(json.dumps(dict(sources=rows),ensure_ascii=False,indent=2)+'\\n')\n"
},
{
"name": "extend2-director-one.py",
"sha256": "10589c699e4c3d2442d97ef53ed9859742a486157398e744a32956c6439f40e9",
"text": "from pathlib import Path\nimport json,hashlib,os,datetime,subprocess,concurrent.futures,urllib.request,urllib.error\nR=Path.cwd();REF=R/'docs/hel-892/director-one-reference';REF.mkdir(exist_ok=True);now=datetime.datetime.now(datetime.timezone.utc).isoformat();rows=[]\nfragment=Path('.local-evidence/setup-anima.py').read_text();fragment=fragment[fragment.index('def fetch(spec):'):fragment.index('with concurrent.futures.ThreadPoolExecutor')].replace('anima-','director-one-').replace(\"['git','-C',str(cache),*args]\",\"['git','-c','core.quotepath=false','-C',str(cache),*args]\");exec(fragment)\nrows=json.loads((REF/'sources.json').read_bytes())['sources']\nspecs=[]\nfor key,rev in [('mediaeditor','fcfa42394d6347b4f04295041afdd7d92ba78c12'),('mediaout','829a7a6030b151cb6ac091595570eb3a3d8c4512')]:\n specs.append((key,'yolain/ComfyUI-Easy-Media',rev,['utils/__init__.py','utils/audio.py','utils/audio_gain.py','utils/image.py','utils/media.py','utils/video.py','utils/prompt_builder.py','utils/prompt_override.py','frontend/package.json']))\nspecs += [('easy','yolain/ComfyUI-Easy-Use','595e0738a9e3f8d0d9c4d875461b2d2c9e7559c7',['py/config.py','web_version/v1/js/seed.js']),('core0290','Comfy-Org/ComfyUI','v0.29.0',['comfy_api/latest/_io.py','comfy_api/latest/_io_public.py']),('core0302','Comfy-Org/ComfyUI','v0.30.2',['comfy_api/latest/_util/__init__.py','folder_paths.py','comfy_api/latest/_input_impl/__init__.py','comfy_api/latest/_input/__init__.py'])]\nwith concurrent.futures.ThreadPoolExecutor(max_workers=3)as pool:\n for rr in pool.map(fetch,specs):\n for e in rr:\n if not any(x['id']==e['id']and x['file']==e['file']for x in rows):rows.append(e)\n(REF/'sources.json').write_text(json.dumps(dict(sources=rows),ensure_ascii=False,indent=2)+'\\n')\n"
}
]
}