#!/usr/bin/env python3
"""ocdiag entry-point shim that runs the v2 dispatcher from the repo root."""

import sys
from pathlib import Path

_REPO_ROOT = Path(__file__).resolve().parent.parent
sys.path.insert(0, str(_REPO_ROOT))


if __name__ == "__main__":
    argv = sys.argv[1:]
    # Accept --v2 as a no-op for backward-compat with phase-2 callers.
    if argv and argv[0] == "--v2":
        argv = argv[1:]
    from ocdiag.main import main as v2_main
    sys.exit(v2_main(argv))
