Spaces:
Paused
Paused
Download scripts/complete-install.sh from delqhi/sin-code-ai: direct link, hf CLI and curl.
- Browser
- Download file 699 Bytes
-
https://huggingface.co/spaces/delqhi/sin-code-ai/resolve/main/scripts/complete-install.sh
- Command line
-
hf download hf://spaces/delqhi/sin-code-ai/scripts/complete-install.sh
-
curl -L -o complete-install.sh https://huggingface.co/spaces/delqhi/sin-code-ai/resolve/main/scripts/complete-install.sh
699 Bytes
| 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")" | |