From 7a60da23f0982e151ca753dfd06a4f44b9865a76 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Sat, 27 Jun 2026 21:15:22 +0200 Subject: [PATCH] Expose smoke case listing --- docs/prompt-pool-routing-map.md | 7 +++++++ tools/prompt_smoke.py | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/docs/prompt-pool-routing-map.md b/docs/prompt-pool-routing-map.md index 62245ed..0409534 100644 --- a/docs/prompt-pool-routing-map.md +++ b/docs/prompt-pool-routing-map.md @@ -940,6 +940,13 @@ continuity. Run: python tools/prompt_smoke.py ``` +To inspect or run a focused path while editing one route: + +```bash +python tools/prompt_smoke.py --list +python tools/prompt_smoke.py --case krea_format_route_policy --case sdxl_format_route_policy +``` + The script does not import ComfyUI. It builds representative metadata rows and pair metadata through the core Python APIs, then verifies: diff --git a/tools/prompt_smoke.py b/tools/prompt_smoke.py index 6aab41d..406541d 100644 --- a/tools/prompt_smoke.py +++ b/tools/prompt_smoke.py @@ -8913,6 +8913,11 @@ SMOKE_CASES: list[tuple[str, Callable[[], None]]] = [ def main(argv: list[str] | None = None) -> int: parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument( + "--list", + action="store_true", + help="List available smoke case names and exit.", + ) parser.add_argument( "--case", choices=[name for name, _func in SMOKE_CASES], @@ -8920,6 +8925,10 @@ def main(argv: list[str] | None = None) -> int: help="Run only the named smoke case. Can be passed multiple times.", ) args = parser.parse_args(argv) + if args.list: + for name, _func in SMOKE_CASES: + print(name) + return 0 selected = set(args.case or []) report = SmokeReport() for name, func in SMOKE_CASES: