getSkillPhaseSourceLabel()
getSkillPhaseSourceLabel(
source,projectRoot?):string
Defined in: core/src/skill-phase.ts:26
Build the portable label used in a composed-from marker.
The label is the source path relative to the project root, with /
separators. When the source is outside the root, or no root is given,
only the file name is returned. An empty root means the virtual root,
where Windows drive paths also fall back to the file name.
Absolute paths and .. segments are never returned.
Parameters
source
string
projectRoot?
string
Returns
string