From 037ff39a3ba7ba64c4b45a9e24718f356978a74f Mon Sep 17 00:00:00 2001 From: Vito Sansevero Date: Sat, 31 Oct 2026 21:12:54 -0700 Subject: [PATCH] chore(release): 1.3.1 with a one-line startup banner - Collapse the console banner to a single line with the version and the tool count instead of one `Loaded:` line per node, matching ComfyUI-PromptManager - Keep the banner ASCII so a legacy Windows console cannot abort the load - Update the console encoding test to assert the summary line - Ship the Krea 2 resolution family already on main - Bump pyproject.toml to 1.3.1 and date the changelog section --- CHANGELOG.md | 7 ++++++- __init__.py | 17 +++++++---------- pyproject.toml | 2 +- tests/test_console_encoding.py | 5 +++-- 4 files changed, 17 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 89e711d..ea60573 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # Changelog -## Unreleased +## 1.3.1 + +### Startup + +- The console banner is one line, version plus tool count, instead of one + `Loaded:` line per node. ### Model Resolution Picker diff --git a/__init__.py b/__init__.py index 7a4b64f..4553f3b 100644 --- a/__init__.py +++ b/__init__.py @@ -114,15 +114,12 @@ def get_version(): return "unknown" -# Print startup message with loaded tools -print() -print(f"\033[94m[ComfyUI-KikoTools] Version:\033[0m {get_version()}") -for node_key, display_name in NODE_DISPLAY_NAME_MAPPINGS.items(): - # ASCII only: a Windows console using a legacy code page cannot print emoji, - # and a UnicodeEncodeError here would abort loading the whole node. - ascii_name = display_name.encode("ascii", "ignore").decode().strip() - print(f" \033[94mLoaded:\033[0m {ascii_name}") -print(f"\033[94mTotal: {len(NODE_CLASS_MAPPINGS)} tools loaded\033[0m") -print() +# One-line startup banner. Keep it ASCII: a Windows console using a legacy +# code page raises UnicodeEncodeError on emoji, which would abort loading the +# whole node pack. +print( + f"\033[94m[ComfyUI-KikoTools] Version:\033[0m {get_version()} " + f"- {len(NODE_CLASS_MAPPINGS)} tools loaded" +) __all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"] diff --git a/pyproject.toml b/pyproject.toml index 9ba557b..79f96c9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta" [project] name = "kikotools" description = "Simple tools for ComfyUI" -version = "1.3.0" +version = "1.3.1" license = {text = "MIT"} dependencies = [] diff --git a/tests/test_console_encoding.py b/tests/test_console_encoding.py index 15c1672..663fdb5 100644 --- a/tests/test_console_encoding.py +++ b/tests/test_console_encoding.py @@ -38,8 +38,9 @@ def test_package_loads_with_a_legacy_windows_console(encoding): stream.flush() banner = stream.buffer.getvalue().decode(encoding) - assert "Loaded:" in banner - assert "Model Downloader" in banner # display name kept, emoji dropped + assert "[ComfyUI-KikoTools] Version:" in banner + assert "tools loaded" in banner + assert "Loaded:" not in banner # one summary line, not one line per tool def test_preset_validation_messages_are_ascii(monkeypatch):