#!/usr/bin/env bash
# Run from an installed evidence checkout on Linux. Use a new scratch directory per commit.
# Usage: bash reproduce.sh CHECKOUT SCRATCH A|B
set -euo pipefail
checkout=$1
scratch=$2
home_label=$3
cd "$checkout"
export T3CODE_DEV_SEED=0
export XDG_CONFIG_HOME="$scratch/config"
export T3CODE_DESKTOP_REMOTE_DEBUGGING_PORT=19426
headless-desktop vp run dev:desktop --home-dir "$scratch/home-$home_label" --no-auto-bootstrap-project-from-cwd
# In another terminal: node capture.mjs CHECKOUT OUTPUT A|B
# After capture: node close.mjs CHECKOUT, then Ctrl+C this launcher.
# Repeat with B, retaining the same scratch/config but a new, empty home-B.
