Skip to content

PromptScript API


Function: buildReferenceKey()

buildReferenceKey(repoUrl, relativePath, version): string

Defined in: resolver/src/reference-hasher.ts:20

Build a lockfile key for a registry reference file. Format: <repoUrl>\0<relativePath>\0<version> Uses null byte separator consistent with MARKER_SEP in loader.ts. This is the sole canonical key builder — used by both lock generation and compile-time verification.

Parameters

repoUrl

string

relativePath

string

version

string

Returns

string