Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]> Co-authored-by: Julius Marminge <[email protected]> Co-authored-by: codex <[email protected]>
13 lines
454 B
TypeScript
13 lines
454 B
TypeScript
import type { RepositoryIdentity } from "@t3tools/contracts";
|
|
import { Context } from "effect";
|
|
import type { Effect } from "effect";
|
|
|
|
export interface RepositoryIdentityResolverShape {
|
|
readonly resolve: (cwd: string) => Effect.Effect<RepositoryIdentity | null>;
|
|
}
|
|
|
|
export class RepositoryIdentityResolver extends Context.Service<
|
|
RepositoryIdentityResolver,
|
|
RepositoryIdentityResolverShape
|
|
>()("t3/project/Services/RepositoryIdentityResolver") {}
|