#!/usr/bin/env bash
set -euo pipefail
# Run separately in each comparison checkout, before opening the browser.
# DEMO_DIR is the same empty synthetic git repository on both sides.
# Use fresh .t3 state; never copy a live T3 database.
: "${DEMO_DIR:?Set DEMO_DIR to an empty synthetic git repository}"
node apps/server/src/bin.ts project add --base-dir .t3 "$DEMO_DIR" --title 'Command approval demo'
# Start each app with T3CODE_DEV_SEED=0 vp run dev, pair its own browser,
# and set the Codex provider's CODEX_HOME to an isolated authenticated home
# without pre-approved command rules. Restart before the recorded turns.
# In the browser open the project, create a thread, leave Full access selected,
# select GPT-6 Astra / Medium, then use reproduction-driver.js.
