.PHONY: sync build publish test

# Sync config/ → src/krrkt/data/ (single source of truth: config/)
sync:
	@mkdir -p src/krrkt/data/prompts
	@cp config/patterns.yaml src/krrkt/data/
	@cp config/rules.yaml src/krrkt/data/
	@cp config/config.yaml src/krrkt/data/
	@cp config/prompts/analyze.yaml src/krrkt/data/prompts/
	@echo "Synced config/ → src/krrkt/data/"

build: sync
	python3 -m build

publish: build
	python3 -m twine upload dist/*

test:
	python3 -m pytest tests/unit/ tests/e2e/ -v
