Download ComfyUI-MiniMaxH3-Context-Loop/web/h3_run_manager_core.mjs from dzmdd/Fast_deploy: direct link, hf CLI and curl.
- Browser
- Download file 1.23 kB
-
https://huggingface.co/dzmdd/Fast_deploy/resolve/main/ComfyUI-MiniMaxH3-Context-Loop/web/h3_run_manager_core.mjs
- Command line
-
hf download hf://dzmdd/Fast_deploy/ComfyUI-MiniMaxH3-Context-Loop/web/h3_run_manager_core.mjs
-
curl -L -o h3_run_manager_core.mjs https://huggingface.co/dzmdd/Fast_deploy/resolve/main/ComfyUI-MiniMaxH3-Context-Loop/web/h3_run_manager_core.mjs
1.23 kB
| export function normalizeRunName(value) { | |
| return String(value ?? "").trim(); | |
| } | |
| export function runManagerIdentity(activeRunName, selectedRun) { | |
| const active = normalizeRunName(activeRunName); | |
| const selected = normalizeRunName(selectedRun?.run_name); | |
| const same = Boolean(active && selected && active === selected); | |
| return { | |
| active, | |
| selected, | |
| same, | |
| activeLabel: active ? `Active Plan: ${active}` : "Active Plan: not named", | |
| selectedLabel: selected | |
| ? `Selected archive: ${selected}${same ? " (active)" : " (not loaded)"}` | |
| : "Selected archive: none", | |
| loadLabel: same ? "Reload selected archive" : "Load selected archive into Plan", | |
| saveLabel: active ? `Save assets to active Plan “${active}”` : "Save assets to active Plan", | |
| }; | |
| } | |
| export function runArchiveOptionLabel(run, activeRunName) { | |
| const name = normalizeRunName(run?.run_name); | |
| const scene = run?.scene_count == null | |
| ? (run?.restorable ? "" : " · assets only") | |
| : ` · ${run.scene_count} scenes`; | |
| const active = name && name === normalizeRunName(activeRunName) | |
| ? " · ACTIVE PLAN" : ""; | |
| return `${name}${scene}${active}`; | |
| } | |