APP_NAME=simpo-ai-capabilities
IMAGE_NAME=simpo/$(APP_NAME):local

.PHONY: test lint build publish docker-build clean

test:
	uv run pytest

lint:
	uv run ruff check .
	uv run mypy agent_specs service_adapters skills

build:
	uv build

publish: build
	@set -eu; set -a; . ./.env; set +a; \
		test -n "$${UV_PUBLISH_TOKEN:-}" || { echo "UV_PUBLISH_TOKEN is missing from .env" >&2; exit 1; }; \
		uv publish \
			--publish-url https://upload.pypi.org/legacy/ \
			--check-url https://pypi.org/simple

docker-build:
	docker build -t $(IMAGE_NAME) .

clean:
	rm -rf dist .pytest_cache .ruff_cache .mypy_cache
