MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / AssistantMessage

Function AssistantMessage

src/cli/render/assistant-message.tsx:294–311  ·  view source on GitHub ↗
({ text }: { text: string })

Source from the content-addressed store, hash-verified

292}
293
294export function AssistantMessage({ text }: { text: string }): React.ReactElement {
295 const segments = parseSegments(text);
296 return (
297 <Box flexDirection="column" marginY={1}>
298 {segments.map((seg, i) =>
299 seg.kind === 'code' ? (
300 <CodeBlock key={i} lang={seg.lang} body={seg.body} incomplete={seg.incomplete} />
301 ) : (
302 <Box key={i} flexDirection="column">
303 {seg.body.split('\n').map((ln, j) => (
304 <ProseLine key={j} line={ln} />
305 ))}
306 </Box>
307 ),
308 )}
309 </Box>
310 );
311}

Callers

nothing calls this directly

Calls 1

parseSegmentsFunction · 0.85

Tested by

no test coverage detected