#!/usr/bin/env bash
# Run in each clean checkout after starting T3CODE_DEV_SEED=0 vp run dev --host 0.0.0.0.
# Arguments: new synthetic project path, this checkout's isolated T3 home.
set -euo pipefail
project="$1"
t3home="$2"
git init "$project"
node apps/server/src/bin.ts project add "$project" --title Demo --base-dir "$t3home"
node apps/server/src/bin.ts thread start --provider devReplay --model showcase "$project" go --base-dir "$t3home" --wait --json
# Install with mobile:install, load this checkout's Metro, pair with pair-client.sh.
# Set the connection label to 'Demo environment' in Settings before recording.
