#!/usr/bin/env bash
# Run from each installed checkout, with endpoint.cjs already running.
# Each checkout must have its own fresh .t3; never seed from another install.
export T3CODE_DEV_SEED=0
export ANTHROPIC_BASE_URL=http://127.0.0.1:18765
export ANTHROPIC_AUTH_TOKEN=synthetic
export CLAUDE_CONFIG_DIR="${TMPDIR:-/tmp}/unicode-proof-claude"
# Start `vp run dev` in a separate terminal with these same exports.
# Add this provider to .t3/userdata/settings.json's providerInstances:
# "claude": {"driver":"claudeAgent","enabled":true,
#   "config":{"enabled":true,"binaryPath":"claude"}}
node apps/server/src/bin.ts project add --base-dir .t3 --title 'Unicode boundary demo' .
node apps/server/src/bin.ts thread start --base-dir .t3 --provider claude \
  --model claude-haiku-5-5 --title 'Unicode boundary' --wait --json . hi
# Open the startup pairing URL, then /<environmentId>/<encoded threadId>.
# Hide thread details and expand Show full error. Capture at 1280x800, light theme.
# Inspect Activity p: textContent.length, textContent.isWellFormed(),
# and textContent.charCodeAt(textContent.length - 1).
