diff --git a/cheetahclaws.py b/cheetahclaws.py index c6e1f56..7e07b17 100755 --- a/cheetahclaws.py +++ b/cheetahclaws.py @@ -204,7 +204,7 @@ def __getattr__(self, name): _start_tool_spinner, _stop_tool_spinner, _change_spinner_phrase, set_spinner_phrase, set_rich_live, set_spinner_tips, print_tool_start, print_tool_end, - _RICH, console, + _RICH, console, _rgb, ) # ── Input layer (prompt_toolkit with readline fallback) ────────────────── @@ -911,28 +911,24 @@ def repl(config: dict, initial_prompt: str = None): "✦ · · · · ·", ] _CHEETAH_LOGO = [ - "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠰⣶⣶⢦⣤⣤⣤⣄⣀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀", - "⠀⠀⠀⠀⠀⠀⠀⣀⣀⣠⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣼⣿⣶⣿⣾⣿⣿⣿⣿⣿⣿⣶⣦⣤⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀", - "⠀⠀⠀⠀⠀⠀⠙⣿⣿⣟⠛⠛⠛⠛⠛⠛⠛⠛⠛⠻⠿⠛⠛⠛⠛⠉⠉⠉⠙⠛⠛⠛⠿⠿⣿⣿⣿⣷⣦⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀", - "⠀⠀⠀⠀⠀⠀⠀⢈⣻⣿⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣐⣒⣲⡦⣠⣤⣀⠀⠀⠀⠀⠉⠙⠻⣿⣿⣿⣦⣄⠀⠀⠀⠀⠀⠀", - "⠀⠀⠀⠀⢀⣴⣾⣿⣿⠿⠿⠿⠦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠙⣽⣿⣿⣿⣿⣿⣴⣤⣀⠀⠀⠀⠙⠻⣿⣿⣷⣄⠀⠀⠀⠀", - "⠀⠀⣠⣶⠿⠛⠉⠀⠀⠀⠀⠀⠀⠀⡀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣀⣀⣠⣄⣀⡈⠙⠩⠽⢻⣿⣿⣶⣀⠀⠀⠀⠈⢿⣿⣿⡆⠀⠀⠀", - "⢀⠼⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠻⣿⣿⣿⣯⡉⠙⠲⠦⣤⣌⣙⣻⣿⣿⣦⣤⣴⣿⣿⣿⡇⠀⠀⠀", - "⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠿⣿⣿⣿⣿⣿⣿⠿⠿⠛⠛⠋⠉⠉⠁⠈⠉⠻⣿⡄⠀⠀", - "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣤⣤⣶⣶⣶⣶⣶⣶⣦⣬⣀⡀⠀⠉⠛⠻⠯⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢈⣿ ⠀", - "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣶⣿⣿⣿⠿⠛⡉⠁⠐⠈⠀⠀⠀⠀⠈⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠠⣤⣤⣤⣴⣶⣾⣿⣿⣿⠀", - "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣴⣿⣿⣿⣿⠯⠐⠀⠈⠀⠀⠀⠀⠀⠀⢀⣀⣤⣤⣤⣤⣀⡀⠀⠀⠀⠀⠀⠀⠀⠉⠛⠿⣿⣿⡿⠃⣿⡇", - "⠀⠀⠀⠀⠀⠀⠀⠀⢠⣾⣿⣿⣿⣿⣿⣶⣦⣀⠀⠀⠀⠀⠀⠀⢰⣿⡟⠋⠉⠉⠉⠙⣿⣿⠶⣦⣄⣀⠀⠀⠀⠀⠀⣠⣿⣿⣦⣿⠁", - "⠀⠀⠀⠀⠀⠀⠀⠐⠛⠛⠛⠛⠛⠿⠿⣿⣿⣿⣿⣦⡀⠀⠀⠀⢸⣿⠀⠀⠀⠀⠀⢀⠘⠏⠀⠺⣿⡿⠻⣶⣶⣶⡾⠟⠛⢩⣿⡏⠀", - "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⠿⣿⣿⣦⡀⠀⠸⣿⡶⠀⠀⠀⠀⠸⡏⠀⠀⠀⠛⠁⠀⣿⣯⡟⠀⠀⠀⢸⡟⠀⠀", - "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢻⣿⣿⣄⠀⢿⡇⠀⠀⠀⠀⠀⢷⣀⠀⠀⠀⠀⠀⢸⠏⠀⠀⠀⠀⠈⠀⠀⠀", - "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣴⢿⣟⢿⣿⡆⠈⣿⣿⠋⠀⠀⠀⡞⣿⡄⠀⠀⣴⠀⠈⠀⠀⠀⠀⠀⠀⠀⠀⠀", - "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣜⣟⢽⢿⣿⣟⣿⣿⡀⠘⣷⡀⠀⣀⣾⡇⠘⠿⢷⣾⣿⠆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀", - "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣺⣿⣽⣿⣿⣿⣹⢿⣻⣿⡇⠀⠈⢿⣾⣿⣿⡷⠾⠟⣿⣿⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀", - "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⣿⣿⣿⣽⣻⣫⡼⠛⠉⠁⢸⣿⡇⠀⠀⠀⠛⠉⠀⠀⣠⣾⡿⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀", - "⠀⠀⠀⠀⠀⠀⠀⠀⢀⣰⣾⣿⣿⣽⠽⠋⠉⠀⠀⠀⠀⠀⠀⢸⣿⡇⠀⠀⠀⢀⣠⣴⣿⠿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀", - "⠀⠀⠀⠀⠀⠀⠀⣸⣿⠽⠟⠊⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣾⣿⣷⣶⣶⣿⠿⠛⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀", - "⠀⠀⠀⠀⠀⠘⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠼⠿⠛⠛⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀", + # CHEETAH (ansi_shadow) + " ██████╗██╗ ██╗███████╗███████╗████████╗ █████╗ ██╗ ██╗", + "██╔════╝██║ ██║██╔════╝██╔════╝╚══██╔══╝██╔══██╗██║ ██║", + "██║ ███████║█████╗ █████╗ ██║ ███████║███████║", + "██║ ██╔══██║██╔══╝ ██╔══╝ ██║ ██╔══██║██╔══██║", + "╚██████╗██║ ██║███████╗███████╗ ██║ ██║ ██║██║ ██║", + " ╚═════╝╚═╝ ╚═╝╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝", + # CLAWS, centered under CHEETAH + " ██████╗██╗ █████╗ ██╗ ██╗███████╗", + " ██╔════╝██║ ██╔══██╗██║ ██║██╔════╝", + " ██║ ██║ ███████║██║ █╗ ██║███████╗", + " ██║ ██║ ██╔══██║██║███╗██║╚════██║", + " ╚██████╗███████╗██║ ██║╚███╔███╔╝███████║", + " ╚═════╝╚══════╝╚═╝ ╚═╝ ╚══╝╚══╝ ╚══════╝", + ] + _CHEETAH_GRADIENT = [ # warm cheetah-gold vertical gradient (top -> bottom) + "#FFE082", "#FFD54F", "#FFCA28", "#FFB300", "#FFA000", "#FF8F00", + "#FB8C00", "#F57C00", "#EF6C00", "#E65100", "#DD4B0E", "#D84315", ] # Spinning galaxy animation @@ -948,9 +944,13 @@ def repl(config: dict, initial_prompt: str = None): except Exception: pass - # Print logo - for line in _CHEETAH_LOGO: - print(clr(line, "cyan", "bold")) + # Print logo - warm cheetah-gold vertical gradient, plain if color is off. + if C["reset"]: + for _ln, _hex in zip(_CHEETAH_LOGO, _CHEETAH_GRADIENT): + print(C["bold"] + _rgb(_hex) + _ln + C["reset"]) + else: + for _ln in _CHEETAH_LOGO: + print(_ln) print() model = config["model"]