#!/usr/bin/env bash
# Run separately in each checkout after vp i, using a fresh T3 data directory.
# Set T3CODE_DEV_SEED=0 and GOOGLE_GEMINI_BASE_URL to the authorized API endpoint.
# Start vp run dev. Configure Antigravity via server.updateSettings or Settings > Providers:
# driver antigravity, enabled true, config {authMethod:'gemini-api-key',apiKey:'dummy-key'}.
# Connect Antigravity (v1.5.21), then add a synthetic project.
# HOME_DIR and DEMO_DIR below are caller-supplied disposable directories.
set -euo pipefail
node apps/server/src/bin.ts project add "$DEMO_DIR" --title 'Question history' --base-dir "$HOME_DIR"
node apps/server/src/bin.ts thread start "$DEMO_DIR" 'Use ask_question to ask exactly one single-choice question: What should we do next? Offer exactly two options: Add focused tests; Refactor the module. After I answer, reply only with the chosen label. Do not read files or run tools other than ask_question.' --title 'Single choice history' --provider antigravity --model gemini-4-neon --json --base-dir "$HOME_DIR"
# Open the returned thread, select Add focused tests, Submit. Capture collapsed history.
# Expand the What should we do next? row and capture expanded history.
node apps/server/src/bin.ts thread start "$DEMO_DIR" 'Use ask_question to ask one MULTI-SELECT question: Which tasks should we do next? The choices must allow selecting multiple answers. Offer Add focused tests and Refactor the module. After I select both, reply only with those two labels. Do not read files or use other tools.' --title 'Multiple choice history' --provider antigravity --model gemini-4-neon --json --base-dir "$HOME_DIR"
# Open the returned thread, select both options, Submit, capture collapsed and expanded history.
# Web captures: Chromium, light theme, 1280x633. Before stills, compare two captures 500ms apart.
# iOS supplemental capture: run head Metro, install the matching dev client via mobile:install,
# pair it to the base server containing these saved answers, open Single choice history and expand.
# The supplemental image redacts the environment subtitle. Multi-select videos crop the detail panel.
