forked from bots-garden/ori
| ✨ Introduce new feature(s): ACP web client — Go backend (agent, bridge, httpserver, mockagent) + React SPA (Zed-like agent panel), tests, quality gate PASS | 1 | # Ori — ACP web client. `make help` lists the targets. |
| 2 | ||
| 3 | .PHONY: help deps build build-ui build-go test test-go test-ui run run-mock dev clean | |
| 4 | ||
| 5 | help: ## Show this help | |
| 6 | @grep -E '^[a-zA-Z_-]+:.*## ' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*## "}; {printf " %-12s %s\n", $$1, $$2}' | |
| 7 | ||
| 8 | deps: ## Install frontend dependencies | |
| 9 | cd ui && npm install | |
| 10 | ||
| 11 | build-ui: ## Build the SPA into ui/dist | |
| 12 | cd ui && npm run build | |
| 13 | ||
| 14 | build-go: ## Build the server and mock-agent binaries into bin/ | |
| 15 | go build -o bin/ori ./cmd/ori | |
| 16 | go build -o bin/ori-mock-agent ./cmd/ori-mock-agent | |
| 17 | ||
| 18 | build: build-ui build-go ## Build everything (SPA first, then the Go binary that embeds it) | |
| 19 | ||
| 20 | test-go: ## Run the Go test suite | |
| 21 | go test ./... | |
| 22 | ||
| 23 | test-ui: ## Run the frontend test suite | |
| 24 | cd ui && npm run test | |
| 25 | ||
| 26 | test: test-go test-ui ## Run all tests | |
| 27 | ||
| 28 | run: build ## Build then start the server on :8888 (Claude Code via ACP adapter) | |
| 29 | ./bin/ori | |
| 30 | ||
| 31 | run-mock: build ## Build then start the server with the demo mock agent (no Claude needed) | |
| 32 | ./bin/ori --agent-cmd "bin/ori-mock-agent" | |
| 33 | ||
| 34 | dev: ## Start the Vite dev server (expects `go run ./cmd/ori` in another terminal) | |
| 35 | cd ui && npm run dev | |
| 36 | ||
| 37 | clean: ## Remove build artifacts | |
| 38 | rm -rf bin ui/dist/* | |
| 39 | @touch ui/dist/.gitkeep |