Skip to content

PromptScript API


Function: createFileSystemRegistry()

createFileSystemRegistry(rootPath): FileSystemRegistry

Defined in: resolver/src/registry.ts:413

Create a filesystem-based registry.

Parameters

rootPath

string

Root directory for the registry

Returns

FileSystemRegistry

FileSystemRegistry instance

Example

const registry = createFileSystemRegistry('/path/to/registry');
const content = await registry.fetch('@core/guards/compliance.prs');