.PHONY: start stop restart status logs test check release

start:
	./start_autonomous.sh start

stop:
	./start_autonomous.sh stop

restart:
	sudo systemctl restart ai-agent

status:
	sudo systemctl status ai-agent --no-pager

logs:
	tail -f autonomous.log

# The real test target: pytest plus an authenticated health check. `make test`
# used to hit /api/health with no token, and curl exits 0 on a 401, so it always
# "passed".
test:
	./run_quick_tests.sh

# Just the unit tests, no server needed.
check:
	.venv/bin/pytest -q tests/

# Bundle the committed tree for download and stage the public page in dist/site.
release:
	./release.sh