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

Function Doctor

src/screens/Doctor.tsx:100–502  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

98 return t3;
99}
100export function Doctor(t0) {
101 const $ = _c(84);
102 const {
103 onDone
104 } = t0;
105 const agentDefinitions = useAppState(_temp);
106 const mcpTools = useAppState(_temp2);
107 const toolPermissionContext = useAppState(_temp3);
108 const pluginsErrors = useAppState(_temp4);
109 useExitOnCtrlCDWithKeybindings();
110 let t1;
111 if ($[0] !== mcpTools) {
112 t1 = mcpTools || [];
113 $[0] = mcpTools;
114 $[1] = t1;
115 } else {
116 t1 = $[1];
117 }
118 const tools = t1;
119 const [diagnostic, setDiagnostic] = useState(null);
120 const [agentInfo, setAgentInfo] = useState(null);
121 const [contextWarnings, setContextWarnings] = useState(null);
122 const [versionLockInfo, setVersionLockInfo] = useState(null);
123 const validationErrors = useSettingsErrors();
124 let t2;
125 if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
126 t2 = getDoctorDiagnostic().then(_temp6);
127 $[2] = t2;
128 } else {
129 t2 = $[2];
130 }
131 const distTagsPromise = t2;
132 const autoUpdatesChannel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
133 let t3;
134 if ($[3] !== validationErrors) {
135 t3 = validationErrors.filter(_temp7);
136 $[3] = validationErrors;
137 $[4] = t3;
138 } else {
139 t3 = $[4];
140 }
141 const errorsExcludingMcp = t3;
142 let t4;
143 if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
144 const envVars = [{
145 name: "BASH_MAX_OUTPUT_LENGTH",
146 default: BASH_MAX_OUTPUT_DEFAULT,
147 upperLimit: BASH_MAX_OUTPUT_UPPER_LIMIT
148 }, {
149 name: "TASK_MAX_OUTPUT_LENGTH",
150 default: TASK_MAX_OUTPUT_DEFAULT,
151 upperLimit: TASK_MAX_OUTPUT_UPPER_LIMIT
152 }, {
153 name: "CLAUDE_CODE_MAX_OUTPUT_TOKENS",
154 ...getModelMaxOutputTokens("claude-opus-4-6")
155 }];
156 t4 = envVars.map(_temp8).filter(_temp9);
157 $[5] = t4;

Callers

nothing calls this directly

Calls 15

useAppStateFunction · 0.85
useSettingsErrorsFunction · 0.85
getDoctorDiagnosticFunction · 0.85
getInitialSettingsFunction · 0.85
getModelMaxOutputTokensFunction · 0.85
getOriginalCwdFunction · 0.85
pathExistsFunction · 0.85
checkContextWarningsFunction · 0.85
isPidBasedLockingEnabledFunction · 0.85
getXDGStateHomeFunction · 0.85
cleanupStaleLocksFunction · 0.85

Tested by

no test coverage detected