@@ -10,6 +10,7 @@ import { PromptService } from '$lib/backend/prompt';
1010import { Tauri } from '$lib/backend/tauri' ;
1111import { UpdaterService } from '$lib/backend/updater' ;
1212import { loadAppSettings } from '$lib/config/appSettings' ;
13+ import { FileService } from '$lib/files/fileService' ;
1314import { RemotesService } from '$lib/remotes/service' ;
1415import { RustSecretService } from '$lib/secrets/secretsService' ;
1516import { TokenMemoryService } from '$lib/stores/tokenMemoryService' ;
@@ -45,7 +46,8 @@ export const load: LayoutLoad = async () => {
4546 const tokenMemoryService = new TokenMemoryService ( ) ;
4647 const httpClient = new HttpClient ( window . fetch , PUBLIC_API_BASE_URL , tokenMemoryService . token ) ;
4748 const authService = new AuthService ( ) ;
48- const updaterService = new UpdaterService ( new Tauri ( ) , posthog ) ;
49+ const tauri = new Tauri ( ) ;
50+ const updaterService = new UpdaterService ( tauri , posthog ) ;
4951 const promptService = new PromptService ( ) ;
5052
5153 const userService = new UserService ( httpClient , tokenMemoryService , posthog ) ;
@@ -59,6 +61,7 @@ export const load: LayoutLoad = async () => {
5961 const aiPromptService = new AIPromptService ( ) ;
6062 const lineManagerFactory = new LineManagerFactory ( ) ;
6163 const stackingLineManagerFactory = new StackingLineManagerFactory ( ) ;
64+ const fileService = new FileService ( tauri ) ;
6265
6366 return {
6467 commandService,
@@ -77,6 +80,8 @@ export const load: LayoutLoad = async () => {
7780 lineManagerFactory,
7881 stackingLineManagerFactory,
7982 secretsService,
80- posthog
83+ posthog,
84+ tauri,
85+ fileService
8186 } ;
8287} ;
0 commit comments