createGitRegistry()
createGitRegistry(
options):GitRegistry
Defined in: resolver/src/git-registry.ts:1264
Create a new GitRegistry instance.
Parameters
options
Git registry options
Returns
GitRegistry instance
Example
// Public repositoryconst registry = createGitRegistry({ url: 'https://github.com/org/promptscript-registry.git', ref: 'main', path: 'registry/',});
// Private repository with tokenconst privateRegistry = createGitRegistry({ url: 'https://github.com/org/private-registry.git', auth: { type: 'token', tokenEnvVar: 'GITHUB_TOKEN', },});
// Fetch a fileconst content = await registry.fetch('@company/base');
// Fetch a specific version