Skip to content

ResolverOptions

PromptScript API


Defined in: resolver/src/resolver.ts:335

Options for the resolver.

Extends

Extended by

Properties

cache?

optional cache?: boolean

Defined in: resolver/src/resolver.ts:337

Whether to cache resolved ASTs. Defaults to true.


cacheDir?

optional cacheDir?: string

Defined in: resolver/src/resolver.ts:347

Base directory for the registry cache (defaults to ~/.promptscript/cache)


guardRequiresDepth?

optional guardRequiresDepth?: number

Defined in: resolver/src/resolver.ts:345

Maximum depth for guard requires resolution. Defaults to 3.


localPath?

optional localPath?: string

Defined in: resolver/src/loader.ts:64

Base path for local/relative file resolution (defaults to projectRoot, then cwd)

Inherited from

LoaderOptions.localPath


lockfile?

optional lockfile?: Lockfile

Defined in: resolver/src/loader.ts:72

Lockfile for pinning remote dependencies

Inherited from

LoaderOptions.lockfile


logger?

optional logger?: Logger

Defined in: resolver/src/resolver.ts:341

Logger for verbose/debug output


projectRoot?

optional projectRoot?: string

Defined in: resolver/src/loader.ts:66

Project root used as the traversal safety boundary

Inherited from

LoaderOptions.projectRoot


readOnly?

optional readOnly?: boolean

Defined in: resolver/src/resolver.ts:339

Refuse remote registry clones and cache metadata writes.


referenceRoots?

optional referenceRoots?: Record<string, string[]>

Defined in: resolver/src/resolver.ts:351

Repository roots that use a cache layout other than RegistryCache


registries?

optional registries?: RegistriesConfig

Defined in: resolver/src/loader.ts:70

Registry alias configuration for remote imports

Inherited from

LoaderOptions.registries


registry?

optional registry?: Registry

Defined in: resolver/src/loader.ts:68

Optional Registry implementation for file fetching

Inherited from

LoaderOptions.registry


registryPath

registryPath: string

Defined in: resolver/src/loader.ts:62

Base path for registry lookups (@namespace/…)

Inherited from

LoaderOptions.registryPath


skills?

optional skills?: NativeSkillOptions

Defined in: resolver/src/resolver.ts:343

Options for native skill resolution


skillTargets?

optional skillTargets?: Record<string, string>

Defined in: resolver/src/resolver.ts:357

Map from @use source path.raw to a target output directory. Provides a config-driven default for skills imported via

Use

when no inline into "<path>" clause is present on the directive.


vendorDir?

optional vendorDir?: string

Defined in: resolver/src/resolver.ts:349

Vendored registry directory to prefer over cache and network access