Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
4 changes: 3 additions & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
16 changes: 16 additions & 0 deletions test/install-preflight.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, ".."),
Expand Down
Loading