#!/usr/bin/env bash
set -euo pipefail
# Run against each checkout's fresh, isolated development server.
checkout="$1"
cd "$checkout"
node apps/server/src/bin.ts project add "$checkout" --title Documentation --base-dir "$checkout/.t3"
# multi-turn is a synthetic replay recording; this performs no paid model call.
node apps/server/src/bin.ts thread start "$checkout" 'Read cancellation documentation' --title 'Cancellation documentation' --provider devReplay --model multi-turn --wait --json --base-dir "$checkout/.t3"
