MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / MessageImpl

Function MessageImpl

source code/components/Message.tsx:60–357  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

58 latestBashOutputUUID?: string | null;
59};
60function MessageImpl(t0) {
61 const $ = _c(94);
62 const {
63 message,
64 lookups,
65 containerWidth,
66 addMargin,
67 tools,
68 commands,
69 verbose,
70 inProgressToolUseIDs,
71 progressMessagesForMessage,
72 shouldAnimate,
73 shouldShowDot,
74 style,
75 width,
76 isTranscriptMode,
77 onOpenRateLimitOptions,
78 isActiveCollapsedGroup,
79 isUserContinuation: t1,
80 lastThinkingBlockId,
81 latestBashOutputUUID
82 } = t0;
83 const isUserContinuation = t1 === undefined ? false : t1;
84 switch (message.type) {
85 case "attachment":
86 {
87 let t2;
88 if ($[0] !== addMargin || $[1] !== isTranscriptMode || $[2] !== message.attachment || $[3] !== verbose) {
89 t2 = <AttachmentMessage addMargin={addMargin} attachment={message.attachment} verbose={verbose} isTranscriptMode={isTranscriptMode} />;
90 $[0] = addMargin;
91 $[1] = isTranscriptMode;
92 $[2] = message.attachment;
93 $[3] = verbose;
94 $[4] = t2;
95 } else {
96 t2 = $[4];
97 }
98 return t2;
99 }
100 case "assistant":
101 {
102 const t2 = containerWidth ?? "100%";
103 let t3;
104 if ($[5] !== addMargin || $[6] !== commands || $[7] !== inProgressToolUseIDs || $[8] !== isTranscriptMode || $[9] !== lastThinkingBlockId || $[10] !== lookups || $[11] !== message.advisorModel || $[12] !== message.message.content || $[13] !== message.uuid || $[14] !== onOpenRateLimitOptions || $[15] !== progressMessagesForMessage || $[16] !== shouldAnimate || $[17] !== shouldShowDot || $[18] !== tools || $[19] !== verbose || $[20] !== width) {
105 let t4;
106 if ($[22] !== addMargin || $[23] !== commands || $[24] !== inProgressToolUseIDs || $[25] !== isTranscriptMode || $[26] !== lastThinkingBlockId || $[27] !== lookups || $[28] !== message.advisorModel || $[29] !== message.uuid || $[30] !== onOpenRateLimitOptions || $[31] !== progressMessagesForMessage || $[32] !== shouldAnimate || $[33] !== shouldShowDot || $[34] !== tools || $[35] !== verbose || $[36] !== width) {
107 t4 = (_, index_0) => <AssistantMessageBlock key={index_0} param={_} addMargin={addMargin} tools={tools} commands={commands} verbose={verbose} inProgressToolUseIDs={inProgressToolUseIDs} progressMessagesForMessage={progressMessagesForMessage} shouldAnimate={shouldAnimate} shouldShowDot={shouldShowDot} width={width} inProgressToolCallCount={inProgressToolUseIDs.size} isTranscriptMode={isTranscriptMode} lookups={lookups} onOpenRateLimitOptions={onOpenRateLimitOptions} thinkingBlockId={`${message.uuid}:${index_0}`} lastThinkingBlockId={lastThinkingBlockId} advisorModel={message.advisorModel} />;
108 $[22] = addMargin;
109 $[23] = commands;
110 $[24] = inProgressToolUseIDs;
111 $[25] = isTranscriptMode;
112 $[26] = lastThinkingBlockId;
113 $[27] = lookups;
114 $[28] = message.advisorModel;
115 $[29] = message.uuid;
116 $[30] = onOpenRateLimitOptions;
117 $[31] = progressMessagesForMessage;

Callers

nothing calls this directly

Calls 1

isFullscreenEnvEnabledFunction · 0.85

Tested by

no test coverage detected