Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
# harness.autonomous.ai
The Harness web app is the Flutter app in [`../desktop`](../desktop), built for the browser. This
package is the small Next.js host that serves it and adds the few routes the rest of Harness links to.
It replaced the React website that lived in `autonomous-ai/autonomous-code` (`apps/web`). That app is
retired; only the host routes below were kept.
## Routes
| Route | What |
|---|---|
| `/`, `/s/:id`, `/auth/callback`, `/callback` | The Flutter app (`public/harness-web/index.html`, via `rewrites()` in `next.config.js`) |
| `/download` (and `/install` → it) | Install page: CLI command and desktop downloads |
| `/pair` | Phone setup guidance — the mobile app and the desktop "add phone" dialog link here |
| `/desktop` | Desktop download page |
| `/desktop/download-macos`, `/desktop/download/linux-{x64,arm64}` | Redirect to the latest build in the desktop manifest |
| `/flash-circle.sh` | The dial firmware flasher script |
| `/install.sh`, `/cli/install.sh`, `/desktop/install.sh` | Redirect to the installers on `cdn.autonomous.ai` |
| `ac.autonomous.ai`, `fleet.autonomous.ai` | Redirect to `harness.autonomous.ai` |
The CLI installer is `cli/scripts/install.sh`. The desktop installer's source is
`scripts/desktop-install.sh` here, published with `scripts/upload-desktop-install-sh.sh`.
## Releasing
Push a `vX.Y.Z_web` tag — `make release-web` from the repo root cuts the next one.
`.github/workflows/release-web.yml` builds the Flutter bundle from `desktop/`, bakes it into
`Dockerfile.k8s` through `HARNESS_WEB_ARCHIVE`, and pushes
`gcr.io/autonomous-ecm/autonomous-code-website:<tag>` and `:latest`. ArgoCD rolls it out; verify
`https://harness.autonomous.ai/harness-web/release.json` afterward. Rollback is the previous image
tag, which carries its own bundle. The bundle is also published as a GitHub Release.
## Local development
```bash
npm install
npm run prepare:web # download and verify the bundle harness-web-release.json pins
npm run dev
npm test
```
`harness-web-release.json` pins the bundle local builds use: version, source commit and SHA-256.
CI replaces it with the manifest of the bundle it just built, so it only needs bumping for local
work. `HARNESS_WEB_ARCHIVE=/path/to/harness-web-X.Y.Z.tar.gz` supplies an archive instead of
downloading one, with the same checksum and metadata checks.
56ae2e47fThis file is pinned to the selected release. Download the original to open it in your design tool.