"""Shared console for pipeline output.

Uses stderr so it doesn't interfere with MCP stdio.
Disables fancy Unicode output when no TTY is attached.
"""

import sys

from rich.console import Console

_is_tty = hasattr(sys.stderr, "isatty") and sys.stderr.isatty()
console = Console(stderr=True, force_terminal=_is_tty, highlight=False)
