#!/usr/bin/env bash
set -e
cd /home/claude/repos/exult-agent
echo "=== current branch ==="
git branch --show-current
echo "=== switch back to feat/ai-curogram-mcp ==="
git switch feat/ai-curogram-mcp
echo "=== pop the stash (restore unrelated in-flight files) ==="
git stash list
git stash pop
echo "=== final status ==="
git status --short
echo "=== auth.ts fixed in working tree? ==="
grep -c "CUROGRAM_HOSTS.auth" tools/curogram-mcp/curogram-auth.ts
echo "=== branch HEAD ==="
git log -1 --format="%H | %s"
