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
+2 -1
View File
@@ -627,7 +627,8 @@ fi
installer.verify_harness_versions = lambda resolved: {"opencode": "2.0.26", "pi": "1.1.0", "node": "22.19.0"}
installer.reconfigure_harness("pi", ["--model", "fixture/model"])
setup_call = next(c for c in calls if "setup" in c)
self.assertIn("--login", setup_call)
# The in-container setup signs in only when needed; --login is opt-in.
self.assertNotIn("--login", setup_call)
self.assertIn("--versions", setup_call)
label = setup_call[setup_call.index("--versions") + 1]
for want in ("OpenCode 2.0.26", "Pi 1.1.0", "Node 22.19.0"):