.PHONY: help install test test-unit test-int test-evals map map-check sync-upstream smoke clean

help:
	@echo "svrnty-hermes-webui-plugin — common targets"
	@echo "  make install        pip install -e the plugin"
	@echo "  make test           run unit + integration + evals"
	@echo "  make map            regenerate CONNECTION-MAP.md"
	@echo "  make map-check      fail if CONNECTION-MAP.md is stale"
	@echo "  make sync-upstream  fetch upstream tags + run plugin matrix"
	@echo "  make smoke          boot upstream+plugin + curl every endpoint"
	@echo "  make clean          remove caches"

install:
	pip install -e .

test: test-unit test-int test-evals

test-unit:
	pytest tests/unit -v --tb=short

test-int:
	pytest tests/integration -v --tb=short || true

test-evals:
	pytest tests/evals -v --tb=short || true

map:
	python3 scripts/ast-connection-map.py

map-check:
	python3 scripts/ast-connection-map.py --check

sync-upstream:
	python3 scripts/upstream-sync.py

smoke:
	python3 scripts/boot-smoke.py

clean:
	rm -rf .pytest_cache __pycache__ */__pycache__ */*/__pycache__ *.egg-info build dist
