Skip to content

PromptScript API


Interface: ResolvedAST

Defined in: browser-compiler/src/resolver.ts:218

Result of resolving a PromptScript file.

Properties

ast

ast: Program | null

Defined in: browser-compiler/src/resolver.ts:230

Mutable compatibility projection for legacy integrations.

Deprecated

Use canonicalAst for new consumers.


canonicalAst

canonicalAst: CanonicalProgram | null

Defined in: browser-compiler/src/resolver.ts:224

Immutable canonical AST used by compiler and validator stages.

This is the primary resolved representation.


errors

errors: ResolveError[]

Defined in: browser-compiler/src/resolver.ts:236

List of errors encountered during resolution


provenance

provenance: ProvenanceTrace

Defined in: browser-compiler/src/resolver.ts:234

Public source and composition provenance for final values


sources

sources: string[]

Defined in: browser-compiler/src/resolver.ts:232

List of all source files involved in resolution