openTerminal
GET
/api/v1/agents/{agentId}/terminal
WebSocket upgrade to an interactive shell in the sandbox (operator role).
A sleeping agent is woken. Binary messages carry terminal input and
output. Text messages are JSON: the client sends
{"type":"resize","cols":N,"rows":N}; the server sends
{"type":"status","message":"..."} while waking,
{"type":"exit","code":N} and {"type":"error","message":"..."}.