Inspector events
Inspector traffic is JSON. TypeScript exports a discriminated union InspectorWireEvent covering the common shapes.
Event kinds (non-exhaustive)
event / discriminator | Purpose |
|---|---|
BOOTSTRAP | Initial catalog + tree (Bootstrap). |
RETURN_RESOLVED | A Return(label, value) path completed. |
ERROR_THROWN | Labeled Throw or unexpected error. |
API_RESPONSE | ApiReturn recorded HTTP response metadata. |
MIDDLEWARE_NEXT | Express middleware called next() successfully. |
RPC_EXECUTED | Invoke finished (ok/error summary without full body). |
JOB_PROGRESS | Optional job lifecycle updates (Jobs). |
type: 'RPC_RESPONSE' | Same payload as HTTP-style RPC result row. |
type: 'COVERAGE_REPORT' | Coverage scan output when requested. |
Socket.IO wraps many of these on the inspector:broadcast channel (INSPECTOR_BROADCAST_EVENT export on the socket-io subpath).
Forward compatibility
- Ignore unknown
eventstrings or unknown top-level fields. - Treat missing optional fields as absent rather than failing parsing.