#!/usr/bin/env bash
set -euo pipefail
# Run from each isolated checkout, after seed.py and a no-seed dev server.
# PROOF_MODEL selects a locally available Claude model; no completion is required.
: "${PROOF_MODEL:?}" "${PROOF_SESSION:?}" "${PROOF_PORT:?}" "${PROOF_ORIGIN:?}" "${PROOF_METRO:?}"
node apps/server/src/bin.ts project add "$PWD/.t3/workspace" --title 'Skill labels' --base-dir "$PWD/.t3"
node apps/server/src/bin.ts thread start "$PWD/.t3/workspace" 'Please use $frontend-design:frontend-design for this page.' --title 'Plugin skill label' --provider claudeAgent --model "$PROOF_MODEL" --json --base-dir "$PWD/.t3"
# Install once: vp run mobile:install ios --session "$PROOF_SESSION"
# Open the Metro development-client URL, accept the iOS alert, then pair:
.agents/skills/test-t3-mobile/scripts/pair-client.sh "$PROOF_PORT" "$PWD/.t3" "$PROOF_ORIGIN" agent-device --session "$PROOF_SESSION"
# In the app: open Skill labels > Plugin skill label.
# Capture the sent chip; long-press the chip and capture the menu title.
# Record the same long-press interaction on both sides.
# Screenshot pairs 500 ms apart are compared before publishing stable frames.
# Public crops exclude connection metadata and the model selector.
