Spaces:
Paused
Paused
Download scripts/agent_gate.sh from jackmowden/Pixal3D: direct link, hf CLI and curl.
- Browser
- Download file 913 Bytes
-
https://huggingface.co/spaces/jackmowden/Pixal3D/resolve/main/scripts/agent_gate.sh
- Command line
-
hf download hf://spaces/jackmowden/Pixal3D/scripts/agent_gate.sh
-
curl -L -o agent_gate.sh https://huggingface.co/spaces/jackmowden/Pixal3D/resolve/main/scripts/agent_gate.sh
913 Bytes
| # Canonical post-recovery agent gate: parity + health/HTML + browser E2E + JSON summary. | |
| set -euo pipefail | |
| ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" | |
| usage() { | |
| cat <<'EOF' | |
| Usage: scripts/agent_gate.sh [--url URL] [--write-summary PATH] | |
| Runs verify_hosted_space.sh --browser --summary-json (and optional --write-summary). | |
| Progress and browser logs go to stderr; stdout is JSON only. Exit 0 iff overall_ok. | |
| Parse result: | |
| ./scripts/agent_gate.sh 2>/dev/null | jq -e .overall_ok | |
| Persist JSON: | |
| ./scripts/agent_gate.sh --write-summary docs/gate-results/latest.json | |
| Browser exit 1 with explicit ZeroGPU quota copy is a verified pass (overall_ok true). | |
| See docs/SPACE_RECOVERY.md and AGENTS.md. | |
| EOF | |
| } | |
| for arg in "$@"; do | |
| case "$arg" in | |
| -h|--help) usage; exit 0 ;; | |
| esac | |
| done | |
| exec "${ROOT}/scripts/verify_hosted_space.sh" --browser --summary-json "$@" | |