Files
t3code/apps/server/src/project/Services/RepositoryIdentityResolver.ts
T
b96308fc5a Prepare datamodel for multi-environment (#1765)
Co-authored-by: justsomelegs <[email protected]>
Co-authored-by: codex <[email protected]>
Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: cursor[bot] <206951365+cursor[bot]@users.noreply.github.com>
2026-04-09 02:05:20 +00:00

13 lines
460 B
TypeScript

import type { RepositoryIdentity } from "@t3tools/contracts";
import { ServiceMap } from "effect";
import type { Effect } from "effect";
export interface RepositoryIdentityResolverShape {
readonly resolve: (cwd: string) => Effect.Effect<RepositoryIdentity | null>;
}
export class RepositoryIdentityResolver extends ServiceMap.Service<
RepositoryIdentityResolver,
RepositoryIdentityResolverShape
>()("t3/project/Services/RepositoryIdentityResolver") {}