Skip to content

PromptScript API


Function: classifyOutputResource()

classifyOutputResource(target, path, skillBaseDir?): OutputResourceKind

Defined in: core/src/output-resources.ts:125

Classify a planned output path by the target's catalog resources.

Unknown owners and paths no resource covers classify as main, so a resource-only run never keeps files the selection did not name. A configured skillBaseDir relocates skill outputs off the catalog default path, so it classifies unmatched paths under it as skills.

Parameters

target

string

path

string

skillBaseDir?

string

Returns

OutputResourceKind