Function: createVcsActorResolver()
Creates an actor resolver backed by the composition-layer VCS auto-detect flow.
Without an explicit cwd, the returned resolver defers detection until
identity() is called so synchronous use-case factories keep their current
contract. With an explicit cwd, detection happens immediately and returns
the concrete resolver for that repository.
Param
Optional directory to probe immediately, or providers for lazy mode
Param
Optional providers when cwd is supplied
Call Signature
createVcsActorResolver(
providers?):ActorResolver
Defined in: packages/core/src/composition/actor-resolver.ts:123
Auto-detects the active VCS in the given directory and returns the corresponding ActorResolver implementation.
Probes providers in the supplied order. Falls back to NullActorResolver when no provider detects a VCS.
Parameters
providers?
readonly ActorProvider[]
Detection providers in priority order
Returns
A lazily-detecting ActorResolver for the current working directory
Call Signature
createVcsActorResolver(
cwd,providers?):Promise<ActorResolver>
Defined in: packages/core/src/composition/actor-resolver.ts:132
Auto-detects the active VCS in the given directory immediately and returns the corresponding concrete ActorResolver implementation.
Parameters
cwd
string
Directory to probe
providers?
readonly ActorProvider[]
Detection providers in priority order
Returns
Promise<ActorResolver>
A promise for the detected concrete ActorResolver