Type Alias: TraceEvent
type TraceEvent = | { type: "plan_pending";} | { trace: Trace; type: "plan";} | { rowCount: number; rows: Record<string, unknown>[]; type: "rows";} | { summary: string; type: "summary";} | { diff: AskDiff; type: "confirm_required";} | { db: SelectedDbEcho; type: "selected_db";} | { error: ApiErrorBody; type: "error";} | { status: "ok"; type: "done";};Defined in: packages/sdk/src/index.ts:164
One event from the askStream() trace channel; surfaces narrow on type to drive the live trace pane.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ type: "plan_pending";}Type Literal
Section titled “Type Literal”{ trace: Trace; type: "plan";}SK-TRUST-002 — the plan event carries the full trace block so
SSE consumers accumulate one record instead of stitching it.
Type Literal
Section titled “Type Literal”{ rowCount: number; rows: Record<string, unknown>[]; type: "rows";}Type Literal
Section titled “Type Literal”{ summary: string; type: "summary";}Type Literal
Section titled “Type Literal”{ diff: AskDiff; type: "confirm_required";}Type Literal
Section titled “Type Literal”{ db: SelectedDbEcho; type: "selected_db";}Type Literal
Section titled “Type Literal”{ error: ApiErrorBody; type: "error";}Type Literal
Section titled “Type Literal”{ status: "ok"; type: "done";}