This commit is contained in:
2025-11-30 23:00:48 +01:00
parent 4b8c70978f
commit 645f537895
41 changed files with 738 additions and 1631 deletions

View File

@@ -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',

View File

@@ -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;

View File

@@ -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 });
}
}