#!/usr/bin/env bash
# ACP stub harness; no live Antigravity backend.
# Recipe, run one foreground server per terminal. Do not run against live userdata.
set -euo pipefail
case "${1:-}" in
  before)
    cd /home/ubuntu/wt/pr-33596-cap2-before
    exec env T3CODE_DEV_SEED=0 vp run dev
    ;;
  after)
    cd /home/ubuntu/wt/pr-33596-cap2-after
    exec env T3CODE_DEV_SEED=0 vp run dev
    ;;
  *) echo 'Usage: launch-recipe.sh before|after' >&2; exit 2;;
esac
# Read actual ports from [dev-runner]. Pair the browser with the startup URL.
# Evaluate driver.js in the real app, call fixture.seed(), navigate to the
# environment/thread:W2a-evidence route, evaluate driver.js again, start the
# recording, then call fixture.dispatch('W2a') (and W2b in another tab). Leave the production timer intact.
