[eric] remove vendored 9router (now fetched from npm at build), remove Copilot, and fix subs + tools

This commit is contained in:
ciregenz
2026-04-25 02:26:08 -07:00
parent 744a14dc47
commit f5cc3a36fb
510 changed files with 1736 additions and 73260 deletions
+32
View File
@@ -0,0 +1,32 @@
#!/bin/bash
# Fetch the pre-built 9router Next.js app from npm and stage it for packaging.
# Usage: bash scripts/fetch-router.sh <dest_dir>
set -euo pipefail
DEST="${1:-}"
if [[ -z "$DEST" ]]; then
echo "Usage: $0 <dest_dir>" >&2
exit 1
fi
ROUTER_VERSION="${ROUTER_VERSION:-0.3.60}"
echo "Fetching 9router@${ROUTER_VERSION} from npm..."
SCRATCH="$(mktemp -d)"
trap 'rm -rf "$SCRATCH"' EXIT
cd "$SCRATCH"
printf '{"name":"_fetch","version":"0.0.0","private":true}\n' > package.json
npm install "9router@${ROUTER_VERSION}" --no-save --no-audit --no-fund --silent --ignore-scripts
SRC="$SCRATCH/node_modules/9router/app"
if [[ ! -d "$SRC" ]]; then
echo "ERROR: 9router@${ROUTER_VERSION} did not install to expected layout ($SRC missing)" >&2
exit 1
fi
mkdir -p "$DEST"
rsync -a --delete "$SRC/" "$DEST/"
echo "9router staged at: $DEST"