scripts/test-nb-hook.py takes the wrapper and both Python relays out of
HookServer.swift and runs them against a socket that answers like the app:
the default path and COUCOU_SOCKET, a permission decision, an
AskUserQuestion answer, remote VS Code sessions, an unreachable socket
(the agent is never held), and a wrapper without python3 (Copilot still
gets its JSON). It runs in the Build workflow on macOS and passes on Linux
too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>