MCPcopy Index your code
hub / github.com/block/buzz / buildTranscriptState

Function buildTranscriptState

desktop/src/features/agents/ui/agentSessionTranscript.ts:1153–1159  ·  view source on GitHub ↗
(events: ObserverEvent[])

Source from the content-addressed store, hash-verified

1151}
1152
1153export function buildTranscriptState(events: ObserverEvent[]): TranscriptState {
1154 let state = createEmptyTranscriptState();
1155 for (const event of events) {
1156 state = processTranscriptEvent(state, event);
1157 }
1158 return state;
1159}
1160
1161export function buildTranscript(events: ObserverEvent[]): TranscriptItem[] {
1162 return buildTranscriptState(events).items;

Callers 2

appendAgentEventFunction · 0.90
buildTranscriptFunction · 0.85

Calls 2

processTranscriptEventFunction · 0.85

Tested by

no test coverage detected