Open History to see the last commit
1import * as Layer from "effect/Layer";
2
3import { ProjectionProjectRepositoryLive } from "../persistence/Layers/ProjectionProjects.ts";
4import { layer as projectServiceLayer } from "../project/ProjectService.ts";
5import { layer as threadLaunchServiceLayer } from "./ThreadLaunchService.ts";
6import { layer as threadLifecycleServiceLayer } from "./ThreadLifecycleService.ts";
7import { live as resourceCleanupLive } from "./ResourceCleanupService.ts";
8import { observerLive as runFinalizationObserverLive } from "./RunFinalizationService.ts";
9
10const projectServiceProvided = projectServiceLayer.pipe(
11 Layer.provide(ProjectionProjectRepositoryLive),
12);
13
14const applicationServices = Layer.mergeAll(
15 threadLaunchServiceLayer,
16 threadLifecycleServiceLayer,
17).pipe(Layer.provideMerge(projectServiceProvided));
18
19export const OrchestrationV2ApplicationLayer = Layer.mergeAll(
20 applicationServices,
21 resourceCleanupLive,
22 runFinalizationObserverLive,
23);