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 | ||
| ✨ Workspace panel, selectors, previews, desktop app, sandbox template, resizable file tree, light/dark theme | 3 | .PHONY: help deps build build-ui build-go test test-go test-ui run run-mock dev template desktop desktop-test clean |
| ✨ Introduce new feature(s): ACP web client — Go backend (agent, bridge, httpserver, mockagent) + React SPA (Zed-like agent panel), tests, quality gate PASS | 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 | ||
| ✨ Workspace panel, selectors, previews, desktop app, sandbox template, resizable file tree, light/dark theme | 37 | template: ## Build the k33g/ori sandbox template image (see kits/ori/README.md) |
| 38 | docker build -f template/Dockerfile -t k33g/ori . | |
| 39 | ||
| 40 | desktop: ## Build the Wails desktop shell into ori-desktop/build/bin (needs the wails CLI, see ori-desktop/README.md) | |
| 41 | cd ori-desktop && wails build | |
| 42 | ||
| 43 | desktop-test: ## Run the desktop shell's pure-Go tests (no GUI toolchain needed) | |
| 44 | cd ori-desktop && go test ./internal/... | |
| 45 | ||
| ✨ Introduce new feature(s): ACP web client — Go backend (agent, bridge, httpserver, mockagent) + React SPA (Zed-like agent panel), tests, quality gate PASS | 46 | clean: ## Remove build artifacts |
| 47 | rm -rf bin ui/dist/* | |
| 48 | @touch ui/dist/.gitkeep |