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