#!/usr/bin/env bash
set -euo pipefail
# Run from the tested checkout, with its dev server already running.
# Usage: bash reproduce.sh <fresh-synthetic-workspace> <isolated-t3-base-dir>
# Start the app with T3CODE_DEV_SEED=0 and the supplied Gemini gateway configuration.
workspace=$1
data_dir=$2
mkdir -p "$workspace"
printf 'Synthetic inventory demonstration.\n' > "$workspace/README.md"
printf 'item,quantity,price\napples,12,2\npears,8,3\nplums,20,1\n' > "$workspace/inventory.csv"
node apps/server/src/bin.ts project add "$workspace" --title 'Steer ordering demo' --base-dir "$data_dir"
node apps/server/src/bin.ts thread start "$workspace" 'Read inventory.csv using a shell tool, then run a second shell tool to calculate the total inventory value and check it. Think through the calculation carefully before answering. Give a substantive final answer headed ORIGINAL INVENTORY ANSWER with a table of each item and its value and the grand total. Do not modify files.' --title 'Inventory and calendar proof' --provider antigravity --model gemini-4-neon --base-dir "$data_dir" --json
# Immediately open the returned thread in the web app. While it is working,
# before the first answer, enter this text and click the Steer message button:
# Unrelated follow-up: use a shell tool to calculate the weekday of 2030-01-01. Give a separate final answer headed CALENDAR ANSWER explaining the result. Do not modify files.
# Wait for both replies and the run to finish. The first answer must remain
# visible ABOVE the Steer bubble; the calendar answer must follow the bubble.
# Captured with agy 1.5.24, Gemini 4 Neon, API-key authentication, light theme.
# Interaction videos: 1280x800; final stills: 1440x1200 to fit both answers.
# Video environment names are covered for privacy; transcript pixels are unchanged.
