#!/usr/bin/env sh # Installs the nmbr platform adapter into a Hermes Agent plugins directory. # curl -fsSL https://nmbr.ai/developers/hermes/install.sh | sh # or, from a checkout: sh install.sh set -e DEST="${HERMES_HOME:-$HOME/.hermes}/plugins/nmbr" SRC="$(cd "$(dirname "$0")" 2>/dev/null && pwd || echo .)" mkdir -p "$DEST" # All three files are required: Hermes imports the plugin via __init__.py. if [ -f "$SRC/adapter.py" ] && [ -f "$SRC/plugin.yaml" ] && [ -f "$SRC/__init__.py" ]; then cp "$SRC/adapter.py" "$SRC/plugin.yaml" "$SRC/__init__.py" "$DEST/" else BASE="https://nmbr.ai/developers/hermes" curl -fsSL "$BASE/adapter.py" -o "$DEST/adapter.py" curl -fsSL "$BASE/plugin.yaml" -o "$DEST/plugin.yaml" curl -fsSL "$BASE/__init__.py" -o "$DEST/__init__.py" fi echo "nmbr adapter installed to $DEST" echo "Next (all three steps are required):" echo " 1. hermes plugins enable nmbr # answer No to tool-override; adapter never needs it" echo " 2. add to ~/.hermes/config.yaml: platforms: { nmbr: { enabled: true } } and approvals: { mode: manual }" echo " 3. NMBR_AGENT_TOKEN=agent:... NMBR_ALLOWED_USERS=your-nmbr hermes gateway run"