sin-code-integration / scripts /complete-install.sh
GitHub Actions
Deploy SIN-Code-Integration from GitHub Actions
a00031a
Raw
History Blame Contribute Delete
699 Bytes
#!/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")"