From 620a61c1aa23dae1ed876d71e2210592edc8ab16 Mon Sep 17 00:00:00 2001 From: WilliamK112 <164879897+WilliamK112@users.noreply.github.com> Date: Sat, 11 Apr 2026 21:31:36 -0500 Subject: [PATCH] fix(installer): list full NEMOCLAW_PROVIDER values in help --- install.sh | 4 +++- scripts/install.sh | 4 +++- test/install-preflight.test.ts | 16 ++++++++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index f753b8aa96a..bf33782e456 100755 --- a/install.sh +++ b/install.sh @@ -82,7 +82,9 @@ bootstrap_usage() { printf " NEMOCLAW_NON_INTERACTIVE=1 Same as --non-interactive\n" printf " NEMOCLAW_ACCEPT_THIRD_PARTY_SOFTWARE=1 Same as --yes-i-accept-third-party-software\n" printf " NEMOCLAW_SANDBOX_NAME Sandbox name to create/use\n" - printf " NEMOCLAW_PROVIDER cloud | ollama | nim | vllm\n" + printf " NEMOCLAW_PROVIDER build | openai | anthropic | anthropicCompatible\n" + printf " | gemini | ollama | custom | nim-local | vllm\n" + printf " (aliases: cloud -> build, nim -> nim-local)\n" printf " NEMOCLAW_POLICY_MODE suggested | custom | skip\n" printf "\n" } diff --git a/scripts/install.sh b/scripts/install.sh index bb6332e6ae6..8d6c9c16e11 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -294,7 +294,9 @@ usage() { printf " NEMOCLAW_SANDBOX_NAME Sandbox name to create/use\n" printf " NEMOCLAW_RECREATE_SANDBOX=1 Recreate an existing sandbox\n" printf " NEMOCLAW_INSTALL_TAG Git ref to install (default: latest release)\n" - printf " NEMOCLAW_PROVIDER cloud | ollama | nim | vllm\n" + printf " NEMOCLAW_PROVIDER build | openai | anthropic | anthropicCompatible\n" + printf " | gemini | ollama | custom | nim-local | vllm\n" + printf " (aliases: cloud -> build, nim -> nim-local)\n" printf " NEMOCLAW_MODEL Inference model to configure\n" printf " NEMOCLAW_POLICY_MODE suggested | custom | skip\n" printf " NEMOCLAW_POLICY_PRESETS Comma-separated policy presets\n" diff --git a/test/install-preflight.test.ts b/test/install-preflight.test.ts index 7152fac370c..52fe703ef24 100644 --- a/test/install-preflight.test.ts +++ b/test/install-preflight.test.ts @@ -400,11 +400,27 @@ exit 98 expect(output).toMatch(/--non-interactive/); expect(output).toMatch(/--version/); expect(output).toMatch(/NEMOCLAW_PROVIDER/); + expect(output).toMatch(/build \| openai \| anthropic \| anthropicCompatible/); + expect(output).toMatch(/gemini \| ollama \| custom \| nim-local \| vllm/); + expect(output).toMatch(/aliases: cloud -> build, nim -> nim-local/); expect(output).toMatch(/NEMOCLAW_POLICY_MODE/); expect(output).toMatch(/NEMOCLAW_SANDBOX_NAME/); expect(output).toMatch(/nvidia\.com\/nemoclaw\.sh/); }); + it("scripts/install.sh --help lists the full non-interactive provider set", () => { + const result = spawnSync("bash", [INSTALLER_PAYLOAD, "--help"], { + cwd: path.join(import.meta.dirname, ".."), + encoding: "utf-8", + }); + + const output = `${result.stdout}${result.stderr}`; + expect(result.status).toBe(0); + expect(output).toMatch(/build \| openai \| anthropic \| anthropicCompatible/); + expect(output).toMatch(/gemini \| ollama \| custom \| nim-local \| vllm/); + expect(output).toMatch(/aliases: cloud -> build, nim -> nim-local/); + }); + it("--version exits 0 and prints the version number", () => { const result = spawnSync("bash", [INSTALLER, "--version"], { cwd: path.join(import.meta.dirname, ".."),