MCPcopy Create free account
hub / github.com/cursor/cookbook / partToAttributes

Function partToAttributes

sdk/coding-agent-cli/src/tui/App.tsx:621–633  ·  view source on GitHub ↗
(part: TranscriptPart)

Source from the content-addressed store, hash-verified

619}
620
621function partToAttributes(part: TranscriptPart) {
622 let attributes = TextAttributes.NONE
623
624 if (part.bold) {
625 attributes |= TextAttributes.BOLD
626 }
627
628 if (part.dimColor) {
629 attributes |= TextAttributes.DIM
630 }
631
632 return attributes
633}
634
635function buildTranscriptLines(entries: TranscriptEntry[], columns: number) {
636 const labelWidth = 7

Callers 1

TranscriptLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected