.PHONY: claude claudecontinue test fix format pyright all-check run install_globally install_skills

## Start Claude Code with MCP configuration
claude:
	@test -f .mcp.json || (echo "Error: .mcp.json not found. Please create it first." && exit 1)
	CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 CLAUDE_CODE_ENABLE_AUTO_MODE=1 claude --dangerously-skip-permissions --mcp-config .mcp.json --remote-control

## Continue previous Claude Code session
claudecontinue:
	@test -f .mcp.json || (echo "Error: .mcp.json not found. Please create it first." && exit 1)
	CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 CLAUDE_CODE_ENABLE_AUTO_MODE=1 claude --dangerously-skip-permissions --mcp-config .mcp.json --continue --remote-control

test:
	uv run pytest tests -v --tb=short

format:
	uv run ruff format src tests

fix:
	uv run ruff check --fix src tests
	uv run ruff format src tests

pyright:
	uv run pyright src tests

all-check:
	uv run ruff check src tests
	uv run ruff format --check src tests
	uv run pyright src tests
	uv run pytest tests -v --tb=short

run:
	uv run eval-banana run

install_globally:
	uv tool install --editable "$(CURDIR)"

install_skills:
	npx skills add https://github.com/writeitai/eval-banana -a codex -a claude-code -y
