in src/nova_act/util/logging.py [0:0]
def create_warning_box(messages: list[str]) -> str:
# Find the longest line to determine box width
max_length = max(len(line) for line in messages)
width = max_length + 4 # 4 accounts for spaces and stars on sides
# Create box parts
border = "*" * width
middle_lines = []
for msg in messages:
padding = " " * (width - len(msg) - 4)
middle_lines.append(f"* {msg}{padding} *")
# Combine all parts
return f"\n{border}\n{chr(10).join(middle_lines)}\n{border}"