#!/usr/bin/env bash
# Restore the vendored, re-downloadable render deps for the graph-render prototype.
# These are deliberately git-ignored (a ~1.4 MB WASM blob); index.html is the artifact.
set -euo pipefail
cd "$(dirname "$0")"
curl -sL https://unpkg.com/@viz-js/viz@3.7.0/lib/viz-standalone.js -o viz-standalone.js
curl -sL https://unpkg.com/svg-pan-zoom@3.6.1/dist/svg-pan-zoom.min.js -o svg-pan-zoom.min.js
echo "deps restored. serve with: python3 -m http.server 8000 --bind 0.0.0.0"
