From 2cf230668faf78edf5cb06c132bee66b5111a2f7 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Fri, 1 May 2026 17:12:48 -0700 Subject: [PATCH] Refactor git services into source control layers - Move GitManager and GitHubCli contracts/layers to their new modules - Update server wiring and tests for the relocated pluggable git setup --- .../src/git/{Layers => }/GitManager.test.ts | 20 ++-- .../server/src/git/{Layers => }/GitManager.ts | 66 ++++++++--- apps/server/src/git/GitWorkflowService.ts | 2 +- apps/server/src/git/Services/GitHubCli.ts | 103 ----------------- apps/server/src/git/Services/GitManager.ts | 104 ------------------ apps/server/src/server.test.ts | 2 +- apps/server/src/server.ts | 8 +- .../GitHubCli.test.ts | 21 ++-- .../Layers => sourceControl}/GitHubCli.ts | 90 ++++++++++++--- .../GitHubSourceControlProvider.test.ts | 2 +- .../GitHubSourceControlProvider.ts | 2 +- .../SourceControlProviderRegistry.test.ts | 2 +- 12 files changed, 156 insertions(+), 266 deletions(-) rename apps/server/src/git/{Layers => }/GitManager.test.ts (99%) rename apps/server/src/git/{Layers => }/GitManager.ts (96%) delete mode 100644 apps/server/src/git/Services/GitHubCli.ts delete mode 100644 apps/server/src/git/Services/GitManager.ts rename apps/server/src/{git/Layers => sourceControl}/GitHubCli.test.ts (93%) rename apps/server/src/{git/Layers => sourceControl}/GitHubCli.ts (74%) diff --git a/apps/server/src/git/Layers/GitManager.test.ts b/apps/server/src/git/GitManager.test.ts similarity index 99% rename from apps/server/src/git/Layers/GitManager.test.ts rename to apps/server/src/git/GitManager.test.ts index cb0f3fe9a3..3283d31c49 100644 --- a/apps/server/src/git/Layers/GitManager.test.ts +++ b/apps/server/src/git/GitManager.test.ts @@ -14,25 +14,25 @@ import type { } from "@t3tools/contracts"; import { GitCommandError, GitHubCliError, TextGenerationError } from "@t3tools/contracts"; -import { type GitManagerShape } from "../Services/GitManager.ts"; +import { type GitManagerShape } from "./GitManager.ts"; import { type GitHubCliShape, type GitHubPullRequestSummary, GitHubCli, -} from "../Services/GitHubCli.ts"; -import { type TextGenerationShape, TextGeneration } from "../../textGeneration/TextGeneration.ts"; -import * as GitVcsDriver from "../../vcs/GitVcsDriver.ts"; -import * as VcsProcess from "../../vcs/VcsProcess.ts"; -import * as GitHubSourceControlProvider from "../../sourceControl/GitHubSourceControlProvider.ts"; -import * as SourceControlProviderRegistry from "../../sourceControl/SourceControlProviderRegistry.ts"; +} from "../sourceControl/GitHubCli.ts"; +import { type TextGenerationShape, TextGeneration } from "../textGeneration/TextGeneration.ts"; +import * as GitVcsDriver from "../vcs/GitVcsDriver.ts"; +import * as VcsProcess from "../vcs/VcsProcess.ts"; +import * as GitHubSourceControlProvider from "../sourceControl/GitHubSourceControlProvider.ts"; +import * as SourceControlProviderRegistry from "../sourceControl/SourceControlProviderRegistry.ts"; import { makeGitManager } from "./GitManager.ts"; -import { ServerConfig } from "../../config.ts"; -import { ServerSettingsService } from "../../serverSettings.ts"; +import { ServerConfig } from "../config.ts"; +import { ServerSettingsService } from "../serverSettings.ts"; import { ProjectSetupScriptRunner, type ProjectSetupScriptRunnerInput, type ProjectSetupScriptRunnerShape, -} from "../../project/Services/ProjectSetupScriptRunner.ts"; +} from "../project/Services/ProjectSetupScriptRunner.ts"; interface FakeGhScenario { prListSequence?: string[]; diff --git a/apps/server/src/git/Layers/GitManager.ts b/apps/server/src/git/GitManager.ts similarity index 96% rename from apps/server/src/git/Layers/GitManager.ts rename to apps/server/src/git/GitManager.ts index 69867bd254..df5591c6a2 100644 --- a/apps/server/src/git/Layers/GitManager.ts +++ b/apps/server/src/git/GitManager.ts @@ -4,6 +4,7 @@ import { realpathSync } from "node:fs"; import { Array as Arr, Cache, + Context, DateTime, Duration, Effect, @@ -19,10 +20,17 @@ import { GitActionProgressEvent, GitActionProgressPhase, GitCommandError, + GitPreparePullRequestThreadInput, + GitPreparePullRequestThreadResult, + GitPullRequestRefInput, + GitResolvePullRequestResult, + GitRunStackedActionInput, GitRunStackedActionResult, GitStackedAction, + VcsStatusInput, type VcsStatusLocalResult, type VcsStatusRemoteResult, + VcsStatusResult, ModelSelection, } from "@t3tools/contracts"; import { @@ -34,21 +42,53 @@ import { } from "@t3tools/shared/git"; import { GitManagerError } from "@t3tools/contracts"; -import { - GitManager, - type GitActionProgressReporter, - type GitManagerShape, - type GitRunStackedActionOptions, -} from "../Services/GitManager.ts"; -import { TextGeneration } from "../../textGeneration/TextGeneration.ts"; -import { ProjectSetupScriptRunner } from "../../project/Services/ProjectSetupScriptRunner.ts"; -import { extractBranchNameFromRemoteRef } from "../remoteRefs.ts"; -import { ServerSettingsService } from "../../serverSettings.ts"; +import { TextGeneration } from "../textGeneration/TextGeneration.ts"; +import { ProjectSetupScriptRunner } from "../project/Services/ProjectSetupScriptRunner.ts"; +import { extractBranchNameFromRemoteRef } from "./remoteRefs.ts"; +import { ServerSettingsService } from "../serverSettings.ts"; import type { GitManagerServiceError } from "@t3tools/contracts"; -import { GitVcsDriver, type GitStatusDetails } from "../../vcs/GitVcsDriver.ts"; -import { SourceControlProviderRegistry } from "../../sourceControl/SourceControlProviderRegistry.ts"; +import { GitVcsDriver, type GitStatusDetails } from "../vcs/GitVcsDriver.ts"; +import { SourceControlProviderRegistry } from "../sourceControl/SourceControlProviderRegistry.ts"; import type { ChangeRequest } from "@t3tools/contracts"; +export interface GitActionProgressReporter { + readonly publish: (event: GitActionProgressEvent) => Effect.Effect; +} + +export interface GitRunStackedActionOptions { + readonly actionId?: string; + readonly progressReporter?: GitActionProgressReporter; +} + +export interface GitManagerShape { + readonly status: ( + input: VcsStatusInput, + ) => Effect.Effect; + readonly localStatus: ( + input: VcsStatusInput, + ) => Effect.Effect; + readonly remoteStatus: ( + input: VcsStatusInput, + ) => Effect.Effect; + readonly invalidateLocalStatus: (cwd: string) => Effect.Effect; + readonly invalidateRemoteStatus: (cwd: string) => Effect.Effect; + readonly invalidateStatus: (cwd: string) => Effect.Effect; + readonly resolvePullRequest: ( + input: GitPullRequestRefInput, + ) => Effect.Effect; + readonly preparePullRequestThread: ( + input: GitPreparePullRequestThreadInput, + ) => Effect.Effect; + readonly runStackedAction: ( + input: GitRunStackedActionInput, + options?: GitRunStackedActionOptions, + ) => Effect.Effect; +} + +export class GitManager extends Context.Service()( + "t3/git/GitManager", +) {} + const COMMIT_TIMEOUT_MS = 10 * 60_000; const MAX_PROGRESS_TEXT_LENGTH = 500; const SHORT_SHA_LENGTH = 7; @@ -1707,4 +1747,4 @@ export const makeGitManager = Effect.fn("makeGitManager")(function* () { } satisfies GitManagerShape; }); -export const GitManagerLive = Layer.effect(GitManager, makeGitManager()); +export const layer = Layer.effect(GitManager, makeGitManager()); diff --git a/apps/server/src/git/GitWorkflowService.ts b/apps/server/src/git/GitWorkflowService.ts index f37ece9bab..aac5706780 100644 --- a/apps/server/src/git/GitWorkflowService.ts +++ b/apps/server/src/git/GitWorkflowService.ts @@ -26,7 +26,7 @@ import { type VcsStatusResult, } from "@t3tools/contracts"; -import { GitManager, type GitRunStackedActionOptions } from "./Services/GitManager.ts"; +import { GitManager, type GitRunStackedActionOptions } from "./GitManager.ts"; import { GitVcsDriver } from "../vcs/GitVcsDriver.ts"; import { VcsDriverRegistry } from "../vcs/VcsDriverRegistry.ts"; diff --git a/apps/server/src/git/Services/GitHubCli.ts b/apps/server/src/git/Services/GitHubCli.ts deleted file mode 100644 index 81a53761a3..0000000000 --- a/apps/server/src/git/Services/GitHubCli.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * GitHubCli - Effect service contract for `gh` process interactions. - * - * Provides thin command execution helpers used by Git workflow orchestration. - * - * @module GitHubCli - */ -import { Context } from "effect"; -import type { Effect } from "effect"; - -import type { ProcessRunResult } from "../../processRunner.ts"; -import type { GitHubCliError } from "@t3tools/contracts"; - -export interface GitHubPullRequestSummary { - readonly number: number; - readonly title: string; - readonly url: string; - readonly baseRefName: string; - readonly headRefName: string; - readonly state?: "open" | "closed" | "merged"; - readonly isCrossRepository?: boolean; - readonly headRepositoryNameWithOwner?: string | null; - readonly headRepositoryOwnerLogin?: string | null; -} - -export interface GitHubRepositoryCloneUrls { - readonly nameWithOwner: string; - readonly url: string; - readonly sshUrl: string; -} - -/** - * GitHubCliShape - Service API for executing GitHub CLI commands. - */ -export interface GitHubCliShape { - /** - * Execute a GitHub CLI command and return full process output. - */ - readonly execute: (input: { - readonly cwd: string; - readonly args: ReadonlyArray; - readonly timeoutMs?: number; - }) => Effect.Effect; - - /** - * List open pull requests for a head branch. - */ - readonly listOpenPullRequests: (input: { - readonly cwd: string; - readonly headSelector: string; - readonly limit?: number; - }) => Effect.Effect, GitHubCliError>; - - /** - * Resolve a pull request by URL, number, or branch-ish identifier. - */ - readonly getPullRequest: (input: { - readonly cwd: string; - readonly reference: string; - }) => Effect.Effect; - - /** - * Resolve clone URLs for a GitHub repository. - */ - readonly getRepositoryCloneUrls: (input: { - readonly cwd: string; - readonly repository: string; - }) => Effect.Effect; - - /** - * Create a pull request from branch context and body file. - */ - readonly createPullRequest: (input: { - readonly cwd: string; - readonly baseBranch: string; - readonly headSelector: string; - readonly title: string; - readonly bodyFile: string; - }) => Effect.Effect; - - /** - * Resolve repository default branch through GitHub metadata. - */ - readonly getDefaultBranch: (input: { - readonly cwd: string; - }) => Effect.Effect; - - /** - * Checkout a pull request into the current repository worktree. - */ - readonly checkoutPullRequest: (input: { - readonly cwd: string; - readonly reference: string; - readonly force?: boolean; - }) => Effect.Effect; -} - -/** - * GitHubCli - Service tag for GitHub CLI process execution. - */ -export class GitHubCli extends Context.Service()( - "t3/git/Services/GitHubCli", -) {} diff --git a/apps/server/src/git/Services/GitManager.ts b/apps/server/src/git/Services/GitManager.ts deleted file mode 100644 index bf46dc46d8..0000000000 --- a/apps/server/src/git/Services/GitManager.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * GitManager - Effect service contract for stacked Git workflows. - * - * Orchestrates status inspection and commit/push/PR flows by composing - * lower-level Git and external tool services. - * - * @module GitManager - */ -import { - GitActionProgressEvent, - GitPreparePullRequestThreadInput, - GitPreparePullRequestThreadResult, - GitPullRequestRefInput, - GitResolvePullRequestResult, - GitRunStackedActionInput, - GitRunStackedActionResult, - VcsStatusLocalResult, - VcsStatusRemoteResult, - VcsStatusInput, - VcsStatusResult, -} from "@t3tools/contracts"; -import { Context } from "effect"; -import type { Effect } from "effect"; -import type { GitManagerServiceError } from "@t3tools/contracts"; - -export interface GitActionProgressReporter { - readonly publish: (event: GitActionProgressEvent) => Effect.Effect; -} - -export interface GitRunStackedActionOptions { - readonly actionId?: string; - readonly progressReporter?: GitActionProgressReporter; -} - -/** - * GitManagerShape - Service API for high-level Git workflow actions. - */ -export interface GitManagerShape { - /** - * Read current repository Git status plus open PR metadata when available. - */ - readonly status: ( - input: VcsStatusInput, - ) => Effect.Effect; - - /** - * Read local repository status without remote hosting enrichment. - */ - readonly localStatus: ( - input: VcsStatusInput, - ) => Effect.Effect; - - /** - * Read remote tracking / PR status for a repository. - */ - readonly remoteStatus: ( - input: VcsStatusInput, - ) => Effect.Effect; - - /** - * Clear any cached local status snapshot for a repository. - */ - readonly invalidateLocalStatus: (cwd: string) => Effect.Effect; - - /** - * Clear any cached remote status snapshot for a repository. - */ - readonly invalidateRemoteStatus: (cwd: string) => Effect.Effect; - - /** - * Clear any cached status snapshot for a repository so the next read is fresh. - */ - readonly invalidateStatus: (cwd: string) => Effect.Effect; - - /** - * Resolve a pull request by URL/number against the current repository. - */ - readonly resolvePullRequest: ( - input: GitPullRequestRefInput, - ) => Effect.Effect; - - /** - * Prepare a new thread workspace from a pull request in local or worktree mode. - */ - readonly preparePullRequestThread: ( - input: GitPreparePullRequestThreadInput, - ) => Effect.Effect; - - /** - * Run a Git action (`commit`, `push`, `create_pr`, `commit_push`, `commit_push_pr`). - * When `featureBranch` is set, creates and checks out a feature branch first. - */ - readonly runStackedAction: ( - input: GitRunStackedActionInput, - options?: GitRunStackedActionOptions, - ) => Effect.Effect; -} - -/** - * GitManager - Service tag for stacked Git workflow orchestration. - */ -export class GitManager extends Context.Service()( - "t3/git/Services/GitManager", -) {} diff --git a/apps/server/src/server.test.ts b/apps/server/src/server.test.ts index 04f241998e..eadcbb0f47 100644 --- a/apps/server/src/server.test.ts +++ b/apps/server/src/server.test.ts @@ -61,7 +61,7 @@ import { CheckpointDiffQuery, type CheckpointDiffQueryShape, } from "./checkpointing/Services/CheckpointDiffQuery.ts"; -import { GitManager, type GitManagerShape } from "./git/Services/GitManager.ts"; +import { GitManager, type GitManagerShape } from "./git/GitManager.ts"; import { Keybindings, type KeybindingsShape } from "./keybindings.ts"; import { Open, type OpenShape } from "./open.ts"; import { diff --git a/apps/server/src/server.ts b/apps/server/src/server.ts index c39f56a82b..1c31d6de74 100644 --- a/apps/server/src/server.ts +++ b/apps/server/src/server.ts @@ -25,11 +25,11 @@ import { ProviderSessionReaperLive } from "./provider/Layers/ProviderSessionReap import { OpenCodeRuntimeLive } from "./provider/opencodeRuntime.ts"; import { CheckpointDiffQueryLive } from "./checkpointing/Layers/CheckpointDiffQuery.ts"; import { CheckpointStoreLive } from "./checkpointing/Layers/CheckpointStore.ts"; -import { GitHubCliLive } from "./git/Layers/GitHubCli.ts"; +import * as GitHubCli from "./sourceControl/GitHubCli.ts"; import * as TextGeneration from "./textGeneration/TextGeneration.ts"; import { ProviderInstanceRegistryHydrationLive } from "./provider/Layers/ProviderInstanceRegistryHydration.ts"; import { TerminalManagerLive } from "./terminal/Layers/Manager.ts"; -import { GitManagerLive } from "./git/Layers/GitManager.ts"; +import * as GitManager from "./git/GitManager.ts"; import { KeybindingsLive } from "./keybindings.ts"; import { ServerRuntimeStartup, ServerRuntimeStartupLive } from "./serverRuntimeStartup.ts"; import { OrchestrationReactorLive } from "./orchestration/Layers/OrchestrationReactor.ts"; @@ -155,10 +155,10 @@ const ProviderLayerLive = ProviderServiceLive.pipe( const PersistenceLayerLive = Layer.empty.pipe(Layer.provideMerge(SqlitePersistenceLayerLive)); -const GitManagerLayerLive = GitManagerLive.pipe( +const GitManagerLayerLive = GitManager.layer.pipe( Layer.provideMerge(ProjectSetupScriptRunnerLive), Layer.provideMerge(GitVcsDriver.layer), - Layer.provideMerge(SourceControlProviderRegistry.layer.pipe(Layer.provide(GitHubCliLive))), + Layer.provideMerge(SourceControlProviderRegistry.layer.pipe(Layer.provide(GitHubCli.layer))), Layer.provideMerge(TextGeneration.layer), ); diff --git a/apps/server/src/git/Layers/GitHubCli.test.ts b/apps/server/src/sourceControl/GitHubCli.test.ts similarity index 93% rename from apps/server/src/git/Layers/GitHubCli.test.ts rename to apps/server/src/sourceControl/GitHubCli.test.ts index 5a7b9cb8b1..acba95e6cb 100644 --- a/apps/server/src/git/Layers/GitHubCli.test.ts +++ b/apps/server/src/sourceControl/GitHubCli.test.ts @@ -2,22 +2,21 @@ import { assert, it } from "@effect/vitest"; import { Effect } from "effect"; import { afterEach, expect, vi } from "vitest"; -vi.mock("../../processRunner", () => ({ +vi.mock("../processRunner", () => ({ runProcess: vi.fn(), })); -import { runProcess } from "../../processRunner.ts"; -import { GitHubCli } from "../Services/GitHubCli.ts"; -import { GitHubCliLive } from "./GitHubCli.ts"; +import { runProcess } from "../processRunner.ts"; +import * as GitHubCli from "./GitHubCli.ts"; const mockedRunProcess = vi.mocked(runProcess); -const layer = it.layer(GitHubCliLive); +const layer = it.layer(GitHubCli.layer); afterEach(() => { mockedRunProcess.mockReset(); }); -layer("GitHubCliLive", (it) => { +layer("GitHubCli.layer", (it) => { it.effect("parses pull request view output", () => Effect.gen(function* () { mockedRunProcess.mockResolvedValueOnce({ @@ -44,7 +43,7 @@ layer("GitHubCliLive", (it) => { }); const result = yield* Effect.gen(function* () { - const gh = yield* GitHubCli; + const gh = yield* GitHubCli.GitHubCli; return yield* gh.getPullRequest({ cwd: "/repo", reference: "#42", @@ -102,7 +101,7 @@ layer("GitHubCliLive", (it) => { }); const result = yield* Effect.gen(function* () { - const gh = yield* GitHubCli; + const gh = yield* GitHubCli.GitHubCli; return yield* gh.getPullRequest({ cwd: "/repo", reference: "#42", @@ -155,7 +154,7 @@ layer("GitHubCliLive", (it) => { }); const result = yield* Effect.gen(function* () { - const gh = yield* GitHubCli; + const gh = yield* GitHubCli.GitHubCli; return yield* gh.listOpenPullRequests({ cwd: "/repo", headSelector: "feature/pr-list", @@ -190,7 +189,7 @@ layer("GitHubCliLive", (it) => { }); const result = yield* Effect.gen(function* () { - const gh = yield* GitHubCli; + const gh = yield* GitHubCli.GitHubCli; return yield* gh.getRepositoryCloneUrls({ cwd: "/repo", repository: "octocat/codething-mvp", @@ -214,7 +213,7 @@ layer("GitHubCliLive", (it) => { ); const error = yield* Effect.gen(function* () { - const gh = yield* GitHubCli; + const gh = yield* GitHubCli.GitHubCli; return yield* gh.getPullRequest({ cwd: "/repo", reference: "4888", diff --git a/apps/server/src/git/Layers/GitHubCli.ts b/apps/server/src/sourceControl/GitHubCli.ts similarity index 74% rename from apps/server/src/git/Layers/GitHubCli.ts rename to apps/server/src/sourceControl/GitHubCli.ts index dbacdf6322..65b4680898 100644 --- a/apps/server/src/git/Layers/GitHubCli.ts +++ b/apps/server/src/sourceControl/GitHubCli.ts @@ -1,21 +1,81 @@ -import { Effect, Layer, Result, Schema, SchemaIssue } from "effect"; -import { TrimmedNonEmptyString } from "@t3tools/contracts"; +import { Context, Effect, Layer, Result, Schema, SchemaIssue } from "effect"; -import { runProcess } from "../../processRunner.ts"; -import { GitHubCliError } from "@t3tools/contracts"; -import { - GitHubCli, - type GitHubRepositoryCloneUrls, - type GitHubCliShape, -} from "../Services/GitHubCli.ts"; +import { GitHubCliError, TrimmedNonEmptyString } from "@t3tools/contracts"; + +import type { ProcessRunResult } from "../processRunner.ts"; +import { runProcess } from "../processRunner.ts"; import { decodeGitHubPullRequestJson, decodeGitHubPullRequestListJson, formatGitHubJsonDecodeError, -} from "../githubPullRequests.ts"; +} from "../git/githubPullRequests.ts"; const DEFAULT_TIMEOUT_MS = 30_000; +export interface GitHubPullRequestSummary { + readonly number: number; + readonly title: string; + readonly url: string; + readonly baseRefName: string; + readonly headRefName: string; + readonly state?: "open" | "closed" | "merged"; + readonly isCrossRepository?: boolean; + readonly headRepositoryNameWithOwner?: string | null; + readonly headRepositoryOwnerLogin?: string | null; +} + +export interface GitHubRepositoryCloneUrls { + readonly nameWithOwner: string; + readonly url: string; + readonly sshUrl: string; +} + +export interface GitHubCliShape { + readonly execute: (input: { + readonly cwd: string; + readonly args: ReadonlyArray; + readonly timeoutMs?: number; + }) => Effect.Effect; + + readonly listOpenPullRequests: (input: { + readonly cwd: string; + readonly headSelector: string; + readonly limit?: number; + }) => Effect.Effect, GitHubCliError>; + + readonly getPullRequest: (input: { + readonly cwd: string; + readonly reference: string; + }) => Effect.Effect; + + readonly getRepositoryCloneUrls: (input: { + readonly cwd: string; + readonly repository: string; + }) => Effect.Effect; + + readonly createPullRequest: (input: { + readonly cwd: string; + readonly baseBranch: string; + readonly headSelector: string; + readonly title: string; + readonly bodyFile: string; + }) => Effect.Effect; + + readonly getDefaultBranch: (input: { + readonly cwd: string; + }) => Effect.Effect; + + readonly checkoutPullRequest: (input: { + readonly cwd: string; + readonly reference: string; + readonly force?: boolean; + }) => Effect.Effect; +} + +export class GitHubCli extends Context.Service()( + "t3/source-control/GitHubCli", +) {} + function normalizeGitHubCliError(operation: "execute" | "stdout", error: unknown): GitHubCliError { if (error instanceof Error) { if (error.message.includes("Command not found: gh")) { @@ -101,7 +161,7 @@ function decodeGitHubJson( ); } -const makeGitHubCli = Effect.sync(() => { +export const make = Effect.sync(() => { const execute: GitHubCliShape["execute"] = (input) => Effect.tryPromise({ try: () => @@ -112,7 +172,7 @@ const makeGitHubCli = Effect.sync(() => { catch: (error) => normalizeGitHubCliError("execute", error), }); - const service = { + return GitHubCli.of({ execute, listOpenPullRequests: (input) => execute({ @@ -232,9 +292,7 @@ const makeGitHubCli = Effect.sync(() => { cwd: input.cwd, args: ["pr", "checkout", input.reference, ...(input.force ? ["--force"] : [])], }).pipe(Effect.asVoid), - } satisfies GitHubCliShape; - - return service; + }); }); -export const GitHubCliLive = Layer.effect(GitHubCli, makeGitHubCli); +export const layer = Layer.effect(GitHubCli, make); diff --git a/apps/server/src/sourceControl/GitHubSourceControlProvider.test.ts b/apps/server/src/sourceControl/GitHubSourceControlProvider.test.ts index 7382d00066..cb3cdb4329 100644 --- a/apps/server/src/sourceControl/GitHubSourceControlProvider.test.ts +++ b/apps/server/src/sourceControl/GitHubSourceControlProvider.test.ts @@ -1,7 +1,7 @@ import { assert, it } from "@effect/vitest"; import { DateTime, Effect, Layer, Option } from "effect"; -import { GitHubCli, type GitHubCliShape } from "../git/Services/GitHubCli.ts"; +import { GitHubCli, type GitHubCliShape } from "./GitHubCli.ts"; import * as GitHubSourceControlProvider from "./GitHubSourceControlProvider.ts"; const processResult = (stdout: string) => ({ diff --git a/apps/server/src/sourceControl/GitHubSourceControlProvider.ts b/apps/server/src/sourceControl/GitHubSourceControlProvider.ts index cba7bc7431..41b6e46cb2 100644 --- a/apps/server/src/sourceControl/GitHubSourceControlProvider.ts +++ b/apps/server/src/sourceControl/GitHubSourceControlProvider.ts @@ -6,7 +6,7 @@ import { type GitHubCliError, } from "@t3tools/contracts"; -import { GitHubCli, type GitHubPullRequestSummary } from "../git/Services/GitHubCli.ts"; +import { GitHubCli, type GitHubPullRequestSummary } from "./GitHubCli.ts"; import { decodeGitHubPullRequestListJson } from "../git/githubPullRequests.ts"; import { SourceControlProvider, type SourceControlProviderShape } from "./SourceControlProvider.ts"; diff --git a/apps/server/src/sourceControl/SourceControlProviderRegistry.test.ts b/apps/server/src/sourceControl/SourceControlProviderRegistry.test.ts index 222c202286..f5e8b8f880 100644 --- a/apps/server/src/sourceControl/SourceControlProviderRegistry.test.ts +++ b/apps/server/src/sourceControl/SourceControlProviderRegistry.test.ts @@ -1,7 +1,7 @@ import { assert, it } from "@effect/vitest"; import { Effect, Layer } from "effect"; -import { GitHubCli } from "../git/Services/GitHubCli.ts"; +import { GitHubCli } from "./GitHubCli.ts"; import * as GitVcsDriver from "../vcs/GitVcsDriver.ts"; import * as SourceControlProviderRegistry from "./SourceControlProviderRegistry.ts";