#!/usr/bin/env bash
set -euo pipefail
# Run from each checked-out app with its isolated server already running.
# Set EVIDENCE_WORKSPACE to a synthetic empty git repository and
# EVIDENCE_MODEL to the locally available Claude model selection.
: "${EVIDENCE_WORKSPACE:?Set the synthetic project path}"
: "${EVIDENCE_MODEL:?Set the available Claude model selection}"
node apps/server/src/bin.ts project add "$EVIDENCE_WORKSPACE" --title 'Steer delivery' --base-dir .t3
node apps/server/src/bin.ts thread start "$EVIDENCE_WORKSPACE" 'Reply READY only. Do not inspect any files.' --title 'Stop during foreground command' --provider claudeAgent --model "$EVIDENCE_MODEL" --base-dir .t3 --json --wait
