from __future__ import annotations

from .knowledge import get_index_path, get_paths, write_search_index


def main() -> None:
    paths = get_paths()
    target = write_search_index(paths)
    print(f"Index écrit: {target}")
    print(f"Documents racine: {paths.root}")
    print(f"Index attendu par le MCP: {get_index_path(paths)}")


if __name__ == "__main__":
    main()
