HarnessStreamPart
type HarnessStreamPart = | { text: string; type: "text-delta";} | { args: unknown; toolCallId?: string; toolName: string; type: "tool-call";} | { result: unknown; toolCallId?: string; toolName: string; type: "tool-result";} | { flow: string; type: "flow-enter";} | { flow: string; reason: string; type: "flow-end";} | { nodeName: string; type: "node-enter";} | { nodeName: string; type: "node-exit";} | { from: string; to: string; type: "flow-transition";} | { reason?: string; targetAgent: string; type: "handoff";} | { lastStep: number; reason: string; type: "interrupted";} | { type: "paused"; waitingFor: string;} | { outcome: ConversationOutcome; type: "conversation-outcome";} | { type: "turn-end";} | { error: string; type: "error";} | { sessionId: string; type: "done";};