| 90 | return t1; |
| 91 | } |
| 92 | export async function doctorHandler(root: Root): Promise<void> { |
| 93 | logEvent('ncode_doctor_command', {}); |
| 94 | await new Promise<void>(resolve => { |
| 95 | root.render(<AppStateProvider> |
| 96 | <KeybindingSetup> |
| 97 | <MCPConnectionManager dynamicMcpConfig={undefined} isStrictMcpConfig={false}> |
| 98 | <DoctorWithPlugins onDone={() => { |
| 99 | void resolve(); |
| 100 | }} /> |
| 101 | </MCPConnectionManager> |
| 102 | </KeybindingSetup> |
| 103 | </AppStateProvider>); |
| 104 | }); |
| 105 | root.unmount(); |
| 106 | cliOk(); |
| 107 | } |
| 108 | |
| 109 | // install handler |
| 110 | export async function installHandler(target: string | undefined, options: { |