#!/usr/bin/env python3
"""kn -- knowledge net CLI entry point.

Runs from anywhere: adds the hawkeye repo root to sys.path so `knowledge`
imports as a package without an install step.
"""
import os
import sys

_HERE = os.path.dirname(os.path.abspath(__file__))
_ROOT = os.path.dirname(_HERE)
if _ROOT not in sys.path:
    sys.path.insert(0, _ROOT)

from knowledge.cli import main  # noqa: E402

if __name__ == "__main__":
    sys.exit(main())
