"""
Shared bridge path constants.

Extracted from gold_trader.py to break circular dependency between
exit_optimizer.py and gold_trader.py.  Import this module instead of
reaching into gold_trader module globals.
"""

from pathlib import Path
import config_manager

MT5_FILES: Path = config_manager.get_mt5_dir()
APP_DIR: Path = config_manager.get_app_dir()
DATA_DIR: Path = config_manager.get_data_dir()
LOGS_DIR: Path = config_manager.get_logs_dir()

BRIDGE_TO_EA: Path = MT5_FILES / "gold_autotrade/bridge/to_ea"
BRIDGE_FROM_EA: Path = MT5_FILES / "gold_autotrade/bridge/from_ea"
ARCHIVE_DIR: Path = DATA_DIR / "bridge/archive"
STATE_FILE: Path = DATA_DIR / "bridge/state/agent_state.json"
DB_PATH: Path = DATA_DIR / "bridge/state/agent_state.db"
EXECUTION_STATE_FILE: Path = DATA_DIR / "execution_state.json"

DECISION_LINK_FILE: Path = LOGS_DIR / "decision_signal_links.ndjson"
REVIEW_DIR: Path = LOGS_DIR / "review_pending"
AGENT_DIR: Path = LOGS_DIR / "agent_decisions"
TRAILING_TELEMETRY_FILE: Path = LOGS_DIR / "trailing_telemetry_latest.json"
