History

Introduce pluggable VCS driver for git operations

- Replace direct GitCore dependencies with VcsDriver and VcsProcess - Move checkpointing, workspace, and orchestration flows onto the new VCS abstraction - Drop workspace-specific git helpers from GitCore

Julius Marminge committed 6 months ago

Commit 3364f1f1 parent 0fa4e4c25 files · +960 −411Browse files

Showing the changes to apps/server/src/workspace/Layers/WorkspaceFileSystem.test.ts (1 of 25 files). Show all

Unified · Split

apps/server/src/workspace/Layers/WorkspaceFileSystem.test.ts+3−2
@@ -3,7 +3,8 @@ import { it, describe, expect } from "@effect/vitest"; · 2 unmodified lines
33 import { Effect, FileSystem, Layer, Path } from "effect";
44
55 import { ServerConfig } from "../../config.ts";
6−import { GitCoreLive } from "../../git/Layers/GitCore.ts";
6+import { GitVcsDriverLive } from "../../vcs/Layers/GitVcsDriver.ts";
7+import { VcsProcessLive } from "../../vcs/Layers/VcsProcess.ts";
78 import { WorkspaceEntries } from "../Services/WorkspaceEntries.ts";
89 import { WorkspaceFileSystem } from "../Services/WorkspaceFileSystem.ts";
910 import { WorkspaceEntriesLive } from "./WorkspaceEntries.ts";
@@ -19,7 +20,7 @@ const TestLayer = Layer.empty.pipe( · 9 unmodified lines
1920 Layer.provideMerge(ProjectLayer),
2021 Layer.provideMerge(WorkspaceEntriesLive.pipe(Layer.provide(WorkspacePathsLive))),
2122 Layer.provideMerge(WorkspacePathsLive),
22− Layer.provideMerge(GitCoreLive),
23+ Layer.provideMerge(GitVcsDriverLive.pipe(Layer.provide(VcsProcessLive))),
2324 Layer.provide(
2425 ServerConfig.layerTest(process.cwd(), {
2526 prefix: "t3-workspace-files-test-",

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t