Skip to content

CompositionOptions

PromptScript API


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

Options for skill composition resolution.

Properties

currentFile

currentFile: string

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

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


depth?

optional depth?: number

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

Current nesting depth (0-based).


projectRoot?

optional projectRoot?: string

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

Project root used to build portable composed-from markers.


resolutionStack?

optional resolutionStack?: Set<string>

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

Accumulated resolution stack for cycle detection.


resolveFile

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

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

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

Resolve a path reference string to an absolute path.

Parameters

ref

string

fromFile

string

Returns

string