#!/usr/bin/env bash
set -euo pipefail
# Run from each checkout after starting its fresh T3 server and Metro.
# Arguments: isolated T3 home, synthetic project directory, pooled device session.
home_dir="$1"
project_dir="$2"
session="$3"
node apps/server/src/bin.ts project add "$project_dir" --title 'Quote demo' --base-dir "$home_dir"
node apps/server/src/bin.ts thread start "$project_dir" 'Show a heavy turn' --title 'Quote keyboard' --provider devReplay --model bench-heavy --wait --json --base-dir "$home_dir"
# Pair with .agents/skills/test-t3-mobile/scripts/pair-client.sh.
# Open the newest Quote keyboard row, then run the same gestures on each side:
agent-device swipe 200 350 200 650 --session "$session"
agent-device longpress 201 301 900 --session "$session" --settle
agent-device gesture pan 169 271 -149 -8 1200 --session "$session"
agent-device gesture pan 219 307 147 132 1500 --session "$session"
agent-device press 71 438 --session "$session" --settle
# Tap the quote chip (the button beginning src/module3.ts), then record.
# Tap Comment on quote; type the identical comment below without scrolling:
agent-device type 'First line of the comment.
Second line of the comment.
Third line of the comment.
Fourth line of the comment.
Fifth line of the comment.
Sixth line of the comment.
Seventh line: keep this caret visible.' --session "$session"
# Capture screenshot and stop recording. iPhone 18 Pro, iOS 27.2,
# portrait 402x874 logical pixels, light appearance, software keyboard.
# Published videos crop the top 112px to omit the environment label.
