plugin-skill-name.ts 470 B

1234567891011
  1. /**
  2. * Build the model-facing identity for a Skill contributed by a Plugin.
  3. *
  4. * Package metadata and filesystem paths keep using the original Skill name.
  5. * This qualified name exists only at the runtime projection boundary so
  6. * Plugin Skills do not collide with standalone Skills or Skills from another
  7. * Plugin.
  8. */
  9. export function buildPluginSkillRuntimeName(pluginName: string, skillName: string): string {
  10. return `${pluginName.trim()}:${skillName.trim()}`;
  11. }