shellxagent.orchestrate.curl
01# discover the active local API port
02PORT="$(cat ~/.shellx/debug-api.port)"
03
04# start a session against the WSL transport
05curl -X POST "http://127.0.0.1:${PORT}/connect" \
06 -H "Authorization: Bearer $TOKEN" \
07 -d '{"tabId":"ci-build","cwd":"/home/me/app","connectionId":"wsl-1"}'
08
09# stream typed session and tool events
10websocat "ws://127.0.0.1:${PORT}/events" | jq '.kind'
11
12# diagnose the live app preview
13curl .../preview/work/state | jq '.status'
14
15status: ok · 14 events · 312 ms