shellxagent.orchestrate.curl
01# spawn a session against the WSL transport
02curl -X POST http://127.0.0.1:5757/connect \
03 -H "Authorization: Bearer $TOKEN" \
04 -d '{"tabId":"ci-build","cwd":"/home/me/app","connectionId":"wsl-1"}'
05
06# start a /build run and stream its receipts
07curl -X POST .../build/start -d '{"objective":"ship it","tabId":"ci-build"}'
08websocat ws://127.0.0.1:5757/events | jq '.kind'
09
10# diagnose the live app preview
11curl .../preview/work/state | jq '.status'
12
13# archive the entire session workspace as a zip
14curl -X POST .../tabs/ci-build/archive > bundle.zip
15status: ok · 14 events · 312 ms