.PHONY: help test test-live-codex test-live-runtime run-live-cli commit-message

PROMPT ?= Reply with the single word: pong

help:
	@echo "Available targets:"
	@echo "  make test             Run default offline test suite"
	@echo "  make test-live-codex  Run opt-in live Codex backend test"
	@echo "  make test-live-runtime Run opt-in live Codex-backed runtime test"
	@echo "  make run-live-cli     Run explicit live CLI prompt via Codex-backed runtime"
	@echo "  make commit-message   Propose a Conventional Commit message from staged changes"

test:
	uv run pytest

test-live-codex:
	FABRICA_RUN_LIVE_CODEX_TESTS=1 uv run pytest -m live_codex tests/integration/features/codex_transport/test_live_codex_backend.py

test-live-runtime:
	FABRICA_RUN_LIVE_CODEX_TESTS=1 uv run pytest -m live_codex tests/integration/features/agent_runtime/test_live_local_agent_runtime.py

run-live-cli:
	uv run fabrica run --prompt "$(PROMPT)"

commit-message:
	uv run fabrica commit-message \
	  --skill conventional-commits \
	  --skill-root .agents/skills \
	  --verbose-diagnostics
