#!/bin/bash
set +e
cd /home/claude/repos/exult-agent
git worktree remove /tmp/curo-imac-wt --force 2>&1
git worktree prune 2>&1
# Scrub temp files containing the real bearer.
rm -f /tmp/curo-imac.env /tmp/curo-funnel-test.sh /tmp/curo-verify-imac.sh /tmp/curo-deploy-imac.sh
echo "=== worktrees now ==="
git worktree list
echo "=== final: confirm deployed iMac curogram entry ==="
ssh -o BatchMode=yes -o ConnectTimeout=20 agent@gautams-imac 'jq ".mcpServers.curogram.type, .mcpServers.curogram.url" /Users/agent/openclaw/.mcp.json' 2>&1
echo "=== running agent process start time (will pick up curogram on next restart) ==="
ssh -o BatchMode=yes -o ConnectTimeout=20 agent@gautams-imac 'ps -o lstart=,pid= -p 81405 2>&1' 2>&1
