#!/usr/bin/env bash
set -euo pipefail
# Run against a development server already started with T3CODE_DEV_SEED=0.
checkout=$1
project=$2
mkdir -p "$project"
git -C "$project" init -q
cd "$checkout"
node apps/server/src/bin.ts project add --base-dir .t3 --title 'Codex name proof' "$project"
node apps/server/src/bin.ts thread start --base-dir .t3 --provider codex --model gpt-6-luna --title 'Reply instructions' --json --wait "$project" 'Reply with exactly the word ok and nothing else.'
