.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)
	PATH="$(HOME)/.bun/bin:$(PATH)" CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 TELEGRAM_STATE_DIR=$(PWD)/.claude/channels/telegram claude --dangerously-skip-permissions --mcp-config .mcp.json --chrome --channels plugin:telegram@claude-plugins-official

## Continue previous Claude Code session
claudecontinue:
	@test -f .mcp.json || (echo "Error: .mcp.json not found. Please create it first." && exit 1)
	PATH="$(HOME)/.bun/bin:$(PATH)" CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 TELEGRAM_STATE_DIR=$(PWD)/.claude/channels/telegram claude --dangerously-skip-permissions --mcp-config .mcp.json --continue --chrome --channels plugin:telegram@claude-plugins-official

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
