#!/bin/sh # Install Hidee 0.3.0: a local privacy checkpoint for AI agents. # It installs one command, `hidee`, for your user only. Nothing else on your computer changes. set -eu NAME="hidee-0.3.0-py3-none-any.whl" URL="https://hidee.net/download/hidee-0.3.0-py3-none-any.whl" SHA256="ff51180bc6967dfda3c7203bdbbb441933a6e2c69e8738154f1bff1310db295f" TMP=$(mktemp -d) trap 'rm -rf "$TMP"' EXIT curl -fsSL "$URL" -o "$TMP/$NAME" if command -v shasum >/dev/null 2>&1; then GOT=$(shasum -a 256 "$TMP/$NAME" | cut -d' ' -f1) else GOT=$(sha256sum "$TMP/$NAME" | cut -d' ' -f1); fi if [ "$GOT" != "$SHA256" ]; then echo "The download does not match its published SHA-256. Nothing was installed." >&2 exit 1 fi if command -v uv >/dev/null 2>&1; then uv tool install --force "$TMP/$NAME" elif command -v pipx >/dev/null 2>&1; then pipx install --force "$TMP/$NAME" else # No uv or pipx: Hidee gets its own virtual environment, so the system Python is left alone. PY="" for c in python3.13 python3.12 python3.11 python3; do if command -v "$c" >/dev/null 2>&1 && "$c" -c 'import sys; sys.exit(sys.version_info < (3, 11))' 2>/dev/null; then PY="$c"; break fi done if [ -z "$PY" ]; then echo "Hidee needs Python 3.11 or newer, or uv (https://docs.astral.sh/uv/)." >&2 exit 1 fi "$PY" -m venv --clear "$HOME/.hidee/venv" "$HOME/.hidee/venv/bin/python" -m pip install --quiet --upgrade "$TMP/$NAME" mkdir -p "$HOME/.local/bin" ln -sf "$HOME/.hidee/venv/bin/hidee" "$HOME/.local/bin/hidee" case ":$PATH:" in *":$HOME/.local/bin:"*) ;; *) echo 'Add ~/.local/bin to your PATH to run hidee: export PATH="$HOME/.local/bin:$PATH"' ;; esac fi echo echo "Hidee is installed. Start it with: hidee app"