ODS V3 Pre-Release: Public testing and refinement ahead of the official V3 launch. Turn your PC, Mac, or Linux box into a private AI server.
Python ai-agentsamdcomfyuidockerllama-cppllmlocal-ain8nnvidiaopen-webuiragself-hostedspeech-to-textstrix-halotext-to-speechworkflow-automation
#!/usr/bin/env bash
# The install menu must not override an explicit Hermes flag.
# The Windows Pixel path passes --no-hermes; picking "Full Stack" used to turn
# Hermes back on and download it next to Pixel.
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
menu_source="$(sed -n '/^show_install_menu() {/,/^}/p' "$ROOT/installers/lib/ui.sh")"
[[ -n "$menu_source" ]] || { echo "FAIL: show_install_menu not found" >&2; exit 1; }
# Answer the prompt from stdin instead of the terminal.
menu_source="${menu_source//< \/dev\/tty/}"
pass=0
fail=0
# The colors and flags below are read by the eval'd show_install_menu.
# shellcheck disable=SC2034
expect() {
local label="$1" choice="$2" explicit="$3" initial="$4" want="$5" agent="${6:-HERMES}" existing="${7:-false}" got
got="$(
ai() { :; }; ai_warn() { :; }; warn() { :; }; log() { :; }; signal() { :; }
BGRN='' AMB='' NC=''
eval "$menu_source"
printf -v "${agent}_EXPLICIT" '%s' "$explicit"
printf -v "ENABLE_${agent}" '%s' "$initial"
ODS_EXISTING_INSTALL="$existing"
TIER=3
show_install_menu >/dev/null <<<"$choice"
selected_var="ENABLE_${agent}"
printf '%s' "${!selected_var}"
)"
if [[ "$got" == "$want" ]]; then
echo "PASS: $label"
pass=$((pass + 1))
else
echo "FAIL: $label (ENABLE_${agent}=$got, expected $want)"
fail=$((fail + 1))
fi
}
expect 'Full Stack keeps explicit --no-hermes' 1 true false false
expect 'Enter (default Full Stack) keeps explicit --no-hermes' '' true false false
expect 'Invalid choice keeps explicit --no-hermes' x true false false
expect 'Core Only keeps explicit --hermes' 2 true true true
expect 'Full Stack still enables Hermes without a flag' 1 false false true
expect 'Core Only still disables Hermes without a flag' 2 false true false
expect 'Fresh Enter selects Core Only' '' false true false
expect 'Fresh invalid choice selects Core Only' x false true false
expect 'Existing Enter keeps disabled Hermes' '' false false false HERMES true
expect 'Existing invalid choice keeps disabled Hermes' x false false false HERMES true
expect 'Existing Enter keeps enabled Hermes' '' false true true HERMES true
expect 'Existing Keep current keeps disabled Hermes' 4 false false false HERMES true
expect 'Fresh Keep current resolves to Core Only' 4 false true false HERMES false
# The legacy OpenClaw extension was removed; no preset may select it.
if grep -q 'OPENCLAW' <<<"$menu_source"; then
echo "FAIL: install menu still selects the removed legacy OpenClaw extension"
fail=$((fail + 1))
else
echo "PASS: install menu no longer selects the removed legacy OpenClaw extension"
pass=$((pass + 1))
fi
echo "Results: $pass passed, $fail failed"
[[ "$fail" -eq 0 ]]