Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
82d7243c42 | ||
|
|
4fdbc727cf | ||
|
|
1e76311262 | ||
|
|
037ff39a3b |
+6
-1
@@ -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.
|
||||
|
||||
### Custom Colors
|
||||
|
||||
|
||||
+7
-10
@@ -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"]
|
||||
|
||||
+1
-1
@@ -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 = []
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user