feat: add doctor diagnostics and bump to 0.15.2-fork.1
This commit is contained in:
@@ -133,6 +133,7 @@ import type {
|
||||
DiffScreenshotData,
|
||||
DiffUrlData,
|
||||
ContentData,
|
||||
DoctorCommand,
|
||||
TabListData,
|
||||
TabNewData,
|
||||
TabSwitchData,
|
||||
@@ -289,6 +290,8 @@ export async function executeCommand(command: Command, browser: BrowserManager):
|
||||
return await handleContent(command, browser);
|
||||
case 'close':
|
||||
return await handleClose(command, browser);
|
||||
case 'doctor':
|
||||
return await handleDoctor(command, browser);
|
||||
case 'tab_new':
|
||||
return await handleTabNew(command, browser);
|
||||
case 'tab_list':
|
||||
@@ -524,6 +527,11 @@ async function handleLaunch(
|
||||
});
|
||||
}
|
||||
|
||||
async function handleDoctor(command: DoctorCommand, browser: BrowserManager): Promise<Response> {
|
||||
const report = await browser.runDoctor();
|
||||
return successResponse(command.id, report);
|
||||
}
|
||||
|
||||
async function handleNavigate(
|
||||
command: NavigateCommand,
|
||||
browser: BrowserManager
|
||||
|
||||
Reference in New Issue
Block a user