Per user: serve from ComfyUI's own aiohttp PromptServer at /funpack/movie/ instead of a separate FastAPI/uvicorn process. Removes fastapi/uvicorn/httpx entirely (all on ComfyUI's bundled aiohttp); backend/requirements.txt deleted, root requirements.txt needs nothing new. - server.py: aiohttp route registration on PromptServer (projects/preview/ generate/status/result/library + static UI), guarded for standalone tests; wired into root __init__.py like batch_training - bridge.py: parse_timeline/transitions IN-PROCESS (direct FunPack imports); /prompt /history /view over loopback HTTP - config.comfy_base_url(): detect the REAL port from PromptServer.instance / comfy.cli_args so non-default --port works; browser uses same-origin relative URLs (api.js derives base from window.location) so the port is automatic - delete app.py, routes/, comfy_client.py, backend/requirements.txt - README updated; tests still 8/8 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
8 lines
324 B
Python
8 lines
324 B
Python
"""FunPack Movie Editor — runs inside ComfyUI.
|
|
|
|
Importing `movie_editor.server` registers the /funpack/movie/* routes on ComfyUI's
|
|
aiohttp PromptServer. The root package __init__ does that at custom-node load time.
|
|
This module stays import-light so `movie_editor.backend.*` can be unit-tested without
|
|
ComfyUI present.
|
|
"""
|