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:
2026-11-02 16:11:04 +00:00
parent 9d1c8bf910
commit 108c29f9eb
23 changed files with 1033 additions and 222 deletions
+5 -2
View File
@@ -308,6 +308,8 @@ exec pipelines provider-check --model "$1" --yes --json --timeout 90s
"Rerun when the registry/npm is reachable; refusing to silently install stale copies.") from None
def reconfigure_harness(self, name, options):
# `pipelines harness setup <name>` on a Docker installation lands here.
# The in-container setup signs in only when needed (or with --login).
# Reuse the setup resolution/verification path without rebuilding or
# restarting services: a stale image needs an explicit ./install upgrade.
releases = self.resolve_releases()
@@ -323,10 +325,10 @@ exec pipelines provider-check --model "$1" --yes --json --timeout 90s
"pi": found.get("pi", releases["pi"]["version"]),
"node": found.get("node", ""),
})
self.compose("exec", "pipelines", "pipelines", "harness", "setup", name, "--login", "--versions", label, *options)
self.compose("exec", "pipelines", "pipelines", "harness", "setup", name, "--versions", label, *options)
def link_host(self, name=None, config=None):
# Shared by fresh setup and --opencode/--pi reconfiguration. The host
# Shared by fresh setup and `pipelines harness setup` reconfiguration. The host
# launcher is linked from the container profile; it is never executed
# from a host harness runtime.
if config is None:
@@ -601,6 +603,7 @@ printf 'header = "Authorization: Bearer %s"\\n' "$(cat "$PIPELINES_NTFY_TOKEN_FI
if shutil.which("go") or shutil.which("pipelines"):
self.link_host()
print("Docker setup complete. Use docker compose ps / logs to manage it; no OS user service was registered.")
print("Next: set up your agent harnesses: pipelines harness setup opencode|pi")
def arguments(argv=None):