Refactor VCS layers into top-level modules

- Move VcsDriver and VcsProcess out of nested service/layer paths
- Update server, workspace, orchestration, and tests to use new exports
- Rename layer exports to `layer` for consistency
This commit is contained in:
Julius Marminge committed 2026-05-02 00:02:06 -07:00
1 parent 972a6876b8
commit 8f09b8d0ab
19 files changed
+92 -98

No files matched your search

@@ -3,8 +3,8 @@ import { it, describe, expect } from "@effect/vitest";
import { Effect, FileSystem, Layer, Path } from "effect";
import { ServerConfig } from "../../config.ts";
import { GitVcsDriverLive } from "../../vcs/Layers/GitVcsDriver.ts";
import { VcsProcessLive } from "../../vcs/Layers/VcsProcess.ts";
import { layer as GitVcsDriverLayer } from "../../vcs/GitVcsDriver.ts";
import { layer as VcsProcessLayer } from "../../vcs/VcsProcess.ts";
import { WorkspaceEntries } from "../Services/WorkspaceEntries.ts";
import { WorkspaceFileSystem } from "../Services/WorkspaceFileSystem.ts";
import { WorkspaceEntriesLive } from "./WorkspaceEntries.ts";
@@ -20,7 +20,7 @@ const TestLayer = Layer.empty.pipe(
Layer.provideMerge(ProjectLayer),
Layer.provideMerge(WorkspaceEntriesLive.pipe(Layer.provide(WorkspacePathsLive))),
Layer.provideMerge(WorkspacePathsLive),
Layer.provideMerge(GitVcsDriverLive.pipe(Layer.provide(VcsProcessLive))),
Layer.provideMerge(GitVcsDriverLayer.pipe(Layer.provide(VcsProcessLayer))),
Layer.provide(
ServerConfig.layerTest(process.cwd(), {
prefix: "t3-workspace-files-test-",