MCPcopy Create free account
hub / github.com/apache/maka / renderTranscriptEntryBlock

Function renderTranscriptEntryBlock

packages/cli/src/pi-transcript.ts:1240–1255  ·  view source on GitHub ↗
(entry: MakaPiTranscriptEntry, width: number)

Source from the content-addressed store, hash-verified

1238}
1239
1240function renderTranscriptEntryBlock(entry: MakaPiTranscriptEntry, width: number): string[] {
1241 switch (entry.kind) {
1242 case 'user':
1243 return renderUserBlock(entry.text, width);
1244 case 'legacy_automation':
1245 return renderLegacyAutomationBlock(entry.text, width);
1246 case 'assistant':
1247 return renderAssistantBlock(entry.text, width);
1248 case 'thinking':
1249 return renderThinkingBlock(entry, width, entry.expanded);
1250 case 'tool':
1251 return renderToolBlock(entry, width, entry.expanded);
1252 case 'notice':
1253 return renderNotice(entry, width);
1254 }
1255}
1256
1257function transcriptEntrySignature(entry: MakaPiTranscriptEntry, width: number): string {
1258 switch (entry.kind) {

Callers 1

Calls 6

renderUserBlockFunction · 0.85
renderAssistantBlockFunction · 0.85
renderThinkingBlockFunction · 0.85
renderToolBlockFunction · 0.85
renderNoticeFunction · 0.70

Tested by

no test coverage detected