Skip to content

PromptScript API


Interface: CompositionOptions

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

Options for skill composition resolution.

Properties

currentFile

currentFile: string

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

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


depth?

optional depth?: number

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

Current nesting depth (0-based).


resolutionStack?

optional resolutionStack?: Set\<string>

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

Accumulated resolution stack for cycle detection.


resolveFile

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

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

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

Resolve a path reference string to an absolute path.

Parameters

ref

string

fromFile

string

Returns

string