The Manager card now shows the commit SHA the image was built from (GIT_SHA build arg, passed
by the panel's self-update and documented for compose) and counts the commits SELF_UPDATE_REF
has beyond it, with their subjects and a "Check for updates" button. The check is a cached,
background, history-only git fetch so GET /api/system never waits on it.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The manager clones SELF_UPDATE_REPO_URL, builds a new image in the shared build queue and
hands over to a short-lived updater container (new image) that swaps the manager container,
health-checks it and rolls back on failure. Exposed as GET/POST /api/system behind requireAuth;
installation changes answer 409 while an update runs. Session cookie is now SameSite=Lax.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Start/stop/restart act on the existing container instead of recreating it.
Docker's 304 (already started/stopped) is treated as success.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Replaces the slice-2 hardcoded installation with a full install/deploy
pipeline:
- SQLite persistence (better-sqlite3) with a single `installations`
table and a draft -> cloning -> building -> built -> starting ->
running/error/stopped state machine; env vars and bearer tokens are
encrypted at rest (AES-256-GCM, key derived from MASTER_KEY).
- Build/run orchestration: git clone (+ .env.example key detection),
`nixpacks build` as a logged subprocess, dockerode container
run/stop with forced host/port env vars and a TCP-connect health
check before flipping an installation to "running".
- REST API (installations CRUD, build/deploy/redeploy, logs, token
regeneration) behind single-operator session-cookie auth with a
basic login lockout.
- Vite+React admin SPA: login, installation list, install wizard, and
a detail page to configure env vars, trigger build/deploy/redeploy,
view the build log, and copy the authenticated /mcp/<slug> URL.
- Dockerfile (multi-stage, pulls in nixpacks + the Docker CLI) and
docker-compose.yml for production deployment.
Validated end-to-end against a real cloned repo: draft creation with
env-key detection, build, the error path on a failed health check, and
delete, all through the live API.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>