#!/usr/bin/env bash
# Run from each disposable checkout. Requires seed.py beside this script.
set -euo pipefail
: "${SERVER_PORT:?Set the dev server port printed by dev-runner}"
: "${DEVICE_ORIGIN:?Set the device-reachable origin of this server}"
: "${DEVICE_SESSION:?Set the leased Pixel 9 session}"
python3 "$(dirname "$0")/seed.py"
# Start the server separately: T3CODE_DEV_SEED=0 vp run dev --host 0.0.0.0
# Start this checkout's Metro separately, on a device-reachable interface.
T3CODE_PORT="$SERVER_PORT" node apps/server/src/bin.ts project add ./file-path-demo --title 'File path demo' --base-dir .t3
T3CODE_PORT="$SERVER_PORT" node apps/server/src/bin.ts thread start ./file-path-demo 'Show file links' --title 'Inline file paths' --provider devReplay --model showcase --base-dir .t3 --wait
.agents/skills/test-t3-mobile/scripts/pair-client.sh "$SERVER_PORT" "$PWD/.t3" "$DEVICE_ORIGIN" agent-device --session "$DEVICE_SESSION"
# Open the newly seeded Inline file paths thread; expand Worked for.
# Record, then tap src/數學.ts:2, 數學/math.ts:2, and src/math.ts:2 in order.
# Return from the file viewer after each successful navigation.
# The captures use Pixel 9/API 36, portrait 1080x2424, light theme.
# Base CJK text has no accessible link; taps used (280,714) and (288,792).
# Head taps used these accessible selectors:
# label="數學.ts · L2, src/數學.ts:2"
# label="math.ts · L2, 數學/math.ts:2"
# ASCII control on both: label="math.ts · L2, src/math.ts:2"
# Stills: two identical screenshots separated by at least 500 ms;
# crop 1080x800+0+230 excludes environment identity and composer.
# Videos: crop 1080:1600:0:60, cover subtitle x140:y90:w650:h65,
# scale to 810x1200. No interaction footage is removed or sped up.
