#!/usr/bin/env python3
"""AI Teammate ROS2 Bridge CLI"""

import sys


def main():
    from ai_teammate_ros2_bridge.config import DEVICE_ID, GATEWAY_URL, API_KEY

    if not DEVICE_ID or not GATEWAY_URL or not API_KEY:
        print("Error: DEVICE_ID, GATEWAY_URL, API_KEY must be set in environment or .env file")
        sys.exit(1)

    from ai_teammate_ros2_bridge import DeviceBridge
    bridge = DeviceBridge.from_env()
    bridge.run()


if __name__ == '__main__':
    main()
