From 8b4fc81360bddfd37c7142e39b0873efa0d6fde6 Mon Sep 17 00:00:00 2001 From: TheRadDani Date: Sat, 14 Mar 2026 19:24:54 -0500 Subject: [PATCH 1/4] Add logo printing functionality to CLI header --- python/vectorprime/cli.py | 47 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/python/vectorprime/cli.py b/python/vectorprime/cli.py index d60a72f..7614f27 100644 --- a/python/vectorprime/cli.py +++ b/python/vectorprime/cli.py @@ -2,6 +2,50 @@ import argparse import sys +import os + + +def _print_logo() -> None: + """Print the Optimus Prime ASCII art logo from assets.""" + try: + # Get the path to the logo file relative to this module + # cli.py is at: /home/daniel/VectorPrime/python/vectorprime/cli.py + # We need to go up 2 levels to get: /home/daniel/VectorPrime/ + current_dir = os.path.dirname(os.path.abspath(__file__)) # vectorprime/ + package_dir = os.path.dirname(current_dir) # python/ + project_root = os.path.dirname(package_dir) # VectorPrime/ + logo_path = os.path.join(project_root, "assets", "optimus_prime_logo.txt") + + if os.path.exists(logo_path): + with open(logo_path, "r", encoding="utf-8") as f: + logo_content = f.read() + print(logo_content) + except Exception as e: + # Silently fail if logo cannot be loaded + pass + + +def _print_fancy_header() -> None: + """Print fancy VectorPrime header with styling.""" + # ANSI color codes + BOLD = "\033[1m" + CYAN = "\033[36m" + MAGENTA = "\033[35m" + YELLOW = "\033[33m" + RESET = "\033[0m" + + # Print logo first + _print_logo() + print() + + # Print fancy VectorPrime text with colors + header = f"{BOLD}{CYAN}╔════════════════════════════════════════╗{RESET}" + print(header) + print(f"{BOLD}{CYAN}║{RESET} {MAGENTA}⚡ VectorPrime - LLM Optimizer ⚡{RESET} {BOLD}{CYAN}║{RESET}") + print(f"{BOLD}{CYAN}║{RESET} {YELLOW}Hardware-Aware Inference Engine{RESET} {BOLD}{CYAN}║{RESET}") + print(f"{BOLD}{CYAN}╚════════════════════════════════════════╝{RESET}") + print() + sys.stdout.flush() # Force output to display immediately def detect_format(path: str) -> str: @@ -310,6 +354,9 @@ def build_parser() -> argparse.ArgumentParser: def main() -> None: + # Display fancy header with logo + _print_fancy_header() + parser = build_parser() args = parser.parse_args() From 2dc39bb618db7ccb0438904f5810557dbff3dcc4 Mon Sep 17 00:00:00 2001 From: TheRadDani Date: Sat, 14 Mar 2026 19:44:50 -0500 Subject: [PATCH 2/4] Updated logo of the app --- python/vectorprime/cli.py | 20 ++++++++------------ python/vectorprime/logo.txt | 5 +++++ 2 files changed, 13 insertions(+), 12 deletions(-) create mode 100644 python/vectorprime/logo.txt diff --git a/python/vectorprime/cli.py b/python/vectorprime/cli.py index 7614f27..ec2d688 100644 --- a/python/vectorprime/cli.py +++ b/python/vectorprime/cli.py @@ -27,23 +27,19 @@ def _print_logo() -> None: def _print_fancy_header() -> None: """Print fancy VectorPrime header with styling.""" - # ANSI color codes - BOLD = "\033[1m" - CYAN = "\033[36m" - MAGENTA = "\033[35m" - YELLOW = "\033[33m" - RESET = "\033[0m" - # Print logo first _print_logo() print() # Print fancy VectorPrime text with colors - header = f"{BOLD}{CYAN}╔════════════════════════════════════════╗{RESET}" - print(header) - print(f"{BOLD}{CYAN}║{RESET} {MAGENTA}⚡ VectorPrime - LLM Optimizer ⚡{RESET} {BOLD}{CYAN}║{RESET}") - print(f"{BOLD}{CYAN}║{RESET} {YELLOW}Hardware-Aware Inference Engine{RESET} {BOLD}{CYAN}║{RESET}") - print(f"{BOLD}{CYAN}╚════════════════════════════════════════╝{RESET}") + print(""" +██ ██ ███████ ██████ ████████ ██████ ██████ ██████ ██████ ██ ███ ███ ███████ +██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ████ ████ ██ +██ ██ █████ ██ ██ ██ ██ ██████ ██████ ██████ ██ ██ ████ ██ █████ + ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ + ████ ███████ ██████ ██ ██████ ██ ██ ██ ██ ██ ██ ██ ██ ███████ + + """) print() sys.stdout.flush() # Force output to display immediately diff --git a/python/vectorprime/logo.txt b/python/vectorprime/logo.txt new file mode 100644 index 0000000..9f541ff --- /dev/null +++ b/python/vectorprime/logo.txt @@ -0,0 +1,5 @@ +██ ██ ███████ ██████ ████████ ██████ ██████ ██████ ██████ ██ ███ ███ ███████ +██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ████ ████ ██ +██ ██ █████ ██ ██ ██ ██ ██████ ██████ ██████ ██ ██ ████ ██ █████ + ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ + ████ ███████ ██████ ██ ██████ ██ ██ ██ ██ ██ ██ ██ ██ ███████ \ No newline at end of file From be70c64eed7a81866328ecd5a1b6a6d1aaeac38f Mon Sep 17 00:00:00 2001 From: TheRadDani Date: Sat, 14 Mar 2026 19:53:59 -0500 Subject: [PATCH 3/4] Updated logo of the app --- python/vectorprime/cli.py | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/python/vectorprime/cli.py b/python/vectorprime/cli.py index ec2d688..b4685f2 100644 --- a/python/vectorprime/cli.py +++ b/python/vectorprime/cli.py @@ -26,21 +26,17 @@ def _print_logo() -> None: def _print_fancy_header() -> None: - """Print fancy VectorPrime header with styling.""" - # Print logo first - _print_logo() - print() - + """Print fancy VectorPrime header with styling.""" # Print fancy VectorPrime text with colors - print(""" -██ ██ ███████ ██████ ████████ ██████ ██████ ██████ ██████ ██ ███ ███ ███████ -██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ████ ████ ██ -██ ██ █████ ██ ██ ██ ██ ██████ ██████ ██████ ██ ██ ████ ██ █████ - ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ - ████ ███████ ██████ ██ ██████ ██ ██ ██ ██ ██ ██ ██ ██ ███████ - + print(""" +██ ██ ██████ ▄█████ ██████ ▄████▄ █████▄ █████▄ █████▄ ██ ██▄ ▄██ ██████ +██▄▄██ ██▄▄ ██ ██ ██ ██ ██▄▄██▄ ██▄▄█▀ ██▄▄██▄ ██ ██ ▀▀ ██ ██▄▄ + ▀██▀ ██▄▄▄▄ ▀█████ ██ ▀████▀ ██ ██ ██ ██ ██ ██ ██ ██ ██▄▄▄▄ """) print() + # Print logo + _print_logo() + print() sys.stdout.flush() # Force output to display immediately From 201a10c81b90a708d8c84bef36fc998160cd2932 Mon Sep 17 00:00:00 2001 From: TheRadDani Date: Sat, 14 Mar 2026 19:56:16 -0500 Subject: [PATCH 4/4] Updated logo of the app --- python/vectorprime/cli.py | 1 - 1 file changed, 1 deletion(-) diff --git a/python/vectorprime/cli.py b/python/vectorprime/cli.py index b4685f2..724f479 100644 --- a/python/vectorprime/cli.py +++ b/python/vectorprime/cli.py @@ -33,7 +33,6 @@ def _print_fancy_header() -> None: ██▄▄██ ██▄▄ ██ ██ ██ ██ ██▄▄██▄ ██▄▄█▀ ██▄▄██▄ ██ ██ ▀▀ ██ ██▄▄ ▀██▀ ██▄▄▄▄ ▀█████ ██ ▀████▀ ██ ██ ██ ██ ██ ██ ██ ██ ██▄▄▄▄ """) - print() # Print logo _print_logo() print()