ComfyUI/app/model_downloader/api
DoronGenzelHass fdd84d04a0 feat(model_downloader): server-side model download + HuggingFace OAuth subsystem
Self-contained package under app/model_downloader/:
- Allowlist + path-validated downloads (SSRF guard: HF/Civitai/localhost + model extension).
- Streaming worker: writes to <final>.tmp, atomic rename on success, cooperative cancellation with epoch-based session identity, orphan .tmp sweep.
- Unified availability probe with per-URL gated/size caching; is_hf_downloadable recomputed per call so login/license changes surface within one poll.
- HuggingFace OAuth 2.0 PKCE flow with loopback callback server and on-disk (0600) token storage + transparent refresh.
- Pydantic request/response schemas and aiohttp routes under api/.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-22 15:16:59 +03:00
..
routes.py feat(model_downloader): server-side model download + HuggingFace OAuth subsystem 2026-06-22 15:16:59 +03:00
schemas_in.py feat(model_downloader): server-side model download + HuggingFace OAuth subsystem 2026-06-22 15:16:59 +03:00
schemas_out.py feat(model_downloader): server-side model download + HuggingFace OAuth subsystem 2026-06-22 15:16:59 +03:00