#!/usr/bin/env bash
# Run in each commit's installed worktree. ROOT is a fresh synthetic fixture directory.
set -eu
ROOT=$1
node "$(dirname "$0")/seed.mjs" "$ROOT"
# Start with T3CODE_DEV_SEED=0 vp run dev --home-dir "$ROOT/t3".
# Once migrations finish, stop that terminal process tree, then run:
npm exec --yes --registry=https://registry.npmjs.org --package=@ilyagulya/t3-import@0.5.0-native.11 -- t3-import import \
  --source claude --source-home "$ROOT/claude" \
  --thread 91a30000-1111-4111-8111-111111111111 --workspace "$ROOT/workspace" \
  --t3-home "$ROOT/t3" --snapshot --no-resume --yes --json
# Restart: T3CODE_DEV_SEED=0 vp run dev --home-dir "$ROOT/t3".
# Pair preview browser using startup URL (never upload the token), set dark and
# 1280x800 CSS viewport (DPR 2), open 'Historical subagent model repro', close
# thread details, reload, then run reproduce(tools) from interaction.mjs.
