@@ -105,23 +105,12 @@ import { WorkspaceEntriesLive } from "./workspace/Layers/WorkspaceEntries.ts";
105105import { WorkspaceFileSystemLive } from "./workspace/Layers/WorkspaceFileSystem.ts" ;
106106import { WorkspacePathsLive } from "./workspace/Layers/WorkspacePaths.ts" ;
107107import * as GitVcsDriver from "./vcs/GitVcsDriver.ts" ;
108- import type { VcsDriverShape } from "./vcs/VcsDriver.ts" ;
109- import {
110- VcsStatusBroadcaster ,
111- type VcsStatusBroadcasterShape ,
112- layer as VcsStatusBroadcasterLayer ,
113- } from "./vcs/VcsStatusBroadcaster.ts" ;
114- import {
115- VcsDriverRegistry ,
116- type VcsDriverRegistryShape ,
117- type VcsDriverHandle ,
118- } from "./vcs/VcsDriverRegistry.ts" ;
119- import { layer as VcsProvisioningServiceLayer } from "./vcs/VcsProvisioningService.ts" ;
120- import { layer as GitWorkflowServiceLayer } from "./git/GitWorkflowService.ts" ;
121- import {
122- SourceControlRepositoryService ,
123- type SourceControlRepositoryServiceShape ,
124- } from "./sourceControl/SourceControlRepositoryService.ts" ;
108+ import * as VcsDriver from "./vcs/VcsDriver.ts" ;
109+ import * as VcsStatusBroadcaster from "./vcs/VcsStatusBroadcaster.ts" ;
110+ import * as VcsDriverRegistry from "./vcs/VcsDriverRegistry.ts" ;
111+ import * as VcsProvisioningService from "./vcs/VcsProvisioningService.ts" ;
112+ import * as GitWorkflowService from "./git/GitWorkflowService.ts" ;
113+ import * as SourceControlRepositoryService from "./sourceControl/SourceControlRepositoryService.ts" ;
125114import { ServerSecretStoreLive } from "./auth/Layers/ServerSecretStore.ts" ;
126115import { ServerAuthLive } from "./auth/Layers/ServerAuth.ts" ;
127116
@@ -329,12 +318,12 @@ const buildAppUnderTest = (options?: {
329318 providerRegistry ?: Partial < ProviderRegistryShape > ;
330319 serverSettings ?: Partial < ServerSettingsShape > ;
331320 open ?: Partial < OpenShape > ;
332- vcsDriver ?: Partial < VcsDriverShape > ;
333- vcsDriverRegistry ?: Partial < VcsDriverRegistryShape > ;
321+ vcsDriver ?: Partial < VcsDriver . VcsDriverShape > ;
322+ vcsDriverRegistry ?: Partial < VcsDriverRegistry . VcsDriverRegistryShape > ;
334323 gitVcsDriver ?: Partial < GitVcsDriver . GitVcsDriverShape > ;
335324 gitManager ?: Partial < GitManagerShape > ;
336- sourceControlRepositoryService ?: Partial < SourceControlRepositoryServiceShape > ;
337- vcsStatusBroadcaster ?: Partial < VcsStatusBroadcasterShape > ;
325+ sourceControlRepositoryService ?: Partial < SourceControlRepositoryService . SourceControlRepositoryServiceShape > ;
326+ vcsStatusBroadcaster ?: Partial < VcsStatusBroadcaster . VcsStatusBroadcasterShape > ;
338327 projectSetupScriptRunner ?: Partial < ProjectSetupScriptRunnerShape > ;
339328 terminalManager ?: Partial < TerminalManagerShape > ;
340329 orchestrationEngine ?: Partial < OrchestrationEngineShape > ;
@@ -382,7 +371,7 @@ const buildAppUnderTest = (options?: {
382371 ...options ?. config ,
383372 } ;
384373 const layerConfig = Layer . succeed ( ServerConfig , config ) ;
385- const defaultVcsDriver : VcsDriverShape = {
374+ const defaultVcsDriver : VcsDriver . VcsDriverShape = {
386375 capabilities : {
387376 kind : "git" ,
388377 supportsWorktrees : true ,
@@ -424,7 +413,7 @@ const buildAppUnderTest = (options?: {
424413 initRepository : ( ) => Effect . void ,
425414 ...options ?. layers ?. vcsDriver ,
426415 } ;
427- const vcsDriverRegistryLayer = Layer . mock ( VcsDriverRegistry ) ( {
416+ const vcsDriverRegistryLayer = Layer . mock ( VcsDriverRegistry . VcsDriverRegistry ) ( {
428417 get : ( ) => Effect . succeed ( defaultVcsDriver ) ,
429418 detect : ( input ) =>
430419 defaultVcsDriver . detectRepository ( input . cwd ) . pipe (
@@ -454,7 +443,7 @@ const buildAppUnderTest = (options?: {
454443 kind : repository . kind ,
455444 repository,
456445 driver : defaultVcsDriver ,
457- } satisfies VcsDriverHandle )
446+ } satisfies VcsDriverRegistry . VcsDriverHandle )
458447 : null ,
459448 ) ,
460449 ) ,
@@ -496,19 +485,19 @@ const buildAppUnderTest = (options?: {
496485 ) ,
497486 ProjectFaviconResolverLive ,
498487 ) ;
499- const gitWorkflowLayer = GitWorkflowServiceLayer . pipe (
488+ const gitWorkflowLayer = GitWorkflowService . layer . pipe (
500489 Layer . provideMerge ( vcsDriverRegistryLayer ) ,
501490 Layer . provideMerge ( gitVcsDriverLayer ) ,
502491 Layer . provideMerge ( gitManagerLayer ) ,
503492 ) ;
504- const vcsProvisioningLayer = VcsProvisioningServiceLayer . pipe (
493+ const vcsProvisioningLayer = VcsProvisioningService . layer . pipe (
505494 Layer . provide ( vcsDriverRegistryLayer ) ,
506495 ) ;
507496 const vcsStatusBroadcasterLayer = options ?. layers ?. vcsStatusBroadcaster
508- ? Layer . mock ( VcsStatusBroadcaster ) ( {
497+ ? Layer . mock ( VcsStatusBroadcaster . VcsStatusBroadcaster ) ( {
509498 ...options . layers . vcsStatusBroadcaster ,
510499 } )
511- : VcsStatusBroadcasterLayer . pipe ( Layer . provide ( gitWorkflowLayer ) ) ;
500+ : VcsStatusBroadcaster . layer . pipe ( Layer . provide ( gitWorkflowLayer ) ) ;
512501
513502 const servedRoutesLayer = HttpRouter . serve ( makeRoutesLayer , {
514503 disableListenLog : true ,
@@ -552,7 +541,7 @@ const buildAppUnderTest = (options?: {
552541 Layer . provide ( gitWorkflowLayer ) ,
553542 Layer . provide ( vcsProvisioningLayer ) ,
554543 Layer . provide (
555- Layer . mock ( SourceControlRepositoryService ) ( {
544+ Layer . mock ( SourceControlRepositoryService . SourceControlRepositoryService ) ( {
556545 ...options ?. layers ?. sourceControlRepositoryService ,
557546 } ) ,
558547 ) ,
0 commit comments