MCPcopy Index your code
hub / github.com/codeaashu/claude-code / ShellProgressMessage

Function ShellProgressMessage

src/components/shell/ShellProgressMessage.tsx:19–146  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

17 verbose: boolean;
18};
19export function ShellProgressMessage(t0) {
20 const $ = _c(30);
21 const {
22 output,
23 fullOutput,
24 elapsedTimeSeconds,
25 totalLines,
26 totalBytes,
27 timeoutMs,
28 verbose
29 } = t0;
30 let t1;
31 if ($[0] !== fullOutput) {
32 t1 = stripAnsi(fullOutput.trim());
33 $[0] = fullOutput;
34 $[1] = t1;
35 } else {
36 t1 = $[1];
37 }
38 const strippedFullOutput = t1;
39 let lines;
40 let t2;
41 if ($[2] !== output || $[3] !== strippedFullOutput || $[4] !== verbose) {
42 const strippedOutput = stripAnsi(output.trim());
43 lines = strippedOutput.split("\n").filter(_temp);
44 t2 = verbose ? strippedFullOutput : lines.slice(-5).join("\n");
45 $[2] = output;
46 $[3] = strippedFullOutput;
47 $[4] = verbose;
48 $[5] = lines;
49 $[6] = t2;
50 } else {
51 lines = $[5];
52 t2 = $[6];
53 }
54 const displayLines = t2;
55 if (!lines.length) {
56 let t3;
57 if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
58 t3 = <Text dimColor={true}>Running… </Text>;
59 $[7] = t3;
60 } else {
61 t3 = $[7];
62 }
63 let t4;
64 if ($[8] !== elapsedTimeSeconds || $[9] !== timeoutMs) {
65 t4 = <MessageResponse><OffscreenFreeze>{t3}<ShellTimeDisplay elapsedTimeSeconds={elapsedTimeSeconds} timeoutMs={timeoutMs} /></OffscreenFreeze></MessageResponse>;
66 $[8] = elapsedTimeSeconds;
67 $[9] = timeoutMs;
68 $[10] = t4;
69 } else {
70 t4 = $[10];
71 }
72 return t4;
73 }
74 const extraLines = totalLines ? Math.max(0, totalLines - 5) : 0;
75 let lineStatus = "";
76 if (!verbose && totalBytes && totalLines) {

Callers

nothing calls this directly

Calls 3

stripAnsiFunction · 0.85
formatFileSizeFunction · 0.85
maxMethod · 0.80

Tested by

no test coverage detected