#!/usr/bin/env bash
set -euo pipefail

AGENT_NAME=${1:-}

fail() {
  echo "ERROR: $*" >&2
  exit 64
}

[ -n "$AGENT_NAME" ] || fail "agent name argument is required"

# The shared launcher strictly validates the generated/local data boundary
# before it applies this interaction service's pinned profile checks.
exec "$(cd -- "$(dirname -- "$0")" && pwd)/start-agent-session.sh" --interaction "$AGENT_NAME"
