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

Function renderLegacyAutomationBlock

packages/cli/src/pi-transcript.ts:1666–1672  ·  view source on GitHub ↗
(text: string, width: number)

Source from the content-addressed store, hash-verified

1664}
1665
1666function renderLegacyAutomationBlock(text: string, width: number): string[] {
1667 if (!text.trim()) return [];
1668 return [
1669 fitLine(ansi.dim('Legacy Automation (history only)'), width),
1670 ...renderIndented(text, width, 2).map((line) => fitLine(line, width)),
1671 ];
1672}
1673
1674/** An assistant turn: bare markdown prose, no speaker label or indent. */
1675function renderAssistantBlock(text: string, width: number): string[] {

Callers 1

Calls 3

fitLineFunction · 0.85
renderIndentedFunction · 0.85
trimMethod · 0.45

Tested by

no test coverage detected