#!/usr/bin/env python3
"""Dev shim for running `zot` straight from a checkout, without installing.

The real implementation lives in the `zotero_agent` package under ../src.
For normal use, install the package instead:  uv tool install zotero-agent
(this file just puts ../src on sys.path and calls the same entry point).
"""

import os
import sys

# realpath so this works even when symlinked onto PATH (e.g. ~/.local/bin/zot).
_SRC = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "src")
if os.path.isdir(_SRC):
    sys.path.insert(0, _SRC)

from zotero_agent.cli import main  # noqa: E402

if __name__ == "__main__":
    main()
