Spaces:
Sleeping
Sleeping
File size: 699 Bytes
720c6ed | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | #!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
mkdir -p "$ROOT/logs" "$ROOT/data"
if command -v npm >/dev/null 2>&1; then
npm --prefix "$ROOT" install
else
echo "npm is required" >&2
exit 1
fi
npm --prefix "$ROOT" run build
# Future HF rollout hooks for the live deployment lane.
# Not enabled while the agent remains structural-only.
# - restoreAuthSession: handled by scripts/hf_pull_script.py before first opencode call
# - startKeepAlivePing: wire this in the live HF runtime to keep the Space warm
# - startAutoBackup / backupAuthSession: only enable once a real session-backed payload exists
echo "complete-install finished for $(basename "$ROOT")"
|