#!/usr/bin/env bash
# Run in either checkout after starting its isolated server with T3CODE_DEV_SEED=0.
# Usage: bash seed-chats.sh PORT
set -euo pipefail
export T3CODE_PORT="$1"
workspace="$(pwd)"
node apps/server/src/bin.ts project add "$workspace" --title 'T3 Code' --base-dir .t3
node apps/server/src/bin.ts thread start "$workspace" 'Show command output' --title 'Earlier work' --provider devReplay --model command-output --wait --json --base-dir .t3
node apps/server/src/bin.ts thread start "$workspace" 'Show command output' --title 'Second chat' --provider devReplay --model command-output --wait --json --base-dir .t3
