Skip to content

ResolveOptions

PromptScript API


Defined in: resolver/src/index.ts:203

Options for standalone resolve function.

Extends

Properties

cache?

optional cache?: boolean

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

Whether to cache resolved ASTs. Defaults to true.

Inherited from

ResolverOptions.cache


cacheDir?

optional cacheDir?: string

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

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

Inherited from

ResolverOptions.cacheDir


guardRequiresDepth?

optional guardRequiresDepth?: number

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

Maximum depth for guard requires resolution. Defaults to 3.

Inherited from

ResolverOptions.guardRequiresDepth


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

ResolverOptions.localPath


lockfile?

optional lockfile?: Lockfile

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

Lockfile for pinning remote dependencies

Inherited from

ResolverOptions.lockfile


logger?

optional logger?: Logger

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

Logger for verbose/debug output

Inherited from

ResolverOptions.logger


projectRoot?

optional projectRoot?: string

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

Project root used as the traversal safety boundary

Inherited from

ResolverOptions.projectRoot


readOnly?

optional readOnly?: boolean

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

Refuse remote registry clones and cache metadata writes.

Inherited from

ResolverOptions.readOnly


referenceRoots?

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

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

Repository roots that use a cache layout other than RegistryCache

Inherited from

ResolverOptions.referenceRoots


registries?

optional registries?: RegistriesConfig

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

Registry alias configuration for remote imports

Inherited from

ResolverOptions.registries


registry?

optional registry?: Registry

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

Optional Registry implementation for file fetching

Inherited from

ResolverOptions.registry


registryPath

registryPath: string

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

Base path for registry lookups (@namespace/…)

Inherited from

ResolverOptions.registryPath


resolver?

optional resolver?: Resolver

Defined in: resolver/src/index.ts:205

Reuse an existing resolver instance


skills?

optional skills?: NativeSkillOptions

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

Options for native skill resolution

Inherited from

ResolverOptions.skills


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.

Inherited from

ResolverOptions.skillTargets


vendorDir?

optional vendorDir?: string

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

Vendored registry directory to prefer over cache and network access

Inherited from

ResolverOptions.vendorDir