#!/usr/bin/env bash
# In each checkout: start T3CODE_DEV_SEED=0 T3CODE_ENVIRONMENT_LABEL=Scenario vp run dev.
# Supply a new empty synthetic git repository through STASH_PROJECT.
set -eu
node apps/server/src/bin.ts project add "$STASH_PROJECT" --title StashRepro --base-dir .t3
node apps/server/src/bin.ts thread start "$STASH_PROJECT" 'Ask me' --title 'Stash proof' --provider devReplay --model question --wait --json --base-dir .t3
# Exit 2 means the Question replay is waiting for the browser's answer.
# Give its threadId and signed-in browser URL to manual-driver.js on each side.
