.PHONY: image install run clean sandbox-shell rebuild-sandbox

image:            ## Build the Docker sandbox image
	docker build -t pentest-code-sandbox:latest .

install:          ## Install the CLI (editable)
	pip install -e .

run:              ## Launch Pentest Code
	pentestcode

sandbox-shell:    ## Drop into a shell in the running sandbox
	docker exec -it pentestcode_sandbox bash

rebuild-sandbox:  ## Remove the container so it is recreated on next run
	-docker rm -f pentestcode_sandbox

clean:            ## Remove build artifacts and local state
	rm -rf build dist *.egg-info .pentestcode
