Skip to content

PromptScript API


Function: validateRemoteAccess()

validateRemoteAccess(repoUrl): Promise\<RemoteValidation>

Defined in: resolver/src/git-registry.ts:803

Validate that a remote Git repository is accessible via git ls-remote.

Use this before writing a lockfile entry to catch auth/network problems early and surface actionable error messages rather than failing silently at clone time.

Parameters

repoUrl

string

Repository URL to check (HTTPS or SSH)

Returns

Promise\<RemoteValidation>

RemoteValidation result with accessibility status and optional commit hash