#!/usr/bin/env bash # Record docs/demo.gif via VHS. Runs setup, invokes `vhs docs/demo.tape`, # always tears down. Requires `vhs` (brew install vhs). set -euo pipefail cd "$(dirname "$0")/.." if ! command -v vhs >/dev/null 2>&1; then echo "demo-record: vhs not found on PATH (brew install vhs)" >&2 exit 1 fi if [ -z "${CLAUDE_BOTTLE_OAUTH_TOKEN:-}" ]; then echo "demo-record: CLAUDE_BOTTLE_OAUTH_TOKEN is unset; claude inside the bottle will not auth" >&2 exit 1 fi bash scripts/demo-setup.sh trap 'bash scripts/demo-teardown.sh' EXIT vhs docs/demo.tape