#!/usr/bin/env bash
set -euo pipefail
# Run from either checkout after starting its dev server with:
# CLAUDE_CODE_ENABLE_TODO_TOOLS=1 T3CODE_DEV_SEED=0 vp run dev
# Pass a fresh, empty scratch git repository as the first argument.
project_path="$1"
node apps/server/src/bin.ts project add --base-dir .t3 "$project_path"
node apps/server/src/bin.ts thread start --base-dir .t3 --provider claudeAgent --model claude-haiku-5-5 --title 'Task list across clear' "$project_path" 'Use TaskCreate to create exactly four tasks with subjects Alpha, Beta, Gamma, Delta and descriptions matching each subject. Then use TaskUpdate to mark Alpha and Beta completed. Leave Gamma and Delta pending. Do not use any other tools. Report the four tasks and statuses.' --wait --json
# Open the resulting thread in the web UI. All remaining messages MUST use
# the composer: /clear; TaskList; TaskUpdate, as described in reproduction.md.
