MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / contentBlocksToText

Function contentBlocksToText

packages/kilo-chat/src/utils.ts:110–115  ·  view source on GitHub ↗
(content: Array<{ type: string; text?: string }>)

Source from the content-addressed store, hash-verified

108 * message text.
109 */
110export function contentBlocksToText(content: Array<{ type: string; text?: string }>): string {
111 return content
112 .filter((b): b is { type: 'text'; text: string } => b.type === 'text')
113 .map(b => b.text)
114 .join('');
115}
116
117type PreviewBlock = { type: string; text?: string; filename?: string; mimeType?: string };
118

Callers 5

MessageBubble.tsxFile · 0.90
canCopyMessageFunction · 0.90
contentBlocksPreviewTextFunction · 0.70

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected