#!/usr/bin/env bash
set -eu
# Run from the commit's installed checkout while its isolated dev server runs.
# Arguments: isolated T3 home, empty synthetic workspace, provider instance, model.
t3_home=$1
workspace=$2
provider_instance=$3
provider_model=$4
node apps/server/src/bin.ts project add "$workspace" --title 'Wakeup demonstration' --base-dir "$t3_home"
node apps/server/src/bin.ts thread start --base-dir "$t3_home" \
  --provider "$provider_instance" --model "$provider_model" \
  --title 'Scheduled wakeup' "$workspace" \
  "Use ScheduleWakeup with delaySeconds 120 and prompt 'Reply with WOKE and nothing else', then end this turn." --json
# Open the returned thread in the browser. Enable the Working section.
# Record scheduling completion, the untouched wait, WOKE, and the final inbox state.
# Hide the model selector and workspace details before public captures.
