#!/usr/bin/env bash
# Run from either checkout with its fresh dev server already running.
# MODEL is the private provider model slug; it is deliberately not embedded here.
set -euo pipefail
: "${MODEL:?Set the provider model slug privately}"
: "${PROJECT:?Set the synthetic git project path}"
node apps/server/src/bin.ts project add "$PROJECT" --title 'MCP first turn' --base-dir .t3
node apps/server/src/bin.ts thread start "$PROJECT" \
  "Call T3 Code's orchestrator_capabilities tool once and reply with the number of providers" \
  --provider opencode --model "$MODEL" --title 'Evidence: first-turn tools' \
  --base-dir .t3 --json
# Open returned thread in the paired browser, wait for completion, expand
# Worked for -> Used N tools -> first Execute. Record the interaction.
# extract.py reads each isolated OpenCode DB without publishing model metadata.
