Skip to content

PromptScript API


Interface: CompositionOptions

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

Options for skill composition resolution.

Properties

currentFile

currentFile: string

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

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


depth?

optional depth?: number

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

Current nesting depth (0-based).


resolutionStack?

optional resolutionStack?: Set\<string>

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

Accumulated resolution stack for cycle detection.


resolveFile

resolveFile: (absPath, context?) => Promise\<Program | ResolvedCompositionFile>

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

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

Parameters

absPath

string

context?

CompositionResolutionContext

Returns

Promise\<Program | ResolvedCompositionFile>


resolvePath

resolvePath: (ref, fromFile) => string

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

Resolve a path reference string to an absolute path.

Parameters

ref

string

fromFile

string

Returns

string