Skip to main content

Type Alias: BridgeEvent

BridgeEvent = { type: "ready"; } | { type: "turn_start"; } | { text: string; type: "chunk"; } | { text: string; type: "thought"; } | { kind?: string; status?: string; title?: string; toolCallId: string; toolName?: string; type: "tool_call"; } | { allow: boolean; toolName: string; type: "permission"; } | { text: string; type: "log"; } | { durationMs: number; text: string; type: "turn_completed"; } | { type: "completed"; } | { type: "cancelled"; } | { error: string; type: "failed"; }

Defined in: packages/client/src/bridge/transport.ts:29

Union Members​

Type Literal​

{ type: "ready"; }

The agent is up and idle (a session started without a prompt).


Type Literal​

{ type: "turn_start"; }


Type Literal​

{ text: string; type: "chunk"; }


Type Literal​

{ text: string; type: "thought"; }

Agent reasoning text.


Type Literal​

{ kind?: string; status?: string; title?: string; toolCallId: string; toolName?: string; type: "tool_call"; }


Type Literal​

{ allow: boolean; toolName: string; type: "permission"; }


Type Literal​

{ text: string; type: "log"; }


Type Literal​

{ durationMs: number; text: string; type: "turn_completed"; }


Type Literal​

{ type: "completed"; }


Type Literal​

{ type: "cancelled"; }


Type Literal​

{ error: string; type: "failed"; }