#!/usr/bin/env bash
# Usage: setup-seed.sh <head-checkout> <base-checkout> <new-synthetic-project>
# Start each checkout with T3CODE_DEV_SEED=0 vp run dev first.
set -euo pipefail
script_dir=$(cd -- "$(dirname -- "$0")" && pwd)
python3 "$script_dir/seed.py" "$3"
for checkout in "$1" "$2"; do
  (
    cd "$checkout"
    node apps/server/src/bin.ts project add --base-dir .t3 --title 'Checkbox accessibility' "$3"
    node apps/server/src/bin.ts thread start --base-dir .t3 --provider devReplay --model showcase --title 'Checkbox accessibility' "$3" 'Show example'
  )
done
# Obtain each pairing URL privately: node apps/server/src/bin.ts pair --base-dir .t3
# Then run driver.py per side with --pair-url, --session, --side before|after, --out.
# AI-assisted; verified with the tests and tools listed above.
