diff --git a/CLAUDE.md b/CLAUDE.md index 3e29913..0af543a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -68,7 +68,7 @@ Startup (`cmd/control-plane/main.go`) wires: config (env vars) → pgxpool → ` - **API Server** (`internal/api/server.go`): chi router with middleware. Creates handler structs (`sandboxHandler`, `execHandler`, `filesHandler`, etc.) injected with `db.Queries` and the host agent Connect RPC client. Routes under `/v1/sandboxes/*`. - **Reconciler** (`internal/api/reconciler.go`): background goroutine (every 30s) that compares DB records against `agent.ListSandboxes()` RPC. Marks orphaned DB entries as "stopped". -- **Admin UI** at `/admin/` (htmx + Go html/template, no SPA, no build step) +- **Admin UI** at `/admin/` (htmx + basecoat + alpine.js + Go html/template, no SPA, no build step) - **Database**: PostgreSQL via pgx/v5. Queries generated by sqlc from `db/queries/sandboxes.sql`. Migrations in `db/migrations/` (goose, plain SQL). - **Config** (`internal/config/config.go`): purely environment variables (`DATABASE_URL`, `CP_LISTEN_ADDR`, `CP_HOST_AGENT_ADDR`), no YAML/file config. diff --git a/internal/admin/handlers.go b/internal/admin/handlers.go deleted file mode 100644 index d78da5d..0000000 --- a/internal/admin/handlers.go +++ /dev/null @@ -1 +0,0 @@ -package admin diff --git a/internal/admin/static/style.css b/internal/admin/static/style.css deleted file mode 100644 index e69de29..0000000 diff --git a/internal/admin/templates/dashboard.html b/internal/admin/templates/dashboard.html deleted file mode 100644 index e69de29..0000000 diff --git a/internal/admin/templates/layout.html b/internal/admin/templates/layout.html deleted file mode 100644 index e69de29..0000000 diff --git a/internal/admin/templates/partials/audit_log.html b/internal/admin/templates/partials/audit_log.html deleted file mode 100644 index e69de29..0000000 diff --git a/internal/admin/templates/partials/metrics_card.html b/internal/admin/templates/partials/metrics_card.html deleted file mode 100644 index e69de29..0000000 diff --git a/internal/admin/templates/partials/sandbox_row.html b/internal/admin/templates/partials/sandbox_row.html deleted file mode 100644 index e69de29..0000000 diff --git a/internal/admin/templates/sandbox_detail.html b/internal/admin/templates/sandbox_detail.html deleted file mode 100644 index e69de29..0000000 diff --git a/internal/admin/templates/sandboxes.html b/internal/admin/templates/sandboxes.html deleted file mode 100644 index e69de29..0000000