Skip to content

PromptScript API


Interface: CompositionOptions

Defined in: resolver/src/skill-composition.ts:30

Options for skill composition resolution.

Properties

currentFile

currentFile: string

Defined in: resolver/src/skill-composition.ts:36

Absolute path of the file being resolved (for cycle detection).


depth?

optional depth?: number

Defined in: resolver/src/skill-composition.ts:40

Current nesting depth (0-based).


resolutionStack?

optional resolutionStack?: Set\<string>

Defined in: resolver/src/skill-composition.ts:38

Accumulated resolution stack for cycle detection.


resolveFile

resolveFile: (absPath) => Promise\<Program>

Defined in: resolver/src/skill-composition.ts:32

Resolve a sub-skill file through the full resolver pipeline.

Parameters

absPath

string

Returns

Promise\<Program>


resolvePath

resolvePath: (ref, fromFile) => string

Defined in: resolver/src/skill-composition.ts:34

Resolve a path reference string to an absolute path.

Parameters

ref

string

fromFile

string

Returns

string