"""
样式常量和图标定义
"""


class Styles:
    """统一样式定义"""
    # 边框颜色（统一）
    BORDER = "#555555"

    # 颜色语义
    TOOL_NAME = "cyan"
    FILE_PATH = "blue"
    SUCCESS = "green"
    ERROR = "red"
    WARNING = "yellow"
    NUMBER = "magenta"
    DIM = "dim"
    TEXT = "white"
    PROMPT = "bold green"
    AGENT = "bold cyan"

    # 差异展示背景色
    ADDED = "green"
    ADDED_BG = "on #1a2e1a"
    REMOVED = "red"
    REMOVED_BG = "on #2e1a1a"


class Icons:
    """统一图标定义"""
    OPERATION = "⏺"
    RESULT = "⎿"
    SUCCESS = "✔"
    FAILURE = "✗"
    SPINNER_FRAMES = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"]
    RUNNING = SPINNER_FRAMES[0]  # 默认静态展示时使用第一帧
    PROMPT = "›"
    WARNING = "!"
    QUESTION = "?"
    INFO = "ℹ"
    PENDING = "○"
