#!/usr/bin/env bash
set -e
cd /home/claude/repos/exult-agent
echo "=== current branch ==="
git branch --show-current
echo "=== switch to main (carry uncommitted) ==="
git switch main
echo "=== cherry-pick the fix ==="
git cherry-pick 9537e5362853590739a4ee43f985e07203032bf1
echo "=== main log ==="
git log -1 --format="%H | %an <%ae> | %s"
echo "=== working-tree auth.ts still fixed? grep ==="
grep -n "CUROGRAM_HOSTS.auth\|LOGIN_SOURCE = " tools/curogram-mcp/curogram-auth.ts | head
