#!/usr/bin/env bash
set -euo pipefail
# Run from each checkout. Set DEMO_DIR to one empty synthetic Git repository.
# Start its server with T3CODE_DEV_SEED=0 and T3CODE_ENVIRONMENT_LABEL=Evidence.
# Supply the Antigravity API base URL in GOOGLE_GEMINI_BASE_URL.
# In Settings > Providers, add Antigravity, choose Gemini API key, enter any
# nonempty key for the test hub, then Connect. Runtime on this run: agy 1.5.13.
: "${DEMO_DIR:?Set DEMO_DIR to the synthetic Git repository}"
node apps/server/src/bin.ts project add --base-dir .t3 --title 'Question demo' "$DEMO_DIR"
node apps/server/src/bin.ts thread start --base-dir .t3 --title 'Question steer proof' --provider antigravity --model gemini-3.8-flash "$DEMO_DIR" 'Use your ask_question tool to ask me whether I prefer red or blue. Wait for my answer.' --json
# Open the returned thread link in the web client. Answer Red and submit the
# optional Other step empty. Wait for completion, then use browser-driver.js.
