(t0)
| 12 | screen: Screen; |
| 13 | }; |
| 14 | export function CompactSummary(t0) { |
| 15 | const $ = _c(24); |
| 16 | const { |
| 17 | message, |
| 18 | screen |
| 19 | } = t0; |
| 20 | const isTranscriptMode = screen === "transcript"; |
| 21 | let t1; |
| 22 | if ($[0] !== message) { |
| 23 | t1 = getUserMessageText(message) || ""; |
| 24 | $[0] = message; |
| 25 | $[1] = t1; |
| 26 | } else { |
| 27 | t1 = $[1]; |
| 28 | } |
| 29 | const textContent = t1; |
| 30 | const metadata = message.summarizeMetadata; |
| 31 | if (metadata) { |
| 32 | let t2; |
| 33 | if ($[2] === Symbol.for("react.memo_cache_sentinel")) { |
| 34 | t2 = <Box minWidth={2}><Text color="text">{BLACK_CIRCLE}</Text></Box>; |
| 35 | $[2] = t2; |
| 36 | } else { |
| 37 | t2 = $[2]; |
| 38 | } |
| 39 | let t3; |
| 40 | if ($[3] === Symbol.for("react.memo_cache_sentinel")) { |
| 41 | t3 = <Text bold={true}>Summarized conversation</Text>; |
| 42 | $[3] = t3; |
| 43 | } else { |
| 44 | t3 = $[3]; |
| 45 | } |
| 46 | let t4; |
| 47 | if ($[4] !== isTranscriptMode || $[5] !== metadata) { |
| 48 | t4 = !isTranscriptMode && <MessageResponse><Box flexDirection="column"><Text dimColor={true}>Summarized {metadata.messagesSummarized} messages{" "}{metadata.direction === "up_to" ? "up to this point" : "from this point"}</Text>{metadata.userContext && <Text dimColor={true}>Context: {"\u201C"}{metadata.userContext}{"\u201D"}</Text>}<Text dimColor={true}><ConfigurableShortcutHint action="app:toggleTranscript" context="Global" fallback="ctrl+o" description="expand history" parens={true} /></Text></Box></MessageResponse>; |
| 49 | $[4] = isTranscriptMode; |
| 50 | $[5] = metadata; |
| 51 | $[6] = t4; |
| 52 | } else { |
| 53 | t4 = $[6]; |
| 54 | } |
| 55 | let t5; |
| 56 | if ($[7] !== isTranscriptMode || $[8] !== textContent) { |
| 57 | t5 = isTranscriptMode && <MessageResponse><Text>{textContent}</Text></MessageResponse>; |
| 58 | $[7] = isTranscriptMode; |
| 59 | $[8] = textContent; |
| 60 | $[9] = t5; |
| 61 | } else { |
| 62 | t5 = $[9]; |
| 63 | } |
| 64 | let t6; |
| 65 | if ($[10] !== t4 || $[11] !== t5) { |
| 66 | t6 = <Box flexDirection="column" marginTop={1}><Box flexDirection="row">{t2}<Box flexDirection="column">{t3}{t4}{t5}</Box></Box></Box>; |
| 67 | $[10] = t4; |
| 68 | $[11] = t5; |
| 69 | $[12] = t6; |
| 70 | } else { |
| 71 | t6 = $[12]; |
nothing calls this directly
no test coverage detected