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

Function AdvisorMessage

src/components/messages/AdvisorMessage.tsx:20–157  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

18 advisorModel?: string;
19};
20export function AdvisorMessage(t0) {
21 const $ = _c(30);
22 const {
23 block,
24 addMargin,
25 resolvedToolUseIDs,
26 erroredToolUseIDs,
27 shouldAnimate,
28 verbose,
29 advisorModel
30 } = t0;
31 if (block.type === "server_tool_use") {
32 let t1;
33 if ($[0] !== block.input) {
34 t1 = block.input && Object.keys(block.input).length > 0 ? jsonStringify(block.input) : null;
35 $[0] = block.input;
36 $[1] = t1;
37 } else {
38 t1 = $[1];
39 }
40 const input = t1;
41 const t2 = addMargin ? 1 : 0;
42 let t3;
43 if ($[2] !== block.id || $[3] !== resolvedToolUseIDs) {
44 t3 = resolvedToolUseIDs.has(block.id);
45 $[2] = block.id;
46 $[3] = resolvedToolUseIDs;
47 $[4] = t3;
48 } else {
49 t3 = $[4];
50 }
51 const t4 = !t3;
52 let t5;
53 if ($[5] !== block.id || $[6] !== erroredToolUseIDs) {
54 t5 = erroredToolUseIDs.has(block.id);
55 $[5] = block.id;
56 $[6] = erroredToolUseIDs;
57 $[7] = t5;
58 } else {
59 t5 = $[7];
60 }
61 let t6;
62 if ($[8] !== shouldAnimate || $[9] !== t4 || $[10] !== t5) {
63 t6 = <ToolUseLoader shouldAnimate={shouldAnimate} isUnresolved={t4} isError={t5} />;
64 $[8] = shouldAnimate;
65 $[9] = t4;
66 $[10] = t5;
67 $[11] = t6;
68 } else {
69 t6 = $[11];
70 }
71 let t7;
72 if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
73 t7 = <Text bold={true}>Advising</Text>;
74 $[12] = t7;
75 } else {
76 t7 = $[12];
77 }

Callers

nothing calls this directly

Calls 4

jsonStringifyFunction · 0.85
renderModelNameFunction · 0.85
keysMethod · 0.80
hasMethod · 0.45

Tested by

no test coverage detected