#!/usr/bin/env bash
set -euo pipefail
# Run from the checkout with its fresh dev server running and Antigravity configured
# in Gemini API-key mode. Arguments: isolated T3 home, synthetic workspace.
proof_home=$1
proof_workspace=$2
mkdir -p "$proof_workspace"
git -C "$proof_workspace" init -q
node apps/server/src/bin.ts project add "$proof_workspace" --title "Unicode output proof" --base-dir "$proof_home"
node apps/server/src/bin.ts thread start "$proof_workspace" - --title "Unicode command output" --provider antigravity --model gemini-3.8-flash --base-dir "$proof_home" --wait --json <<'PROMPT'
Run exactly this shell command once, then say done: node -e "process.stdout.write('prefix\n' + '🚀' + 'x'.repeat(7982) + 'build completed\n')"
PROMPT
# Open the returned thread in the web client, expand Worked for..., then the command.
# Capture the output at scrollTop=0 and at scrollTop=scrollHeight.
