wip
This commit is contained in:
@@ -12,15 +12,6 @@ export default defineConfig({
|
||||
},
|
||||
rollupOptions: {
|
||||
external: [
|
||||
'@nut-tree-fork/nut-js',
|
||||
'@nut-tree-fork/libnut',
|
||||
'@nut-tree-fork/libnut-darwin',
|
||||
'@nut-tree-fork/libnut-linux',
|
||||
'@nut-tree-fork/libnut-win32',
|
||||
'@nut-tree-fork/node-mac-permissions',
|
||||
'@nut-tree-fork/default-clipboard-provider',
|
||||
'@nut-tree-fork/provider-interfaces',
|
||||
'@nut-tree-fork/shared',
|
||||
'bufferutil',
|
||||
'utf-8-validate',
|
||||
'playwright',
|
||||
|
||||
@@ -175,10 +175,10 @@ export class DIContainer {
|
||||
private static instance: DIContainer;
|
||||
|
||||
private logger: ILogger;
|
||||
private sessionRepository: ISessionRepository;
|
||||
private browserAutomation: PlaywrightAutomationAdapter | MockBrowserAutomationAdapter;
|
||||
private automationEngine: IAutomationEngine;
|
||||
private startAutomationUseCase: StartAutomationSessionUseCase;
|
||||
private sessionRepository!: ISessionRepository;
|
||||
private browserAutomation!: PlaywrightAutomationAdapter | MockBrowserAutomationAdapter;
|
||||
private automationEngine!: IAutomationEngine;
|
||||
private startAutomationUseCase!: StartAutomationSessionUseCase;
|
||||
private checkAuthenticationUseCase: CheckAuthenticationUseCase | null = null;
|
||||
private initiateLoginUseCase: InitiateLoginUseCase | null = null;
|
||||
private clearSessionUseCase: ClearSessionUseCase | null = null;
|
||||
|
||||
@@ -372,7 +372,8 @@ export function setupIpcHandlers(mainWindow: BrowserWindow): void {
|
||||
mainWindow.webContents.send('automation-event', ev);
|
||||
}
|
||||
} catch (e) {
|
||||
logger.debug?.('Failed to forward automation-event', e);
|
||||
const error = e instanceof Error ? e : new Error(String(e));
|
||||
logger.debug?.('Failed to forward automation-event', { error });
|
||||
}
|
||||
});
|
||||
lifecycleSubscribed = true;
|
||||
@@ -380,7 +381,8 @@ export function setupIpcHandlers(mainWindow: BrowserWindow): void {
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
logger.debug?.('Failed to subscribe to adapter lifecycle events', e);
|
||||
const error = e instanceof Error ? e : new Error(String(e));
|
||||
logger.debug?.('Failed to subscribe to adapter lifecycle events', { error });
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user