#!/usr/bin/env bash
set -euo pipefail
# Run from either evidence checkout after T3CODE_DEV_SEED=0 vp run dev.
# Keep this script and seed.py together outside the repository.
scratch_dir="$(cd -- "$(dirname -- "$0")" && pwd)"
python3 "$scratch_dir/seed.py" "$PWD"
node apps/server/src/bin.ts project add --base-dir .t3 --title 'MCP result evidence' "$scratch_dir"
# Use the project id printed above as $1.
node apps/server/src/bin.ts thread start --base-dir .t3 --provider devReplay --model showcase --title 'RUM aggregate' --wait --json "$1" 'Aggregate RUM views for checkout and return TSV.'
# Open the printed thread in the app. Expand Worked for if present, then
# Aggregate rum events if present. Base has neither control. Head has both.
# Capture light theme at 1280x800. Confirm appFrames=1 on both sides.
