One harness setup path: pipelines harness setup <claude|codex|opencode|pi>
Checks the CLI on the server's PATH (install command when missing), signs in with the harness's own login only when needed (--login forces it), keeps the OpenCode/Pi model pickers, and verifies with the server's check. Works on native and Docker installs (Docker delegates to the container setup); --host is a hidden compatibility alias. harness list shows all four harnesses' installed/signed-in/configured/default status. ./install --opencode|--pi now point to the command; ./install ends with the next-step hint.
This commit is contained in:
+26
-9
@@ -23,8 +23,8 @@ them, and it stops naming whatever is missing.
|
||||
| git, curl | source checkout, updates, release lookup |
|
||||
| C compiler (`cc`, `clang` or `gcc`) | ntfy's SQLite driver is cgo (Xcode Command Line Tools on macOS) |
|
||||
| **Docker, running** | builds the Flutter web app and the APK |
|
||||
| OpenCode on `PATH` | required; default stage and chat harness |
|
||||
| Pi, Claude Code, Codex | optional; see [Harnesses](harnesses.md) |
|
||||
| OpenCode on `PATH` | required; default stage and chat harness (`curl -fsSL https://opencode.ai/install \| bash`) |
|
||||
| Pi, Claude Code, Codex | optional; set up after install with `pipelines harness setup <name>` |
|
||||
| tailscale | optional; tailnet HTTPS access |
|
||||
|
||||
The install is **all or nothing**: the web app and the server are built before
|
||||
@@ -60,7 +60,24 @@ Linux needs `systemctl --user`. Other platforms are refused.
|
||||
(stopped, plist renamed to `.disabled`), so only one web app is served.
|
||||
11. If `PIPELINES_WEB_PUBLIC_URL` is an `https://…ts.net` address, runs
|
||||
`tailscale serve --bg --https=<port> http://127.0.0.1:<web-port>`.
|
||||
12. Prints the browser URLs.
|
||||
12. Prints the browser URLs and the next step, setting up harnesses.
|
||||
|
||||
## Set up harnesses
|
||||
|
||||
One command per harness, the same on native and Docker installations:
|
||||
|
||||
```sh
|
||||
pipelines harness setup opencode # stages + chat (required; ./install already configured it)
|
||||
pipelines harness setup pi # stages
|
||||
pipelines harness setup claude # chat
|
||||
pipelines harness setup codex # chat
|
||||
pipelines harness list # status of all four
|
||||
```
|
||||
|
||||
Each run checks the CLI is installed where the server finds it (printing the
|
||||
install command if not), signs in with the harness's own login when needed,
|
||||
picks OpenCode/Pi default models, and verifies with the server's check. No
|
||||
restart is needed. See [Harnesses](harnesses.md#set-up-harnesses).
|
||||
|
||||
It also warns when a different `pipelines` earlier on `PATH` shadows the new
|
||||
one; it does not touch that binary.
|
||||
@@ -129,10 +146,10 @@ Options: `--server-url ws(s)://host:port/connect`, `--notes TEXT`, `--prefix`.
|
||||
|
||||
`./install --docker` is the optional Compose installation with its own
|
||||
container harness credentials; see [Docker](docker.md). Do not run it
|
||||
alongside a native install on the same ports. `./install --opencode` and
|
||||
`./install --pi` reconfigure a **Docker** installation's harness and refuse on
|
||||
a native install; native installs use `pipelines harness setup` (see
|
||||
[Harnesses](harnesses.md)).
|
||||
alongside a native install on the same ports. Its harnesses are set up with
|
||||
the same `pipelines harness setup opencode|pi` (run from the checkout), which
|
||||
configures them inside the container. The old `./install --opencode` and
|
||||
`./install --pi` only print that command and exit.
|
||||
|
||||
## Lifecycle commands
|
||||
|
||||
@@ -251,5 +268,5 @@ per-user data directory (`XDG_DATA_HOME`, or Application Support on macOS).
|
||||
- **Web app missing**: the server refuses to start without it. Run
|
||||
`./install --web`.
|
||||
- **A harness works in the terminal but not in the service**: the service uses
|
||||
the `PATH` recorded at install time. Rerun `./install` from a shell where the
|
||||
harness is on `PATH`. See [Harnesses](harnesses.md#troubleshooting).
|
||||
the `PATH` recorded at install time; `pipelines harness setup <name>` says
|
||||
so. Rerun `./install` from a shell where the harness is on `PATH`. See [Harnesses](harnesses.md#troubleshooting).
|
||||
|
||||
Reference in New Issue
Block a user