Interface: Envelope
Defined in: packages/aiui-claude-channel/src/frame.ts:135
The routing/lifecycle metadata carried in every frame's header.
Properties
chunk?
optionalchunk?:ChunkDescriptor
Defined in: packages/aiui-claude-channel/src/frame.ts:152
On an intent-v1 data frame: how to interpret the payload (see ChunkDescriptor). Absent on other formats and legacy frames.
fin?
optionalfin?:boolean
Defined in: packages/aiui-claude-channel/src/frame.ts:147
On a data frame: true when this is the thread's final frame.
format?
optionalformat?:string
Defined in: packages/aiui-claude-channel/src/frame.ts:141
On a hello: the stream format the connection will speak.
kind
kind:
EnvelopeKind
Defined in: packages/aiui-claude-channel/src/frame.ts:139
What this frame is.
meta?
optionalmeta?:HelloMeta
Defined in: packages/aiui-claude-channel/src/frame.ts:143
On a hello: optional client context (tab identity, source location).
threadId?
optionalthreadId?:string
Defined in: packages/aiui-claude-channel/src/frame.ts:145
On a data frame: the client-generated thread id it belongs to.
v
v:
number
Defined in: packages/aiui-claude-channel/src/frame.ts:137
Protocol version (see PROTOCOL_VERSION).