Skip to content

PromptScript API


Interface: ComposedPhase

Defined in: core/src/types/ast.ts:801

Metadata about a composed phase in a skill. Set by the resolver during skill composition — not user-authored.

Properties

alias?

optional alias?: string

Defined in: core/src/types/ast.ts:811

Alias if

Use

... as alias was used


composedBlocks

composedBlocks: string[]

Defined in: core/src/types/ast.ts:819

Which context blocks were composed from this phase


definitionLoc?

optional definitionLoc?: SourceLocation

Defined in: core/src/types/ast.ts:809

Source location of the composed child skill definition.


inputs?

optional inputs?: Record\<string, SkillContractField>

Defined in: core/src/types/ast.ts:815

Extracted inputs contract (if defined)


loc?

optional loc?: SourceLocation

Defined in: core/src/types/ast.ts:807

Source location of the parent @use declaration.


name

name: string

Defined in: core/src/types/ast.ts:803

Phase name (alias or skill name)


outputs?

optional outputs?: Record\<string, SkillContractField>

Defined in: core/src/types/ast.ts:817

Extracted outputs contract (if defined)


provenance?

optional provenance?: ProvenanceTrace

Defined in: core/src/types/ast.ts:813

Provenance trace resolved from the child skill.


source

source: string

Defined in: core/src/types/ast.ts:805

Source file path