feat(source-control): add Bitbucket & Azure Devops providers (#2473)

Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: cursor[bot] <206951365+cursor[bot]@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-05-04 00:59:58 -07:00
1 parent d501ebe877
commit 91a03e0747
59 files changed
+5852 -2345

No files matched your search

@@ -1,4 +1,4 @@
import OS from "node:os";
import * as NodeOS from "node:os";
import { Context, Effect, FileSystem, Layer, Path, Schema } from "effect";
import {
@@ -15,8 +15,8 @@ import {
} from "@t3tools/contracts";
import { ServerConfig } from "../config.ts";
import { GitVcsDriver } from "../vcs/GitVcsDriver.ts";
import { SourceControlProviderRegistry } from "./SourceControlProviderRegistry.ts";
import * as GitVcsDriver from "../vcs/GitVcsDriver.ts";
import * as SourceControlProviderRegistry from "./SourceControlProviderRegistry.ts";
export interface SourceControlRepositoryServiceShape {
readonly lookupRepository: (
@@ -102,10 +102,10 @@ function selectRemoteUrl(
function expandHomePath(input: string, path: Path.Path): string {
if (input === "~") {
return OS.homedir();
return NodeOS.homedir();
}
if (input.startsWith("~/") || input.startsWith("~\\")) {
return path.join(OS.homedir(), input.slice(2));
return path.join(NodeOS.homedir(), input.slice(2));
}
return input;
}
@@ -113,9 +113,9 @@ function expandHomePath(input: string, path: Path.Path): string {
export const make = Effect.fn("makeSourceControlRepositoryService")(function* () {
const config = yield* ServerConfig;
const fileSystem = yield* FileSystem.FileSystem;
const git = yield* GitVcsDriver;
const git = yield* GitVcsDriver.GitVcsDriver;
const path = yield* Path.Path;
const providers = yield* SourceControlProviderRegistry;
const providers = yield* SourceControlProviderRegistry.SourceControlProviderRegistry;
const ensureConcreteProvider = (input: {
readonly operation: string;