#!/usr/bin/env bash
set -eu
: "${CHECKOUT:?set CHECKOUT to the commit checkout}"
: "${WORKSPACE:?set WORKSPACE to a fresh directory}"
mkdir -p "$WORKSPACE"
printf '# OMP inline page probe\n' > "$WORKSPACE/README.md"
cat > "$WORKSPACE/probe.html" <<'HTML'
<!doctype html><html><body style="margin:0"><div style="background:green;color:white;padding:24px;text-align:center;font:24px system-ui">OMP INLINE PROBE</div></body></html>
HTML
git -C "$WORKSPACE" init -q -b main
git -C "$WORKSPACE" add README.md probe.html
git -C "$WORKSPACE" -c user.name=Evidence -c user.email=evidence@example.invalid commit -qm 'Initial sample'
cd "$CHECKOUT"
node apps/server/src/bin.ts project add "$WORKSPACE" --title 'OMP inline page probe' --base-dir .t3
