| 67 | } |
| 68 | |
| 69 | export async function doctorHandler(root: Root): Promise<void> { |
| 70 | logEvent('tengu_doctor_command', {}); |
| 71 | |
| 72 | await new Promise<void>(resolve => { |
| 73 | root.render( |
| 74 | <AppStateProvider> |
| 75 | <KeybindingSetup> |
| 76 | <MCPConnectionManager dynamicMcpConfig={undefined} isStrictMcpConfig={false}> |
| 77 | <DoctorWithPlugins |
| 78 | onDone={() => { |
| 79 | void resolve(); |
| 80 | }} |
| 81 | /> |
| 82 | </MCPConnectionManager> |
| 83 | </KeybindingSetup> |
| 84 | </AppStateProvider>, |
| 85 | ); |
| 86 | }); |
| 87 | root.unmount(); |
| 88 | process.exit(0); |
| 89 | } |
| 90 | |
| 91 | // install handler |
| 92 | export async function installHandler(target: string | undefined, options: { force?: boolean }): Promise<void> { |