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>
13 lines
460 B
TypeScript
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") {}
|