Skip to content

PromptScript API


Interface: ResolvedAST

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

Result of resolving a PromptScript file.

Properties

ast

ast: Program | null

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

Mutable compatibility projection for legacy integrations.

Deprecated

Use canonicalAst for new consumers.


canonicalAst

canonicalAst: CanonicalProgram | null

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

Immutable canonical AST used by compiler and validator stages.

This is the primary resolved representation.


dependencies?

optional dependencies?: string[]

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

Files and directories read while resolving the AST


errors

errors: ResolveError[]

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

List of errors encountered during resolution


provenance

provenance: ProvenanceTrace

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

Public source and composition provenance for final values


sources

sources: string[]

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

List of all source files involved in resolution