#!/usr/bin/env bash
# Run from the checkout being proved, after starting its fresh isolated backend.
set -euo pipefail
scratch="$(cd "$(dirname "$0")" && pwd)"
python3 "$scratch/seed.py"
node apps/server/src/bin.ts project add "$scratch/images" --title 'Image preview proof' --base-dir .t3
node apps/server/src/bin.ts thread start "$scratch/images" 'Reply with exactly these three Markdown images as separate paragraphs: ![Diagram](./diagram.svg), ![Photo](./photo.png), ![Icon](./icon.svg). Do not call tools or add any other text.' --title 'Image gallery' --provider opencode --model openai/gpt-6-luna --wait --json --base-dir .t3
