Skip to content

ComposedPhase

PromptScript API


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

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:813

Alias if

Use

… as alias was used


composedBlocks

composedBlocks: string[]

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

Which context blocks were composed from this phase


definitionLoc?

optional definitionLoc?: SourceLocation

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

Source location of the composed child skill definition.


inputs?

optional inputs?: Record<string, SkillContractField>

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

Extracted inputs contract (if defined)


loc?

optional loc?: SourceLocation

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

Source location of the parent @use declaration.


name

name: string

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

Phase name (alias or skill name)


outputs?

optional outputs?: Record<string, SkillContractField>

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

Extracted outputs contract (if defined)


provenance?

optional provenance?: ProvenanceTrace

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

Provenance trace resolved from the child skill.


source

source: string

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

Source file path