From 0cdc89ccaf3fc311c657d4a47daec2a2d38a11d8 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Sat, 2 May 2026 14:47:20 -0700 Subject: [PATCH] Align JJ driver with VCS provisioning --- apps/server/src/vcs/JjVcsDriver.ts | 4 ++++ apps/server/src/vcs/VcsDriverRegistry.test.ts | 1 + apps/web/src/vcsPresentation.ts | 7 ------- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/apps/server/src/vcs/JjVcsDriver.ts b/apps/server/src/vcs/JjVcsDriver.ts index b02e91d6d7..449275de6e 100644 --- a/apps/server/src/vcs/JjVcsDriver.ts +++ b/apps/server/src/vcs/JjVcsDriver.ts @@ -269,6 +269,9 @@ export const makeVcsDriverShape = Effect.fn("makeJjVcsDriverShape")(function* () : {}), }); + const initRepository: VcsDriverShape["initRepository"] = (input) => + jjCommand(process, "JjVcsDriver.initRepository", input.cwd, ["git", "init"]); + const detectRepository: VcsDriverShape["detectRepository"] = Effect.fn("detectRepository")( function* (cwd) { const root = yield* jjCommand(process, "JjVcsDriver.detectRepository.root", cwd, ["root"], { @@ -488,6 +491,7 @@ export const makeVcsDriverShape = Effect.fn("makeJjVcsDriverShape")(function* () return { capabilities, execute, + initRepository, detectRepository, isInsideWorkTree, listWorkspaceFiles, diff --git a/apps/server/src/vcs/VcsDriverRegistry.test.ts b/apps/server/src/vcs/VcsDriverRegistry.test.ts index fd50506d76..485dfc06c0 100644 --- a/apps/server/src/vcs/VcsDriverRegistry.test.ts +++ b/apps/server/src/vcs/VcsDriverRegistry.test.ts @@ -32,6 +32,7 @@ describe("VcsDriverRegistry", () => { run: () => Effect.succeed(processOutput("")), }), ), + Layer.provide(NodeServices.layer), ); return Effect.gen(function* () { diff --git a/apps/web/src/vcsPresentation.ts b/apps/web/src/vcsPresentation.ts index e9d5b7d2b7..7599d4a78e 100644 --- a/apps/web/src/vcsPresentation.ts +++ b/apps/web/src/vcsPresentation.ts @@ -40,13 +40,6 @@ export function resolveVcsTerms(kind: VcsDriverKind | null | undefined): VcsTerm }; } - if (kind === "sapling") { - return { - ...gitLikeTerms, - systemName: "Sapling", - }; - } - if (kind === "git") { return gitLikeTerms; }