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

Function AgentProgressLine

src/components/AgentProgressLine.tsx:23–135  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

21 hideType?: boolean;
22};
23export function AgentProgressLine(t0) {
24 const $ = _c(32);
25 const {
26 agentType,
27 description,
28 name,
29 descriptionColor,
30 taskDescription,
31 toolUseCount,
32 tokens,
33 color,
34 isLast,
35 isResolved,
36 isAsync: t1,
37 lastToolInfo,
38 hideType: t2
39 } = t0;
40 const isAsync = t1 === undefined ? false : t1;
41 const hideType = t2 === undefined ? false : t2;
42 const treeChar = isLast ? "\u2514\u2500" : "\u251C\u2500";
43 const isBackgrounded = isAsync && isResolved;
44 let t3;
45 if ($[0] !== isBackgrounded || $[1] !== isResolved || $[2] !== lastToolInfo || $[3] !== taskDescription) {
46 t3 = () => {
47 if (!isResolved) {
48 return lastToolInfo || "Initializing\u2026";
49 }
50 if (isBackgrounded) {
51 return taskDescription ?? "Running in the background";
52 }
53 return "Done";
54 };
55 $[0] = isBackgrounded;
56 $[1] = isResolved;
57 $[2] = lastToolInfo;
58 $[3] = taskDescription;
59 $[4] = t3;
60 } else {
61 t3 = $[4];
62 }
63 const getStatusText = t3;
64 let t4;
65 if ($[5] !== treeChar) {
66 t4 = <Text dimColor={true}>{treeChar} </Text>;
67 $[5] = treeChar;
68 $[6] = t4;
69 } else {
70 t4 = $[6];
71 }
72 const t5 = !isResolved;
73 let t6;
74 if ($[7] !== agentType || $[8] !== color || $[9] !== description || $[10] !== descriptionColor || $[11] !== hideType || $[12] !== name) {
75 t6 = hideType ? <><Text bold={true}>{name ?? description ?? agentType}</Text>{name && description && <Text dimColor={true}>: {description}</Text>}</> : <><Text bold={true} backgroundColor={color} color={color ? "inverseText" : undefined}>{agentType}</Text>{description && <>{" ("}<Text backgroundColor={descriptionColor} color={descriptionColor ? "inverseText" : undefined}>{description}</Text>{")"}</>}</>;
76 $[7] = agentType;
77 $[8] = color;
78 $[9] = description;
79 $[10] = descriptionColor;
80 $[11] = hideType;

Callers

nothing calls this directly

Calls 2

formatNumberFunction · 0.85
getStatusTextFunction · 0.85

Tested by

no test coverage detected