2026-03-20 06:44:09 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
|
|
2026-03-20 10:36:47 +00:00
|
|
|
# Auto-install auth-rt if not found
|
|
|
|
|
if ! command -v auth-rt &>/dev/null && [ ! -x "$HOME/.local/bin/auth-rt" ]; then
|
|
|
|
|
echo "auth-rt not found, installing..."
|
|
|
|
|
_tmp="$(mktemp -d)"
|
|
|
|
|
git clone --depth 1 http://192.168.0.108:3030/agent-skills/auth-runtime.git "$_tmp/auth-runtime"
|
|
|
|
|
bash "$_tmp/auth-runtime/install.sh"
|
|
|
|
|
rm -rf "$_tmp"
|
2026-03-20 06:44:09 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
npm install
|