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

Function fitLine

packages/cli/src/pi-transcript-format.ts:26–28  ·  view source on GitHub ↗
(line: string, width: number)

Source from the content-addressed store, hash-verified

24}
25
26export function fitLine(line: string, width: number): string {
27 return visibleWidth(line) > width ? truncateToWidth(line, width, '…') : line;
28}
29
30export function formatToolResultContent(content: ToolResultContent): string {
31 switch (content.kind) {

Callers 13

renderCompactToolBlockFunction · 0.85
renderExpandedToolBlockFunction · 0.85
renderToolStreamsFunction · 0.85
renderMakaPiStatusLineFunction · 0.85
renderMakaPiPendingQueueFunction · 0.85
renderThinkingBlockFunction · 0.85
renderUserBlockFunction · 0.85
renderAssistantBlockFunction · 0.85
renderNoticeFunction · 0.85
renderWelcomeBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected