Skip to content

isUncageEvent

View as Markdown
function isUncageEvent(v): v is UncageEvent;

Defined in: client/src/guards.ts:45

An event envelope: ids, a non-negative integer sequence, a dotted type and an object payload carrying the id its type is keyed on (session.id, run.id/runId, approval.id, messageId, toolId). Types this client does not know yet (a newer daemon) pass through with only the envelope checked; consumers switch on type and ignore the rest.

Parameter Type
v unknown

v is UncageEvent